* $androidmanagementService = new Google\Service\AndroidManagement(...); * $webApps = $androidmanagementService->webApps; * */ class EnterprisesWebApps extends \Google\Service\Resource { /** * Creates a web app. (webApps.create) * * @param string $parent The name of the enterprise in the form * enterprises/{enterpriseId}. * @param WebApp $postBody * @param array $optParams Optional parameters. * @return WebApp */ public function create($parent, WebApp $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], WebApp::class); } /** * Deletes a web app. (webApps.delete) * * @param string $name The name of the web app in the form * enterprises/{enterpriseId}/webApps/{packageName}. * @param array $optParams Optional parameters. * @return AndroidmanagementEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], AndroidmanagementEmpty::class); } /** * Gets a web app. (webApps.get) * * @param string $name The name of the web app in the form * enterprises/{enterpriseId}/webApp/{packageName}. * @param array $optParams Optional parameters. * @return WebApp */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], WebApp::class); } /** * Lists web apps for a given enterprise. (webApps.listEnterprisesWebApps) * * @param string $parent The name of the enterprise in the form * enterprises/{enterpriseId}. * @param array $optParams Optional parameters. * * @opt_param int pageSize The requested page size. This is a hint and the * actual page size in the response may be different. * @opt_param string pageToken A token identifying a page of results returned by * the server. * @return ListWebAppsResponse */ public function listEnterprisesWebApps($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListWebAppsResponse::class); } /** * Updates a web app. (webApps.patch) * * @param string $name The name of the web app in the form * enterprises/{enterpriseId}/webApps/{packageName}. * @param WebApp $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The field mask indicating the fields to update. * If not set, all modifiable fields will be modified. * @return WebApp */ public function patch($name, WebApp $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], WebApp::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(EnterprisesWebApps::class, 'Google_Service_AndroidManagement_Resource_EnterprisesWebApps');