From fbdff46af084b39091d39a05f60b340d9b9c394f Mon Sep 17 00:00:00 2001 From: mbohlool Date: Mon, 17 Apr 2017 16:35:57 -0700 Subject: [PATCH 1/3] Inline primitive models in preprocessing --- scripts/preprocess_spec.py | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/scripts/preprocess_spec.py b/scripts/preprocess_spec.py index d871cbdd41..b3316276da 100644 --- a/scripts/preprocess_spec.py +++ b/scripts/preprocess_spec.py @@ -117,6 +117,8 @@ def process_swagger(spec): remove_model_prefixes(spec) + inline_primitive_models(spec) + # TODO: Kubernetes does not set a version for OpenAPI spec yet, # remove this when that is fixed. spec['info']['version'] = SPEC_VERSION @@ -191,6 +193,40 @@ def remove_model_prefixes(spec): rename_model(spec, k, v["new_name"]) +def find_replace_ref_recursive(root, ref_name, replace_map): + if isinstance(root, list): + for r in root: + find_replace_ref_recursive(r, ref_name, replace_map) + if isinstance(root, dict): + if "$ref" in root: + if root["$ref"] == ref_name: + del root["$ref"] + for k, v in replace_map.iteritems(): + if k in root: + if k != "description": + raise PreprocessingException( + "Cannot inline model %s because of " + "conflicting key %s." % (ref_name, k)) + continue + root[k] = v + for k, v in root.iteritems(): + find_replace_ref_recursive(v, ref_name, replace_map) + + +def inline_primitive_models(spec): + to_remove_models = [] + for k, v in spec['definitions'].iteritems(): + if "properties" not in v: + print("Making primitive mode `%s` inline ..." % k) + if "type" not in v: + v["type"] = "object" + find_replace_ref_recursive(spec, "#/definitions/" + k, v) + to_remove_models.append(k) + + for k in to_remove_models: + del spec['definitions'][k] + + def main(): pool = urllib3.PoolManager() with pool.request('GET', SPEC_URL, preload_content=False) as response: From cfc0ff1a0db35a7ce23e7648412b670ac65a24b3 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Mon, 17 Apr 2017 16:37:09 -0700 Subject: [PATCH 2/3] Update client --- kubernetes/README.md | 3 - kubernetes/client/__init__.py | 3 - kubernetes/client/apis/apps_v1beta1_api.py | 20 +- kubernetes/client/apis/autoscaling_v1_api.py | 8 +- .../client/apis/autoscaling_v2alpha1_api.py | 8 +- kubernetes/client/apis/batch_v1_api.py | 8 +- kubernetes/client/apis/batch_v2alpha1_api.py | 16 +- .../client/apis/certificates_v1beta1_api.py | 4 +- kubernetes/client/apis/core_v1_api.py | 96 ++--- .../client/apis/extensions_v1beta1_api.py | 56 +-- kubernetes/client/apis/policy_v1beta1_api.py | 8 +- .../apis/rbac_authorization_v1alpha1_api.py | 16 +- .../apis/rbac_authorization_v1beta1_api.py | 16 +- .../client/apis/settings_v1alpha1_api.py | 4 +- kubernetes/client/apis/storage_v1_api.py | 4 +- kubernetes/client/apis/storage_v1beta1_api.py | 4 +- kubernetes/client/models/__init__.py | 3 - .../apps_v1beta1_deployment_condition.py | 12 +- .../apps_v1beta1_rolling_update_deployment.py | 12 +- ...extensions_v1beta1_deployment_condition.py | 12 +- ...sions_v1beta1_rolling_update_deployment.py | 12 +- .../client/models/intstr_int_or_string.py | 90 ----- kubernetes/client/models/resource_quantity.py | 90 ----- .../models/v1_container_state_running.py | 6 +- .../models/v1_container_state_terminated.py | 12 +- kubernetes/client/models/v1_event.py | 12 +- .../v1_horizontal_pod_autoscaler_status.py | 6 +- .../client/models/v1_http_get_action.py | 6 +- kubernetes/client/models/v1_job_condition.py | 12 +- kubernetes/client/models/v1_job_status.py | 12 +- .../client/models/v1_limit_range_item.py | 30 +- kubernetes/client/models/v1_node_condition.py | 12 +- kubernetes/client/models/v1_node_status.py | 12 +- kubernetes/client/models/v1_object_meta.py | 12 +- .../v1_persistent_volume_claim_status.py | 6 +- .../models/v1_persistent_volume_spec.py | 6 +- kubernetes/client/models/v1_pod_condition.py | 12 +- kubernetes/client/models/v1_pod_status.py | 6 +- .../v1_replication_controller_condition.py | 6 +- .../models/v1_resource_field_selector.py | 6 +- .../client/models/v1_resource_quota_spec.py | 6 +- .../client/models/v1_resource_quota_status.py | 12 +- .../client/models/v1_resource_requirements.py | 12 +- kubernetes/client/models/v1_service_port.py | 6 +- kubernetes/client/models/v1_taint.py | 6 +- .../client/models/v1_tcp_socket_action.py | 6 +- kubernetes/client/models/v1_time.py | 90 ----- ...1_certificate_signing_request_condition.py | 6 +- .../client/models/v1beta1_ingress_backend.py | 6 +- .../models/v1beta1_network_policy_port.py | 6 +- .../v1beta1_pod_disruption_budget_spec.py | 6 +- .../v1beta1_pod_disruption_budget_status.py | 6 +- .../models/v1beta1_replica_set_condition.py | 6 +- .../v1beta1_rolling_update_daemon_set.py | 6 +- .../client/models/v2alpha1_cron_job_spec.py | 4 +- .../client/models/v2alpha1_cron_job_status.py | 6 +- ...alpha1_horizontal_pod_autoscaler_status.py | 6 +- .../models/v2alpha1_object_metric_source.py | 6 +- .../models/v2alpha1_object_metric_status.py | 6 +- .../models/v2alpha1_pods_metric_source.py | 6 +- .../models/v2alpha1_pods_metric_status.py | 6 +- .../models/v2alpha1_resource_metric_source.py | 6 +- .../models/v2alpha1_resource_metric_status.py | 6 +- kubernetes/docs/AppsV1beta1Api.md | 20 +- .../docs/AppsV1beta1DeploymentCondition.md | 4 +- .../AppsV1beta1RollingUpdateDeployment.md | 4 +- kubernetes/docs/AutoscalingV1Api.md | 8 +- kubernetes/docs/AutoscalingV2alpha1Api.md | 8 +- kubernetes/docs/BatchV1Api.md | 8 +- kubernetes/docs/BatchV2alpha1Api.md | 16 +- kubernetes/docs/CertificatesV1beta1Api.md | 4 +- kubernetes/docs/CoreV1Api.md | 96 ++--- kubernetes/docs/ExtensionsV1beta1Api.md | 56 +-- .../ExtensionsV1beta1DeploymentCondition.md | 4 +- ...xtensionsV1beta1RollingUpdateDeployment.md | 4 +- kubernetes/docs/IntstrIntOrString.md | 9 - kubernetes/docs/PolicyV1beta1Api.md | 8 +- .../docs/RbacAuthorizationV1alpha1Api.md | 16 +- .../docs/RbacAuthorizationV1beta1Api.md | 16 +- kubernetes/docs/ResourceQuantity.md | 9 - kubernetes/docs/SettingsV1alpha1Api.md | 4 +- kubernetes/docs/StorageV1Api.md | 4 +- kubernetes/docs/StorageV1beta1Api.md | 4 +- kubernetes/docs/V1ContainerStateRunning.md | 2 +- kubernetes/docs/V1ContainerStateTerminated.md | 4 +- kubernetes/docs/V1Event.md | 4 +- kubernetes/docs/V1HTTPGetAction.md | 2 +- .../docs/V1HorizontalPodAutoscalerStatus.md | 2 +- kubernetes/docs/V1JobCondition.md | 4 +- kubernetes/docs/V1JobStatus.md | 4 +- kubernetes/docs/V1LimitRangeItem.md | 10 +- kubernetes/docs/V1NodeCondition.md | 4 +- kubernetes/docs/V1NodeStatus.md | 4 +- kubernetes/docs/V1ObjectMeta.md | 4 +- .../docs/V1PersistentVolumeClaimStatus.md | 2 +- kubernetes/docs/V1PersistentVolumeSpec.md | 2 +- kubernetes/docs/V1PodCondition.md | 4 +- kubernetes/docs/V1PodStatus.md | 2 +- .../docs/V1ReplicationControllerCondition.md | 2 +- kubernetes/docs/V1ResourceFieldSelector.md | 2 +- kubernetes/docs/V1ResourceQuotaSpec.md | 2 +- kubernetes/docs/V1ResourceQuotaStatus.md | 4 +- kubernetes/docs/V1ResourceRequirements.md | 4 +- kubernetes/docs/V1ServicePort.md | 2 +- kubernetes/docs/V1TCPSocketAction.md | 2 +- kubernetes/docs/V1Taint.md | 2 +- kubernetes/docs/V1Time.md | 9 - ...beta1CertificateSigningRequestCondition.md | 2 +- kubernetes/docs/V1beta1IngressBackend.md | 2 +- kubernetes/docs/V1beta1NetworkPolicyPort.md | 2 +- .../docs/V1beta1PodDisruptionBudgetSpec.md | 2 +- .../docs/V1beta1PodDisruptionBudgetStatus.md | 2 +- kubernetes/docs/V1beta1ReplicaSetCondition.md | 2 +- .../docs/V1beta1RollingUpdateDaemonSet.md | 2 +- kubernetes/docs/V2alpha1CronJobSpec.md | 2 +- kubernetes/docs/V2alpha1CronJobStatus.md | 2 +- .../V2alpha1HorizontalPodAutoscalerStatus.md | 2 +- kubernetes/docs/V2alpha1ObjectMetricSource.md | 2 +- kubernetes/docs/V2alpha1ObjectMetricStatus.md | 2 +- kubernetes/docs/V2alpha1PodsMetricSource.md | 2 +- kubernetes/docs/V2alpha1PodsMetricStatus.md | 2 +- .../docs/V2alpha1ResourceMetricSource.md | 2 +- .../docs/V2alpha1ResourceMetricStatus.md | 2 +- kubernetes/test/test_intstr_int_or_string.py | 42 -- kubernetes/test/test_resource_quantity.py | 42 -- kubernetes/test/test_v1_time.py | 42 -- scripts/swagger.json | 376 +++++++++++------- 127 files changed, 745 insertions(+), 1085 deletions(-) delete mode 100644 kubernetes/client/models/intstr_int_or_string.py delete mode 100644 kubernetes/client/models/resource_quantity.py delete mode 100644 kubernetes/client/models/v1_time.py delete mode 100644 kubernetes/docs/IntstrIntOrString.md delete mode 100644 kubernetes/docs/ResourceQuantity.md delete mode 100644 kubernetes/docs/V1Time.md delete mode 100644 kubernetes/test/test_intstr_int_or_string.py delete mode 100644 kubernetes/test/test_resource_quantity.py delete mode 100644 kubernetes/test/test_v1_time.py diff --git a/kubernetes/README.md b/kubernetes/README.md index 380995f7ab..5877cc2387 100644 --- a/kubernetes/README.md +++ b/kubernetes/README.md @@ -635,8 +635,6 @@ Class | Method | HTTP request | Description - [ExtensionsV1beta1Scale](docs/ExtensionsV1beta1Scale.md) - [ExtensionsV1beta1ScaleSpec](docs/ExtensionsV1beta1ScaleSpec.md) - [ExtensionsV1beta1ScaleStatus](docs/ExtensionsV1beta1ScaleStatus.md) - - [IntstrIntOrString](docs/IntstrIntOrString.md) - - [ResourceQuantity](docs/ResourceQuantity.md) - [RuntimeRawExtension](docs/RuntimeRawExtension.md) - [V1APIGroup](docs/V1APIGroup.md) - [V1APIGroupList](docs/V1APIGroupList.md) @@ -817,7 +815,6 @@ Class | Method | HTTP request | Description - [V1SubjectAccessReviewStatus](docs/V1SubjectAccessReviewStatus.md) - [V1TCPSocketAction](docs/V1TCPSocketAction.md) - [V1Taint](docs/V1Taint.md) - - [V1Time](docs/V1Time.md) - [V1TokenReview](docs/V1TokenReview.md) - [V1TokenReviewSpec](docs/V1TokenReviewSpec.md) - [V1TokenReviewStatus](docs/V1TokenReviewStatus.md) diff --git a/kubernetes/client/__init__.py b/kubernetes/client/__init__.py index 8382ba0a8d..df407c4773 100644 --- a/kubernetes/client/__init__.py +++ b/kubernetes/client/__init__.py @@ -38,8 +38,6 @@ from .models.extensions_v1beta1_scale import ExtensionsV1beta1Scale from .models.extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec from .models.extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus -from .models.intstr_int_or_string import IntstrIntOrString -from .models.resource_quantity import ResourceQuantity from .models.runtime_raw_extension import RuntimeRawExtension from .models.v1_api_group import V1APIGroup from .models.v1_api_group_list import V1APIGroupList @@ -220,7 +218,6 @@ from .models.v1_subject_access_review_status import V1SubjectAccessReviewStatus from .models.v1_tcp_socket_action import V1TCPSocketAction from .models.v1_taint import V1Taint -from .models.v1_time import V1Time from .models.v1_token_review import V1TokenReview from .models.v1_token_review_spec import V1TokenReviewSpec from .models.v1_token_review_status import V1TokenReviewStatus diff --git a/kubernetes/client/apis/apps_v1beta1_api.py b/kubernetes/client/apis/apps_v1beta1_api.py index 340f1d46ef..1892cb452b 100644 --- a/kubernetes/client/apis/apps_v1beta1_api.py +++ b/kubernetes/client/apis/apps_v1beta1_api.py @@ -1537,7 +1537,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Deployment If the method is called asynchronously, @@ -1565,7 +1565,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Deployment If the method is called asynchronously, @@ -1660,7 +1660,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Deployment If the method is called asynchronously, @@ -1688,7 +1688,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Deployment If the method is called asynchronously, @@ -1783,7 +1783,7 @@ def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Scale If the method is called asynchronously, @@ -1811,7 +1811,7 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: AppsV1beta1Scale If the method is called asynchronously, @@ -1906,7 +1906,7 @@ def patch_namespaced_stateful_set(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, @@ -1934,7 +1934,7 @@ def patch_namespaced_stateful_set_with_http_info(self, name, namespace, body, ** for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, @@ -2029,7 +2029,7 @@ def patch_namespaced_stateful_set_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, @@ -2057,7 +2057,7 @@ def patch_namespaced_stateful_set_status_with_http_info(self, name, namespace, b for asynchronous request. (optional) :param str name: name of the StatefulSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StatefulSet If the method is called asynchronously, diff --git a/kubernetes/client/apis/autoscaling_v1_api.py b/kubernetes/client/apis/autoscaling_v1_api.py index ef5a9b99e4..15f1725a0f 100644 --- a/kubernetes/client/apis/autoscaling_v1_api.py +++ b/kubernetes/client/apis/autoscaling_v1_api.py @@ -783,7 +783,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -811,7 +811,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -906,7 +906,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, @@ -934,7 +934,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1HorizontalPodAutoscaler If the method is called asynchronously, diff --git a/kubernetes/client/apis/autoscaling_v2alpha1_api.py b/kubernetes/client/apis/autoscaling_v2alpha1_api.py index 7d0c091c93..8fa2928f19 100644 --- a/kubernetes/client/apis/autoscaling_v2alpha1_api.py +++ b/kubernetes/client/apis/autoscaling_v2alpha1_api.py @@ -783,7 +783,7 @@ def patch_namespaced_horizontal_pod_autoscaler(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1HorizontalPodAutoscaler If the method is called asynchronously, @@ -811,7 +811,7 @@ def patch_namespaced_horizontal_pod_autoscaler_with_http_info(self, name, namesp for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1HorizontalPodAutoscaler If the method is called asynchronously, @@ -906,7 +906,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1HorizontalPodAutoscaler If the method is called asynchronously, @@ -934,7 +934,7 @@ def patch_namespaced_horizontal_pod_autoscaler_status_with_http_info(self, name, for asynchronous request. (optional) :param str name: name of the HorizontalPodAutoscaler (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1HorizontalPodAutoscaler If the method is called asynchronously, diff --git a/kubernetes/client/apis/batch_v1_api.py b/kubernetes/client/apis/batch_v1_api.py index 8d111e19db..09020a28b1 100644 --- a/kubernetes/client/apis/batch_v1_api.py +++ b/kubernetes/client/apis/batch_v1_api.py @@ -783,7 +783,7 @@ def patch_namespaced_job(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -811,7 +811,7 @@ def patch_namespaced_job_with_http_info(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -906,7 +906,7 @@ def patch_namespaced_job_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, @@ -934,7 +934,7 @@ def patch_namespaced_job_status_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the Job (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Job If the method is called asynchronously, diff --git a/kubernetes/client/apis/batch_v2alpha1_api.py b/kubernetes/client/apis/batch_v2alpha1_api.py index 7d9233da27..91c4e9bbe4 100644 --- a/kubernetes/client/apis/batch_v2alpha1_api.py +++ b/kubernetes/client/apis/batch_v2alpha1_api.py @@ -1414,7 +1414,7 @@ def patch_namespaced_cron_job(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1442,7 +1442,7 @@ def patch_namespaced_cron_job_with_http_info(self, name, namespace, body, **kwar for asynchronous request. (optional) :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1537,7 +1537,7 @@ def patch_namespaced_cron_job_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1565,7 +1565,7 @@ def patch_namespaced_cron_job_status_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the CronJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1660,7 +1660,7 @@ def patch_namespaced_scheduled_job(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1688,7 +1688,7 @@ def patch_namespaced_scheduled_job_with_http_info(self, name, namespace, body, * for asynchronous request. (optional) :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1783,7 +1783,7 @@ def patch_namespaced_scheduled_job_status(self, name, namespace, body, **kwargs) for asynchronous request. (optional) :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, @@ -1811,7 +1811,7 @@ def patch_namespaced_scheduled_job_status_with_http_info(self, name, namespace, for asynchronous request. (optional) :param str name: name of the ScheduledJob (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V2alpha1CronJob If the method is called asynchronously, diff --git a/kubernetes/client/apis/certificates_v1beta1_api.py b/kubernetes/client/apis/certificates_v1beta1_api.py index 1ae83cb8d2..5ea1632f35 100644 --- a/kubernetes/client/apis/certificates_v1beta1_api.py +++ b/kubernetes/client/apis/certificates_v1beta1_api.py @@ -632,7 +632,7 @@ def patch_certificate_signing_request(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, @@ -659,7 +659,7 @@ def patch_certificate_signing_request_with_http_info(self, name, body, **kwargs) :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the CertificateSigningRequest (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1CertificateSigningRequest If the method is called asynchronously, diff --git a/kubernetes/client/apis/core_v1_api.py b/kubernetes/client/apis/core_v1_api.py index 014d56c325..4de3b220b5 100644 --- a/kubernetes/client/apis/core_v1_api.py +++ b/kubernetes/client/apis/core_v1_api.py @@ -14488,7 +14488,7 @@ def patch_namespace(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14515,7 +14515,7 @@ def patch_namespace_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14604,7 +14604,7 @@ def patch_namespace_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14631,7 +14631,7 @@ def patch_namespace_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Namespace (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Namespace If the method is called asynchronously, @@ -14721,7 +14721,7 @@ def patch_namespaced_config_map(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, @@ -14749,7 +14749,7 @@ def patch_namespaced_config_map_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the ConfigMap (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ConfigMap If the method is called asynchronously, @@ -14844,7 +14844,7 @@ def patch_namespaced_endpoints(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, @@ -14872,7 +14872,7 @@ def patch_namespaced_endpoints_with_http_info(self, name, namespace, body, **kwa for asynchronous request. (optional) :param str name: name of the Endpoints (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Endpoints If the method is called asynchronously, @@ -14967,7 +14967,7 @@ def patch_namespaced_event(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, @@ -14995,7 +14995,7 @@ def patch_namespaced_event_with_http_info(self, name, namespace, body, **kwargs) for asynchronous request. (optional) :param str name: name of the Event (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Event If the method is called asynchronously, @@ -15090,7 +15090,7 @@ def patch_namespaced_limit_range(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, @@ -15118,7 +15118,7 @@ def patch_namespaced_limit_range_with_http_info(self, name, namespace, body, **k for asynchronous request. (optional) :param str name: name of the LimitRange (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1LimitRange If the method is called asynchronously, @@ -15213,7 +15213,7 @@ def patch_namespaced_persistent_volume_claim(self, name, namespace, body, **kwar for asynchronous request. (optional) :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15241,7 +15241,7 @@ def patch_namespaced_persistent_volume_claim_with_http_info(self, name, namespac for asynchronous request. (optional) :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15336,7 +15336,7 @@ def patch_namespaced_persistent_volume_claim_status(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15364,7 +15364,7 @@ def patch_namespaced_persistent_volume_claim_status_with_http_info(self, name, n for asynchronous request. (optional) :param str name: name of the PersistentVolumeClaim (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolumeClaim If the method is called asynchronously, @@ -15459,7 +15459,7 @@ def patch_namespaced_pod(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15487,7 +15487,7 @@ def patch_namespaced_pod_with_http_info(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15582,7 +15582,7 @@ def patch_namespaced_pod_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15610,7 +15610,7 @@ def patch_namespaced_pod_status_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the Pod (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Pod If the method is called asynchronously, @@ -15705,7 +15705,7 @@ def patch_namespaced_pod_template(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, @@ -15733,7 +15733,7 @@ def patch_namespaced_pod_template_with_http_info(self, name, namespace, body, ** for asynchronous request. (optional) :param str name: name of the PodTemplate (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PodTemplate If the method is called asynchronously, @@ -15828,7 +15828,7 @@ def patch_namespaced_replication_controller(self, name, namespace, body, **kwarg for asynchronous request. (optional) :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15856,7 +15856,7 @@ def patch_namespaced_replication_controller_with_http_info(self, name, namespace for asynchronous request. (optional) :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15951,7 +15951,7 @@ def patch_namespaced_replication_controller_status(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -15979,7 +15979,7 @@ def patch_namespaced_replication_controller_status_with_http_info(self, name, na for asynchronous request. (optional) :param str name: name of the ReplicationController (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ReplicationController If the method is called asynchronously, @@ -16074,7 +16074,7 @@ def patch_namespaced_resource_quota(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16102,7 +16102,7 @@ def patch_namespaced_resource_quota_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16197,7 +16197,7 @@ def patch_namespaced_resource_quota_status(self, name, namespace, body, **kwargs for asynchronous request. (optional) :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16225,7 +16225,7 @@ def patch_namespaced_resource_quota_status_with_http_info(self, name, namespace, for asynchronous request. (optional) :param str name: name of the ResourceQuota (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ResourceQuota If the method is called asynchronously, @@ -16320,7 +16320,7 @@ def patch_namespaced_scale_scale(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, @@ -16348,7 +16348,7 @@ def patch_namespaced_scale_scale_with_http_info(self, name, namespace, body, **k for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Scale If the method is called asynchronously, @@ -16443,7 +16443,7 @@ def patch_namespaced_secret(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, @@ -16471,7 +16471,7 @@ def patch_namespaced_secret_with_http_info(self, name, namespace, body, **kwargs for asynchronous request. (optional) :param str name: name of the Secret (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Secret If the method is called asynchronously, @@ -16566,7 +16566,7 @@ def patch_namespaced_service(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16594,7 +16594,7 @@ def patch_namespaced_service_with_http_info(self, name, namespace, body, **kwarg for asynchronous request. (optional) :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16689,7 +16689,7 @@ def patch_namespaced_service_account(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, @@ -16717,7 +16717,7 @@ def patch_namespaced_service_account_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the ServiceAccount (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1ServiceAccount If the method is called asynchronously, @@ -16812,7 +16812,7 @@ def patch_namespaced_service_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16840,7 +16840,7 @@ def patch_namespaced_service_status_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the Service (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Service If the method is called asynchronously, @@ -16934,7 +16934,7 @@ def patch_node(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -16961,7 +16961,7 @@ def patch_node_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -17050,7 +17050,7 @@ def patch_node_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -17077,7 +17077,7 @@ def patch_node_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the Node (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1Node If the method is called asynchronously, @@ -17166,7 +17166,7 @@ def patch_persistent_volume(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17193,7 +17193,7 @@ def patch_persistent_volume_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17282,7 +17282,7 @@ def patch_persistent_volume_status(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, @@ -17309,7 +17309,7 @@ def patch_persistent_volume_status_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PersistentVolume (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1PersistentVolume If the method is called asynchronously, diff --git a/kubernetes/client/apis/extensions_v1beta1_api.py b/kubernetes/client/apis/extensions_v1beta1_api.py index d496d76d39..223b83382b 100644 --- a/kubernetes/client/apis/extensions_v1beta1_api.py +++ b/kubernetes/client/apis/extensions_v1beta1_api.py @@ -4392,7 +4392,7 @@ def patch_namespaced_daemon_set(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, @@ -4420,7 +4420,7 @@ def patch_namespaced_daemon_set_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, @@ -4515,7 +4515,7 @@ def patch_namespaced_daemon_set_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, @@ -4543,7 +4543,7 @@ def patch_namespaced_daemon_set_status_with_http_info(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the DaemonSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1DaemonSet If the method is called asynchronously, @@ -4638,7 +4638,7 @@ def patch_namespaced_deployment(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, @@ -4666,7 +4666,7 @@ def patch_namespaced_deployment_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, @@ -4761,7 +4761,7 @@ def patch_namespaced_deployment_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, @@ -4789,7 +4789,7 @@ def patch_namespaced_deployment_status_with_http_info(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the Deployment (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Deployment If the method is called asynchronously, @@ -4884,7 +4884,7 @@ def patch_namespaced_deployments_scale(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -4912,7 +4912,7 @@ def patch_namespaced_deployments_scale_with_http_info(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -5007,7 +5007,7 @@ def patch_namespaced_ingress(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, @@ -5035,7 +5035,7 @@ def patch_namespaced_ingress_with_http_info(self, name, namespace, body, **kwarg for asynchronous request. (optional) :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, @@ -5130,7 +5130,7 @@ def patch_namespaced_ingress_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, @@ -5158,7 +5158,7 @@ def patch_namespaced_ingress_status_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the Ingress (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Ingress If the method is called asynchronously, @@ -5253,7 +5253,7 @@ def patch_namespaced_network_policy(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1NetworkPolicy If the method is called asynchronously, @@ -5281,7 +5281,7 @@ def patch_namespaced_network_policy_with_http_info(self, name, namespace, body, for asynchronous request. (optional) :param str name: name of the NetworkPolicy (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1NetworkPolicy If the method is called asynchronously, @@ -5376,7 +5376,7 @@ def patch_namespaced_replica_set(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, @@ -5404,7 +5404,7 @@ def patch_namespaced_replica_set_with_http_info(self, name, namespace, body, **k for asynchronous request. (optional) :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, @@ -5499,7 +5499,7 @@ def patch_namespaced_replica_set_status(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, @@ -5527,7 +5527,7 @@ def patch_namespaced_replica_set_status_with_http_info(self, name, namespace, bo for asynchronous request. (optional) :param str name: name of the ReplicaSet (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ReplicaSet If the method is called asynchronously, @@ -5622,7 +5622,7 @@ def patch_namespaced_replicasets_scale(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -5650,7 +5650,7 @@ def patch_namespaced_replicasets_scale_with_http_info(self, name, namespace, bod for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -5745,7 +5745,7 @@ def patch_namespaced_replicationcontrollers_scale(self, name, namespace, body, * for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -5773,7 +5773,7 @@ def patch_namespaced_replicationcontrollers_scale_with_http_info(self, name, nam for asynchronous request. (optional) :param str name: name of the Scale (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: ExtensionsV1beta1Scale If the method is called asynchronously, @@ -5867,7 +5867,7 @@ def patch_pod_security_policy(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodSecurityPolicy (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodSecurityPolicy If the method is called asynchronously, @@ -5894,7 +5894,7 @@ def patch_pod_security_policy_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the PodSecurityPolicy (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodSecurityPolicy If the method is called asynchronously, @@ -5983,7 +5983,7 @@ def patch_third_party_resource(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ThirdPartyResource (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ThirdPartyResource If the method is called asynchronously, @@ -6010,7 +6010,7 @@ def patch_third_party_resource_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ThirdPartyResource (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ThirdPartyResource If the method is called asynchronously, diff --git a/kubernetes/client/apis/policy_v1beta1_api.py b/kubernetes/client/apis/policy_v1beta1_api.py index 3d1a737dcc..0139b4456c 100644 --- a/kubernetes/client/apis/policy_v1beta1_api.py +++ b/kubernetes/client/apis/policy_v1beta1_api.py @@ -783,7 +783,7 @@ def patch_namespaced_pod_disruption_budget(self, name, namespace, body, **kwargs for asynchronous request. (optional) :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -811,7 +811,7 @@ def patch_namespaced_pod_disruption_budget_with_http_info(self, name, namespace, for asynchronous request. (optional) :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -906,7 +906,7 @@ def patch_namespaced_pod_disruption_budget_status(self, name, namespace, body, * for asynchronous request. (optional) :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, @@ -934,7 +934,7 @@ def patch_namespaced_pod_disruption_budget_status_with_http_info(self, name, nam for asynchronous request. (optional) :param str name: name of the PodDisruptionBudget (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1PodDisruptionBudget If the method is called asynchronously, diff --git a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py b/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py index dd26e5d226..c4a3db4ee4 100644 --- a/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py +++ b/kubernetes/client/apis/rbac_authorization_v1alpha1_api.py @@ -2375,7 +2375,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, @@ -2402,7 +2402,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRole If the method is called asynchronously, @@ -2491,7 +2491,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, @@ -2518,7 +2518,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1ClusterRoleBinding If the method is called asynchronously, @@ -2608,7 +2608,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, @@ -2636,7 +2636,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1Role If the method is called asynchronously, @@ -2731,7 +2731,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, @@ -2759,7 +2759,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** for asynchronous request. (optional) :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1RoleBinding If the method is called asynchronously, diff --git a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py b/kubernetes/client/apis/rbac_authorization_v1beta1_api.py index bacff6f58a..85d14f725c 100644 --- a/kubernetes/client/apis/rbac_authorization_v1beta1_api.py +++ b/kubernetes/client/apis/rbac_authorization_v1beta1_api.py @@ -2375,7 +2375,7 @@ def patch_cluster_role(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ClusterRole If the method is called asynchronously, @@ -2402,7 +2402,7 @@ def patch_cluster_role_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRole (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ClusterRole If the method is called asynchronously, @@ -2491,7 +2491,7 @@ def patch_cluster_role_binding(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, @@ -2518,7 +2518,7 @@ def patch_cluster_role_binding_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the ClusterRoleBinding (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1ClusterRoleBinding If the method is called asynchronously, @@ -2608,7 +2608,7 @@ def patch_namespaced_role(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Role If the method is called asynchronously, @@ -2636,7 +2636,7 @@ def patch_namespaced_role_with_http_info(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the Role (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1Role If the method is called asynchronously, @@ -2731,7 +2731,7 @@ def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1RoleBinding If the method is called asynchronously, @@ -2759,7 +2759,7 @@ def patch_namespaced_role_binding_with_http_info(self, name, namespace, body, ** for asynchronous request. (optional) :param str name: name of the RoleBinding (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1RoleBinding If the method is called asynchronously, diff --git a/kubernetes/client/apis/settings_v1alpha1_api.py b/kubernetes/client/apis/settings_v1alpha1_api.py index c06774b778..1aaec502d5 100644 --- a/kubernetes/client/apis/settings_v1alpha1_api.py +++ b/kubernetes/client/apis/settings_v1alpha1_api.py @@ -783,7 +783,7 @@ def patch_namespaced_pod_preset(self, name, namespace, body, **kwargs): for asynchronous request. (optional) :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, @@ -811,7 +811,7 @@ def patch_namespaced_pod_preset_with_http_info(self, name, namespace, body, **kw for asynchronous request. (optional) :param str name: name of the PodPreset (required) :param str namespace: object name and auth scope, such as for teams and projects (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1alpha1PodPreset If the method is called asynchronously, diff --git a/kubernetes/client/apis/storage_v1_api.py b/kubernetes/client/apis/storage_v1_api.py index 25cb9602ca..fce84e5459 100644 --- a/kubernetes/client/apis/storage_v1_api.py +++ b/kubernetes/client/apis/storage_v1_api.py @@ -632,7 +632,7 @@ def patch_storage_class(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1StorageClass If the method is called asynchronously, @@ -659,7 +659,7 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1StorageClass If the method is called asynchronously, diff --git a/kubernetes/client/apis/storage_v1beta1_api.py b/kubernetes/client/apis/storage_v1beta1_api.py index c46eadef24..debc983dea 100644 --- a/kubernetes/client/apis/storage_v1beta1_api.py +++ b/kubernetes/client/apis/storage_v1beta1_api.py @@ -632,7 +632,7 @@ def patch_storage_class(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StorageClass If the method is called asynchronously, @@ -659,7 +659,7 @@ def patch_storage_class_with_http_info(self, name, body, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param str name: name of the StorageClass (required) - :param V1Patch body: (required) + :param object body: (required) :param str pretty: If 'true', then the output is pretty printed. :return: V1beta1StorageClass If the method is called asynchronously, diff --git a/kubernetes/client/models/__init__.py b/kubernetes/client/models/__init__.py index d6d1c2c1e1..fd71c1ca1d 100644 --- a/kubernetes/client/models/__init__.py +++ b/kubernetes/client/models/__init__.py @@ -38,8 +38,6 @@ from .extensions_v1beta1_scale import ExtensionsV1beta1Scale from .extensions_v1beta1_scale_spec import ExtensionsV1beta1ScaleSpec from .extensions_v1beta1_scale_status import ExtensionsV1beta1ScaleStatus -from .intstr_int_or_string import IntstrIntOrString -from .resource_quantity import ResourceQuantity from .runtime_raw_extension import RuntimeRawExtension from .v1_api_group import V1APIGroup from .v1_api_group_list import V1APIGroupList @@ -220,7 +218,6 @@ from .v1_subject_access_review_status import V1SubjectAccessReviewStatus from .v1_tcp_socket_action import V1TCPSocketAction from .v1_taint import V1Taint -from .v1_time import V1Time from .v1_token_review import V1TokenReview from .v1_token_review_spec import V1TokenReviewSpec from .v1_token_review_status import V1TokenReviewStatus diff --git a/kubernetes/client/models/apps_v1beta1_deployment_condition.py b/kubernetes/client/models/apps_v1beta1_deployment_condition.py index b53cafd117..0d65893a41 100644 --- a/kubernetes/client/models/apps_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/apps_v1beta1_deployment_condition.py @@ -31,8 +31,8 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'V1Time', - 'last_update_time': 'V1Time', + 'last_transition_time': 'datetime', + 'last_update_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_transition_time(self): Last time the condition transitioned from one status to another. :return: The last_transition_time of this AppsV1beta1DeploymentCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -73,7 +73,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this AppsV1beta1DeploymentCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time @@ -85,7 +85,7 @@ def last_update_time(self): The last time this condition was updated. :return: The last_update_time of this AppsV1beta1DeploymentCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_update_time @@ -96,7 +96,7 @@ def last_update_time(self, last_update_time): The last time this condition was updated. :param last_update_time: The last_update_time of this AppsV1beta1DeploymentCondition. - :type: V1Time + :type: datetime """ self._last_update_time = last_update_time diff --git a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py index 9c45ba426f..b5f7d81c1a 100644 --- a/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/apps_v1beta1_rolling_update_deployment.py @@ -31,8 +31,8 @@ def __init__(self, max_surge=None, max_unavailable=None): and the value is json key in definition. """ self.swagger_types = { - 'max_surge': 'IntstrIntOrString', - 'max_unavailable': 'IntstrIntOrString' + 'max_surge': 'str', + 'max_unavailable': 'str' } self.attribute_map = { @@ -50,7 +50,7 @@ def max_surge(self): The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :return: The max_surge of this AppsV1beta1RollingUpdateDeployment. - :rtype: IntstrIntOrString + :rtype: str """ return self._max_surge @@ -61,7 +61,7 @@ def max_surge(self, max_surge): The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :param max_surge: The max_surge of this AppsV1beta1RollingUpdateDeployment. - :type: IntstrIntOrString + :type: str """ self._max_surge = max_surge @@ -73,7 +73,7 @@ def max_unavailable(self): The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :return: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. - :rtype: IntstrIntOrString + :rtype: str """ return self._max_unavailable @@ -84,7 +84,7 @@ def max_unavailable(self, max_unavailable): The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :param max_unavailable: The max_unavailable of this AppsV1beta1RollingUpdateDeployment. - :type: IntstrIntOrString + :type: str """ self._max_unavailable = max_unavailable diff --git a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py index 7817b26dfa..0abd5f5d70 100644 --- a/kubernetes/client/models/extensions_v1beta1_deployment_condition.py +++ b/kubernetes/client/models/extensions_v1beta1_deployment_condition.py @@ -31,8 +31,8 @@ def __init__(self, last_transition_time=None, last_update_time=None, message=Non and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'V1Time', - 'last_update_time': 'V1Time', + 'last_transition_time': 'datetime', + 'last_update_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_transition_time(self): Last time the condition transitioned from one status to another. :return: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -73,7 +73,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this ExtensionsV1beta1DeploymentCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time @@ -85,7 +85,7 @@ def last_update_time(self): The last time this condition was updated. :return: The last_update_time of this ExtensionsV1beta1DeploymentCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_update_time @@ -96,7 +96,7 @@ def last_update_time(self, last_update_time): The last time this condition was updated. :param last_update_time: The last_update_time of this ExtensionsV1beta1DeploymentCondition. - :type: V1Time + :type: datetime """ self._last_update_time = last_update_time diff --git a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py index 4a8f147d98..7e353fc99c 100644 --- a/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py +++ b/kubernetes/client/models/extensions_v1beta1_rolling_update_deployment.py @@ -31,8 +31,8 @@ def __init__(self, max_surge=None, max_unavailable=None): and the value is json key in definition. """ self.swagger_types = { - 'max_surge': 'IntstrIntOrString', - 'max_unavailable': 'IntstrIntOrString' + 'max_surge': 'str', + 'max_unavailable': 'str' } self.attribute_map = { @@ -50,7 +50,7 @@ def max_surge(self): The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :return: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - :rtype: IntstrIntOrString + :rtype: str """ return self._max_surge @@ -61,7 +61,7 @@ def max_surge(self, max_surge): The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. :param max_surge: The max_surge of this ExtensionsV1beta1RollingUpdateDeployment. - :type: IntstrIntOrString + :type: str """ self._max_surge = max_surge @@ -73,7 +73,7 @@ def max_unavailable(self): The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :return: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - :rtype: IntstrIntOrString + :rtype: str """ return self._max_unavailable @@ -84,7 +84,7 @@ def max_unavailable(self, max_unavailable): The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. :param max_unavailable: The max_unavailable of this ExtensionsV1beta1RollingUpdateDeployment. - :type: IntstrIntOrString + :type: str """ self._max_unavailable = max_unavailable diff --git a/kubernetes/client/models/intstr_int_or_string.py b/kubernetes/client/models/intstr_int_or_string.py deleted file mode 100644 index a0c7b43174..0000000000 --- a/kubernetes/client/models/intstr_int_or_string.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class IntstrIntOrString(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self): - """ - IntstrIntOrString - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - - } - - self.attribute_map = { - - } - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/resource_quantity.py b/kubernetes/client/models/resource_quantity.py deleted file mode 100644 index d75d40ac67..0000000000 --- a/kubernetes/client/models/resource_quantity.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ResourceQuantity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self): - """ - ResourceQuantity - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - - } - - self.attribute_map = { - - } - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1_container_state_running.py b/kubernetes/client/models/v1_container_state_running.py index ad7f7f6528..c3d11e6c5d 100644 --- a/kubernetes/client/models/v1_container_state_running.py +++ b/kubernetes/client/models/v1_container_state_running.py @@ -31,7 +31,7 @@ def __init__(self, started_at=None): and the value is json key in definition. """ self.swagger_types = { - 'started_at': 'V1Time' + 'started_at': 'datetime' } self.attribute_map = { @@ -47,7 +47,7 @@ def started_at(self): Time at which the container was last (re-)started :return: The started_at of this V1ContainerStateRunning. - :rtype: V1Time + :rtype: datetime """ return self._started_at @@ -58,7 +58,7 @@ def started_at(self, started_at): Time at which the container was last (re-)started :param started_at: The started_at of this V1ContainerStateRunning. - :type: V1Time + :type: datetime """ self._started_at = started_at diff --git a/kubernetes/client/models/v1_container_state_terminated.py b/kubernetes/client/models/v1_container_state_terminated.py index d4db505af0..6e13dc0b6e 100644 --- a/kubernetes/client/models/v1_container_state_terminated.py +++ b/kubernetes/client/models/v1_container_state_terminated.py @@ -33,11 +33,11 @@ def __init__(self, container_id=None, exit_code=None, finished_at=None, message= self.swagger_types = { 'container_id': 'str', 'exit_code': 'int', - 'finished_at': 'V1Time', + 'finished_at': 'datetime', 'message': 'str', 'reason': 'str', 'signal': 'int', - 'started_at': 'V1Time' + 'started_at': 'datetime' } self.attribute_map = { @@ -113,7 +113,7 @@ def finished_at(self): Time at which the container last terminated :return: The finished_at of this V1ContainerStateTerminated. - :rtype: V1Time + :rtype: datetime """ return self._finished_at @@ -124,7 +124,7 @@ def finished_at(self, finished_at): Time at which the container last terminated :param finished_at: The finished_at of this V1ContainerStateTerminated. - :type: V1Time + :type: datetime """ self._finished_at = finished_at @@ -205,7 +205,7 @@ def started_at(self): Time at which previous execution of the container started :return: The started_at of this V1ContainerStateTerminated. - :rtype: V1Time + :rtype: datetime """ return self._started_at @@ -216,7 +216,7 @@ def started_at(self, started_at): Time at which previous execution of the container started :param started_at: The started_at of this V1ContainerStateTerminated. - :type: V1Time + :type: datetime """ self._started_at = started_at diff --git a/kubernetes/client/models/v1_event.py b/kubernetes/client/models/v1_event.py index 646111cf5e..5b0e48b313 100644 --- a/kubernetes/client/models/v1_event.py +++ b/kubernetes/client/models/v1_event.py @@ -33,10 +33,10 @@ def __init__(self, api_version=None, count=None, first_timestamp=None, involved_ self.swagger_types = { 'api_version': 'str', 'count': 'int', - 'first_timestamp': 'V1Time', + 'first_timestamp': 'datetime', 'involved_object': 'V1ObjectReference', 'kind': 'str', - 'last_timestamp': 'V1Time', + 'last_timestamp': 'datetime', 'message': 'str', 'metadata': 'V1ObjectMeta', 'reason': 'str', @@ -123,7 +123,7 @@ def first_timestamp(self): The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :return: The first_timestamp of this V1Event. - :rtype: V1Time + :rtype: datetime """ return self._first_timestamp @@ -134,7 +134,7 @@ def first_timestamp(self, first_timestamp): The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) :param first_timestamp: The first_timestamp of this V1Event. - :type: V1Time + :type: datetime """ self._first_timestamp = first_timestamp @@ -194,7 +194,7 @@ def last_timestamp(self): The time at which the most recent occurrence of this event was recorded. :return: The last_timestamp of this V1Event. - :rtype: V1Time + :rtype: datetime """ return self._last_timestamp @@ -205,7 +205,7 @@ def last_timestamp(self, last_timestamp): The time at which the most recent occurrence of this event was recorded. :param last_timestamp: The last_timestamp of this V1Event. - :type: V1Time + :type: datetime """ self._last_timestamp = last_timestamp diff --git a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py index 953c7ea4f5..89b1c7bd53 100644 --- a/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py @@ -34,7 +34,7 @@ def __init__(self, current_cpu_utilization_percentage=None, current_replicas=Non 'current_cpu_utilization_percentage': 'int', 'current_replicas': 'int', 'desired_replicas': 'int', - 'last_scale_time': 'V1Time', + 'last_scale_time': 'datetime', 'observed_generation': 'int' } @@ -132,7 +132,7 @@ def last_scale_time(self): last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. :return: The last_scale_time of this V1HorizontalPodAutoscalerStatus. - :rtype: V1Time + :rtype: datetime """ return self._last_scale_time @@ -143,7 +143,7 @@ def last_scale_time(self, last_scale_time): last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. :param last_scale_time: The last_scale_time of this V1HorizontalPodAutoscalerStatus. - :type: V1Time + :type: datetime """ self._last_scale_time = last_scale_time diff --git a/kubernetes/client/models/v1_http_get_action.py b/kubernetes/client/models/v1_http_get_action.py index 713ef12cb9..9752edcc54 100644 --- a/kubernetes/client/models/v1_http_get_action.py +++ b/kubernetes/client/models/v1_http_get_action.py @@ -34,7 +34,7 @@ def __init__(self, host=None, http_headers=None, path=None, port=None, scheme=No 'host': 'str', 'http_headers': 'list[V1HTTPHeader]', 'path': 'str', - 'port': 'IntstrIntOrString', + 'port': 'str', 'scheme': 'str' } @@ -128,7 +128,7 @@ def port(self): Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1HTTPGetAction. - :rtype: IntstrIntOrString + :rtype: str """ return self._port @@ -139,7 +139,7 @@ def port(self, port): Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1HTTPGetAction. - :type: IntstrIntOrString + :type: str """ if port is None: raise ValueError("Invalid value for `port`, must not be `None`") diff --git a/kubernetes/client/models/v1_job_condition.py b/kubernetes/client/models/v1_job_condition.py index 8e71eaaa5b..9acffec7f2 100644 --- a/kubernetes/client/models/v1_job_condition.py +++ b/kubernetes/client/models/v1_job_condition.py @@ -31,8 +31,8 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None and the value is json key in definition. """ self.swagger_types = { - 'last_probe_time': 'V1Time', - 'last_transition_time': 'V1Time', + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_probe_time(self): Last time the condition was checked. :return: The last_probe_time of this V1JobCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_probe_time @@ -73,7 +73,7 @@ def last_probe_time(self, last_probe_time): Last time the condition was checked. :param last_probe_time: The last_probe_time of this V1JobCondition. - :type: V1Time + :type: datetime """ self._last_probe_time = last_probe_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transit from one status to another. :return: The last_transition_time of this V1JobCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1JobCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_job_status.py b/kubernetes/client/models/v1_job_status.py index add38ab47a..9f9f501db7 100644 --- a/kubernetes/client/models/v1_job_status.py +++ b/kubernetes/client/models/v1_job_status.py @@ -32,10 +32,10 @@ def __init__(self, active=None, completion_time=None, conditions=None, failed=No """ self.swagger_types = { 'active': 'int', - 'completion_time': 'V1Time', + 'completion_time': 'datetime', 'conditions': 'list[V1JobCondition]', 'failed': 'int', - 'start_time': 'V1Time', + 'start_time': 'datetime', 'succeeded': 'int' } @@ -85,7 +85,7 @@ def completion_time(self): CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. :return: The completion_time of this V1JobStatus. - :rtype: V1Time + :rtype: datetime """ return self._completion_time @@ -96,7 +96,7 @@ def completion_time(self, completion_time): CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. :param completion_time: The completion_time of this V1JobStatus. - :type: V1Time + :type: datetime """ self._completion_time = completion_time @@ -154,7 +154,7 @@ def start_time(self): StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. :return: The start_time of this V1JobStatus. - :rtype: V1Time + :rtype: datetime """ return self._start_time @@ -165,7 +165,7 @@ def start_time(self, start_time): StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. :param start_time: The start_time of this V1JobStatus. - :type: V1Time + :type: datetime """ self._start_time = start_time diff --git a/kubernetes/client/models/v1_limit_range_item.py b/kubernetes/client/models/v1_limit_range_item.py index 662e937c76..8aed2baa14 100644 --- a/kubernetes/client/models/v1_limit_range_item.py +++ b/kubernetes/client/models/v1_limit_range_item.py @@ -31,11 +31,11 @@ def __init__(self, default=None, default_request=None, max=None, max_limit_reque and the value is json key in definition. """ self.swagger_types = { - 'default': 'dict(str, ResourceQuantity)', - 'default_request': 'dict(str, ResourceQuantity)', - 'max': 'dict(str, ResourceQuantity)', - 'max_limit_request_ratio': 'dict(str, ResourceQuantity)', - 'min': 'dict(str, ResourceQuantity)', + 'default': 'dict(str, str)', + 'default_request': 'dict(str, str)', + 'max': 'dict(str, str)', + 'max_limit_request_ratio': 'dict(str, str)', + 'min': 'dict(str, str)', 'type': 'str' } @@ -62,7 +62,7 @@ def default(self): Default resource requirement limit value by resource name if resource limit is omitted. :return: The default of this V1LimitRangeItem. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._default @@ -73,7 +73,7 @@ def default(self, default): Default resource requirement limit value by resource name if resource limit is omitted. :param default: The default of this V1LimitRangeItem. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._default = default @@ -85,7 +85,7 @@ def default_request(self): DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. :return: The default_request of this V1LimitRangeItem. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._default_request @@ -96,7 +96,7 @@ def default_request(self, default_request): DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. :param default_request: The default_request of this V1LimitRangeItem. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._default_request = default_request @@ -108,7 +108,7 @@ def max(self): Max usage constraints on this kind by resource name. :return: The max of this V1LimitRangeItem. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._max @@ -119,7 +119,7 @@ def max(self, max): Max usage constraints on this kind by resource name. :param max: The max of this V1LimitRangeItem. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._max = max @@ -131,7 +131,7 @@ def max_limit_request_ratio(self): MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. :return: The max_limit_request_ratio of this V1LimitRangeItem. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._max_limit_request_ratio @@ -142,7 +142,7 @@ def max_limit_request_ratio(self, max_limit_request_ratio): MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. :param max_limit_request_ratio: The max_limit_request_ratio of this V1LimitRangeItem. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._max_limit_request_ratio = max_limit_request_ratio @@ -154,7 +154,7 @@ def min(self): Min usage constraints on this kind by resource name. :return: The min of this V1LimitRangeItem. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._min @@ -165,7 +165,7 @@ def min(self, min): Min usage constraints on this kind by resource name. :param min: The min of this V1LimitRangeItem. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._min = min diff --git a/kubernetes/client/models/v1_node_condition.py b/kubernetes/client/models/v1_node_condition.py index 44795f2fe8..56f839caf2 100644 --- a/kubernetes/client/models/v1_node_condition.py +++ b/kubernetes/client/models/v1_node_condition.py @@ -31,8 +31,8 @@ def __init__(self, last_heartbeat_time=None, last_transition_time=None, message= and the value is json key in definition. """ self.swagger_types = { - 'last_heartbeat_time': 'V1Time', - 'last_transition_time': 'V1Time', + 'last_heartbeat_time': 'datetime', + 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_heartbeat_time(self): Last time we got an update on a given condition. :return: The last_heartbeat_time of this V1NodeCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_heartbeat_time @@ -73,7 +73,7 @@ def last_heartbeat_time(self, last_heartbeat_time): Last time we got an update on a given condition. :param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. - :type: V1Time + :type: datetime """ self._last_heartbeat_time = last_heartbeat_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transit from one status to another. :return: The last_transition_time of this V1NodeCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transit from one status to another. :param last_transition_time: The last_transition_time of this V1NodeCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_node_status.py b/kubernetes/client/models/v1_node_status.py index ea79f3078e..674fc7d92b 100644 --- a/kubernetes/client/models/v1_node_status.py +++ b/kubernetes/client/models/v1_node_status.py @@ -32,8 +32,8 @@ def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=N """ self.swagger_types = { 'addresses': 'list[V1NodeAddress]', - 'allocatable': 'dict(str, ResourceQuantity)', - 'capacity': 'dict(str, ResourceQuantity)', + 'allocatable': 'dict(str, str)', + 'capacity': 'dict(str, str)', 'conditions': 'list[V1NodeCondition]', 'daemon_endpoints': 'V1NodeDaemonEndpoints', 'images': 'list[V1ContainerImage]', @@ -97,7 +97,7 @@ def allocatable(self): Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. :return: The allocatable of this V1NodeStatus. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._allocatable @@ -108,7 +108,7 @@ def allocatable(self, allocatable): Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. :param allocatable: The allocatable of this V1NodeStatus. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._allocatable = allocatable @@ -120,7 +120,7 @@ def capacity(self): Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. :return: The capacity of this V1NodeStatus. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._capacity @@ -131,7 +131,7 @@ def capacity(self, capacity): Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. :param capacity: The capacity of this V1NodeStatus. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._capacity = capacity diff --git a/kubernetes/client/models/v1_object_meta.py b/kubernetes/client/models/v1_object_meta.py index 46eebc1233..1db0519345 100644 --- a/kubernetes/client/models/v1_object_meta.py +++ b/kubernetes/client/models/v1_object_meta.py @@ -33,9 +33,9 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, self.swagger_types = { 'annotations': 'dict(str, str)', 'cluster_name': 'str', - 'creation_timestamp': 'V1Time', + 'creation_timestamp': 'datetime', 'deletion_grace_period_seconds': 'int', - 'deletion_timestamp': 'V1Time', + 'deletion_timestamp': 'datetime', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', @@ -135,7 +135,7 @@ def creation_timestamp(self): CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The creation_timestamp of this V1ObjectMeta. - :rtype: V1Time + :rtype: datetime """ return self._creation_timestamp @@ -146,7 +146,7 @@ def creation_timestamp(self, creation_timestamp): CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param creation_timestamp: The creation_timestamp of this V1ObjectMeta. - :type: V1Time + :type: datetime """ self._creation_timestamp = creation_timestamp @@ -181,7 +181,7 @@ def deletion_timestamp(self): DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :return: The deletion_timestamp of this V1ObjectMeta. - :rtype: V1Time + :rtype: datetime """ return self._deletion_timestamp @@ -192,7 +192,7 @@ def deletion_timestamp(self, deletion_timestamp): DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata :param deletion_timestamp: The deletion_timestamp of this V1ObjectMeta. - :type: V1Time + :type: datetime """ self._deletion_timestamp = deletion_timestamp diff --git a/kubernetes/client/models/v1_persistent_volume_claim_status.py b/kubernetes/client/models/v1_persistent_volume_claim_status.py index ad283ea2d3..ca8bf22292 100644 --- a/kubernetes/client/models/v1_persistent_volume_claim_status.py +++ b/kubernetes/client/models/v1_persistent_volume_claim_status.py @@ -32,7 +32,7 @@ def __init__(self, access_modes=None, capacity=None, phase=None): """ self.swagger_types = { 'access_modes': 'list[str]', - 'capacity': 'dict(str, ResourceQuantity)', + 'capacity': 'dict(str, str)', 'phase': 'str' } @@ -76,7 +76,7 @@ def capacity(self): Represents the actual resources of the underlying volume. :return: The capacity of this V1PersistentVolumeClaimStatus. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._capacity @@ -87,7 +87,7 @@ def capacity(self, capacity): Represents the actual resources of the underlying volume. :param capacity: The capacity of this V1PersistentVolumeClaimStatus. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._capacity = capacity diff --git a/kubernetes/client/models/v1_persistent_volume_spec.py b/kubernetes/client/models/v1_persistent_volume_spec.py index 598553e1c4..c00bd85724 100644 --- a/kubernetes/client/models/v1_persistent_volume_spec.py +++ b/kubernetes/client/models/v1_persistent_volume_spec.py @@ -35,7 +35,7 @@ def __init__(self, access_modes=None, aws_elastic_block_store=None, azure_disk=N 'aws_elastic_block_store': 'V1AWSElasticBlockStoreVolumeSource', 'azure_disk': 'V1AzureDiskVolumeSource', 'azure_file': 'V1AzureFileVolumeSource', - 'capacity': 'dict(str, ResourceQuantity)', + 'capacity': 'dict(str, str)', 'cephfs': 'V1CephFSVolumeSource', 'cinder': 'V1CinderVolumeSource', 'claim_ref': 'V1ObjectReference', @@ -208,7 +208,7 @@ def capacity(self): A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity :return: The capacity of this V1PersistentVolumeSpec. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._capacity @@ -219,7 +219,7 @@ def capacity(self, capacity): A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity :param capacity: The capacity of this V1PersistentVolumeSpec. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._capacity = capacity diff --git a/kubernetes/client/models/v1_pod_condition.py b/kubernetes/client/models/v1_pod_condition.py index 92849545e7..03c44b3371 100644 --- a/kubernetes/client/models/v1_pod_condition.py +++ b/kubernetes/client/models/v1_pod_condition.py @@ -31,8 +31,8 @@ def __init__(self, last_probe_time=None, last_transition_time=None, message=None and the value is json key in definition. """ self.swagger_types = { - 'last_probe_time': 'V1Time', - 'last_transition_time': 'V1Time', + 'last_probe_time': 'datetime', + 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -62,7 +62,7 @@ def last_probe_time(self): Last time we probed the condition. :return: The last_probe_time of this V1PodCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_probe_time @@ -73,7 +73,7 @@ def last_probe_time(self, last_probe_time): Last time we probed the condition. :param last_probe_time: The last_probe_time of this V1PodCondition. - :type: V1Time + :type: datetime """ self._last_probe_time = last_probe_time @@ -85,7 +85,7 @@ def last_transition_time(self): Last time the condition transitioned from one status to another. :return: The last_transition_time of this V1PodCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -96,7 +96,7 @@ def last_transition_time(self, last_transition_time): Last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1PodCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_pod_status.py b/kubernetes/client/models/v1_pod_status.py index e57765c2b2..7ce85d049e 100644 --- a/kubernetes/client/models/v1_pod_status.py +++ b/kubernetes/client/models/v1_pod_status.py @@ -40,7 +40,7 @@ def __init__(self, conditions=None, container_statuses=None, host_ip=None, init_ 'pod_ip': 'str', 'qos_class': 'str', 'reason': 'str', - 'start_time': 'V1Time' + 'start_time': 'datetime' } self.attribute_map = { @@ -281,7 +281,7 @@ def start_time(self): RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. :return: The start_time of this V1PodStatus. - :rtype: V1Time + :rtype: datetime """ return self._start_time @@ -292,7 +292,7 @@ def start_time(self, start_time): RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. :param start_time: The start_time of this V1PodStatus. - :type: V1Time + :type: datetime """ self._start_time = start_time diff --git a/kubernetes/client/models/v1_replication_controller_condition.py b/kubernetes/client/models/v1_replication_controller_condition.py index 7b7074721a..0733f617f7 100644 --- a/kubernetes/client/models/v1_replication_controller_condition.py +++ b/kubernetes/client/models/v1_replication_controller_condition.py @@ -31,7 +31,7 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'V1Time', + 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -59,7 +59,7 @@ def last_transition_time(self): The last time the condition transitioned from one status to another. :return: The last_transition_time of this V1ReplicationControllerCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -70,7 +70,7 @@ def last_transition_time(self, last_transition_time): The last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1ReplicationControllerCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1_resource_field_selector.py b/kubernetes/client/models/v1_resource_field_selector.py index 130cd470a2..6facf8129e 100644 --- a/kubernetes/client/models/v1_resource_field_selector.py +++ b/kubernetes/client/models/v1_resource_field_selector.py @@ -32,7 +32,7 @@ def __init__(self, container_name=None, divisor=None, resource=None): """ self.swagger_types = { 'container_name': 'str', - 'divisor': 'ResourceQuantity', + 'divisor': 'str', 'resource': 'str' } @@ -76,7 +76,7 @@ def divisor(self): Specifies the output format of the exposed resources, defaults to \"1\" :return: The divisor of this V1ResourceFieldSelector. - :rtype: ResourceQuantity + :rtype: str """ return self._divisor @@ -87,7 +87,7 @@ def divisor(self, divisor): Specifies the output format of the exposed resources, defaults to \"1\" :param divisor: The divisor of this V1ResourceFieldSelector. - :type: ResourceQuantity + :type: str """ self._divisor = divisor diff --git a/kubernetes/client/models/v1_resource_quota_spec.py b/kubernetes/client/models/v1_resource_quota_spec.py index e63d1a39c7..936bee9045 100644 --- a/kubernetes/client/models/v1_resource_quota_spec.py +++ b/kubernetes/client/models/v1_resource_quota_spec.py @@ -31,7 +31,7 @@ def __init__(self, hard=None, scopes=None): and the value is json key in definition. """ self.swagger_types = { - 'hard': 'dict(str, ResourceQuantity)', + 'hard': 'dict(str, str)', 'scopes': 'list[str]' } @@ -50,7 +50,7 @@ def hard(self): Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaSpec. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._hard @@ -61,7 +61,7 @@ def hard(self, hard): Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaSpec. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._hard = hard diff --git a/kubernetes/client/models/v1_resource_quota_status.py b/kubernetes/client/models/v1_resource_quota_status.py index d3f1a0c872..bec05824a7 100644 --- a/kubernetes/client/models/v1_resource_quota_status.py +++ b/kubernetes/client/models/v1_resource_quota_status.py @@ -31,8 +31,8 @@ def __init__(self, hard=None, used=None): and the value is json key in definition. """ self.swagger_types = { - 'hard': 'dict(str, ResourceQuantity)', - 'used': 'dict(str, ResourceQuantity)' + 'hard': 'dict(str, str)', + 'used': 'dict(str, str)' } self.attribute_map = { @@ -50,7 +50,7 @@ def hard(self): Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :return: The hard of this V1ResourceQuotaStatus. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._hard @@ -61,7 +61,7 @@ def hard(self, hard): Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota :param hard: The hard of this V1ResourceQuotaStatus. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._hard = hard @@ -73,7 +73,7 @@ def used(self): Used is the current observed total usage of the resource in the namespace. :return: The used of this V1ResourceQuotaStatus. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._used @@ -84,7 +84,7 @@ def used(self, used): Used is the current observed total usage of the resource in the namespace. :param used: The used of this V1ResourceQuotaStatus. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._used = used diff --git a/kubernetes/client/models/v1_resource_requirements.py b/kubernetes/client/models/v1_resource_requirements.py index 3f69502a6b..dd582004c9 100644 --- a/kubernetes/client/models/v1_resource_requirements.py +++ b/kubernetes/client/models/v1_resource_requirements.py @@ -31,8 +31,8 @@ def __init__(self, limits=None, requests=None): and the value is json key in definition. """ self.swagger_types = { - 'limits': 'dict(str, ResourceQuantity)', - 'requests': 'dict(str, ResourceQuantity)' + 'limits': 'dict(str, str)', + 'requests': 'dict(str, str)' } self.attribute_map = { @@ -50,7 +50,7 @@ def limits(self): Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ :return: The limits of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._limits @@ -61,7 +61,7 @@ def limits(self, limits): Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ :param limits: The limits of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._limits = limits @@ -73,7 +73,7 @@ def requests(self): Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ :return: The requests of this V1ResourceRequirements. - :rtype: dict(str, ResourceQuantity) + :rtype: dict(str, str) """ return self._requests @@ -84,7 +84,7 @@ def requests(self, requests): Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ :param requests: The requests of this V1ResourceRequirements. - :type: dict(str, ResourceQuantity) + :type: dict(str, str) """ self._requests = requests diff --git a/kubernetes/client/models/v1_service_port.py b/kubernetes/client/models/v1_service_port.py index 08e635cea1..4aab521f03 100644 --- a/kubernetes/client/models/v1_service_port.py +++ b/kubernetes/client/models/v1_service_port.py @@ -35,7 +35,7 @@ def __init__(self, name=None, node_port=None, port=None, protocol=None, target_p 'node_port': 'int', 'port': 'int', 'protocol': 'str', - 'target_port': 'IntstrIntOrString' + 'target_port': 'str' } self.attribute_map = { @@ -153,7 +153,7 @@ def target_port(self): Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service :return: The target_port of this V1ServicePort. - :rtype: IntstrIntOrString + :rtype: str """ return self._target_port @@ -164,7 +164,7 @@ def target_port(self, target_port): Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service :param target_port: The target_port of this V1ServicePort. - :type: IntstrIntOrString + :type: str """ self._target_port = target_port diff --git a/kubernetes/client/models/v1_taint.py b/kubernetes/client/models/v1_taint.py index 8c6cfb51bb..a3d02f1b53 100644 --- a/kubernetes/client/models/v1_taint.py +++ b/kubernetes/client/models/v1_taint.py @@ -33,7 +33,7 @@ def __init__(self, effect=None, key=None, time_added=None, value=None): self.swagger_types = { 'effect': 'str', 'key': 'str', - 'time_added': 'V1Time', + 'time_added': 'datetime', 'value': 'str' } @@ -106,7 +106,7 @@ def time_added(self): TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. :return: The time_added of this V1Taint. - :rtype: V1Time + :rtype: datetime """ return self._time_added @@ -117,7 +117,7 @@ def time_added(self, time_added): TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. :param time_added: The time_added of this V1Taint. - :type: V1Time + :type: datetime """ self._time_added = time_added diff --git a/kubernetes/client/models/v1_tcp_socket_action.py b/kubernetes/client/models/v1_tcp_socket_action.py index db726e5a37..c46e945887 100644 --- a/kubernetes/client/models/v1_tcp_socket_action.py +++ b/kubernetes/client/models/v1_tcp_socket_action.py @@ -31,7 +31,7 @@ def __init__(self, port=None): and the value is json key in definition. """ self.swagger_types = { - 'port': 'IntstrIntOrString' + 'port': 'str' } self.attribute_map = { @@ -47,7 +47,7 @@ def port(self): Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :return: The port of this V1TCPSocketAction. - :rtype: IntstrIntOrString + :rtype: str """ return self._port @@ -58,7 +58,7 @@ def port(self, port): Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. :param port: The port of this V1TCPSocketAction. - :type: IntstrIntOrString + :type: str """ if port is None: raise ValueError("Invalid value for `port`, must not be `None`") diff --git a/kubernetes/client/models/v1_time.py b/kubernetes/client/models/v1_time.py deleted file mode 100644 index 699feb96b9..0000000000 --- a/kubernetes/client/models/v1_time.py +++ /dev/null @@ -1,90 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1Time(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - def __init__(self): - """ - V1Time - a model defined in Swagger - - :param dict swaggerTypes: The key is attribute name - and the value is attribute type. - :param dict attributeMap: The key is attribute name - and the value is json key in definition. - """ - self.swagger_types = { - - } - - self.attribute_map = { - - } - - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py index f9922f8a9a..fc5d296b1b 100644 --- a/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py +++ b/kubernetes/client/models/v1beta1_certificate_signing_request_condition.py @@ -31,7 +31,7 @@ def __init__(self, last_update_time=None, message=None, reason=None, type=None): and the value is json key in definition. """ self.swagger_types = { - 'last_update_time': 'V1Time', + 'last_update_time': 'datetime', 'message': 'str', 'reason': 'str', 'type': 'str' @@ -56,7 +56,7 @@ def last_update_time(self): timestamp for the last update to this condition :return: The last_update_time of this V1beta1CertificateSigningRequestCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_update_time @@ -67,7 +67,7 @@ def last_update_time(self, last_update_time): timestamp for the last update to this condition :param last_update_time: The last_update_time of this V1beta1CertificateSigningRequestCondition. - :type: V1Time + :type: datetime """ self._last_update_time = last_update_time diff --git a/kubernetes/client/models/v1beta1_ingress_backend.py b/kubernetes/client/models/v1beta1_ingress_backend.py index d83bbb7824..240b840720 100644 --- a/kubernetes/client/models/v1beta1_ingress_backend.py +++ b/kubernetes/client/models/v1beta1_ingress_backend.py @@ -32,7 +32,7 @@ def __init__(self, service_name=None, service_port=None): """ self.swagger_types = { 'service_name': 'str', - 'service_port': 'IntstrIntOrString' + 'service_port': 'str' } self.attribute_map = { @@ -75,7 +75,7 @@ def service_port(self): Specifies the port of the referenced service. :return: The service_port of this V1beta1IngressBackend. - :rtype: IntstrIntOrString + :rtype: str """ return self._service_port @@ -86,7 +86,7 @@ def service_port(self, service_port): Specifies the port of the referenced service. :param service_port: The service_port of this V1beta1IngressBackend. - :type: IntstrIntOrString + :type: str """ if service_port is None: raise ValueError("Invalid value for `service_port`, must not be `None`") diff --git a/kubernetes/client/models/v1beta1_network_policy_port.py b/kubernetes/client/models/v1beta1_network_policy_port.py index c56577bc2f..4d11c2de28 100644 --- a/kubernetes/client/models/v1beta1_network_policy_port.py +++ b/kubernetes/client/models/v1beta1_network_policy_port.py @@ -31,7 +31,7 @@ def __init__(self, port=None, protocol=None): and the value is json key in definition. """ self.swagger_types = { - 'port': 'IntstrIntOrString', + 'port': 'str', 'protocol': 'str' } @@ -50,7 +50,7 @@ def port(self): If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. :return: The port of this V1beta1NetworkPolicyPort. - :rtype: IntstrIntOrString + :rtype: str """ return self._port @@ -61,7 +61,7 @@ def port(self, port): If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. :param port: The port of this V1beta1NetworkPolicyPort. - :type: IntstrIntOrString + :type: str """ self._port = port diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py index a342267943..05e8273c57 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_spec.py @@ -31,7 +31,7 @@ def __init__(self, min_available=None, selector=None): and the value is json key in definition. """ self.swagger_types = { - 'min_available': 'IntstrIntOrString', + 'min_available': 'str', 'selector': 'V1LabelSelector' } @@ -50,7 +50,7 @@ def min_available(self): An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". :return: The min_available of this V1beta1PodDisruptionBudgetSpec. - :rtype: IntstrIntOrString + :rtype: str """ return self._min_available @@ -61,7 +61,7 @@ def min_available(self, min_available): An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". :param min_available: The min_available of this V1beta1PodDisruptionBudgetSpec. - :type: IntstrIntOrString + :type: str """ self._min_available = min_available diff --git a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py index 74bd1cfb86..2cf7400e7c 100644 --- a/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py +++ b/kubernetes/client/models/v1beta1_pod_disruption_budget_status.py @@ -33,7 +33,7 @@ def __init__(self, current_healthy=None, desired_healthy=None, disrupted_pods=No self.swagger_types = { 'current_healthy': 'int', 'desired_healthy': 'int', - 'disrupted_pods': 'dict(str, V1Time)', + 'disrupted_pods': 'dict(str, datetime)', 'disruptions_allowed': 'int', 'expected_pods': 'int', 'observed_generation': 'int' @@ -112,7 +112,7 @@ def disrupted_pods(self): DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :return: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - :rtype: dict(str, V1Time) + :rtype: dict(str, datetime) """ return self._disrupted_pods @@ -123,7 +123,7 @@ def disrupted_pods(self, disrupted_pods): DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. :param disrupted_pods: The disrupted_pods of this V1beta1PodDisruptionBudgetStatus. - :type: dict(str, V1Time) + :type: dict(str, datetime) """ if disrupted_pods is None: raise ValueError("Invalid value for `disrupted_pods`, must not be `None`") diff --git a/kubernetes/client/models/v1beta1_replica_set_condition.py b/kubernetes/client/models/v1beta1_replica_set_condition.py index 3dbd4d0686..5f39ae0b74 100644 --- a/kubernetes/client/models/v1beta1_replica_set_condition.py +++ b/kubernetes/client/models/v1beta1_replica_set_condition.py @@ -31,7 +31,7 @@ def __init__(self, last_transition_time=None, message=None, reason=None, status= and the value is json key in definition. """ self.swagger_types = { - 'last_transition_time': 'V1Time', + 'last_transition_time': 'datetime', 'message': 'str', 'reason': 'str', 'status': 'str', @@ -59,7 +59,7 @@ def last_transition_time(self): The last time the condition transitioned from one status to another. :return: The last_transition_time of this V1beta1ReplicaSetCondition. - :rtype: V1Time + :rtype: datetime """ return self._last_transition_time @@ -70,7 +70,7 @@ def last_transition_time(self, last_transition_time): The last time the condition transitioned from one status to another. :param last_transition_time: The last_transition_time of this V1beta1ReplicaSetCondition. - :type: V1Time + :type: datetime """ self._last_transition_time = last_transition_time diff --git a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py index 14156b4f19..94d027d279 100644 --- a/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py +++ b/kubernetes/client/models/v1beta1_rolling_update_daemon_set.py @@ -31,7 +31,7 @@ def __init__(self, max_unavailable=None): and the value is json key in definition. """ self.swagger_types = { - 'max_unavailable': 'IntstrIntOrString' + 'max_unavailable': 'str' } self.attribute_map = { @@ -47,7 +47,7 @@ def max_unavailable(self): The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. :return: The max_unavailable of this V1beta1RollingUpdateDaemonSet. - :rtype: IntstrIntOrString + :rtype: str """ return self._max_unavailable @@ -58,7 +58,7 @@ def max_unavailable(self, max_unavailable): The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. :param max_unavailable: The max_unavailable of this V1beta1RollingUpdateDaemonSet. - :type: IntstrIntOrString + :type: str """ self._max_unavailable = max_unavailable diff --git a/kubernetes/client/models/v2alpha1_cron_job_spec.py b/kubernetes/client/models/v2alpha1_cron_job_spec.py index f2745c79ea..5c121f20a8 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_spec.py +++ b/kubernetes/client/models/v2alpha1_cron_job_spec.py @@ -62,7 +62,7 @@ def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_ def concurrency_policy(self): """ Gets the concurrency_policy of this V2alpha1CronJobSpec. - ConcurrencyPolicy specifies how to treat concurrent executions of a Job. + ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. :return: The concurrency_policy of this V2alpha1CronJobSpec. :rtype: str @@ -73,7 +73,7 @@ def concurrency_policy(self): def concurrency_policy(self, concurrency_policy): """ Sets the concurrency_policy of this V2alpha1CronJobSpec. - ConcurrencyPolicy specifies how to treat concurrent executions of a Job. + ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. :param concurrency_policy: The concurrency_policy of this V2alpha1CronJobSpec. :type: str diff --git a/kubernetes/client/models/v2alpha1_cron_job_status.py b/kubernetes/client/models/v2alpha1_cron_job_status.py index 05995f8e85..4075f0c513 100644 --- a/kubernetes/client/models/v2alpha1_cron_job_status.py +++ b/kubernetes/client/models/v2alpha1_cron_job_status.py @@ -32,7 +32,7 @@ def __init__(self, active=None, last_schedule_time=None): """ self.swagger_types = { 'active': 'list[V1ObjectReference]', - 'last_schedule_time': 'V1Time' + 'last_schedule_time': 'datetime' } self.attribute_map = { @@ -73,7 +73,7 @@ def last_schedule_time(self): LastScheduleTime keeps information of when was the last time the job was successfully scheduled. :return: The last_schedule_time of this V2alpha1CronJobStatus. - :rtype: V1Time + :rtype: datetime """ return self._last_schedule_time @@ -84,7 +84,7 @@ def last_schedule_time(self, last_schedule_time): LastScheduleTime keeps information of when was the last time the job was successfully scheduled. :param last_schedule_time: The last_schedule_time of this V2alpha1CronJobStatus. - :type: V1Time + :type: datetime """ self._last_schedule_time = last_schedule_time diff --git a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py index ff3f2780e5..8cfe06c3fa 100644 --- a/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py +++ b/kubernetes/client/models/v2alpha1_horizontal_pod_autoscaler_status.py @@ -34,7 +34,7 @@ def __init__(self, current_metrics=None, current_replicas=None, desired_replicas 'current_metrics': 'list[V2alpha1MetricStatus]', 'current_replicas': 'int', 'desired_replicas': 'int', - 'last_scale_time': 'V1Time', + 'last_scale_time': 'datetime', 'observed_generation': 'int' } @@ -134,7 +134,7 @@ def last_scale_time(self): lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. :return: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - :rtype: V1Time + :rtype: datetime """ return self._last_scale_time @@ -145,7 +145,7 @@ def last_scale_time(self, last_scale_time): lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. :param last_scale_time: The last_scale_time of this V2alpha1HorizontalPodAutoscalerStatus. - :type: V1Time + :type: datetime """ self._last_scale_time = last_scale_time diff --git a/kubernetes/client/models/v2alpha1_object_metric_source.py b/kubernetes/client/models/v2alpha1_object_metric_source.py index d6ccb8bbef..762fa8c992 100644 --- a/kubernetes/client/models/v2alpha1_object_metric_source.py +++ b/kubernetes/client/models/v2alpha1_object_metric_source.py @@ -33,7 +33,7 @@ def __init__(self, metric_name=None, target=None, target_value=None): self.swagger_types = { 'metric_name': 'str', 'target': 'V2alpha1CrossVersionObjectReference', - 'target_value': 'ResourceQuantity' + 'target_value': 'str' } self.attribute_map = { @@ -103,7 +103,7 @@ def target_value(self): targetValue is the target value of the metric (as a quantity). :return: The target_value of this V2alpha1ObjectMetricSource. - :rtype: ResourceQuantity + :rtype: str """ return self._target_value @@ -114,7 +114,7 @@ def target_value(self, target_value): targetValue is the target value of the metric (as a quantity). :param target_value: The target_value of this V2alpha1ObjectMetricSource. - :type: ResourceQuantity + :type: str """ if target_value is None: raise ValueError("Invalid value for `target_value`, must not be `None`") diff --git a/kubernetes/client/models/v2alpha1_object_metric_status.py b/kubernetes/client/models/v2alpha1_object_metric_status.py index e01bde9eba..23dda5340b 100644 --- a/kubernetes/client/models/v2alpha1_object_metric_status.py +++ b/kubernetes/client/models/v2alpha1_object_metric_status.py @@ -31,7 +31,7 @@ def __init__(self, current_value=None, metric_name=None, target=None): and the value is json key in definition. """ self.swagger_types = { - 'current_value': 'ResourceQuantity', + 'current_value': 'str', 'metric_name': 'str', 'target': 'V2alpha1CrossVersionObjectReference' } @@ -53,7 +53,7 @@ def current_value(self): currentValue is the current value of the metric (as a quantity). :return: The current_value of this V2alpha1ObjectMetricStatus. - :rtype: ResourceQuantity + :rtype: str """ return self._current_value @@ -64,7 +64,7 @@ def current_value(self, current_value): currentValue is the current value of the metric (as a quantity). :param current_value: The current_value of this V2alpha1ObjectMetricStatus. - :type: ResourceQuantity + :type: str """ if current_value is None: raise ValueError("Invalid value for `current_value`, must not be `None`") diff --git a/kubernetes/client/models/v2alpha1_pods_metric_source.py b/kubernetes/client/models/v2alpha1_pods_metric_source.py index 9e22ecb5aa..8b3fb1bd43 100644 --- a/kubernetes/client/models/v2alpha1_pods_metric_source.py +++ b/kubernetes/client/models/v2alpha1_pods_metric_source.py @@ -32,7 +32,7 @@ def __init__(self, metric_name=None, target_average_value=None): """ self.swagger_types = { 'metric_name': 'str', - 'target_average_value': 'ResourceQuantity' + 'target_average_value': 'str' } self.attribute_map = { @@ -75,7 +75,7 @@ def target_average_value(self): targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) :return: The target_average_value of this V2alpha1PodsMetricSource. - :rtype: ResourceQuantity + :rtype: str """ return self._target_average_value @@ -86,7 +86,7 @@ def target_average_value(self, target_average_value): targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) :param target_average_value: The target_average_value of this V2alpha1PodsMetricSource. - :type: ResourceQuantity + :type: str """ if target_average_value is None: raise ValueError("Invalid value for `target_average_value`, must not be `None`") diff --git a/kubernetes/client/models/v2alpha1_pods_metric_status.py b/kubernetes/client/models/v2alpha1_pods_metric_status.py index 93b765a7c0..1f72db4095 100644 --- a/kubernetes/client/models/v2alpha1_pods_metric_status.py +++ b/kubernetes/client/models/v2alpha1_pods_metric_status.py @@ -31,7 +31,7 @@ def __init__(self, current_average_value=None, metric_name=None): and the value is json key in definition. """ self.swagger_types = { - 'current_average_value': 'ResourceQuantity', + 'current_average_value': 'str', 'metric_name': 'str' } @@ -50,7 +50,7 @@ def current_average_value(self): currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) :return: The current_average_value of this V2alpha1PodsMetricStatus. - :rtype: ResourceQuantity + :rtype: str """ return self._current_average_value @@ -61,7 +61,7 @@ def current_average_value(self, current_average_value): currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) :param current_average_value: The current_average_value of this V2alpha1PodsMetricStatus. - :type: ResourceQuantity + :type: str """ if current_average_value is None: raise ValueError("Invalid value for `current_average_value`, must not be `None`") diff --git a/kubernetes/client/models/v2alpha1_resource_metric_source.py b/kubernetes/client/models/v2alpha1_resource_metric_source.py index 8e3244b670..32120c3ef3 100644 --- a/kubernetes/client/models/v2alpha1_resource_metric_source.py +++ b/kubernetes/client/models/v2alpha1_resource_metric_source.py @@ -33,7 +33,7 @@ def __init__(self, name=None, target_average_utilization=None, target_average_va self.swagger_types = { 'name': 'str', 'target_average_utilization': 'int', - 'target_average_value': 'ResourceQuantity' + 'target_average_value': 'str' } self.attribute_map = { @@ -101,7 +101,7 @@ def target_average_value(self): targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. :return: The target_average_value of this V2alpha1ResourceMetricSource. - :rtype: ResourceQuantity + :rtype: str """ return self._target_average_value @@ -112,7 +112,7 @@ def target_average_value(self, target_average_value): targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. :param target_average_value: The target_average_value of this V2alpha1ResourceMetricSource. - :type: ResourceQuantity + :type: str """ self._target_average_value = target_average_value diff --git a/kubernetes/client/models/v2alpha1_resource_metric_status.py b/kubernetes/client/models/v2alpha1_resource_metric_status.py index 9c50a192af..caa95e8201 100644 --- a/kubernetes/client/models/v2alpha1_resource_metric_status.py +++ b/kubernetes/client/models/v2alpha1_resource_metric_status.py @@ -32,7 +32,7 @@ def __init__(self, current_average_utilization=None, current_average_value=None, """ self.swagger_types = { 'current_average_utilization': 'int', - 'current_average_value': 'ResourceQuantity', + 'current_average_value': 'str', 'name': 'str' } @@ -76,7 +76,7 @@ def current_average_value(self): currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. :return: The current_average_value of this V2alpha1ResourceMetricStatus. - :rtype: ResourceQuantity + :rtype: str """ return self._current_average_value @@ -87,7 +87,7 @@ def current_average_value(self, current_average_value): currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. :param current_average_value: The current_average_value of this V2alpha1ResourceMetricStatus. - :type: ResourceQuantity + :type: str """ if current_average_value is None: raise ValueError("Invalid value for `current_average_value`, must not be `None`") diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index 808c3bbb3f..df4e436a6c 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -783,7 +783,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -799,7 +799,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -841,7 +841,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -857,7 +857,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -899,7 +899,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -915,7 +915,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -957,7 +957,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -973,7 +973,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1015,7 +1015,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AppsV1beta1Api() name = 'name_example' # str | name of the StatefulSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1031,7 +1031,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/AppsV1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md index e4be785a18..245625ef6b 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/AppsV1beta1DeploymentCondition.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transitioned from one status to another. | [optional] -**last_update_time** | [**V1Time**](V1Time.md) | The last time this condition was updated. | [optional] +**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | **datetime** | The last time this condition was updated. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md index 195d9a8113..c037908319 100644 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**max_unavailable** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**max_surge** | **str** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] +**max_unavailable** | **str** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index 596219add2..b6f59d2ba4 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -400,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api() name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -416,7 +416,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -458,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV1Api() name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -474,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/AutoscalingV2alpha1Api.md b/kubernetes/docs/AutoscalingV2alpha1Api.md index 84c9fca357..ed52b218a6 100644 --- a/kubernetes/docs/AutoscalingV2alpha1Api.md +++ b/kubernetes/docs/AutoscalingV2alpha1Api.md @@ -400,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2alpha1Api() name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -416,7 +416,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the HorizontalPodAutoscaler | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -458,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.AutoscalingV2alpha1Api() name = 'name_example' # str | name of the HorizontalPodAutoscaler namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -474,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 394fb67c1c..148e6f534d 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -400,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api() name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -416,7 +416,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Job | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -458,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV1Api() name = 'name_example' # str | name of the Job namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -474,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index 213ea71ec6..9a2f5e7166 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -721,7 +721,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -737,7 +737,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -779,7 +779,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the CronJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -795,7 +795,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CronJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -837,7 +837,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -853,7 +853,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -895,7 +895,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.BatchV2alpha1Api() name = 'name_example' # str | name of the ScheduledJob namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -911,7 +911,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ScheduledJob | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md index 11fef9a3e6..bd2ec65d4b 100644 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -327,7 +327,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CertificatesV1beta1Api() name = 'name_example' # str | name of the CertificateSigningRequest -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -342,7 +342,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the CertificateSigningRequest | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 33394d31be..3dcc3e89ad 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -7314,7 +7314,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Namespace -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7329,7 +7329,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7370,7 +7370,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Namespace -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7385,7 +7385,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Namespace | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7427,7 +7427,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7443,7 +7443,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ConfigMap | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7485,7 +7485,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7501,7 +7501,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Endpoints | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7543,7 +7543,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7559,7 +7559,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Event | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7601,7 +7601,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7617,7 +7617,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the LimitRange | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7659,7 +7659,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7675,7 +7675,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7717,7 +7717,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7733,7 +7733,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolumeClaim | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7775,7 +7775,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7791,7 +7791,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7833,7 +7833,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7849,7 +7849,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Pod | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7891,7 +7891,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7907,7 +7907,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodTemplate | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -7949,7 +7949,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -7965,7 +7965,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8007,7 +8007,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8023,7 +8023,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ReplicationController | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8065,7 +8065,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8081,7 +8081,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8123,7 +8123,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8139,7 +8139,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ResourceQuota | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8181,7 +8181,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8197,7 +8197,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Scale | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8239,7 +8239,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8255,7 +8255,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Secret | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8297,7 +8297,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8313,7 +8313,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8355,7 +8355,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8371,7 +8371,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ServiceAccount | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8413,7 +8413,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8429,7 +8429,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Service | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8470,7 +8470,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8485,7 +8485,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8526,7 +8526,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the Node -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8541,7 +8541,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Node | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8582,7 +8582,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8597,7 +8597,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -8638,7 +8638,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.CoreV1Api() name = 'name_example' # str | name of the PersistentVolume -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -8653,7 +8653,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PersistentVolume | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index 877db1b967..cd855644c0 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -2243,7 +2243,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2259,7 +2259,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the DaemonSet | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2301,7 +2301,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the DaemonSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2317,7 +2317,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2359,7 +2359,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2375,7 +2375,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2417,7 +2417,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Deployment namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2433,7 +2433,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2475,7 +2475,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2491,7 +2491,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2533,7 +2533,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2549,7 +2549,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2591,7 +2591,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Ingress namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2607,7 +2607,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2649,7 +2649,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the NetworkPolicy namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2665,7 +2665,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2707,7 +2707,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2723,7 +2723,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2765,7 +2765,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the ReplicaSet namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2781,7 +2781,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2823,7 +2823,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2839,7 +2839,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2881,7 +2881,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2897,7 +2897,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2938,7 +2938,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the PodSecurityPolicy -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -2953,7 +2953,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodSecurityPolicy | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -2994,7 +2994,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.ExtensionsV1beta1Api() name = 'name_example' # str | name of the ThirdPartyResource -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -3009,7 +3009,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ThirdPartyResource | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md index 030435b326..8a1e61f582 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transitioned from one status to another. | [optional] -**last_update_time** | [**V1Time**](V1Time.md) | The last time this condition was updated. | [optional] +**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | **datetime** | The last time this condition was updated. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md index ea25d8a78a..0c8ac9e218 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_surge** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] -**max_unavailable** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding 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** | **str** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods. | [optional] +**max_unavailable** | **str** | 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/IntstrIntOrString.md b/kubernetes/docs/IntstrIntOrString.md deleted file mode 100644 index c91598ac5f..0000000000 --- a/kubernetes/docs/IntstrIntOrString.md +++ /dev/null @@ -1,9 +0,0 @@ -# IntstrIntOrString - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index c0dd863f0c..a1566a0b70 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -400,7 +400,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api() name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -416,7 +416,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -458,7 +458,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.PolicyV1beta1Api() name = 'name_example' # str | name of the PodDisruptionBudget namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -474,7 +474,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the PodDisruptionBudget | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md index 52c3547c8d..159b9f8556 100644 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md @@ -1208,7 +1208,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1223,7 +1223,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1264,7 +1264,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1279,7 +1279,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1321,7 +1321,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1337,7 +1337,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1379,7 +1379,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1alpha1Api() name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1395,7 +1395,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md index 9285ccdc21..20aebe1f3d 100644 --- a/kubernetes/docs/RbacAuthorizationV1beta1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1beta1Api.md @@ -1208,7 +1208,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() name = 'name_example' # str | name of the ClusterRole -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1223,7 +1223,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRole | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1264,7 +1264,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() name = 'name_example' # str | name of the ClusterRoleBinding -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1279,7 +1279,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the ClusterRoleBinding | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1321,7 +1321,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() name = 'name_example' # str | name of the Role namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1337,7 +1337,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the Role | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type @@ -1379,7 +1379,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.RbacAuthorizationV1beta1Api() name = 'name_example' # str | name of the RoleBinding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -1395,7 +1395,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the RoleBinding | **namespace** | **str**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/ResourceQuantity.md b/kubernetes/docs/ResourceQuantity.md deleted file mode 100644 index 8304f32fdf..0000000000 --- a/kubernetes/docs/ResourceQuantity.md +++ /dev/null @@ -1,9 +0,0 @@ -# ResourceQuantity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md index d29bbd0aa9..585c41e38c 100644 --- a/kubernetes/docs/SettingsV1alpha1Api.md +++ b/kubernetes/docs/SettingsV1alpha1Api.md @@ -397,7 +397,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' api_instance = kubernetes.client.SettingsV1alpha1Api() name = 'name_example' # str | name of the PodPreset namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -413,7 +413,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** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 19172d7374..c77bd840ea 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -325,7 +325,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1Api() name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -340,7 +340,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index 427f9f460c..59faa948fe 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -325,7 +325,7 @@ kubernetes.client.configuration.api_key['authorization'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = kubernetes.client.StorageV1beta1Api() name = 'name_example' # str | name of the StorageClass -body = kubernetes.client.V1Patch() # V1Patch | +body = NULL # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: @@ -340,7 +340,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| name of the StorageClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **object**| | **pretty** | **str**| If 'true', then the output is pretty printed. | [optional] ### Return type diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index 55cfecfcad..de9fea7014 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**started_at** | [**V1Time**](V1Time.md) | Time at which the container was last (re-)started | [optional] +**started_at** | **datetime** | Time at which the container was last (re-)started | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index ec0a8d3750..13143c5acf 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **container_id** | **str** | Container's ID in the format 'docker://<container_id>' | [optional] **exit_code** | **int** | Exit status from the last termination of the container | -**finished_at** | [**V1Time**](V1Time.md) | Time at which the container last terminated | [optional] +**finished_at** | **datetime** | Time at which the container last terminated | [optional] **message** | **str** | Message regarding the last termination of the container | [optional] **reason** | **str** | (brief) reason from the last termination of the container | [optional] **signal** | **int** | Signal from the last termination of the container | [optional] -**started_at** | [**V1Time**](V1Time.md) | Time at which previous execution of the container started | [optional] +**started_at** | **datetime** | Time at which previous execution of the container started | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md index 6a00bfb9f9..74b7460bdd 100644 --- a/kubernetes/docs/V1Event.md +++ b/kubernetes/docs/V1Event.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources | [optional] **count** | **int** | The number of times this event has occurred. | [optional] -**first_timestamp** | [**V1Time**](V1Time.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [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. | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the kubernetes.client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds | [optional] -**last_timestamp** | [**V1Time**](V1Time.md) | The time at which the most recent occurrence of this event was recorded. | [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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | **reason** | **str** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index 3d3d3a00a5..a3f586a843 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** | [**IntstrIntOrString**](IntstrIntOrString.md) | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | **str** | 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/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index 6cbf2cb787..0f9e427252 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **current_cpu_utilization_percentage** | **int** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] **current_replicas** | **int** | current number of replicas of pods managed by this autoscaler. | **desired_replicas** | **int** | desired number of replicas of pods managed by this autoscaler. | -**last_scale_time** | [**V1Time**](V1Time.md) | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] +**last_scale_time** | **datetime** | last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. | [optional] **observed_generation** | **int** | most recent generation observed by this autoscaler. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 3b9443fc2c..8b97754cc9 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | [**V1Time**](V1Time.md) | Last time the condition was checked. | [optional] -**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transit from one status to another. | [optional] +**last_probe_time** | **datetime** | Last time the condition was checked. | [optional] +**last_transition_time** | **datetime** | Last time the condition transit from one status to another. | [optional] **message** | **str** | Human readable message indicating details about last transition. | [optional] **reason** | **str** | (brief) reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 1af4ba65e1..0b1b948f6f 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **int** | Active is the number of actively running pods. | [optional] -**completion_time** | [**V1Time**](V1Time.md) | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**completion_time** | **datetime** | CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] **conditions** | [**list[V1JobCondition]**](V1JobCondition.md) | Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs | [optional] **failed** | **int** | Failed is the number of pods which reached Phase Failed. | [optional] -**start_time** | [**V1Time**](V1Time.md) | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] +**start_time** | **datetime** | StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. | [optional] **succeeded** | **int** | Succeeded is the number of pods which reached Phase Succeeded. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1LimitRangeItem.md b/kubernetes/docs/V1LimitRangeItem.md index 2270b0e5e9..0e65c56226 100644 --- a/kubernetes/docs/V1LimitRangeItem.md +++ b/kubernetes/docs/V1LimitRangeItem.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] -**default_request** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] -**max** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Max usage constraints on this kind by resource name. | [optional] -**max_limit_request_ratio** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. | [optional] -**min** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Min usage constraints on this kind by resource name. | [optional] +**default** | **dict(str, str)** | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] +**default_request** | **dict(str, str)** | DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. | [optional] +**max** | **dict(str, str)** | Max usage constraints on this kind by resource name. | [optional] +**max_limit_request_ratio** | **dict(str, str)** | MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. | [optional] +**min** | **dict(str, str)** | Min usage constraints on this kind by resource name. | [optional] **type** | **str** | Type of resource that this limit applies to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index bcf8858587..e61118d049 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_heartbeat_time** | [**V1Time**](V1Time.md) | Last time we got an update on a given condition. | [optional] -**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transit from one status to another. | [optional] +**last_heartbeat_time** | **datetime** | Last time we got an update on a given condition. | [optional] +**last_transition_time** | **datetime** | Last time the condition transit from one status to another. | [optional] **message** | **str** | Human readable message indicating details about last transition. | [optional] **reason** | **str** | (brief) reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index 10f3e568a5..7e8f27c76a 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **addresses** | [**list[V1NodeAddress]**](V1NodeAddress.md) | List of addresses reachable to the node. Queried from cloud provider, if available. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-addresses | [optional] -**allocatable** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] -**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. | [optional] +**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: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details. | [optional] **conditions** | [**list[V1NodeCondition]**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: http://releases.k8s.io/HEAD/docs/admin/node.md#node-condition | [optional] **daemon_endpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | Endpoints of daemons running on the Node. | [optional] **images** | [**list[V1ContainerImage]**](V1ContainerImage.md) | List of container images on this node | [optional] diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index 1d441ea7b1..d7b890d441 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] **cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. | [optional] -**creation_timestamp** | [**V1Time**](V1Time.md) | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**creation_timestamp** | **datetime** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. | [optional] -**deletion_timestamp** | [**V1Time**](V1Time.md) | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a kubernetes.client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] +**deletion_timestamp** | **datetime** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a kubernetes.client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] **generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the kubernetes.client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the kubernetes.client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#idempotency | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 93fa2e3cfc..d70ca00cb0 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_modes** | **list[str]** | AccessModes contains the actual access modes the volume backing the PVC has. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#access-modes-1 | [optional] -**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Represents the actual resources of the underlying volume. | [optional] +**capacity** | **dict(str, str)** | Represents the actual resources of the underlying volume. | [optional] **phase** | **str** | Phase represents the current phase of PersistentVolumeClaim. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index fd859f9165..1550bebd27 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -7,7 +7,7 @@ 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: http://kubernetes.io/docs/user-guide/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] -**capacity** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity | [optional] +**capacity** | **dict(str, str)** | A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity | [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: http://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: http://kubernetes.io/docs/user-guide/persistent-volumes#binding | [optional] diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 8400661ae7..defdc69345 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | [**V1Time**](V1Time.md) | Last time we probed the condition. | [optional] -**last_transition_time** | [**V1Time**](V1Time.md) | Last time the condition transitioned from one status to another. | [optional] +**last_probe_time** | **datetime** | Last time we probed the condition. | [optional] +**last_transition_time** | **datetime** | Last time the condition transitioned from one status to another. | [optional] **message** | **str** | Human-readable message indicating details about last transition. | [optional] **reason** | **str** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **str** | Status is the status of the condition. Can be True, False, Unknown. More info: http://kubernetes.io/docs/user-guide/pod-states#pod-conditions | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 0768fefa48..9a4b90d2db 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **pod_ip** | **str** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. | [optional] **qos_class** | **str** | The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://github.com/kubernetes/kubernetes/blob/master/docs/design/resource-qos.md | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'OutOfDisk' | [optional] -**start_time** | [**V1Time**](V1Time.md) | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] +**start_time** | **datetime** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index 668ddf80e2..e09f617ba2 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**V1Time**](V1Time.md) | The last time the condition transitioned from one status to another. | [optional] +**last_transition_time** | **datetime** | The last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md index e3d119112e..c20d42afca 100644 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ b/kubernetes/docs/V1ResourceFieldSelector.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **container_name** | **str** | Container name: required for volumes, optional for env vars | [optional] -**divisor** | [**ResourceQuantity**](ResourceQuantity.md) | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] +**divisor** | **str** | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] **resource** | **str** | Required: resource to select | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md index 5e0575bba4..05a5a2f09f 100644 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ b/kubernetes/docs/V1ResourceQuotaSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hard** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] +**hard** | **dict(str, str)** | Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] **scopes** | **list[str]** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceQuotaStatus.md b/kubernetes/docs/V1ResourceQuotaStatus.md index 6461b118e7..40e54b5e79 100644 --- a/kubernetes/docs/V1ResourceQuotaStatus.md +++ b/kubernetes/docs/V1ResourceQuotaStatus.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hard** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] -**used** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Used is the current observed total usage of the resource in the namespace. | [optional] +**hard** | **dict(str, str)** | Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota | [optional] +**used** | **dict(str, str)** | Used is the current observed total usage of the resource in the namespace. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index abbc258ecf..2580c7aae0 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**limits** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] -**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] +**limits** | **dict(str, str)** | Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] +**requests** | **dict(str, str)** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/ | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index e29f6c547a..c2a9a32c35 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: http://kubernetes.io/docs/user-guide/services#type--nodeport | [optional] **port** | **int** | The port that will be exposed by this service. | **protocol** | **str** | The IP protocol for this port. Supports \"TCP\" and \"UDP\". Default is TCP. | [optional] -**target_port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service | [optional] +**target_port** | **str** | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md index 3067067f93..0b1374a24d 100644 --- a/kubernetes/docs/V1TCPSocketAction.md +++ b/kubernetes/docs/V1TCPSocketAction.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | **str** | 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/V1Taint.md b/kubernetes/docs/V1Taint.md index e60bb88ff3..3af648e942 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **effect** | **str** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | **key** | **str** | Required. The taint key to be applied to a node. | -**time_added** | [**V1Time**](V1Time.md) | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] +**time_added** | **datetime** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] **value** | **str** | Required. The taint value corresponding to the taint key. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1Time.md b/kubernetes/docs/V1Time.md deleted file mode 100644 index 63a5fb595d..0000000000 --- a/kubernetes/docs/V1Time.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1Time - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md index 6d43435421..6affb598ac 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_update_time** | [**V1Time**](V1Time.md) | timestamp for the last update to this condition | [optional] +**last_update_time** | **datetime** | timestamp for the last update to this condition | [optional] **message** | **str** | human readable message with details about the request state | [optional] **reason** | **str** | brief reason for the request state | [optional] **type** | **str** | request approval state, currently Approved or Denied. | diff --git a/kubernetes/docs/V1beta1IngressBackend.md b/kubernetes/docs/V1beta1IngressBackend.md index d2e58b89df..3c38189b10 100644 --- a/kubernetes/docs/V1beta1IngressBackend.md +++ b/kubernetes/docs/V1beta1IngressBackend.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **service_name** | **str** | Specifies the name of the referenced service. | -**service_port** | [**IntstrIntOrString**](IntstrIntOrString.md) | Specifies the port of the referenced service. | +**service_port** | **str** | 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/V1beta1NetworkPolicyPort.md b/kubernetes/docs/V1beta1NetworkPolicyPort.md index 6613f47fff..9548982a94 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPort.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPort.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | [**IntstrIntOrString**](IntstrIntOrString.md) | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] +**port** | **str** | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] **protocol** | **str** | Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index 07d8d488ac..ed5e2da18e 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**min_available** | [**IntstrIntOrString**](IntstrIntOrString.md) | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**min_available** | **str** | 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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md index 5cbf8f4032..0ae37556d5 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_healthy** | **int** | current number of healthy pods | **desired_healthy** | **int** | minimum desired number of healthy pods | -**disrupted_pods** | [**dict(str, V1Time)**](V1Time.md) | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | +**disrupted_pods** | **dict(str, datetime)** | DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. | **disruptions_allowed** | **int** | Number of pod disruptions that are currently allowed. | **expected_pods** | **int** | total number of pods counted by this disruption budget | **observed_generation** | **int** | Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSetCondition.md b/kubernetes/docs/V1beta1ReplicaSetCondition.md index 17d11943fc..e32d55f682 100644 --- a/kubernetes/docs/V1beta1ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta1ReplicaSetCondition.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**V1Time**](V1Time.md) | The last time the condition transitioned from one status to another. | [optional] +**last_transition_time** | **datetime** | The last time the condition transitioned from one status to another. | [optional] **message** | **str** | A human readable message indicating details about the transition. | [optional] **reason** | **str** | The reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md index da1f8725a1..6b37036284 100644 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max_unavailable** | [**IntstrIntOrString**](IntstrIntOrString.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**max_unavailable** | **str** | 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/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index 6f3a6d275f..0f9dacb7db 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**concurrency_policy** | **str** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. | [optional] +**concurrency_policy** | **str** | ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow. | [optional] **failed_jobs_history_limit** | **int** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] **job_template** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | JobTemplate is the object that describes the job that will be created when executing a CronJob. | **schedule** | **str** | Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | diff --git a/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md index ef95a6fc6f..9c5191eb5c 100644 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ b/kubernetes/docs/V2alpha1CronJobStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Active holds pointers to currently running jobs. | [optional] -**last_schedule_time** | [**V1Time**](V1Time.md) | LastScheduleTime keeps information of when was the last time the job was successfully scheduled. | [optional] +**last_schedule_time** | **datetime** | LastScheduleTime keeps information of when was the last time the job was successfully scheduled. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md index e004e8a22d..00c5ddca6a 100644 --- a/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2alpha1HorizontalPodAutoscalerStatus.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **current_metrics** | [**list[V2alpha1MetricStatus]**](V2alpha1MetricStatus.md) | currentMetrics is the last read state of the metrics used by this autoscaler. | **current_replicas** | **int** | currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler. | **desired_replicas** | **int** | desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler. | -**last_scale_time** | [**V1Time**](V1Time.md) | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] +**last_scale_time** | **datetime** | lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. | [optional] **observed_generation** | **int** | observedGeneration is the most recent generation observed by this autoscaler. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1ObjectMetricSource.md b/kubernetes/docs/V2alpha1ObjectMetricSource.md index 3a1fc987a2..cb885beedb 100644 --- a/kubernetes/docs/V2alpha1ObjectMetricSource.md +++ b/kubernetes/docs/V2alpha1ObjectMetricSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metric_name** | **str** | metricName is the name of the metric in question. | **target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | -**target_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetValue is the target value of the metric (as a quantity). | +**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/V2alpha1ObjectMetricStatus.md b/kubernetes/docs/V2alpha1ObjectMetricStatus.md index c43e4edaae..38c9a3fea3 100644 --- a/kubernetes/docs/V2alpha1ObjectMetricStatus.md +++ b/kubernetes/docs/V2alpha1ObjectMetricStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentValue is the current value of the metric (as a quantity). | +**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. | **target** | [**V2alpha1CrossVersionObjectReference**](V2alpha1CrossVersionObjectReference.md) | target is the described Kubernetes object. | diff --git a/kubernetes/docs/V2alpha1PodsMetricSource.md b/kubernetes/docs/V2alpha1PodsMetricSource.md index ba9deadb6e..c4c78e8d2b 100644 --- a/kubernetes/docs/V2alpha1PodsMetricSource.md +++ b/kubernetes/docs/V2alpha1PodsMetricSource.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metric_name** | **str** | metricName is the name of the metric in question | -**target_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | +**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/V2alpha1PodsMetricStatus.md b/kubernetes/docs/V2alpha1PodsMetricStatus.md index 87f26992c3..5e7f73d596 100644 --- a/kubernetes/docs/V2alpha1PodsMetricStatus.md +++ b/kubernetes/docs/V2alpha1PodsMetricStatus.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | +**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 | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1ResourceMetricSource.md b/kubernetes/docs/V2alpha1ResourceMetricSource.md index 0b7a02bc71..43e84fdfa4 100644 --- a/kubernetes/docs/V2alpha1ResourceMetricSource.md +++ b/kubernetes/docs/V2alpha1ResourceMetricSource.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | name is the name of the resource in question. | **target_average_utilization** | **int** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**target_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [optional] +**target_average_value** | **str** | targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/docs/V2alpha1ResourceMetricStatus.md b/kubernetes/docs/V2alpha1ResourceMetricStatus.md index 7d207905e0..0e9f0a2655 100644 --- a/kubernetes/docs/V2alpha1ResourceMetricStatus.md +++ b/kubernetes/docs/V2alpha1ResourceMetricStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **current_average_utilization** | **int** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**current_average_value** | [**ResourceQuantity**](ResourceQuantity.md) | currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | +**current_average_value** | **str** | currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | **name** | **str** | name is the name of the resource in question. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/kubernetes/test/test_intstr_int_or_string.py b/kubernetes/test/test_intstr_int_or_string.py deleted file mode 100644 index 1d3216ba8d..0000000000 --- a/kubernetes/test/test_intstr_int_or_string.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.intstr_int_or_string import IntstrIntOrString - - -class TestIntstrIntOrString(unittest.TestCase): - """ IntstrIntOrString unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIntstrIntOrString(self): - """ - Test IntstrIntOrString - """ - model = kubernetes.client.models.intstr_int_or_string.IntstrIntOrString() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_resource_quantity.py b/kubernetes/test/test_resource_quantity.py deleted file mode 100644 index 7753f61d06..0000000000 --- a/kubernetes/test/test_resource_quantity.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.resource_quantity import ResourceQuantity - - -class TestResourceQuantity(unittest.TestCase): - """ ResourceQuantity unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourceQuantity(self): - """ - Test ResourceQuantity - """ - model = kubernetes.client.models.resource_quantity.ResourceQuantity() - - -if __name__ == '__main__': - unittest.main() diff --git a/kubernetes/test/test_v1_time.py b/kubernetes/test/test_v1_time.py deleted file mode 100644 index f41a7a4f1a..0000000000 --- a/kubernetes/test/test_v1_time.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding: utf-8 - -""" - Kubernetes - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1.6.1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubernetes.client -from kubernetes.client.rest import ApiException -from kubernetes.client.models.v1_time import V1Time - - -class TestV1Time(unittest.TestCase): - """ V1Time unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Time(self): - """ - Test V1Time - """ - model = kubernetes.client.models.v1_time.V1Time() - - -if __name__ == '__main__': - unittest.main() diff --git a/scripts/swagger.json b/scripts/swagger.json index 9841bbaa8a..3b8ce3faea 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -1108,7 +1108,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -1512,7 +1513,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -1916,7 +1918,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -2320,7 +2323,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -2724,7 +2728,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -2860,7 +2865,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -3264,7 +3270,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -4330,7 +4337,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -4734,7 +4742,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -5138,7 +5147,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -5274,7 +5284,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -5410,7 +5421,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -5814,7 +5826,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -5950,7 +5963,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -6354,7 +6368,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -6758,7 +6773,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -7065,7 +7081,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -7587,7 +7604,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -7799,7 +7817,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -7985,7 +8004,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -8373,7 +8393,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -8871,7 +8892,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -9336,7 +9358,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -9464,7 +9487,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -14081,7 +14105,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -14283,7 +14308,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -14419,7 +14445,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -14823,7 +14850,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -14959,7 +14987,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -16521,7 +16550,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -16657,7 +16687,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -17333,7 +17364,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -17469,7 +17501,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -18178,7 +18211,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -18314,7 +18348,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -18990,7 +19025,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -19126,7 +19162,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -19530,7 +19567,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -19666,7 +19704,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -20529,7 +20568,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -21438,7 +21478,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -21574,7 +21615,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -21978,7 +22020,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -22180,7 +22223,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -22316,7 +22360,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -22720,7 +22765,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -22856,7 +22902,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -23260,7 +23307,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -23664,7 +23712,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -23800,7 +23849,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -23936,7 +23986,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -24072,7 +24123,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -24545,7 +24597,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -25010,7 +25063,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -26482,7 +26536,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -26618,7 +26673,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -27303,7 +27359,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -27675,7 +27732,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -28055,7 +28113,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -28443,7 +28502,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -29534,7 +29594,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -29906,7 +29967,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -30286,7 +30348,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -30674,7 +30737,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -31822,7 +31886,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -32523,7 +32588,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -33044,7 +33110,8 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } } ], @@ -33322,11 +33389,13 @@ "properties": { "maxSurge": { "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" }, "maxUnavailable": { "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -33367,10 +33436,6 @@ } } }, - "intstr.IntOrString": { - "type": "string", - "format": "int-or-string" - }, "v1.Lifecycle": { "description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.", "properties": { @@ -33683,11 +33748,13 @@ "properties": { "lastTransitionTime": { "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "lastUpdateTime": { "description": "The last time this condition was updated.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "A human readable message indicating details about the transition.", @@ -33829,7 +33896,8 @@ }, "lastScheduleTime": { "description": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" } } }, @@ -33902,7 +33970,7 @@ }, "currentAverageValue": { "description": "currentAverageValue is the the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.", - "$ref": "#/definitions/resource.Quantity" + "type": "string" }, "name": { "description": "name is the name of the resource in question.", @@ -34053,14 +34121,14 @@ "description": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "requests": { "description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } } } @@ -34290,7 +34358,7 @@ }, "targetValue": { "description": "targetValue is the target value of the metric (as a quantity).", - "$ref": "#/definitions/resource.Quantity" + "type": "string" } } }, @@ -34331,7 +34399,8 @@ }, "lastScaleTime": { "description": "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "observedGeneration": { "description": "most recent generation observed by this autoscaler.", @@ -34510,7 +34579,7 @@ }, "targetAverageValue": { "description": "targetAverageValue is the the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.", - "$ref": "#/definitions/resource.Quantity" + "type": "string" } } }, @@ -35539,9 +35608,6 @@ } } }, - "v1.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body." - }, "v1beta1.IngressList": { "description": "IngressList is a collection of Ingress.", "required": [ @@ -35799,10 +35865,6 @@ } } }, - "v1.Time": { - "type": "string", - "format": "date-time" - }, "v1.TokenReviewSpec": { "description": "TokenReviewSpec is a description of the token authentication request.", "properties": { @@ -36091,7 +36153,8 @@ "properties": { "port": { "description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -36671,7 +36734,8 @@ }, "completionTime": { "description": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "conditions": { "description": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs", @@ -36687,7 +36751,8 @@ }, "startTime": { "description": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "succeeded": { "description": "Succeeded is the number of pods which reached Phase Succeeded.", @@ -36718,7 +36783,8 @@ "properties": { "lastTransitionTime": { "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "A human readable message indicating details about the transition.", @@ -36831,7 +36897,7 @@ "description": "A description of the persistent volume's resources and capacity. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "cephfs": { @@ -37090,11 +37156,13 @@ "properties": { "lastHeartbeatTime": { "description": "Last time we got an update on a given condition.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "lastTransitionTime": { "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "Human readable message indicating details about last transition.", @@ -37387,14 +37455,14 @@ "description": "Hard is the set of enforced hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "used": { "description": "Used is the current observed total usage of the resource in the namespace.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } } } @@ -37628,11 +37696,13 @@ "properties": { "lastProbeTime": { "description": "Last time we probed the condition.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "lastTransitionTime": { "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "Human-readable message indicating details about last transition.", @@ -37727,7 +37797,8 @@ "properties": { "lastUpdateTime": { "description": "timestamp for the last update to this condition", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "human readable message with details about the request state", @@ -37818,7 +37889,7 @@ "description": "Hard is the set of desired hard limits for each named resource. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "scopes": { @@ -38212,7 +38283,8 @@ }, "creationTimestamp": { "description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "deletionGracePeriodSeconds": { "description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.", @@ -38221,7 +38293,8 @@ }, "deletionTimestamp": { "description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field. Once set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "finalizers": { "description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", @@ -38376,7 +38449,8 @@ }, "firstTimestamp": { "description": "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "involvedObject": { "description": "The object that this event is about.", @@ -38388,7 +38462,8 @@ }, "lastTimestamp": { "description": "The time at which the most recent occurrence of this event was recorded.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "A human-readable description of the status of this operation.", @@ -38455,7 +38530,7 @@ }, "divisor": { "description": "Specifies the output format of the exposed resources, defaults to \"1\"", - "$ref": "#/definitions/resource.Quantity" + "type": "string" }, "resource": { "description": "Required: resource to select", @@ -38822,7 +38897,8 @@ }, "targetPort": { "description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: http://kubernetes.io/docs/user-guide/services#defining-a-service", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -39271,7 +39347,8 @@ }, "timeAdded": { "description": "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "value": { "description": "Required. The taint value corresponding to the taint key.", @@ -39592,7 +39669,7 @@ ], "properties": { "concurrencyPolicy": { - "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.", + "description": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow.", "type": "string" }, "failedJobsHistoryLimit": { @@ -39638,7 +39715,7 @@ "description": "Represents the actual resources of the underlying volume.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "phase": { @@ -39790,35 +39867,35 @@ "description": "Default resource requirement limit value by resource name if resource limit is omitted.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "defaultRequest": { "description": "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "max": { "description": "Max usage constraints on this kind by resource name.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "maxLimitRequestRatio": { "description": "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "min": { "description": "Min usage constraints on this kind by resource name.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "type": { @@ -39885,7 +39962,8 @@ "description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" } }, "disruptionsAllowed": { @@ -39980,9 +40058,6 @@ } } }, - "resource.Quantity": { - "type": "string" - }, "v1.ReplicationController": { "description": "ReplicationController represents the configuration of a replication controller.", "properties": { @@ -40070,11 +40145,13 @@ "properties": { "maxSurge": { "description": "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is atmost 130% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" }, "maxUnavailable": { "description": "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -40141,7 +40218,8 @@ }, "port": { "description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" }, "scheme": { "description": "Scheme to use for connecting to the host. Defaults to HTTP.", @@ -40240,7 +40318,8 @@ "properties": { "lastTransitionTime": { "description": "The last time the condition transitioned from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "A human readable message indicating details about the transition.", @@ -40332,7 +40411,7 @@ "properties": { "currentValue": { "description": "currentValue is the current value of the metric (as a quantity).", - "$ref": "#/definitions/resource.Quantity" + "type": "string" }, "metricName": { "description": "metricName is the name of the metric in question.", @@ -40579,7 +40658,8 @@ "properties": { "maxUnavailable": { "description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -40852,14 +40932,14 @@ "description": "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "capacity": { "description": "Capacity represents the total resources of a node. More info: http://kubernetes.io/docs/user-guide/persistent-volumes#capacity for more details.", "type": "object", "additionalProperties": { - "$ref": "#/definitions/resource.Quantity" + "type": "string" } }, "conditions": { @@ -40967,7 +41047,8 @@ "properties": { "startedAt": { "description": "Time at which the container was last (re-)started", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" } } }, @@ -41086,7 +41167,8 @@ }, "startTime": { "description": "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" } } }, @@ -41136,7 +41218,8 @@ "properties": { "minAvailable": { "description": "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%\".", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" }, "selector": { "description": "Label query over pods whose evictions are managed by the disruption budget.", @@ -41245,7 +41328,8 @@ }, "servicePort": { "description": "Specifies the port of the referenced service.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" } } }, @@ -41437,7 +41521,8 @@ }, "lastScaleTime": { "description": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "observedGeneration": { "description": "observedGeneration is the most recent generation observed by this autoscaler.", @@ -41463,7 +41548,8 @@ }, "finishedAt": { "description": "Time at which the container last terminated", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "Message regarding the last termination of the container", @@ -41480,7 +41566,8 @@ }, "startedAt": { "description": "Time at which previous execution of the container started", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" } } }, @@ -41677,11 +41764,13 @@ "properties": { "lastTransitionTime": { "description": "Last time the condition transitioned from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "lastUpdateTime": { "description": "The last time this condition was updated.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "A human readable message indicating details about the transition.", @@ -42059,7 +42148,7 @@ }, "targetAverageValue": { "description": "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/resource.Quantity" + "type": "string" } } }, @@ -42109,11 +42198,13 @@ "properties": { "lastProbeTime": { "description": "Last time the condition was checked.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "lastTransitionTime": { "description": "Last time the condition transit from one status to another.", - "$ref": "#/definitions/v1.Time" + "type": "string", + "format": "date-time" }, "message": { "description": "Human readable message indicating details about last transition.", @@ -42313,7 +42404,7 @@ "properties": { "currentAverageValue": { "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)", - "$ref": "#/definitions/resource.Quantity" + "type": "string" }, "metricName": { "description": "metricName is the name of the metric in question", @@ -42338,7 +42429,8 @@ "properties": { "port": { "description": "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", - "$ref": "#/definitions/intstr.IntOrString" + "type": "string", + "format": "int-or-string" }, "protocol": { "description": "Optional. The protocol (TCP or UDP) which traffic must match. If not specified, this field defaults to TCP.", From cbc4a6d46739e5ad42c243d37dd144697c70429b Mon Sep 17 00:00:00 2001 From: mbohlool Date: Tue, 18 Apr 2017 10:58:59 -0700 Subject: [PATCH 3/3] Fix datatime parsing bug in api_client --- kubernetes/client/api_client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kubernetes/client/api_client.py b/kubernetes/client/api_client.py index 7dca16a161..6970ee36d5 100644 --- a/kubernetes/client/api_client.py +++ b/kubernetes/client/api_client.py @@ -585,6 +585,8 @@ def __deserialize_date(self, string): :param string: str. :return: date. """ + if not string: + return None try: from dateutil.parser import parse return parse(string).date() @@ -606,6 +608,8 @@ def __deserialize_datatime(self, string): :param string: str. :return: datetime. """ + if not string: + return None try: from dateutil.parser import parse return parse(string)