Show / Hide Table of Contents

Class EditsResource.ExpansionfilesResource

The "expansionfiles" collection of methods.

Inheritance
System.Object
EditsResource.ExpansionfilesResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class ExpansionfilesResource

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 specified APK.

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

Package name of the app.

System.String editId

Identifier of the edit.

System.Int32 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, Int32, EditsResource.ExpansionfilesResource.PatchRequest.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.

System.String packageName

Package name of the app.

System.String editId

Identifier of the edit.

System.Int32 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, Int32, EditsResource.ExpansionfilesResource.UpdateRequest.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.

System.String packageName

Package name of the app.

System.String editId

Identifier of the edit.

System.Int32 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, Int32, EditsResource.ExpansionfilesResource.UploadMediaUpload.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
System.String packageName

Package name of the app.

System.String editId

Identifier of the edit.

System.Int32 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.

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

Package name of the app.

System.String editId

Identifier of the edit.

System.Int32 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
In This Article
Back to top Generated by DocFX