Class MediaResource
The "media" collection of methods.
Inherited Members
Namespace: Google.Apis.FirebaseAppDistribution.v1
Assembly: Google.Apis.FirebaseAppDistribution.v1.dll
Syntax
public class MediaResource
Constructors
MediaResource(IClientService)
Constructs a new resource.
Declaration
public MediaResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Upload(GoogleFirebaseAppdistroV1UploadReleaseRequest, string)
Uploads a binary. Uploading a binary can result in a new release being created, an update to an existing release, or a no-op if a release with the same binary already exists.
Declaration
public virtual MediaResource.UploadRequest Upload(GoogleFirebaseAppdistroV1UploadReleaseRequest body, string app)
Parameters
Type | Name | Description |
---|---|---|
GoogleFirebaseAppdistroV1UploadReleaseRequest | body | The body of the request. |
string | app | The name of the app resource. Format: |
Returns
Type | Description |
---|---|
MediaResource.UploadRequest |
Upload(GoogleFirebaseAppdistroV1UploadReleaseRequest, string, Stream, string)
Uploads a binary. Uploading a binary can result in a new release being created, an update to an existing release, or a no-op if a release with the same binary already exists.
Declaration
public virtual MediaResource.UploadMediaUpload Upload(GoogleFirebaseAppdistroV1UploadReleaseRequest body, string app, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
GoogleFirebaseAppdistroV1UploadReleaseRequest | body | The body of the request. |
string | app | The name of the app resource. Format: |
Stream | stream | The stream to upload. See remarks for further information. |
string | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
MediaResource.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