source: vendor/google/apiclient-services/src/AndroidEnterprise/Resource/Storelayoutpages.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload new project files

  • Property mode set to 100644
File size: 4.0 KB
Line 
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\StoreLayoutPagesListResponse;
21use Google\Service\AndroidEnterprise\StorePage;
22
23/**
24 * The "storelayoutpages" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
28 * $storelayoutpages = $androidenterpriseService->storelayoutpages;
29 * </code>
30 */
31class Storelayoutpages extends \Google\Service\Resource
32{
33 /**
34 * Deletes a store page. (storelayoutpages.delete)
35 *
36 * @param string $enterpriseId The ID of the enterprise.
37 * @param string $pageId The ID of the page.
38 * @param array $optParams Optional parameters.
39 * @throws \Google\Service\Exception
40 */
41 public function delete($enterpriseId, $pageId, $optParams = [])
42 {
43 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
44 $params = array_merge($params, $optParams);
45 return $this->call('delete', [$params]);
46 }
47 /**
48 * Retrieves details of a store page. (storelayoutpages.get)
49 *
50 * @param string $enterpriseId The ID of the enterprise.
51 * @param string $pageId The ID of the page.
52 * @param array $optParams Optional parameters.
53 * @return StorePage
54 * @throws \Google\Service\Exception
55 */
56 public function get($enterpriseId, $pageId, $optParams = [])
57 {
58 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId];
59 $params = array_merge($params, $optParams);
60 return $this->call('get', [$params], StorePage::class);
61 }
62 /**
63 * Inserts a new store page. (storelayoutpages.insert)
64 *
65 * @param string $enterpriseId The ID of the enterprise.
66 * @param StorePage $postBody
67 * @param array $optParams Optional parameters.
68 * @return StorePage
69 * @throws \Google\Service\Exception
70 */
71 public function insert($enterpriseId, StorePage $postBody, $optParams = [])
72 {
73 $params = ['enterpriseId' => $enterpriseId, 'postBody' => $postBody];
74 $params = array_merge($params, $optParams);
75 return $this->call('insert', [$params], StorePage::class);
76 }
77 /**
78 * Retrieves the details of all pages in the store.
79 * (storelayoutpages.listStorelayoutpages)
80 *
81 * @param string $enterpriseId The ID of the enterprise.
82 * @param array $optParams Optional parameters.
83 * @return StoreLayoutPagesListResponse
84 * @throws \Google\Service\Exception
85 */
86 public function listStorelayoutpages($enterpriseId, $optParams = [])
87 {
88 $params = ['enterpriseId' => $enterpriseId];
89 $params = array_merge($params, $optParams);
90 return $this->call('list', [$params], StoreLayoutPagesListResponse::class);
91 }
92 /**
93 * Updates the content of a store page. (storelayoutpages.update)
94 *
95 * @param string $enterpriseId The ID of the enterprise.
96 * @param string $pageId The ID of the page.
97 * @param StorePage $postBody
98 * @param array $optParams Optional parameters.
99 * @return StorePage
100 * @throws \Google\Service\Exception
101 */
102 public function update($enterpriseId, $pageId, StorePage $postBody, $optParams = [])
103 {
104 $params = ['enterpriseId' => $enterpriseId, 'pageId' => $pageId, 'postBody' => $postBody];
105 $params = array_merge($params, $optParams);
106 return $this->call('update', [$params], StorePage::class);
107 }
108}
109
110// Adding a class alias for backwards compatibility with the previous class name.
111class_alias(Storelayoutpages::class, 'Google_Service_AndroidEnterprise_Resource_Storelayoutpages');
Note: See TracBrowser for help on using the repository browser.