GoogleGAL_Service_AndroidPublisher_EditsExpansionfiles_Resource

The "expansionfiles" collection of methods.

Defined (1)

The class is defined in the following location(s).

/core/Google/Service/AndroidPublisher.php  
  1. class GoogleGAL_Service_AndroidPublisher_EditsExpansionfiles_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Fetches the Expansion File configuration for the APK specified. 
  5. * (expansionfiles.get) 
  6. * @param string $packageName Unique identifier for the Android app that is 
  7. * being updated; for example, "com.spiffygame". 
  8. * @param string $editId Unique identifier for this edit. 
  9. * @param int $apkVersionCode The version code of the APK whose Expansion File 
  10. * configuration is being read or modified. 
  11. * @param string $expansionFileType 
  12. * @param array $optParams Optional parameters. 
  13. * @return GoogleGAL_Service_AndroidPublisher_ExpansionFile 
  14. */ 
  15. public function get($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) 
  16. $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); 
  17. $params = array_merge($params, $optParams); 
  18. return $this->call('get', array($params), "GoogleGAL_Service_AndroidPublisher_ExpansionFile"); 
  19.  
  20. /** 
  21. * Updates the APK's Expansion File configuration to reference another APK's 
  22. * Expansion Files. To add a new Expansion File use the Upload method. This 
  23. * method supports patch semantics. (expansionfiles.patch) 
  24. * @param string $packageName Unique identifier for the Android app that is 
  25. * being updated; for example, "com.spiffygame". 
  26. * @param string $editId Unique identifier for this edit. 
  27. * @param int $apkVersionCode The version code of the APK whose Expansion File 
  28. * configuration is being read or modified. 
  29. * @param string $expansionFileType 
  30. * @param GoogleGAL_ExpansionFile $postBody 
  31. * @param array $optParams Optional parameters. 
  32. * @return GoogleGAL_Service_AndroidPublisher_ExpansionFile 
  33. */ 
  34. public function patch($packageName, $editId, $apkVersionCode, $expansionFileType, GoogleGAL_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) 
  35. $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); 
  36. $params = array_merge($params, $optParams); 
  37. return $this->call('patch', array($params), "GoogleGAL_Service_AndroidPublisher_ExpansionFile"); 
  38.  
  39. /** 
  40. * Updates the APK's Expansion File configuration to reference another APK's 
  41. * Expansion Files. To add a new Expansion File use the Upload method. 
  42. * (expansionfiles.update) 
  43. * @param string $packageName Unique identifier for the Android app that is 
  44. * being updated; for example, "com.spiffygame". 
  45. * @param string $editId Unique identifier for this edit. 
  46. * @param int $apkVersionCode The version code of the APK whose Expansion File 
  47. * configuration is being read or modified. 
  48. * @param string $expansionFileType 
  49. * @param GoogleGAL_ExpansionFile $postBody 
  50. * @param array $optParams Optional parameters. 
  51. * @return GoogleGAL_Service_AndroidPublisher_ExpansionFile 
  52. */ 
  53. public function update($packageName, $editId, $apkVersionCode, $expansionFileType, GoogleGAL_Service_AndroidPublisher_ExpansionFile $postBody, $optParams = array()) 
  54. $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType, 'postBody' => $postBody); 
  55. $params = array_merge($params, $optParams); 
  56. return $this->call('update', array($params), "GoogleGAL_Service_AndroidPublisher_ExpansionFile"); 
  57.  
  58. /** 
  59. * Uploads and attaches a new Expansion File to the APK specified. 
  60. * (expansionfiles.upload) 
  61. * @param string $packageName Unique identifier for the Android app that is 
  62. * being updated; for example, "com.spiffygame". 
  63. * @param string $editId Unique identifier for this edit. 
  64. * @param int $apkVersionCode The version code of the APK whose Expansion File 
  65. * configuration is being read or modified. 
  66. * @param string $expansionFileType 
  67. * @param array $optParams Optional parameters. 
  68. * @return GoogleGAL_Service_AndroidPublisher_ExpansionFilesUploadResponse 
  69. */ 
  70. public function upload($packageName, $editId, $apkVersionCode, $expansionFileType, $optParams = array()) 
  71. $params = array('packageName' => $packageName, 'editId' => $editId, 'apkVersionCode' => $apkVersionCode, 'expansionFileType' => $expansionFileType); 
  72. $params = array_merge($params, $optParams); 
  73. return $this->call('upload', array($params), "GoogleGAL_Service_AndroidPublisher_ExpansionFilesUploadResponse");