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 */ 44 public function uploadapk($packageName, $optParams = []) 45 { 46 $params = ['packageName' => $packageName]; 47 $params = array_merge($params, $optParams); 48 return $this->call('uploadapk', [$params], InternalAppSharingArtifact::class); 49 } 50 /** 51 * Uploads an app bundle to internal app sharing. If you are using the Google 52 * API client libraries, please increase the timeout of the http request before 53 * calling this endpoint (a timeout of 2 minutes is recommended). See [Timeouts 54 * and Errors](https://developers.google.com/api-client-library/java/google-api- 55 * java-client/errors) for an example in java. 56 * (internalappsharingartifacts.uploadbundle) 57 * 58 * @param string $packageName Package name of the app. 59 * @param array $optParams Optional parameters. 60 * @return InternalAppSharingArtifact 61 */ 62 public function uploadbundle($packageName, $optParams = []) 63 { 64 $params = ['packageName' => $packageName]; 65 $params = array_merge($params, $optParams); 66 return $this->call('uploadbundle', [$params], InternalAppSharingArtifact::class); 67 } 68} 69 70// Adding a class alias for backwards compatibility with the previous class name. 71class_alias(Internalappsharingartifacts::class, 'Google_Service_AndroidPublisher_Resource_Internalappsharingartifacts'); 72