text: # coding: utf-8
  
  """
      KubeVirt API
  
      This is KubeVirt API an add-on for Kubernetes.
  
      OpenAPI spec version: 1.0.0
      Contact: kubevirt-dev@googlegroups.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  from pprint import pformat
  from six import iteritems
  import re
  
  
  class V1ContainerDiskSource(object):
      """
      NOTE: This class is auto generated by the swagger code generator program.
      Do not edit the class manually.
      """
  
  
      """
      Attributes:
        swagger_types (dict): The key is attribute name
                              and the value is attribute type.
        attribute_map (dict): The key is attribute name
                              and the value is json key in definition.
      """
      swagger_types = {
          'image': 'str',
          'image_pull_policy': 'str',
          'image_pull_secret': 'str',
          'path': 'str'
      }
  
      attribute_map = {
          'image': 'image',
          'image_pull_policy': 'imagePullPolicy',
          'image_pull_secret': 'imagePullSecret',
          'path': 'path'
      }
  
      def __init__(self, image=None, image_pull_policy=None, image_pull_secret=None, path=None):
          """
          V1ContainerDiskSource - a model defined in Swagger
          """
  
          self._image = None
          self._image_pull_policy = None
          self._image_pull_secret = None
          self._path = None
  
          self.image = image
          if image_pull_policy is not None:
            self.image_pull_policy = image_pull_policy
          if image_pull_secret is not None:
            self.image_pull_secret = image_pull_secret
          if path is not None:
            self.path = path
  
      @property
      def image(self):
          """
          Gets the image of this V1ContainerDiskSource.
          Image is the name of the image with the embedded disk.
  
          :return: The image of this V1ContainerDiskSource.
          :rtype: str
          """
          return self._image
  
      @image.setter
      def image(self, image):
          """
          Sets the image of this V1ContainerDiskSource.
          Image is the name of the image with the embedded disk.
  
          :param image: The image of this V1ContainerDiskSource.
          :type: str
          """
          if image is None:
              raise ValueError("Invalid value for `image`, must not be `None`")
  
          self._image = image
  
      @property
      def image_pull_policy(self):
          """
          Gets the image_pull_policy of this V1ContainerDiskSource.
          Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
  
          :return: The image_pull_policy of this V1ContainerDiskSource.
          :rtype: str
          """
          return self._image_pull_policy
  
      @image_pull_policy.setter
      def image_pull_policy(self, image_pull_policy):
          """
          Sets the image_pull_policy of this V1ContainerDiskSource.
          Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
  
          :param image_pull_policy: The image_pull_policy of this V1ContainerDiskSource.
          :type: str
          """
  
          self._image_pull_policy = image_pull_policy
  
      @property
      def image_pull_secret(self):
          """
          Gets the image_pull_secret of this V1ContainerDiskSource.
          ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
  
          :return: The image_pull_secret of this V1ContainerDiskSource.
          :rtype: str
          """
          return self._image_pull_secret
  
      @image_pull_secret.setter
      def image_pull_secret(self, image_pull_secret):
          """
          Sets the image_pull_secret of this V1ContainerDiskSource.
          ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist.
  
          :param image_pull_secret: The image_pull_secret of this V1ContainerDiskSource.
          :type: str
          """
  
          self._image_pull_secret = image_pull_secret
  
      @property
      def path(self):
          """
          Gets the path of this V1ContainerDiskSource.
          Path defines the path to disk file in the container
  
          :return: The path of this V1ContainerDiskSource.
          :rtype: str
          """
          return self._path
  
      @path.setter
      def path(self, path):
          """
          Sets the path of this V1ContainerDiskSource.
          Path defines the path to disk file in the container
  
          :param path: The path of this V1ContainerDiskSource.
          :type: str
          """
  
          self._path = path
  
      def to_dict(self):
          """
          Returns the model properties as a dict
          """
          result = {}
  
          for attr, _ in iteritems(self.swagger_types):
              value = getattr(self, attr)
              if isinstance(value, list):
                  result[attr] = list(map(
                      lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                      value
                  ))
              elif hasattr(value, "to_dict"):
                  result[attr] = value.to_dict()
              elif isinstance(value, dict):
                  result[attr] = dict(map(
                      lambda item: (item[0], item[1].to_dict())
                      if hasattr(item[1], "to_dict") else item,
                      value.items()
                  ))
              else:
                  result[attr] = value
  
          return result
  
      def to_str(self):
          """
          Returns the string representation of the model
          """
          return pformat(self.to_dict())
  
      def __repr__(self):
          """
          For `print` and `pprint`
          """
          return self.to_str()
  
      def __eq__(self, other):
          """
          Returns true if both objects are equal
          """
          if not isinstance(other, V1ContainerDiskSource):
              return False
  
          return self.__dict__ == other.__dict__
  
      def __ne__(self, other):
          """
          Returns true if both objects are not equal
          """
          return not self == other
  