cfme.cloud.instance.gce module

class cfme.cloud.instance.gce.GCEInstance(name, provider, template_name=None, appliance=None)[source]

Bases: cfme.cloud.instance.Instance

DELETE = 'Delete'
POWER_ON = 'Start'
RESTART = 'Restart'
SOFT_REBOOT = 'Soft Reboot'
START = 'Start'
STATE_ARCHIVED = 'archived'
STATE_OFF = 'off'
STATE_ON = 'on'
STATE_SUSPENDED = 'suspended'
STATE_TERMINATED = 'terminated'
STATE_UNKNOWN = 'unknown'
STOP = 'Stop'
TERMINATE = 'Delete'
create(cancel=False, **prov_fill_kwargs)[source]

Provisions an GCE instance with the given properties through CFME

Parameters:
  • cancel – Clicks the cancel button if True, otherwise clicks the submit button (Defaults to False)
  • prov_fill_kwargs – dictionary of provisioning field/value pairs

Note

For more optional keyword arguments, see cfme.cloud.provisioning.ProvisioningForm

power_control_from_provider(option)[source]

Power control the instance from the provider

Parameters:option – power control action to take against instance
Raises:OptionNotAvailable – option param must have proper value
ui_powerstates_available
ui_powerstates_unavailable