def __init__(self, name, host='127.0.0.1', port=27017):
        self.name = name
        self.host = host
        self.port = port
def create_on_device(self):
        resource = self.client.api.cm.shared.licensing.pools_s.pool.create(
            name=self.want.name,
            baseRegKey=self.want.base_key,
            method="AUTOMATIC"
        )
        return self._wait_for_license_pool_state_to_activate(resource)