Merge "Adding support of python-k8client."

changes/48/172248/1
Jenkins 8 years ago committed by Gerrit Code Review
commit 592d79c56e
  1. 35
      magnum/common/pythonk8sclient/README.rst
  2. 0
      magnum/common/pythonk8sclient/__init__.py
  3. 11298
      magnum/common/pythonk8sclient/client/ApivbetaApi.py
  4. 9
      magnum/common/pythonk8sclient/client/__init__.py
  5. 54
      magnum/common/pythonk8sclient/client/models/Json_WatchEvent.py
  6. 37
      magnum/common/pythonk8sclient/client/models/V1beta3_AccessModeType.py
  7. 153
      magnum/common/pythonk8sclient/client/models/V1beta3_Binding.py
  8. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_Capabilities.py
  9. 37
      magnum/common/pythonk8sclient/client/models/V1beta3_CapabilityType.py
  10. 180
      magnum/common/pythonk8sclient/client/models/V1beta3_Container.py
  11. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerPort.py
  12. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerState.py
  13. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerStateRunning.py
  14. 99
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerStateTerminated.py
  15. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerStateWaiting.py
  16. 108
      magnum/common/pythonk8sclient/client/models/V1beta3_ContainerStatus.py
  17. 37
      magnum/common/pythonk8sclient/client/models/V1beta3_DeleteOptions.py
  18. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_EmptyDirVolumeSource.py
  19. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_EndpointAddress.py
  20. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_EndpointPort.py
  21. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_EndpointSubset.py
  22. 153
      magnum/common/pythonk8sclient/client/models/V1beta3_Endpoints.py
  23. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_EndpointsList.py
  24. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_EnvVar.py
  25. 207
      magnum/common/pythonk8sclient/client/models/V1beta3_Event.py
  26. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_EventList.py
  27. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_EventSource.py
  28. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_ExecAction.py
  29. 37
      magnum/common/pythonk8sclient/client/models/V1beta3_FinalizerName.py
  30. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_GCEPersistentDiskVolumeSource.py
  31. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_GitRepoVolumeSource.py
  32. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_HTTPGetAction.py
  33. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_Handler.py
  34. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_HostPathVolumeSource.py
  35. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_ISCSIVolumeSource.py
  36. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_Lifecycle.py
  37. 153
      magnum/common/pythonk8sclient/client/models/V1beta3_LimitRange.py
  38. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeItem.py
  39. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeList.py
  40. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_LimitRangeSpec.py
  41. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_NFSVolumeSource.py
  42. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_Namespace.py
  43. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_NamespaceList.py
  44. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_NamespaceSpec.py
  45. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_NamespaceStatus.py
  46. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_Node.py
  47. 52
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeAddress.py
  48. 90
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeCondition.py
  49. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeList.py
  50. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeSpec.py
  51. 80
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeStatus.py
  52. 106
      magnum/common/pythonk8sclient/client/models/V1beta3_NodeSystemInfo.py
  53. 99
      magnum/common/pythonk8sclient/client/models/V1beta3_ObjectReference.py
  54. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolume.py
  55. 161
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaim.py
  56. 80
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimList.py
  57. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimSpec.py
  58. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeClaimStatus.py
  59. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeList.py
  60. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeSpec.py
  61. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_PersistentVolumeStatus.py
  62. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_Pod.py
  63. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_PodCondition.py
  64. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_PodList.py
  65. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_PodLogOptions.py
  66. 99
      magnum/common/pythonk8sclient/client/models/V1beta3_PodSpec.py
  67. 90
      magnum/common/pythonk8sclient/client/models/V1beta3_PodStatus.py
  68. 135
      magnum/common/pythonk8sclient/client/models/V1beta3_PodTemplateSpec.py
  69. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_Probe.py
  70. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationController.py
  71. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationControllerList.py
  72. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationControllerSpec.py
  73. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_ReplicationControllerStatus.py
  74. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuota.py
  75. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaList.py
  76. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaSpec.py
  77. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_ResourceQuotaStatus.py
  78. 54
      magnum/common/pythonk8sclient/client/models/V1beta3_ResourceRequirements.py
  79. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_Secret.py
  80. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_SecretList.py
  81. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_SecretVolumeSource.py
  82. 162
      magnum/common/pythonk8sclient/client/models/V1beta3_Service.py
  83. 81
      magnum/common/pythonk8sclient/client/models/V1beta3_ServiceList.py
  84. 72
      magnum/common/pythonk8sclient/client/models/V1beta3_ServicePort.py
  85. 89
      magnum/common/pythonk8sclient/client/models/V1beta3_ServiceSpec.py
  86. 37
      magnum/common/pythonk8sclient/client/models/V1beta3_ServiceStatus.py
  87. 45
      magnum/common/pythonk8sclient/client/models/V1beta3_TCPSocketAction.py
  88. 108
      magnum/common/pythonk8sclient/client/models/V1beta3_Volume.py
  89. 63
      magnum/common/pythonk8sclient/client/models/V1beta3_VolumeMount.py
  90. 9
      magnum/common/pythonk8sclient/client/models/__init__.py
  91. 272
      magnum/common/pythonk8sclient/client/swagger.py
  92. 8815
      magnum/common/pythonk8sclient/templates/v1beta3.json
  93. 2
      tox.ini

@ -0,0 +1,35 @@
==========================
Kubernetes API client code
==========================
Overview
--------
This is Kubernetes API python client code. This code is generated by
swagger-codegen. Kubernetes provide swagger-spec to generate client code
for different versions. The specs live in Kubernetes repo.
See also
--------
* swagger-codegen: https://github.com/swagger-api/swagger-codegen
* Kubernetes swagger-spec: https://github.com/GoogleCloudPlatform/kubernetes/tree/master/api/swagger-spec
Steps to generate API client code
---------------------------------
Steps to generate Kubernetes client code for v1beta3:
* Clone the Kubernetes repo.
git clone https://github.com/GoogleCloudPlatform/kubernetes.git
* Clone the swagger-codegen repo.
git clone https://github.com/swagger-api/swagger-codegen.git
* Run below command to generate the API client code for Kubernetes.
java -jar ./swagger-codegen/modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i ./kubernetes/api/swagger-spec/v1beta3.json -l python -o ./KubernetesClientCode
Now you can check the code at location ./KubernetesClientCode.

File diff suppressed because it is too large Load Diff

@ -0,0 +1,9 @@
#!/usr/bin/env python
"""Add all of the modules in the current directory to __all__"""
import os
__all__ = []
for module in os.listdir(os.path.dirname(__file__)):
if module != '__init__.py' and module[-3:] == '.py':
__all__.append(module[:-3])

@ -0,0 +1,54 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class Json_WatchEvent(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'object': 'str',
'type': 'str'
}
self.attributeMap = {
'object': 'object',
'type': 'type'
}
#the object being watched; will match the type of the resource endpoint or be a Status object if the type is ERROR
self.object = None # str
#the type of watch event; may be ADDED, MODIFIED, DELETED, or ERROR
self.type = None # str

@ -0,0 +1,37 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_AccessModeType(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
}
self.attributeMap = {
}

@ -0,0 +1,153 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_Binding(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'annotations': 'any',
'apiVersion': 'str',
'creationTimestamp': 'str',
'deletionTimestamp': 'str',
'generateName': 'str',
'kind': 'str',
'labels': 'any',
'name': 'str',
'namespace': 'str',
'resourceVersion': 'str',
'selfLink': 'str',
'target': 'v1beta3_ObjectReference',
'uid': 'str'
}
self.attributeMap = {
'annotations': 'annotations',
'apiVersion': 'apiVersion',
'creationTimestamp': 'creationTimestamp',
'deletionTimestamp': 'deletionTimestamp',
'generateName': 'generateName',
'kind': 'kind',
'labels': 'labels',
'name': 'name',
'namespace': 'namespace',
'resourceVersion': 'resourceVersion',
'selfLink': 'selfLink',
'target': 'target',
'uid': 'uid'
}
#map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about objects
self.annotations = None # any
#version of the schema the object should have
self.apiVersion = None # str
#RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists
self.creationTimestamp = None # str
#RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested
self.deletionTimestamp = None # str
#an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified
self.generateName = None # str
#kind of object, in CamelCase; cannot be updated
self.kind = None # str
#map of string keys and values that can be used to organize and categorize objects; may match selectors of replication controllers and services
self.labels = None # any
#string that identifies an object. Must be unique within a namespace; cannot be updated
self.name = None # str
#namespace of the object; cannot be updated
self.namespace = None # str
#string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/api-conventions.md#concurrency-control-and-consistency
self.resourceVersion = None # str
#URL for the object; populated by the system, read-only
self.selfLink = None # str
#an object to bind to
self.target = None # v1beta3_ObjectReference
#unique UUID across space and time; populated by the system; read-only
self.uid = None # str

@ -0,0 +1,54 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_Capabilities(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'add': 'list[v1beta3_CapabilityType]',
'drop': 'list[v1beta3_CapabilityType]'
}
self.attributeMap = {
'add': 'add',
'drop': 'drop'
}
#added capabilities
self.add = None # list[v1beta3_CapabilityType]
#droped capabilities
self.drop = None # list[v1beta3_CapabilityType]

@ -0,0 +1,37 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_CapabilityType(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
}
self.attributeMap = {
}

@ -0,0 +1,180 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_Container(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'args': 'list[str]',
'capabilities': 'v1beta3_Capabilities',
'command': 'list[str]',
'env': 'list[v1beta3_EnvVar]',
'image': 'str',
'imagePullPolicy': 'str',
'lifecycle': 'v1beta3_Lifecycle',
'livenessProbe': 'v1beta3_Probe',
'name': 'str',
'ports': 'list[v1beta3_ContainerPort]',
'privileged': 'bool',
'readinessProbe': 'v1beta3_Probe',
'resources': 'v1beta3_ResourceRequirements',
'terminationMessagePath': 'str',
'volumeMounts': 'list[v1beta3_VolumeMount]',
'workingDir': 'str'
}
self.attributeMap = {
'args': 'args',
'capabilities': 'capabilities',
'command': 'command',
'env': 'env',
'image': 'image',
'imagePullPolicy': 'imagePullPolicy',
'lifecycle': 'lifecycle',
'livenessProbe': 'livenessProbe',
'name': 'name',
'ports': 'ports',
'privileged': 'privileged',
'readinessProbe': 'readinessProbe',
'resources': 'resources',
'terminationMessagePath': 'terminationMessagePath',
'volumeMounts': 'volumeMounts',
'workingDir': 'workingDir'
}
#command array; the docker image's cmd is used if this is not provided; arguments to the entrypoint; cannot be updated
self.args = None # list[str]
#capabilities for container; cannot be updated
self.capabilities = None # v1beta3_Capabilities
#entrypoint array; not executed within a shell; the docker image's entrypoint is used if this is not provided; cannot be updated
self.command = None # list[str]
#list of environment variables to set in the container; cannot be updated
self.env = None # list[v1beta3_EnvVar]
#Docker image name
self.image = None # str
#image pull policy; one of PullAlways, PullNever, PullIfNotPresent; defaults to PullAlways if :latest tag is specified, or PullIfNotPresent otherwise; cannot be updated
self.imagePullPolicy = None # str
#actions that the management system should take in response to container lifecycle events; cannot be updated
self.lifecycle = None # v1beta3_Lifecycle
#periodic probe of container liveness; container will be restarted if the probe fails; cannot be updated
self.livenessProbe = None # v1beta3_Probe
#name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated
self.name = None # str
#list of ports to expose from the container; cannot be updated
self.ports = None # list[v1beta3_ContainerPort]
#whether or not the container is granted privileged status; defaults to false; cannot be updated
self.privileged = None # bool
#periodic probe of container service readiness; container will be removed from service endpoints if the probe fails; cannot be updated
self.readinessProbe = None # v1beta3_Probe
#Compute Resources required by this container; cannot be updated
self.resources = None # v1beta3_ResourceRequirements
#path at which the file to which the container's termination message will be written is mounted into the container's filesystem; message written is intended to be brief final status, such as an assertion failure message; defaults to /dev/termination-log; cannot be updated
self.terminationMessagePath = None # str
#pod volumes to mount into the container's filesyste; cannot be updated
self.volumeMounts = None # list[v1beta3_VolumeMount]
#container's working directory; defaults to image's default; cannot be updated
self.workingDir = None # str

@ -0,0 +1,81 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerPort(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'containerPort': 'int',
'hostIP': 'str',
'hostPort': 'int',
'name': 'str',
'protocol': 'str'
}
self.attributeMap = {
'containerPort': 'containerPort',
'hostIP': 'hostIP',
'hostPort': 'hostPort',
'name': 'name',
'protocol': 'protocol'
}
#number of port to expose on the pod's IP address
self.containerPort = None # int
#host IP to bind the port to
self.hostIP = None # str
#number of port to expose on the host; most containers do not need this
self.hostPort = None # int
#name for the port that can be referred to by services; must be a DNS_LABEL and unique without the pod
self.name = None # str
#protocol for port; must be UDP or TCP; TCP if unspecified
self.protocol = None # str

@ -0,0 +1,63 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerState(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'running': 'v1beta3_ContainerStateRunning',
'termination': 'v1beta3_ContainerStateTerminated',
'waiting': 'v1beta3_ContainerStateWaiting'
}
self.attributeMap = {
'running': 'running',
'termination': 'termination',
'waiting': 'waiting'
}
#details about a running container
self.running = None # v1beta3_ContainerStateRunning
#details about a terminated container
self.termination = None # v1beta3_ContainerStateTerminated
#details about a waiting container
self.waiting = None # v1beta3_ContainerStateWaiting

@ -0,0 +1,45 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerStateRunning(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'startedAt': 'str'
}
self.attributeMap = {
'startedAt': 'startedAt'
}
#time at which the container was last (re-)started
self.startedAt = None # str

@ -0,0 +1,99 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerStateTerminated(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'containerID': 'str',
'exitCode': 'int',
'finishedAt': 'str',
'message': 'str',
'reason': 'str',
'signal': 'int',
'startedAt': 'str'
}
self.attributeMap = {
'containerID': 'containerID',
'exitCode': 'exitCode',
'finishedAt': 'finishedAt',
'message': 'message',
'reason': 'reason',
'signal': 'signal',
'startedAt': 'startedAt'
}
#container's ID in the format 'docker://<container_id>'
self.containerID = None # str
#exit status from the last termination of the container
self.exitCode = None # int
#time at which the container last terminated
self.finishedAt = None # str
#message regarding the last termination of the container
self.message = None # str
#(brief) reason from the last termination of the container
self.reason = None # str
#signal from the last termination of the container
self.signal = None # int
#time at which previous execution of the container started
self.startedAt = None # str

@ -0,0 +1,45 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerStateWaiting(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'reason': 'str'
}
self.attributeMap = {
'reason': 'reason'
}
#(brief) reason the container is not yet running, such as pulling its image
self.reason = None # str

@ -0,0 +1,108 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_ContainerStatus(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'containerID': 'str',
'image': 'str',
'imageID': 'str',
'lastState': 'v1beta3_ContainerState',
'name': 'str',
'ready': 'bool',
'restartCount': 'int',
'state': 'v1beta3_ContainerState'
}
self.attributeMap = {
'containerID': 'containerID',
'image': 'image',
'imageID': 'imageID',
'lastState': 'lastState',
'name': 'name',
'ready': 'ready',
'restartCount': 'restartCount',
'state': 'state'
}
#container's ID in the format 'docker://<container_id>'
self.containerID = None # str
#image of the container
self.image = None # str
#ID of the container's image
self.imageID = None # str
#details about the container's last termination condition
self.lastState = None # v1beta3_ContainerState
#name of the container; must be a DNS_LABEL and unique within the pod; cannot be updated
self.name = None # str
#specifies whether the container has passed its readiness probe
self.ready = None # bool
#the number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed
self.restartCount = None # int
#details about the container's current condition
self.state = None # v1beta3_ContainerState

@ -0,0 +1,37 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_DeleteOptions(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
}
self.attributeMap = {
}

@ -0,0 +1,45 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_EmptyDirVolumeSource(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'medium': 'str'
}
self.attributeMap = {
'medium': 'medium'
}
#type of storage used to back the volume; must be an empty string (default) or Memory
self.medium = None # str

@ -0,0 +1,54 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_EndpointAddress(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'IP': 'str',
'targetRef': 'v1beta3_ObjectReference'
}
self.attributeMap = {
'IP': 'IP',
'targetRef': 'targetRef'
}
#IP address of the endpoint
self.IP = None # str
#reference to object providing the endpoint
self.targetRef = None # v1beta3_ObjectReference

@ -0,0 +1,63 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_EndpointPort(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'name': 'str',
'port': 'int',
'protocol': 'str'
}
self.attributeMap = {
'name': 'name',
'port': 'port',
'protocol': 'protocol'
}
#name of this port
self.name = None # str
#port number of the endpoint
self.port = None # int
#protocol for this port; must be UDP or TCP; TCP if unspecified
self.protocol = None # str

@ -0,0 +1,54 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_EndpointSubset(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'addresses': 'list[v1beta3_EndpointAddress]',
'ports': 'list[v1beta3_EndpointPort]'
}
self.attributeMap = {
'addresses': 'addresses',
'ports': 'ports'
}
#IP addresses which offer the related ports
self.addresses = None # list[v1beta3_EndpointAddress]
#port numbers available on the related IP addresses
self.ports = None # list[v1beta3_EndpointPort]

@ -0,0 +1,153 @@
#!/usr/bin/env python
"""
Copyright 2015 Reverb Technologies, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""
class V1beta3_Endpoints(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually."""
def __init__(self):
"""
Attributes:
swaggerTypes (dict): The key is attribute name and the value is attribute type.
attributeMap (dict): The key is attribute name and the value is json key in definition.
"""
self.swaggerTypes = {
'annotations': 'any',
'apiVersion': 'str',
'creationTimestamp': 'str',
'deletionTimestamp': 'str',
'generateName': 'str',
'kind': 'str',
'labels': 'any',
'name': 'str',
'namespace': 'str',
'resourceVersion': 'str',
'selfLink': 'str',
'subsets': 'list[v1beta3_EndpointSubset]',
'uid': 'str'
}
self.attributeMap = {
'annotations': 'annotations',
'apiVersion': 'apiVersion',
'creationTimestamp': 'creationTimestamp',
'deletionTimestamp': 'deletionTimestamp',
'generateName': 'generateName',
'kind': 'kind',
'labels': 'labels',
'name': 'name',