/** * Returns the URL Alias of the API Class that inherits the OnApp class * * @param string $action action name * * @return string API resource * @access public */ function getResource($action = ONAPP_GETRESOURCE_DEFAULT) { switch ($action) { case ONAPP_GETRESOURCE_JOIN: $resource = 'virtual_machines/' . $this->_virtual_machine_id . '/' . $this->_resource; $this->logger->debug('getResource( ' . $action . ' ): return ' . $resource); break; default: $resource = parent::getResource($action); break; } return $resource; }