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:
parent
c668d89230
commit
e8d7f0f72f
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -28,13 +28,13 @@ class V1beta3_LimitRangeItem(object):
|
||||
"""
|
||||
self.swaggerTypes = {
|
||||
|
||||
'default': 'any',
|
||||
'default': 'dict',
|
||||
|
||||
|
||||
'max': 'any',
|
||||
'max': 'dict',
|
||||
|
||||
|
||||
'min': 'any',
|
||||
'min': 'dict',
|
||||
|
||||
|
||||
'type': 'str'
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -31,7 +31,7 @@ class V1beta3_NodeStatus(object):
|
||||
'addresses': 'list[V1beta3_NodeAddress]',
|
||||
|
||||
|
||||
'capacity': 'any',
|
||||
'capacity': 'dict',
|
||||
|
||||
|
||||
'conditions': 'list[V1beta3_NodeCondition]',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeClaimStatus(object):
|
||||
'accessModes': 'list[V1beta3_AccessModeType]',
|
||||
|
||||
|
||||
'capacity': 'any',
|
||||
'capacity': 'dict',
|
||||
|
||||
|
||||
'phase': 'str',
|
||||
|
@ -31,7 +31,7 @@ class V1beta3_PersistentVolumeSpec(object):
|
||||
'accessModes': 'list[V1beta3_AccessModeType]',
|
||||
|
||||
|
||||
'capacity': 'any',
|
||||
'capacity': 'dict',
|
||||
|
||||
|
||||
'claimRef': 'V1beta3_ObjectReference',
|
||||
|
@ -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',
|
||||
|
@ -40,7 +40,7 @@ class V1beta3_PodSpec(object):
|
||||
'hostNetwork': 'bool',
|
||||
|
||||
|
||||
'nodeSelector': 'any',
|
||||
'nodeSelector': 'dict',
|
||||
|
||||
|
||||
'restartPolicy': 'str',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -28,7 +28,7 @@ class V1beta3_ResourceQuotaSpec(object):
|
||||
"""
|
||||
self.swaggerTypes = {
|
||||
|
||||
'hard': 'any'
|
||||
'hard': 'dict'
|
||||
|
||||
}
|
||||
|
||||
|
@ -28,10 +28,10 @@ class V1beta3_ResourceQuotaStatus(object):
|
||||
"""
|
||||
self.swaggerTypes = {
|
||||
|
||||
'hard': 'any',
|
||||
'hard': 'dict',
|
||||
|
||||
|
||||
'used': 'any'
|
||||
'used': 'dict'
|
||||
|
||||
}
|
||||
|
||||
|
@ -28,10 +28,10 @@ class V1beta3_ResourceRequirements(object):
|
||||
"""
|
||||
self.swaggerTypes = {
|
||||
|
||||
'limits': 'any',
|
||||
'limits': 'dict',
|
||||
|
||||
|
||||
'requests': 'any'
|
||||
'requests': 'dict'
|
||||
|
||||
}
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user