
"""Dimensions for the Machine Provider."""

from protorpc import messages


class Backend(messages.Enum):
  """Lists valid backends."""
  DUMMY = 0
  GCE = 1


class OSFamily(messages.Enum):
  """Lists valid OS families."""
  LINUX = 1
  OSX = 2
  WINDOWS = 3


class Dimensions(messages.Message):
  """Represents the dimensions of a machine."""
  # The operating system family of this machine.
  os_family = messages.EnumField(OSFamily, 1)
  # The backend which should be used to spin up this machine. This should
  # generally be left unspecified so the Machine Provider selects the backend
  # on its own.
  backend = messages.EnumField(Backend, 2)
  # The hostname of this machine.
  hostname = messages.StringField(3)
  # The number of CPUs available to this machine.
  num_cpus = messages.IntegerField(4)
  # The amount of memory available to this machine.
  memory_gb = messages.FloatField(5)
  # The disk space available to this machine.
  disk_gb = messages.IntegerField(6)


"""Dimensions for the Machine Provider."""

from protorpc import messages


class Backend(messages.Enum):
  """Lists valid backends."""
  DUMMY = 0
  GCE = 1
  VSPHERE = 2


class OSFamily(messages.Enum):
  """Lists valid OS families."""
  LINUX = 1
  OSX = 2
  WINDOWS = 3


class Dimensions(messages.Message):
  """Represents the dimensions of a machine."""
  # The operating system family of this machine.
  os_family = messages.EnumField(OSFamily, 1)
  # The backend which should be used to spin up this machine. This should
  # generally be left unspecified so the Machine Provider selects the backend
  # on its own.
  backend = messages.EnumField(Backend, 2)
  # The hostname of this machine.
  hostname = messages.StringField(3)
  # The number of CPUs available to this machine.
  num_cpus = messages.IntegerField(4)
  # The amount of memory available to this machine.
  memory_gb = messages.FloatField(5)
  # The disk space available to this machine.
  disk_gb = messages.IntegerField(6)

Add enum field for vSphere backend
Add enum field for vSphere backend

Review-Url: https://codereview.chromium.org/1997903002

  
  """Dimensions for the Machine Provider."""
  
  from protorpc import messages
  
  
  class Backend(messages.Enum):
    """Lists valid backends."""
    DUMMY = 0
    GCE = 1
+   VSPHERE = 2
  
  
  class OSFamily(messages.Enum):
    """Lists valid OS families."""
    LINUX = 1
    OSX = 2
    WINDOWS = 3
  
  
  class Dimensions(messages.Message):
    """Represents the dimensions of a machine."""
    # The operating system family of this machine.
    os_family = messages.EnumField(OSFamily, 1)
    # The backend which should be used to spin up this machine. This should
    # generally be left unspecified so the Machine Provider selects the backend
    # on its own.
    backend = messages.EnumField(Backend, 2)
    # The hostname of this machine.
    hostname = messages.StringField(3)
    # The number of CPUs available to this machine.
    num_cpus = messages.IntegerField(4)
    # The amount of memory available to this machine.
    memory_gb = messages.FloatField(5)
    # The disk space available to this machine.
    disk_gb = messages.IntegerField(6)
  
Add enum field for vSphere backend
## Code Before:

"""Dimensions for the Machine Provider."""

from protorpc import messages


class Backend(messages.Enum):
  """Lists valid backends."""
  DUMMY = 0
  GCE = 1


class OSFamily(messages.Enum):
  """Lists valid OS families."""
  LINUX = 1
  OSX = 2
  WINDOWS = 3


class Dimensions(messages.Message):
  """Represents the dimensions of a machine."""
  # The operating system family of this machine.
  os_family = messages.EnumField(OSFamily, 1)
  # The backend which should be used to spin up this machine. This should
  # generally be left unspecified so the Machine Provider selects the backend
  # on its own.
  backend = messages.EnumField(Backend, 2)
  # The hostname of this machine.
  hostname = messages.StringField(3)
  # The number of CPUs available to this machine.
  num_cpus = messages.IntegerField(4)
  # The amount of memory available to this machine.
  memory_gb = messages.FloatField(5)
  # The disk space available to this machine.
  disk_gb = messages.IntegerField(6)

## Instruction:
Add enum field for vSphere backend
## Code After:

"""Dimensions for the Machine Provider."""

from protorpc import messages


class Backend(messages.Enum):
  """Lists valid backends."""
  DUMMY = 0
  GCE = 1
  VSPHERE = 2


class OSFamily(messages.Enum):
  """Lists valid OS families."""
  LINUX = 1
  OSX = 2
  WINDOWS = 3


class Dimensions(messages.Message):
  """Represents the dimensions of a machine."""
  # The operating system family of this machine.
  os_family = messages.EnumField(OSFamily, 1)
  # The backend which should be used to spin up this machine. This should
  # generally be left unspecified so the Machine Provider selects the backend
  # on its own.
  backend = messages.EnumField(Backend, 2)
  # The hostname of this machine.
  hostname = messages.StringField(3)
  # The number of CPUs available to this machine.
  num_cpus = messages.IntegerField(4)
  # The amount of memory available to this machine.
  memory_gb = messages.FloatField(5)
  # The disk space available to this machine.
  disk_gb = messages.IntegerField(6)
