From 4c71e299ac453dd86a0e09f93a3df15d1789efa5 Mon Sep 17 00:00:00 2001 From: mbohlool Date: Mon, 21 Nov 2016 13:21:06 -0800 Subject: [PATCH] Update generated client with latest changes in k8s --- docs/V1beta1DeploymentCondition.md | 8 +++--- docs/V1beta1DeploymentSpec.md | 2 +- docs/V1beta1DeploymentStatus.md | 2 +- docs/V1beta1Eviction.md | 4 +-- docs/V1beta1PodDisruptionBudget.md | 6 ++--- docs/V1beta1PodDisruptionBudgetList.md | 2 +- docs/V1beta1PodDisruptionBudgetSpec.md | 4 +-- .../models/v1beta1_deployment_condition.py | 8 ------ k8sclient/models/v1beta1_deployment_spec.py | 2 -- k8sclient/models/v1beta1_deployment_status.py | 2 -- k8sclient/models/v1beta1_eviction.py | 4 --- .../models/v1beta1_pod_disruption_budget.py | 6 ----- .../v1beta1_pod_disruption_budget_list.py | 2 -- .../v1beta1_pod_disruption_budget_spec.py | 4 --- scripts/swagger.json | 26 ++----------------- 15 files changed, 16 insertions(+), 66 deletions(-) diff --git a/docs/V1beta1DeploymentCondition.md b/docs/V1beta1DeploymentCondition.md index 57f577f97..fb21f85d8 100644 --- a/docs/V1beta1DeploymentCondition.md +++ b/docs/V1beta1DeploymentCondition.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transitioned from one status to another. | -**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | The last time this condition was updated. | -**message** | **str** | A human readable message indicating details about the transition. | -**reason** | **str** | The reason for the condition's last transition. | +**last_transition_time** | [**UnversionedTime**](UnversionedTime.md) | Last time the condition transitioned from one status to another. | [optional] +**last_update_time** | [**UnversionedTime**](UnversionedTime.md) | The last time this condition was updated. | [optional] +**message** | **str** | A human readable message indicating details about the transition. | [optional] +**reason** | **str** | The reason for the condition's last transition. | [optional] **status** | **str** | Status of the condition, one of True, False, Unknown. | **type** | **str** | Type of deployment condition. | diff --git a/docs/V1beta1DeploymentSpec.md b/docs/V1beta1DeploymentSpec.md index f79d184ef..0e4d4ebe8 100644 --- a/docs/V1beta1DeploymentSpec.md +++ b/docs/V1beta1DeploymentSpec.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **min_ready_seconds** | **int** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **paused** | **bool** | Indicates that the deployment is paused and will not be processed by the deployment controller. | [optional] -**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | +**progress_deadline_seconds** | **int** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revision_history_limit** | **int** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. | [optional] **rollback_to** | [**V1beta1RollbackConfig**](V1beta1RollbackConfig.md) | The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] diff --git a/docs/V1beta1DeploymentStatus.md b/docs/V1beta1DeploymentStatus.md index 1f3e52dda..439b210cb 100644 --- a/docs/V1beta1DeploymentStatus.md +++ b/docs/V1beta1DeploymentStatus.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **available_replicas** | **int** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] -**conditions** | [**list[V1beta1DeploymentCondition]**](V1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | +**conditions** | [**list[V1beta1DeploymentCondition]**](V1beta1DeploymentCondition.md) | Represents the latest available observations of a deployment's current state. | [optional] **observed_generation** | **int** | The generation observed by the deployment controller. | [optional] **replicas** | **int** | Total number of non-terminated pods targeted by this deployment (their labels match the selector). | [optional] **unavailable_replicas** | **int** | Total number of unavailable pods targeted by this deployment. | [optional] diff --git a/docs/V1beta1Eviction.md b/docs/V1beta1Eviction.md index 619e48016..934615dbc 100644 --- a/docs/V1beta1Eviction.md +++ b/docs/V1beta1Eviction.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | +**delete_options** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1PodDisruptionBudget.md b/docs/V1beta1PodDisruptionBudget.md index 078c31206..d945d952e 100644 --- a/docs/V1beta1PodDisruptionBudget.md +++ b/docs/V1beta1PodDisruptionBudget.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | -**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | -**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | [optional] +**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1PodDisruptionBudgetList.md b/docs/V1beta1PodDisruptionBudgetList.md index 8bcdbe9c0..202eecfba 100644 --- a/docs/V1beta1PodDisruptionBudgetList.md +++ b/docs/V1beta1PodDisruptionBudgetList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**list[V1beta1PodDisruptionBudget]**](V1beta1PodDisruptionBudget.md) | | -**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | +**metadata** | [**UnversionedListMeta**](UnversionedListMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1PodDisruptionBudgetSpec.md b/docs/V1beta1PodDisruptionBudgetSpec.md index ca91f37fd..70c26f485 100644 --- a/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/docs/V1beta1PodDisruptionBudgetSpec.md @@ -3,8 +3,8 @@ ## 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%\". | -**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | +**min_available** | [**IntstrIntOrString**](IntstrIntOrString.md) | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] +**selector** | [**UnversionedLabelSelector**](UnversionedLabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/k8sclient/models/v1beta1_deployment_condition.py b/k8sclient/models/v1beta1_deployment_condition.py index 7e10554d7..7ed8392de 100644 --- a/k8sclient/models/v1beta1_deployment_condition.py +++ b/k8sclient/models/v1beta1_deployment_condition.py @@ -87,8 +87,6 @@ class V1beta1DeploymentCondition(object): :param last_transition_time: The last_transition_time of this V1beta1DeploymentCondition. :type: UnversionedTime """ - if last_transition_time is None: - raise ValueError("Invalid value for `last_transition_time`, must not be `None`") self._last_transition_time = last_transition_time @@ -112,8 +110,6 @@ class V1beta1DeploymentCondition(object): :param last_update_time: The last_update_time of this V1beta1DeploymentCondition. :type: UnversionedTime """ - if last_update_time is None: - raise ValueError("Invalid value for `last_update_time`, must not be `None`") self._last_update_time = last_update_time @@ -137,8 +133,6 @@ class V1beta1DeploymentCondition(object): :param message: The message of this V1beta1DeploymentCondition. :type: str """ - if message is None: - raise ValueError("Invalid value for `message`, must not be `None`") self._message = message @@ -162,8 +156,6 @@ class V1beta1DeploymentCondition(object): :param reason: The reason of this V1beta1DeploymentCondition. :type: str """ - if reason is None: - raise ValueError("Invalid value for `reason`, must not be `None`") self._reason = reason diff --git a/k8sclient/models/v1beta1_deployment_spec.py b/k8sclient/models/v1beta1_deployment_spec.py index 028a52c04..4dc4a09d7 100644 --- a/k8sclient/models/v1beta1_deployment_spec.py +++ b/k8sclient/models/v1beta1_deployment_spec.py @@ -142,8 +142,6 @@ class V1beta1DeploymentSpec(object): :param progress_deadline_seconds: The progress_deadline_seconds of this V1beta1DeploymentSpec. :type: int """ - if progress_deadline_seconds is None: - raise ValueError("Invalid value for `progress_deadline_seconds`, must not be `None`") self._progress_deadline_seconds = progress_deadline_seconds diff --git a/k8sclient/models/v1beta1_deployment_status.py b/k8sclient/models/v1beta1_deployment_status.py index 9662a93a7..0372ee433 100644 --- a/k8sclient/models/v1beta1_deployment_status.py +++ b/k8sclient/models/v1beta1_deployment_status.py @@ -110,8 +110,6 @@ class V1beta1DeploymentStatus(object): :param conditions: The conditions of this V1beta1DeploymentStatus. :type: list[V1beta1DeploymentCondition] """ - if conditions is None: - raise ValueError("Invalid value for `conditions`, must not be `None`") self._conditions = conditions diff --git a/k8sclient/models/v1beta1_eviction.py b/k8sclient/models/v1beta1_eviction.py index 335658f67..6330db0fb 100644 --- a/k8sclient/models/v1beta1_eviction.py +++ b/k8sclient/models/v1beta1_eviction.py @@ -75,8 +75,6 @@ class V1beta1Eviction(object): :param delete_options: The delete_options of this V1beta1Eviction. :type: V1DeleteOptions """ - if delete_options is None: - raise ValueError("Invalid value for `delete_options`, must not be `None`") self._delete_options = delete_options @@ -100,8 +98,6 @@ class V1beta1Eviction(object): :param metadata: The metadata of this V1beta1Eviction. :type: V1ObjectMeta """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata diff --git a/k8sclient/models/v1beta1_pod_disruption_budget.py b/k8sclient/models/v1beta1_pod_disruption_budget.py index 31929fc38..c33ae19a0 100644 --- a/k8sclient/models/v1beta1_pod_disruption_budget.py +++ b/k8sclient/models/v1beta1_pod_disruption_budget.py @@ -78,8 +78,6 @@ class V1beta1PodDisruptionBudget(object): :param metadata: The metadata of this V1beta1PodDisruptionBudget. :type: V1ObjectMeta """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata @@ -103,8 +101,6 @@ class V1beta1PodDisruptionBudget(object): :param spec: The spec of this V1beta1PodDisruptionBudget. :type: V1beta1PodDisruptionBudgetSpec """ - if spec is None: - raise ValueError("Invalid value for `spec`, must not be `None`") self._spec = spec @@ -128,8 +124,6 @@ class V1beta1PodDisruptionBudget(object): :param status: The status of this V1beta1PodDisruptionBudget. :type: V1beta1PodDisruptionBudgetStatus """ - if status is None: - raise ValueError("Invalid value for `status`, must not be `None`") self._status = status diff --git a/k8sclient/models/v1beta1_pod_disruption_budget_list.py b/k8sclient/models/v1beta1_pod_disruption_budget_list.py index 21393fec0..2fb6b314f 100644 --- a/k8sclient/models/v1beta1_pod_disruption_budget_list.py +++ b/k8sclient/models/v1beta1_pod_disruption_budget_list.py @@ -100,8 +100,6 @@ class V1beta1PodDisruptionBudgetList(object): :param metadata: The metadata of this V1beta1PodDisruptionBudgetList. :type: UnversionedListMeta """ - if metadata is None: - raise ValueError("Invalid value for `metadata`, must not be `None`") self._metadata = metadata diff --git a/k8sclient/models/v1beta1_pod_disruption_budget_spec.py b/k8sclient/models/v1beta1_pod_disruption_budget_spec.py index c9190e9ea..f21a66d88 100644 --- a/k8sclient/models/v1beta1_pod_disruption_budget_spec.py +++ b/k8sclient/models/v1beta1_pod_disruption_budget_spec.py @@ -75,8 +75,6 @@ class V1beta1PodDisruptionBudgetSpec(object): :param min_available: The min_available of this V1beta1PodDisruptionBudgetSpec. :type: IntstrIntOrString """ - if min_available is None: - raise ValueError("Invalid value for `min_available`, must not be `None`") self._min_available = min_available @@ -100,8 +98,6 @@ class V1beta1PodDisruptionBudgetSpec(object): :param selector: The selector of this V1beta1PodDisruptionBudgetSpec. :type: UnversionedLabelSelector """ - if selector is None: - raise ValueError("Invalid value for `selector`, must not be `None`") self._selector = selector diff --git a/scripts/swagger.json b/scripts/swagger.json index c40b87178..721693bce 100644 --- a/scripts/swagger.json +++ b/scripts/swagger.json @@ -35745,11 +35745,7 @@ "description": "DeploymentCondition describes the state of a deployment at a certain point.", "required": [ "type", - "status", - "lastUpdateTime", - "lastTransitionTime", - "reason", - "message" + "status" ], "properties": { "lastTransitionTime": { @@ -35824,8 +35820,7 @@ "v1beta1.DeploymentSpec": { "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", "required": [ - "template", - "progressDeadlineSeconds" + "template" ], "properties": { "minReadySeconds": { @@ -35872,9 +35867,6 @@ }, "v1beta1.DeploymentStatus": { "description": "DeploymentStatus is the most recently observed status of the Deployment.", - "required": [ - "conditions" - ], "properties": { "availableReplicas": { "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", @@ -35925,10 +35917,6 @@ }, "v1beta1.Eviction": { "description": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.", - "required": [ - "metadata", - "deleteOptions" - ], "properties": { "deleteOptions": { "description": "DeleteOptions may be provided", @@ -36411,11 +36399,6 @@ }, "v1beta1.PodDisruptionBudget": { "description": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", - "required": [ - "metadata", - "spec", - "status" - ], "properties": { "metadata": { "$ref": "#/definitions/v1.ObjectMeta" @@ -36433,7 +36416,6 @@ "v1beta1.PodDisruptionBudgetList": { "description": "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.", "required": [ - "metadata", "items" ], "properties": { @@ -36450,10 +36432,6 @@ }, "v1beta1.PodDisruptionBudgetSpec": { "description": "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.", - "required": [ - "minAvailable", - "selector" - ], "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%\".",