source: vendor/google/apiclient-services/src/AndroidPublisher/Resource/EditsListings.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 6 weeks ago

Upload project files

  • Property mode set to 100644
File size: 5.1 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\AndroidPublisher\Resource;
19
20use Google\Service\AndroidPublisher\Listing;
21use Google\Service\AndroidPublisher\ListingsListResponse;
22
23/**
24 * The "listings" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $androidpublisherService = new Google\Service\AndroidPublisher(...);
28 * $listings = $androidpublisherService->edits_listings;
29 * </code>
30 */
31class EditsListings extends \Google\Service\Resource
32{
33 /**
34 * Deletes a localized store listing. (listings.delete)
35 *
36 * @param string $packageName Package name of the app.
37 * @param string $editId Identifier of the edit.
38 * @param string $language Language localization code (a BCP-47 language tag;
39 * for example, "de-AT" for Austrian German).
40 * @param array $optParams Optional parameters.
41 * @throws \Google\Service\Exception
42 */
43 public function delete($packageName, $editId, $language, $optParams = [])
44 {
45 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language];
46 $params = array_merge($params, $optParams);
47 return $this->call('delete', [$params]);
48 }
49 /**
50 * Deletes all store listings. (listings.deleteall)
51 *
52 * @param string $packageName Package name of the app.
53 * @param string $editId Identifier of the edit.
54 * @param array $optParams Optional parameters.
55 * @throws \Google\Service\Exception
56 */
57 public function deleteall($packageName, $editId, $optParams = [])
58 {
59 $params = ['packageName' => $packageName, 'editId' => $editId];
60 $params = array_merge($params, $optParams);
61 return $this->call('deleteall', [$params]);
62 }
63 /**
64 * Gets a localized store listing. (listings.get)
65 *
66 * @param string $packageName Package name of the app.
67 * @param string $editId Identifier of the edit.
68 * @param string $language Language localization code (a BCP-47 language tag;
69 * for example, "de-AT" for Austrian German).
70 * @param array $optParams Optional parameters.
71 * @return Listing
72 * @throws \Google\Service\Exception
73 */
74 public function get($packageName, $editId, $language, $optParams = [])
75 {
76 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language];
77 $params = array_merge($params, $optParams);
78 return $this->call('get', [$params], Listing::class);
79 }
80 /**
81 * Lists all localized store listings. (listings.listEditsListings)
82 *
83 * @param string $packageName Package name of the app.
84 * @param string $editId Identifier of the edit.
85 * @param array $optParams Optional parameters.
86 * @return ListingsListResponse
87 * @throws \Google\Service\Exception
88 */
89 public function listEditsListings($packageName, $editId, $optParams = [])
90 {
91 $params = ['packageName' => $packageName, 'editId' => $editId];
92 $params = array_merge($params, $optParams);
93 return $this->call('list', [$params], ListingsListResponse::class);
94 }
95 /**
96 * Patches a localized store listing. (listings.patch)
97 *
98 * @param string $packageName Package name of the app.
99 * @param string $editId Identifier of the edit.
100 * @param string $language Language localization code (a BCP-47 language tag;
101 * for example, "de-AT" for Austrian German).
102 * @param Listing $postBody
103 * @param array $optParams Optional parameters.
104 * @return Listing
105 * @throws \Google\Service\Exception
106 */
107 public function patch($packageName, $editId, $language, Listing $postBody, $optParams = [])
108 {
109 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody];
110 $params = array_merge($params, $optParams);
111 return $this->call('patch', [$params], Listing::class);
112 }
113 /**
114 * Creates or updates a localized store listing. (listings.update)
115 *
116 * @param string $packageName Package name of the app.
117 * @param string $editId Identifier of the edit.
118 * @param string $language Language localization code (a BCP-47 language tag;
119 * for example, "de-AT" for Austrian German).
120 * @param Listing $postBody
121 * @param array $optParams Optional parameters.
122 * @return Listing
123 * @throws \Google\Service\Exception
124 */
125 public function update($packageName, $editId, $language, Listing $postBody, $optParams = [])
126 {
127 $params = ['packageName' => $packageName, 'editId' => $editId, 'language' => $language, 'postBody' => $postBody];
128 $params = array_merge($params, $optParams);
129 return $this->call('update', [$params], Listing::class);
130 }
131}
132
133// Adding a class alias for backwards compatibility with the previous class name.
134class_alias(EditsListings::class, 'Google_Service_AndroidPublisher_Resource_EditsListings');
Note: See TracBrowser for help on using the repository browser.