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

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

Upload project files

  • Property mode set to 100644
File size: 2.9 KB
RevLine 
[e3d4e0a]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\InternalAppSharingArtifact;
21
22/**
23 * The "internalappsharingartifacts" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $androidpublisherService = new Google\Service\AndroidPublisher(...);
27 * $internalappsharingartifacts = $androidpublisherService->internalappsharingartifacts;
28 * </code>
29 */
30class Internalappsharingartifacts extends \Google\Service\Resource
31{
32 /**
33 * Uploads an APK to internal app sharing. If you are using the Google API
34 * client libraries, please increase the timeout of the http request before
35 * calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
36 * and Errors](https://developers.google.com/api-client-library/java/google-api-
37 * java-client/errors) for an example in java.
38 * (internalappsharingartifacts.uploadapk)
39 *
40 * @param string $packageName Package name of the app.
41 * @param array $optParams Optional parameters.
42 * @return InternalAppSharingArtifact
43 * @throws \Google\Service\Exception
44 */
45 public function uploadapk($packageName, $optParams = [])
46 {
47 $params = ['packageName' => $packageName];
48 $params = array_merge($params, $optParams);
49 return $this->call('uploadapk', [$params], InternalAppSharingArtifact::class);
50 }
51 /**
52 * Uploads an app bundle to internal app sharing. If you are using the Google
53 * API client libraries, please increase the timeout of the http request before
54 * calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts
55 * and Errors](https://developers.google.com/api-client-library/java/google-api-
56 * java-client/errors) for an example in java.
57 * (internalappsharingartifacts.uploadbundle)
58 *
59 * @param string $packageName Package name of the app.
60 * @param array $optParams Optional parameters.
61 * @return InternalAppSharingArtifact
62 * @throws \Google\Service\Exception
63 */
64 public function uploadbundle($packageName, $optParams = [])
65 {
66 $params = ['packageName' => $packageName];
67 $params = array_merge($params, $optParams);
68 return $this->call('uploadbundle', [$params], InternalAppSharingArtifact::class);
69 }
70}
71
72// Adding a class alias for backwards compatibility with the previous class name.
73class_alias(Internalappsharingartifacts::class, 'Google_Service_AndroidPublisher_Resource_Internalappsharingartifacts');
Note: See TracBrowser for help on using the repository browser.