blob: 05358d0051275f4d632ccf5bb64ba0e16c5d5c02 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Nathaniel Manista4f877e52015-06-15 16:44:50 +000075<h1><a href="androidpublisher_v2.html">Google Play Developer API</a> . <a href="androidpublisher_v2.edits.html">edits</a> . <a href="androidpublisher_v2.edits.expansionfiles.html">expansionfiles</a></h1>
Craig Citro065b5302014-08-14 00:47:23 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(packageName, editId, apkVersionCode, expansionFileType)</a></code></p>
79<p class="firstline">Fetches the Expansion File configuration for the APK specified.</p>
80<p class="toc_element">
81 <code><a href="#patch">patch(packageName, editId, apkVersionCode, expansionFileType, body)</a></code></p>
82<p class="firstline">Updates the APK's Expansion File configuration to reference another APK's Expansion Files. To add a new Expansion File use the Upload method. This method supports patch semantics.</p>
83<p class="toc_element">
84 <code><a href="#update">update(packageName, editId, apkVersionCode, expansionFileType, body)</a></code></p>
85<p class="firstline">Updates the APK's Expansion File configuration to reference another APK's Expansion Files. To add a new Expansion File use the Upload method.</p>
86<p class="toc_element">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080087 <code><a href="#upload">upload(packageName, editId, apkVersionCode, expansionFileType, media_body=None, media_mime_type=None)</a></code></p>
Craig Citro065b5302014-08-14 00:47:23 -070088<p class="firstline">Uploads and attaches a new Expansion File to the APK specified.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="get">get(packageName, editId, apkVersionCode, expansionFileType)</code>
92 <pre>Fetches the Expansion File configuration for the APK specified.
93
94Args:
95 packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
96 editId: string, Unique identifier for this edit. (required)
97 apkVersionCode: integer, The version code of the APK whose Expansion File configuration is being read or modified. (required)
98 expansionFileType: string, A parameter (required)
99 Allowed values
100 main -
101 patch -
102
103Returns:
104 An object of the form:
105
106 {
107 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
108 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
109 }</pre>
110</div>
111
112<div class="method">
113 <code class="details" id="patch">patch(packageName, editId, apkVersionCode, expansionFileType, body)</code>
114 <pre>Updates the APK's Expansion File configuration to reference another APK's Expansion Files. To add a new Expansion File use the Upload method. This method supports patch semantics.
115
116Args:
117 packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
118 editId: string, Unique identifier for this edit. (required)
119 apkVersionCode: integer, The version code of the APK whose Expansion File configuration is being read or modified. (required)
120 expansionFileType: string, A parameter (required)
121 Allowed values
122 main -
123 patch -
124 body: object, The request body. (required)
125 The object takes the form of:
126
127{
128 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
129 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
130 }
131
132
133Returns:
134 An object of the form:
135
136 {
137 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
138 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
139 }</pre>
140</div>
141
142<div class="method">
143 <code class="details" id="update">update(packageName, editId, apkVersionCode, expansionFileType, body)</code>
144 <pre>Updates the APK's Expansion File configuration to reference another APK's Expansion Files. To add a new Expansion File use the Upload method.
145
146Args:
147 packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
148 editId: string, Unique identifier for this edit. (required)
149 apkVersionCode: integer, The version code of the APK whose Expansion File configuration is being read or modified. (required)
150 expansionFileType: string, A parameter (required)
151 Allowed values
152 main -
153 patch -
154 body: object, The request body. (required)
155 The object takes the form of:
156
157{
158 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
159 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
160 }
161
162
163Returns:
164 An object of the form:
165
166 {
167 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
168 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
169 }</pre>
170</div>
171
172<div class="method">
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800173 <code class="details" id="upload">upload(packageName, editId, apkVersionCode, expansionFileType, media_body=None, media_mime_type=None)</code>
Craig Citro065b5302014-08-14 00:47:23 -0700174 <pre>Uploads and attaches a new Expansion File to the APK specified.
175
176Args:
177 packageName: string, Unique identifier for the Android app that is being updated; for example, "com.spiffygame". (required)
178 editId: string, Unique identifier for this edit. (required)
179 apkVersionCode: integer, The version code of the APK whose Expansion File configuration is being read or modified. (required)
180 expansionFileType: string, A parameter (required)
181 Allowed values
182 main -
183 patch -
184 media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800185 media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object.
Craig Citro065b5302014-08-14 00:47:23 -0700186
187Returns:
188 An object of the form:
189
190 {
191 "expansionFile": {
192 "referencesVersion": 42, # If set this APK's Expansion File references another APK's Expansion File. The file_size field will not be set.
193 "fileSize": "A String", # If set this field indicates that this APK has an Expansion File uploaded to it: this APK does not reference another APK's Expansion File. The field's value is the size of the uploaded Expansion File in bytes.
194 },
195 }</pre>
196</div>
197
198</body></html>