[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\AndroidEnterprise\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\AndroidEnterprise\StoreCluster;
|
---|
| 21 | use 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 | */
|
---|
| 31 | class 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 | * @throws \Google\Service\Exception
|
---|
| 41 | */
|
---|
| 42 | public function delete($enterpriseId, $pageId, $clusterId, $optParams = [])
|
---|
| 43 | {
|
---|
| 44 | $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId];
|
---|
| 45 | $params = array_merge($params, $optParams);
|
---|
| 46 | return $this->call('delete', [$params]);
|
---|
| 47 | }
|
---|
| 48 | /**
|
---|
| 49 | * Retrieves details of a cluster. (storelayoutclusters.get)
|
---|
| 50 | *
|
---|
| 51 | * @param string $enterpriseId The ID of the enterprise.
|
---|
| 52 | * @param string $pageId The ID of the page.
|
---|
| 53 | * @param string $clusterId The ID of the cluster.
|
---|
| 54 | * @param array $optParams Optional parameters.
|
---|
| 55 | * @return StoreCluster
|
---|
| 56 | * @throws \Google\Service\Exception
|
---|
| 57 | */
|
---|
| 58 | public function get($enterpriseId, $pageId, $clusterId, $optParams = [])
|
---|
| 59 | {
|
---|
| 60 | $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId];
|
---|
| 61 | $params = array_merge($params, $optParams);
|
---|
| 62 | return $this->call('get', [$params], StoreCluster::class);
|
---|
| 63 | }
|
---|
| 64 | /**
|
---|
| 65 | * Inserts a new cluster in a page. (storelayoutclusters.insert)
|
---|
| 66 | *
|
---|
| 67 | * @param string $enterpriseId The ID of the enterprise.
|
---|
| 68 | * @param string $pageId The ID of the page.
|
---|
| 69 | * @param StoreCluster $postBody
|
---|
| 70 | * @param array $optParams Optional parameters.
|
---|
| 71 | * @return StoreCluster
|
---|
| 72 | * @throws \Google\Service\Exception
|
---|
| 73 | */
|
---|
| 74 | public function insert($enterpriseId, $pageId, StoreCluster $postBody, $optParams = [])
|
---|
| 75 | {
|
---|
| 76 | $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody];
|
---|
| 77 | $params = array_merge($params, $optParams);
|
---|
| 78 | return $this->call('insert', [$params], StoreCluster::class);
|
---|
| 79 | }
|
---|
| 80 | /**
|
---|
| 81 | * Retrieves the details of all clusters on the specified page.
|
---|
| 82 | * (storelayoutclusters.listStorelayoutclusters)
|
---|
| 83 | *
|
---|
| 84 | * @param string $enterpriseId The ID of the enterprise.
|
---|
| 85 | * @param string $pageId The ID of the page.
|
---|
| 86 | * @param array $optParams Optional parameters.
|
---|
| 87 | * @return StoreLayoutClustersListResponse
|
---|
| 88 | * @throws \Google\Service\Exception
|
---|
| 89 | */
|
---|
| 90 | public function listStorelayoutclusters($enterpriseId, $pageId, $optParams = [])
|
---|
| 91 | {
|
---|
| 92 | $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
|
---|
| 93 | $params = array_merge($params, $optParams);
|
---|
| 94 | return $this->call('list', [$params], StoreLayoutClustersListResponse::class);
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * Updates a cluster. (storelayoutclusters.update)
|
---|
| 98 | *
|
---|
| 99 | * @param string $enterpriseId The ID of the enterprise.
|
---|
| 100 | * @param string $pageId The ID of the page.
|
---|
| 101 | * @param string $clusterId The ID of the cluster.
|
---|
| 102 | * @param StoreCluster $postBody
|
---|
| 103 | * @param array $optParams Optional parameters.
|
---|
| 104 | * @return StoreCluster
|
---|
| 105 | * @throws \Google\Service\Exception
|
---|
| 106 | */
|
---|
| 107 | public function update($enterpriseId, $pageId, $clusterId, StoreCluster $postBody, $optParams = [])
|
---|
| 108 | {
|
---|
| 109 | $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'clusterId' => $clusterId, 'postBody' => $postBody];
|
---|
| 110 | $params = array_merge($params, $optParams);
|
---|
| 111 | return $this->call('update', [$params], StoreCluster::class);
|
---|
| 112 | }
|
---|
| 113 | }
|
---|
| 114 |
|
---|
| 115 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 116 | class_alias(Storelayoutclusters::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutclusters');
|
---|