* $androidenterpriseService = new Google\Service\AndroidEnterprise(...); * $storelayoutclusters = $androidenterpriseService->storelayoutclusters; * */ class Storelayoutclusters extends \Google\Service\Resource { /** * Deletes a cluster. (storelayoutclusters.delete) * * @param string $enterpriseId The ID of the enterprise. * @param string $pageId The ID of the page. * @param string $clusterId The ID of the cluster. * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($enterpriseId, $pageId, $clusterId, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId]; $params = array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Retrieves details of a cluster. (storelayoutclusters.get) * * @param string $enterpriseId The ID of the enterprise. * @param string $pageId The ID of the page. * @param string $clusterId The ID of the cluster. * @param array $optParams Optional parameters. * @return StoreCluster * @throws \Google\Service\Exception */ public function get($enterpriseId, $pageId, $clusterId, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], StoreCluster::class); } /** * Inserts a new cluster in a page. (storelayoutclusters.insert) * * @param string $enterpriseId The ID of the enterprise. * @param string $pageId The ID of the page. * @param StoreCluster $postBody * @param array $optParams Optional parameters. * @return StoreCluster * @throws \Google\Service\Exception */ public function insert($enterpriseId, $pageId, StoreCluster $postBody, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('insert', [$params], StoreCluster::class); } /** * Retrieves the details of all clusters on the specified page. * (storelayoutclusters.listStorelayoutclusters) * * @param string $enterpriseId The ID of the enterprise. * @param string $pageId The ID of the page. * @param array $optParams Optional parameters. * @return StoreLayoutClustersListResponse * @throws \Google\Service\Exception */ public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], StoreLayoutClustersListResponse::class); } /** * Updates a cluster. (storelayoutclusters.update) * * @param string $enterpriseId The ID of the enterprise. * @param string $pageId The ID of the page. * @param string $clusterId The ID of the cluster. * @param StoreCluster $postBody * @param array $optParams Optional parameters. * @return StoreCluster * @throws \Google\Service\Exception */ public function update($enterpriseId, $pageId, $clusterId, StoreCluster $postBody, $optParams = []) { $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('update', [$params], StoreCluster::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Storelayoutclusters::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutclusters');