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
This commit is contained in:
Madhuri Kumari 2015-06-22 11:43:11 +09:00 committed by Hongbin Lu
parent c0ae7408ac
commit cbc6540e97
22 changed files with 41 additions and 41 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -28,13 +28,13 @@ class V1beta3_LimitRangeItem(object):
"""
self.swaggerTypes = {
'default': 'any',
'default': 'dict',
'max': 'any',
'max': 'dict',
'min': 'any',
'min': 'dict',
'type': 'str'

View File

@ -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',

View File

@ -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',

View File

@ -31,7 +31,7 @@ class V1beta3_NodeStatus(object):
'addresses': 'list[V1beta3_NodeAddress]',
'capacity': 'any',
'capacity': 'dict',
'conditions': 'list[V1beta3_NodeCondition]',

View File

@ -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',

View File

@ -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',

View File

@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeClaimStatus(object):
'accessModes': 'list[V1beta3_AccessModeType]',
'capacity': 'any',
'capacity': 'dict',
'phase': 'str',

View File

@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeSpec(object):
'accessModes': 'list[V1beta3_AccessModeType]',
'capacity': 'any',
'capacity': 'dict',
'claimRef': 'V1beta3_ObjectReference',

View File

@ -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',

View File

@ -40,7 +40,7 @@ class V1beta3_PodSpec(object):
'hostNetwork': 'bool',
'nodeSelector': 'any',
'nodeSelector': 'dict',
'restartPolicy': 'str',

View File

@ -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',

View File

@ -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',

View File

@ -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',

View File

@ -28,7 +28,7 @@ class V1beta3_ResourceQuotaSpec(object):
"""
self.swaggerTypes = {
'hard': 'any'
'hard': 'dict'
}

View File

@ -28,10 +28,10 @@ class V1beta3_ResourceQuotaStatus(object):
"""
self.swaggerTypes = {
'hard': 'any',
'hard': 'dict',
'used': 'any'
'used': 'dict'
}

View File

@ -28,10 +28,10 @@ class V1beta3_ResourceRequirements(object):
"""
self.swaggerTypes = {
'limits': 'any',
'limits': 'dict',
'requests': 'any'
'requests': 'dict'
}

View File

@ -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',

View File

@ -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',