airgun.entities.computeresource

Module Contents

class airgun.entities.computeresource.ComputeResourceEntity

Bases: airgun.entities.base.BaseEntity

endpoint_path = /compute_resources
create(self, values)

Create new compute resource entity

search(self, value)

Search for compute resource entity and return table row that contains that entity

edit(self, name, values)

Edit specific compute resource values

read(self, entity_name, widget_names=None)

Read all values for existing compute resource entity

delete(self, value)

Delete specific compute profile

list_vms(self, entity_name, expected_vm_name=None)

Returns all the VMs on the CR or VM with specified name

search_virtual_machine(self, entity_name, value)

Search for compute resource virtual machine.

Parameters:
  • entity_name (str) – The compute resource name.
  • value (str) – The value to put in virtual machine tab search box.
Returns:

The Compute resource virtual machines table rows values.

vm_status(self, entity_name, vm_name)

Returns True if the machine is running, False otherwise

vm_poweron(self, entity_name, vm_name)

Starts the specified VM

vm_poweroff(self, entity_name, vm_name)

Stops the specified VM

vm_import(self, entity_name, vm_name, hostgroup, location)

Imports the specified VM

update_computeprofile(self, entity_name, compute_profile, values)

Update specific compute profile attributes through CR detail view

read_computeprofile(self, entity_name, compute_profile, widget_names=None)

Read specific compute profile attributes through CR detail view

create_image(self, entity_name, values)

Create a compute resource image.

Parameters:
  • entity_name (str) – The compute resource name
  • values (dict) – The image properties
search_images(self, entity_name, value)

Search for compute resource images.

Parameters:
  • entity_name (str) – The compute resource name.
  • value (str) – The value to put in images tab search box.
Returns:

The Compute resource images table rows values.

read_image(self, entity_name, image_name, widget_names=None)

Read from compute resource image edit view.

Parameters:
  • entity_name (str) – The compute resource name.
  • image_name (str) – The existing compute resource image name to read.
Returns:

The edit view widgets values

update_image(self, entity_name, image_name, values)

Update compute resource image properties.

Parameters:
  • entity_name (str) – The compute resource name.
  • image_name (str) – The existing compute resource image name to update
  • values (dict) – The image new properties.
delete_image(self, entity_name, image_name)

Delete compute resource image.

Parameters:
  • entity_name (str) – The compute resource name.
  • image_name (str) – The existing compute resource image name to delete.
class airgun.entities.computeresource.ShowAllComputeResources

Bases: airgun.navigation.NavigateStep

VIEW
step(self, *args, **kwargs)
class airgun.entities.computeresource.AddNewComputeResource

Bases: airgun.navigation.NavigateStep

VIEW
prerequisite
step(self, *args, **kwargs)
class airgun.entities.computeresource.EditExistingComputeResource

Bases: airgun.navigation.NavigateStep

VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
post_navigate(self, _tries, *args, **kwargs)

Select Compute resource tab for initialization

am_i_here(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceDetail

Bases: airgun.navigation.NavigateStep

VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
am_i_here(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceProfileDetail

Bases: airgun.navigation.NavigateStep

VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceVMImport

Bases: airgun.navigation.NavigateStep

VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceImageProvider

Bases: airgun.navigation.NavigateStep

Base class for image create and edit views, that need to dynamically define the view type (that depend from compute resource provider) before reaching navigation destination.

PROVIDER_VIEWS
prerequisite(self, *args, **kwargs)
am_i_here(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceImageCreate

Bases: airgun.entities.computeresource.ComputeResourceImageProvider

PROVIDER_VIEWS
step(self, *args, **kwargs)
class airgun.entities.computeresource.ComputeResourceImageEdit

Bases: airgun.entities.computeresource.ComputeResourceImageProvider

PROVIDER_VIEWS
step(self, *args, **kwargs)