source: vendor/google/apiclient-services/src/AndroidPublisher/Resource/EditsApks.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 3.3 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\Apk;
21use Google\Service\AndroidPublisher\ApksAddExternallyHostedRequest;
22use Google\Service\AndroidPublisher\ApksAddExternallyHostedResponse;
23use Google\Service\AndroidPublisher\ApksListResponse;
24
25/**
26 * The "apks" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $androidpublisherService = new Google\Service\AndroidPublisher(...);
30 * $apks = $androidpublisherService->edits_apks;
31 * </code>
32 */
33class EditsApks extends \Google\Service\Resource
34{
35 /**
36 * Creates a new APK without uploading the APK itself to Google Play, instead
37 * hosting the APK at a specified URL. This function is only available to
38 * organizations using Managed Play whose application is configured to restrict
39 * distribution to the organizations. (apks.addexternallyhosted)
40 *
41 * @param string $packageName Package name of the app.
42 * @param string $editId Identifier of the edit.
43 * @param ApksAddExternallyHostedRequest $postBody
44 * @param array $optParams Optional parameters.
45 * @return ApksAddExternallyHostedResponse
46 * @throws \Google\Service\Exception
47 */
48 public function addexternallyhosted($packageName, $editId, ApksAddExternallyHostedRequest $postBody, $optParams = [])
49 {
50 $params = ['packageName' => $packageName, 'editId' => $editId, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('addexternallyhosted', [$params], ApksAddExternallyHostedResponse::class);
53 }
54 /**
55 * Lists all current APKs of the app and edit. (apks.listEditsApks)
56 *
57 * @param string $packageName Package name of the app.
58 * @param string $editId Identifier of the edit.
59 * @param array $optParams Optional parameters.
60 * @return ApksListResponse
61 * @throws \Google\Service\Exception
62 */
63 public function listEditsApks($packageName, $editId, $optParams = [])
64 {
65 $params = ['packageName' => $packageName, 'editId' => $editId];
66 $params = array_merge($params, $optParams);
67 return $this->call('list', [$params], ApksListResponse::class);
68 }
69 /**
70 * Uploads an APK and adds to the current edit. (apks.upload)
71 *
72 * @param string $packageName Package name of the app.
73 * @param string $editId Identifier of the edit.
74 * @param array $optParams Optional parameters.
75 * @return Apk
76 * @throws \Google\Service\Exception
77 */
78 public function upload($packageName, $editId, $optParams = [])
79 {
80 $params = ['packageName' => $packageName, 'editId' => $editId];
81 $params = array_merge($params, $optParams);
82 return $this->call('upload', [$params], Apk::class);
83 }
84}
85
86// Adding a class alias for backwards compatibility with the previous class name.
87class_alias(EditsApks::class, 'Google_Service_AndroidPublisher_Resource_EditsApks');
Note: See TracBrowser for help on using the repository browser.