Class EditsResource.ExpansionfilesResource
The "expansionfiles" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class EditsResource.ExpansionfilesResource
Constructors
ExpansionfilesResource(IClientService)
Constructs a new resource.
Declaration
public ExpansionfilesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Get(string, string, int, ExpansionFileTypeEnum)
Fetches the expansion file configuration for the specified APK.
Declaration
public virtual EditsResource.ExpansionfilesResource.GetRequest Get(string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.GetRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
int | apkVersionCode | The version code of the APK whose expansion file configuration is being read or modified. |
EditsResource.ExpansionfilesResource.GetRequest.ExpansionFileTypeEnum | expansionFileType | The file type of the file configuration which is being read or modified. |
Returns
Type | Description |
---|---|
EditsResource.ExpansionfilesResource.GetRequest |
Patch(ExpansionFile, string, string, int, ExpansionFileTypeEnum)
Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method.
Declaration
public virtual EditsResource.ExpansionfilesResource.PatchRequest Patch(ExpansionFile body, string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.PatchRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type | Name | Description |
---|---|---|
ExpansionFile | body | The body of the request. |
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
int | apkVersionCode | The version code of the APK whose expansion file configuration is being read or modified. |
EditsResource.ExpansionfilesResource.PatchRequest.ExpansionFileTypeEnum | expansionFileType | The file type of the expansion file configuration which is being updated. |
Returns
Type | Description |
---|---|
EditsResource.ExpansionfilesResource.PatchRequest |
Update(ExpansionFile, string, string, int, ExpansionFileTypeEnum)
Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method.
Declaration
public virtual EditsResource.ExpansionfilesResource.UpdateRequest Update(ExpansionFile body, string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.UpdateRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type | Name | Description |
---|---|---|
ExpansionFile | body | The body of the request. |
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
int | apkVersionCode | The version code of the APK whose expansion file configuration is being read or modified. |
EditsResource.ExpansionfilesResource.UpdateRequest.ExpansionFileTypeEnum | expansionFileType | The file type of the file configuration which is being read or modified. |
Returns
Type | Description |
---|---|
EditsResource.ExpansionfilesResource.UpdateRequest |
Upload(string, string, int, ExpansionFileTypeEnum, Stream, string)
Uploads a new expansion file and attaches to the specified APK.
Declaration
public virtual EditsResource.ExpansionfilesResource.UploadMediaUpload Upload(string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.UploadMediaUpload.ExpansionFileTypeEnum expansionFileType, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
int | apkVersionCode | The version code of the APK whose expansion file configuration is being read or modified. |
EditsResource.ExpansionfilesResource.UploadMediaUpload.ExpansionFileTypeEnum | expansionFileType | The file type of the expansion file configuration which is being updated. |
Stream | stream | The stream to upload. See remarks for further information. |
string | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
EditsResource.ExpansionfilesResource.UploadMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
stream
open until the upload is completed - Caller is responsible for closing the
stream
Upload(string, string, int, ExpansionFileTypeEnum)
Uploads a new expansion file and attaches to the specified APK.
Declaration
public virtual EditsResource.ExpansionfilesResource.UploadRequest Upload(string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.UploadRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type | Name | Description |
---|---|---|
string | packageName | Package name of the app. |
string | editId | Identifier of the edit. |
int | apkVersionCode | The version code of the APK whose expansion file configuration is being read or modified. |
EditsResource.ExpansionfilesResource.UploadRequest.ExpansionFileTypeEnum | expansionFileType | The file type of the expansion file configuration which is being updated. |
Returns
Type | Description |
---|---|
EditsResource.ExpansionfilesResource.UploadRequest |