From e8d7f0f72f63e9f00c1c4aab69e051a15d5f0e15 Mon Sep 17 00:00:00 2001 From: Madhuri Kumari Date: Mon, 22 Jun 2015 11:43:11 +0900 Subject: [PATCH] Unknown type 'any' in pythonk8sclient removed. Currently the generated code has type 'any' in many models which leads to error 'ImportError'. So this patch removes all 'any' type to relevant types of the attributes. Change-Id: I333b1edd2c84875c48db1e5ff2655360ffcc9718 Closes-bug: #1467345 --- .../common/pythonk8sclient/client/models/V1beta3_Binding.py | 4 ++-- .../pythonk8sclient/client/models/V1beta3_Endpoints.py | 4 ++-- .../common/pythonk8sclient/client/models/V1beta3_Event.py | 4 ++-- .../pythonk8sclient/client/models/V1beta3_LimitRange.py | 4 ++-- .../pythonk8sclient/client/models/V1beta3_LimitRangeItem.py | 6 +++--- .../pythonk8sclient/client/models/V1beta3_Namespace.py | 4 ++-- magnum/common/pythonk8sclient/client/models/V1beta3_Node.py | 4 ++-- .../pythonk8sclient/client/models/V1beta3_NodeStatus.py | 2 +- .../client/models/V1beta3_PersistentVolume.py | 4 ++-- .../client/models/V1beta3_PersistentVolumeClaim.py | 4 ++-- .../client/models/V1beta3_PersistentVolumeClaimStatus.py | 2 +- .../client/models/V1beta3_PersistentVolumeSpec.py | 2 +- magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py | 4 ++-- .../common/pythonk8sclient/client/models/V1beta3_PodSpec.py | 2 +- .../client/models/V1beta3_PodTemplateSpec.py | 4 ++-- .../client/models/V1beta3_ReplicationController.py | 4 ++-- .../pythonk8sclient/client/models/V1beta3_ResourceQuota.py | 4 ++-- .../client/models/V1beta3_ResourceQuotaSpec.py | 2 +- .../client/models/V1beta3_ResourceQuotaStatus.py | 4 ++-- .../client/models/V1beta3_ResourceRequirements.py | 4 ++-- .../common/pythonk8sclient/client/models/V1beta3_Secret.py | 6 +++--- .../common/pythonk8sclient/client/models/V1beta3_Service.py | 4 ++-- 22 files changed, 41 insertions(+), 41 deletions(-) diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Binding.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Binding.py index ed7c0d6..fcb6f38 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Binding.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Binding.py @@ -28,7 +28,7 @@ class V1beta3_Binding(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Binding(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Endpoints.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Endpoints.py index 2a9eab4..9377917 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Endpoints.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Endpoints.py @@ -28,7 +28,7 @@ class V1beta3_Endpoints(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Endpoints(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Event.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Event.py index 3cec8cd..481b2e6 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Event.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Event.py @@ -28,7 +28,7 @@ class V1beta3_Event(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -55,7 +55,7 @@ class V1beta3_Event(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'lastTimestamp': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRange.py b/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRange.py index 42d5e12..a6f31b7 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRange.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRange.py @@ -28,7 +28,7 @@ class V1beta3_LimitRange(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_LimitRange(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeItem.py b/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeItem.py index 646e837..a049615 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeItem.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeItem.py @@ -28,13 +28,13 @@ class V1beta3_LimitRangeItem(object): """ self.swaggerTypes = { - 'default': 'any', + 'default': 'dict', - 'max': 'any', + 'max': 'dict', - 'min': 'any', + 'min': 'dict', 'type': 'str' diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Namespace.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Namespace.py index 64e56e9..7d4f45d 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Namespace.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Namespace.py @@ -28,7 +28,7 @@ class V1beta3_Namespace(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Namespace(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Node.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Node.py index 58faf26..c74faf5 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Node.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Node.py @@ -28,7 +28,7 @@ class V1beta3_Node(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Node(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_NodeStatus.py b/magnum/common/pythonk8sclient/client/models/V1beta3_NodeStatus.py index 5dd0089..610f2d5 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_NodeStatus.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_NodeStatus.py @@ -31,7 +31,7 @@ class V1beta3_NodeStatus(object): 'addresses': 'list[V1beta3_NodeAddress]', - 'capacity': 'any', + 'capacity': 'dict', 'conditions': 'list[V1beta3_NodeCondition]', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolume.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolume.py index acdc44d..d949ba5 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolume.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolume.py @@ -28,7 +28,7 @@ class V1beta3_PersistentVolume(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_PersistentVolume(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaim.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaim.py index 73b2f2a..caf4d37 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaim.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaim.py @@ -28,7 +28,7 @@ class V1beta3_PersistentVolumeClaim(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_PersistentVolumeClaim(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimStatus.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimStatus.py index 8e20f77..8aa31f0 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimStatus.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimStatus.py @@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeClaimStatus(object): 'accessModes': 'list[V1beta3_AccessModeType]', - 'capacity': 'any', + 'capacity': 'dict', 'phase': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeSpec.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeSpec.py index 19efc5a..1695720 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeSpec.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeSpec.py @@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeSpec(object): 'accessModes': 'list[V1beta3_AccessModeType]', - 'capacity': 'any', + 'capacity': 'dict', 'claimRef': 'V1beta3_ObjectReference', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py index 1daf973..e78cdba 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py @@ -28,7 +28,7 @@ class V1beta3_Pod(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Pod(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PodSpec.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PodSpec.py index d3fb431..638f4d6 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PodSpec.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PodSpec.py @@ -40,7 +40,7 @@ class V1beta3_PodSpec(object): 'hostNetwork': 'bool', - 'nodeSelector': 'any', + 'nodeSelector': 'dict', 'restartPolicy': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_PodTemplateSpec.py b/magnum/common/pythonk8sclient/client/models/V1beta3_PodTemplateSpec.py index d1bb742..b5e1c45 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_PodTemplateSpec.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_PodTemplateSpec.py @@ -28,7 +28,7 @@ class V1beta3_PodTemplateSpec(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'creationTimestamp': 'str', @@ -40,7 +40,7 @@ class V1beta3_PodTemplateSpec(object): 'generateName': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationController.py b/magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationController.py index 2ff027f..96b6f21 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationController.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationController.py @@ -28,7 +28,7 @@ class V1beta3_ReplicationController(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_ReplicationController(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuota.py b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuota.py index 3e16f76..d029796 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuota.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuota.py @@ -28,7 +28,7 @@ class V1beta3_ResourceQuota(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_ResourceQuota(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaSpec.py b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaSpec.py index 5e620f3..835b7d8 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaSpec.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaSpec.py @@ -28,7 +28,7 @@ class V1beta3_ResourceQuotaSpec(object): """ self.swaggerTypes = { - 'hard': 'any' + 'hard': 'dict' } diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaStatus.py b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaStatus.py index 63ef9ad..efd1a0d 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaStatus.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaStatus.py @@ -28,10 +28,10 @@ class V1beta3_ResourceQuotaStatus(object): """ self.swaggerTypes = { - 'hard': 'any', + 'hard': 'dict', - 'used': 'any' + 'used': 'dict' } diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceRequirements.py b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceRequirements.py index 608ee9a..69db852 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceRequirements.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_ResourceRequirements.py @@ -28,10 +28,10 @@ class V1beta3_ResourceRequirements(object): """ self.swaggerTypes = { - 'limits': 'any', + 'limits': 'dict', - 'requests': 'any' + 'requests': 'dict' } diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Secret.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Secret.py index b461bef..cd301de 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Secret.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Secret.py @@ -28,7 +28,7 @@ class V1beta3_Secret(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -37,7 +37,7 @@ class V1beta3_Secret(object): 'creationTimestamp': 'str', - 'data': 'any', + 'data': 'dict', 'deletionTimestamp': 'str', @@ -49,7 +49,7 @@ class V1beta3_Secret(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str', diff --git a/magnum/common/pythonk8sclient/client/models/V1beta3_Service.py b/magnum/common/pythonk8sclient/client/models/V1beta3_Service.py index 74a11a5..503772e 100644 --- a/magnum/common/pythonk8sclient/client/models/V1beta3_Service.py +++ b/magnum/common/pythonk8sclient/client/models/V1beta3_Service.py @@ -28,7 +28,7 @@ class V1beta3_Service(object): """ self.swaggerTypes = { - 'annotations': 'any', + 'annotations': 'dict', 'apiVersion': 'str', @@ -46,7 +46,7 @@ class V1beta3_Service(object): 'kind': 'str', - 'labels': 'any', + 'labels': 'dict', 'name': 'str',