1<?php 2/* 3 * Copyright 2014 Google Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 6 * use this file except in compliance with the License. You may obtain a copy of 7 * the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14 * License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 18namespace Google\Service\AndroidEnterprise\Resource; 19 20use Google\Service\AndroidEnterprise\StoreCluster; 21use Google\Service\AndroidEnterprise\StoreLayoutClustersListResponse; 22 23/** 24 * The "storelayoutclusters" collection of methods. 25 * Typical usage is: 26 * <code> 27 * $androidenterpriseService = new Google\Service\AndroidEnterprise(...); 28 * $storelayoutclusters = $androidenterpriseService->storelayoutclusters; 29 * </code> 30 */ 31class Storelayoutclusters extends \Google\Service\Resource 32{ 33 /** 34 * Deletes a cluster. (storelayoutclusters.delete) 35 * 36 * @param string $enterpriseId The ID of the enterprise. 37 * @param string $pageId The ID of the page. 38 * @param string $clusterId The ID of the cluster. 39 * @param array $optParams Optional parameters. 40 */ 41 public function delete($enterpriseId, $pageId, $clusterId, $optParams = []) 42 { 43 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId]; 44 $params = array_merge($params, $optParams); 45 return $this->call('delete', [$params]); 46 } 47 /** 48 * Retrieves details of a cluster. (storelayoutclusters.get) 49 * 50 * @param string $enterpriseId The ID of the enterprise. 51 * @param string $pageId The ID of the page. 52 * @param string $clusterId The ID of the cluster. 53 * @param array $optParams Optional parameters. 54 * @return StoreCluster 55 */ 56 public function get($enterpriseId, $pageId, $clusterId, $optParams = []) 57 { 58 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId]; 59 $params = array_merge($params, $optParams); 60 return $this->call('get', [$params], StoreCluster::class); 61 } 62 /** 63 * Inserts a new cluster in a page. (storelayoutclusters.insert) 64 * 65 * @param string $enterpriseId The ID of the enterprise. 66 * @param string $pageId The ID of the page. 67 * @param StoreCluster $postBody 68 * @param array $optParams Optional parameters. 69 * @return StoreCluster 70 */ 71 public function insert($enterpriseId, $pageId, StoreCluster $postBody, $optParams = []) 72 { 73 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody]; 74 $params = array_merge($params, $optParams); 75 return $this->call('insert', [$params], StoreCluster::class); 76 } 77 /** 78 * Retrieves the details of all clusters on the specified page. 79 * (storelayoutclusters.listStorelayoutclusters) 80 * 81 * @param string $enterpriseId The ID of the enterprise. 82 * @param string $pageId The ID of the page. 83 * @param array $optParams Optional parameters. 84 * @return StoreLayoutClustersListResponse 85 */ 86 public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = []) 87 { 88 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId]; 89 $params = array_merge($params, $optParams); 90 return $this->call('list', [$params], StoreLayoutClustersListResponse::class); 91 } 92 /** 93 * Updates a cluster. (storelayoutclusters.update) 94 * 95 * @param string $enterpriseId The ID of the enterprise. 96 * @param string $pageId The ID of the page. 97 * @param string $clusterId The ID of the cluster. 98 * @param StoreCluster $postBody 99 * @param array $optParams Optional parameters. 100 * @return StoreCluster 101 */ 102 public function update($enterpriseId, $pageId, $clusterId, StoreCluster $postBody, $optParams = []) 103 { 104 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody]; 105 $params = array_merge($params, $optParams); 106 return $this->call('update', [$params], StoreCluster::class); 107 } 108} 109 110// Adding a class alias for backwards compatibility with the previous class name. 111class_alias(Storelayoutclusters::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutclusters'); 112