Show / Hide Table of Contents

Class EditsResource.ExpansionfilesResource

The "expansionfiles" collection of methods.

Inheritance
System.Object
EditsResource.ExpansionfilesResource
Namespace: Google.Apis.AndroidPublisher.v2
Assembly: Google.Apis.AndroidPublisher.v2.dll
Syntax
public class ExpansionfilesResource : object

Constructors

ExpansionfilesResource(IClientService)

Constructs a new resource.

Declaration
public ExpansionfilesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(String, String, Int32, EditsResource.ExpansionfilesResource.GetRequest.ExpansionFileTypeEnum)

Fetches the Expansion File configuration for the APK specified.

Declaration
public virtual EditsResource.ExpansionfilesResource.GetRequest Get(string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.GetRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type Name Description
System.String packageName

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.Int32 apkVersionCode

The version code of the APK whose Expansion File configuration is being read or modified.

EditsResource.ExpansionfilesResource.GetRequest.ExpansionFileTypeEnum expansionFileType
Returns
Type Description
EditsResource.ExpansionfilesResource.GetRequest

Patch(ExpansionFile, String, String, Int32, EditsResource.ExpansionfilesResource.PatchRequest.ExpansionFileTypeEnum)

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.

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.

System.String packageName

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.Int32 apkVersionCode

The version code of the APK whose Expansion File configuration is being read or modified.

EditsResource.ExpansionfilesResource.PatchRequest.ExpansionFileTypeEnum expansionFileType
Returns
Type Description
EditsResource.ExpansionfilesResource.PatchRequest

Update(ExpansionFile, String, String, Int32, EditsResource.ExpansionfilesResource.UpdateRequest.ExpansionFileTypeEnum)

Updates the APK's Expansion File configuration to reference another APK's Expansion Files. 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.

System.String packageName

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.Int32 apkVersionCode

The version code of the APK whose Expansion File configuration is being read or modified.

EditsResource.ExpansionfilesResource.UpdateRequest.ExpansionFileTypeEnum expansionFileType
Returns
Type Description
EditsResource.ExpansionfilesResource.UpdateRequest

Upload(String, String, Int32, EditsResource.ExpansionfilesResource.UploadMediaUpload.ExpansionFileTypeEnum, Stream, String)

Uploads and attaches a new Expansion File to the APK specified.

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
System.String packageName

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.Int32 apkVersionCode

The version code of the APK whose Expansion File configuration is being read or modified.

EditsResource.ExpansionfilesResource.UploadMediaUpload.ExpansionFileTypeEnum expansionFileType
System.IO.Stream stream

The stream to upload. See remarks for further information.

System.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 to 0 before reading commences. If stream 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, Int32, EditsResource.ExpansionfilesResource.UploadRequest.ExpansionFileTypeEnum)

Uploads and attaches a new Expansion File to the APK specified.

Declaration
public virtual EditsResource.ExpansionfilesResource.UploadRequest Upload(string packageName, string editId, int apkVersionCode, EditsResource.ExpansionfilesResource.UploadRequest.ExpansionFileTypeEnum expansionFileType)
Parameters
Type Name Description
System.String packageName

Unique identifier for the Android app that is being updated; for example, "com.spiffygame".

System.String editId

Unique identifier for this edit.

System.Int32 apkVersionCode

The version code of the APK whose Expansion File configuration is being read or modified.

EditsResource.ExpansionfilesResource.UploadRequest.ExpansionFileTypeEnum expansionFileType
Returns
Type Description
EditsResource.ExpansionfilesResource.UploadRequest
Back to top