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\AndroidPublisher\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\AndroidPublisher\Testers;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "testers" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $androidpublisherService = new Google\Service\AndroidPublisher(...);
|
---|
27 | * $testers = $androidpublisherService->edits_testers;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class EditsTesters extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Gets testers. Note: Testers resource does not support email lists.
|
---|
34 | * (testers.get)
|
---|
35 | *
|
---|
36 | * @param string $packageName Package name of the app.
|
---|
37 | * @param string $editId Identifier of the edit.
|
---|
38 | * @param string $track The track to read from.
|
---|
39 | * @param array $optParams Optional parameters.
|
---|
40 | * @return Testers
|
---|
41 | * @throws \Google\Service\Exception
|
---|
42 | */
|
---|
43 | public function get($packageName, $editId, $track, $optParams = [])
|
---|
44 | {
|
---|
45 | $params = ['packageName' => $packageName, 'editId' => $editId, 'track' => $track];
|
---|
46 | $params = array_merge($params, $optParams);
|
---|
47 | return $this->call('get', [$params], Testers::class);
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * Patches testers. Note: Testers resource does not support email lists.
|
---|
51 | * (testers.patch)
|
---|
52 | *
|
---|
53 | * @param string $packageName Package name of the app.
|
---|
54 | * @param string $editId Identifier of the edit.
|
---|
55 | * @param string $track The track to update.
|
---|
56 | * @param Testers $postBody
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | * @return Testers
|
---|
59 | * @throws \Google\Service\Exception
|
---|
60 | */
|
---|
61 | public function patch($packageName, $editId, $track, Testers $postBody, $optParams = [])
|
---|
62 | {
|
---|
63 | $params = ['packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody];
|
---|
64 | $params = array_merge($params, $optParams);
|
---|
65 | return $this->call('patch', [$params], Testers::class);
|
---|
66 | }
|
---|
67 | /**
|
---|
68 | * Updates testers. Note: Testers resource does not support email lists.
|
---|
69 | * (testers.update)
|
---|
70 | *
|
---|
71 | * @param string $packageName Package name of the app.
|
---|
72 | * @param string $editId Identifier of the edit.
|
---|
73 | * @param string $track The track to update.
|
---|
74 | * @param Testers $postBody
|
---|
75 | * @param array $optParams Optional parameters.
|
---|
76 | * @return Testers
|
---|
77 | * @throws \Google\Service\Exception
|
---|
78 | */
|
---|
79 | public function update($packageName, $editId, $track, Testers $postBody, $optParams = [])
|
---|
80 | {
|
---|
81 | $params = ['packageName' => $packageName, 'editId' => $editId, 'track' => $track, 'postBody' => $postBody];
|
---|
82 | $params = array_merge($params, $optParams);
|
---|
83 | return $this->call('update', [$params], Testers::class);
|
---|
84 | }
|
---|
85 | }
|
---|
86 |
|
---|
87 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
88 | class_alias(EditsTesters::class, 'Google_Service_AndroidPublisher_Resource_EditsTesters');
|
---|