Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here the Entity (eg:Firewall) can perform an operation verb() (eg:create) using the arguments }}reqd1, reqd2}}. The optional arguments (if any) will be passed as key, value pairs to the keyword args }}**kwargs}}.

All entity classes are autogenerated and placed in the marvin.entity module. You may want to look at some sample entities like virtualmachine.py or network.py. To anyone who has used the previous version of marvin, these will look familiar. If you are looking at them for the first time, it will be obvious to you that each entity is a simple class defined with CRUD operations that map to the cloudStack API.

  1. Creators
    A creator of an entity is the API operation that brings the entity into existence on the cloud. For instance a firewall rule is created using the createFirewallRule API. Or a virtualmachine comes into existence with the deployVirtualMachine command. These are our creators for entities firewall and virtualmachines respectively. Every entity class's }}_init_}} method is basically a call to its creator

...