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\AppEdit;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * The "edits" collection of methods.
|
---|
24 | * Typical usage is:
|
---|
25 | * <code>
|
---|
26 | * $androidpublisherService = new Google\Service\AndroidPublisher(...);
|
---|
27 | * $edits = $androidpublisherService->edits;
|
---|
28 | * </code>
|
---|
29 | */
|
---|
30 | class Edits extends \Google\Service\Resource
|
---|
31 | {
|
---|
32 | /**
|
---|
33 | * Commits an app edit. (edits.commit)
|
---|
34 | *
|
---|
35 | * @param string $packageName Package name of the app.
|
---|
36 | * @param string $editId Identifier of the edit.
|
---|
37 | * @param array $optParams Optional parameters.
|
---|
38 | *
|
---|
39 | * @opt_param bool changesNotSentForReview Indicates that the changes in this
|
---|
40 | * edit will not be reviewed until they are explicitly sent for review from the
|
---|
41 | * Google Play Console UI. These changes will be added to any other changes that
|
---|
42 | * are not yet sent for review.
|
---|
43 | * @return AppEdit
|
---|
44 | * @throws \Google\Service\Exception
|
---|
45 | */
|
---|
46 | public function commit($packageName, $editId, $optParams = [])
|
---|
47 | {
|
---|
48 | $params = ['packageName' => $packageName, 'editId' => $editId];
|
---|
49 | $params = array_merge($params, $optParams);
|
---|
50 | return $this->call('commit', [$params], AppEdit::class);
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * Deletes an app edit. (edits.delete)
|
---|
54 | *
|
---|
55 | * @param string $packageName Package name of the app.
|
---|
56 | * @param string $editId Identifier of the edit.
|
---|
57 | * @param array $optParams Optional parameters.
|
---|
58 | * @throws \Google\Service\Exception
|
---|
59 | */
|
---|
60 | public function delete($packageName, $editId, $optParams = [])
|
---|
61 | {
|
---|
62 | $params = ['packageName' => $packageName, 'editId' => $editId];
|
---|
63 | $params = array_merge($params, $optParams);
|
---|
64 | return $this->call('delete', [$params]);
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * Gets an app edit. (edits.get)
|
---|
68 | *
|
---|
69 | * @param string $packageName Package name of the app.
|
---|
70 | * @param string $editId Identifier of the edit.
|
---|
71 | * @param array $optParams Optional parameters.
|
---|
72 | * @return AppEdit
|
---|
73 | * @throws \Google\Service\Exception
|
---|
74 | */
|
---|
75 | public function get($packageName, $editId, $optParams = [])
|
---|
76 | {
|
---|
77 | $params = ['packageName' => $packageName, 'editId' => $editId];
|
---|
78 | $params = array_merge($params, $optParams);
|
---|
79 | return $this->call('get', [$params], AppEdit::class);
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * Creates a new edit for an app. (edits.insert)
|
---|
83 | *
|
---|
84 | * @param string $packageName Package name of the app.
|
---|
85 | * @param AppEdit $postBody
|
---|
86 | * @param array $optParams Optional parameters.
|
---|
87 | * @return AppEdit
|
---|
88 | * @throws \Google\Service\Exception
|
---|
89 | */
|
---|
90 | public function insert($packageName, AppEdit $postBody, $optParams = [])
|
---|
91 | {
|
---|
92 | $params = ['packageName' => $packageName, 'postBody' => $postBody];
|
---|
93 | $params = array_merge($params, $optParams);
|
---|
94 | return $this->call('insert', [$params], AppEdit::class);
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * Validates an app edit. (edits.validate)
|
---|
98 | *
|
---|
99 | * @param string $packageName Package name of the app.
|
---|
100 | * @param string $editId Identifier of the edit.
|
---|
101 | * @param array $optParams Optional parameters.
|
---|
102 | * @return AppEdit
|
---|
103 | * @throws \Google\Service\Exception
|
---|
104 | */
|
---|
105 | public function validate($packageName, $editId, $optParams = [])
|
---|
106 | {
|
---|
107 | $params = ['packageName' => $packageName, 'editId' => $editId];
|
---|
108 | $params = array_merge($params, $optParams);
|
---|
109 | return $this->call('validate', [$params], AppEdit::class);
|
---|
110 | }
|
---|
111 | }
|
---|
112 |
|
---|
113 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
114 | class_alias(Edits::class, 'Google_Service_AndroidPublisher_Resource_Edits');
|
---|