Interface IMediaResponse
Captures the APIs for responses associated with media resource in the Azure Cosmos DB service. Interface exposed for mocking purposes.
public interface IMediaResponse
- Extension Methods
Properties
ActivityId
Gets the Activity ID for the request associated with the media resource in the Azure Cosmos DB service.
string ActivityId { get; }
Property Value
- string
The Activity ID for the request.
ContentLength
Gets the HTTP ContentLength header value for the response associated with the media resource in the Azure Cosmos DB service.
long ContentLength { get; }
Property Value
- long
The HTTP ContentLength header value.
ContentType
Gets the HTTP ContentType header value for the response associated with the media resource in the Azure Cosmos DB service.
string ContentType { get; }
Property Value
- string
The HTTP ContentType header value.
CurrentMediaStorageUsageInMB
Gets the current attachment content (media) usage in megabytes for the media resource in the Azure Cosmos DB service.
long CurrentMediaStorageUsageInMB { get; }
Property Value
- long
The current attachment content (media) usage in megabytes.
Remarks
This value is retrieved from the gateway. The value is returned from cached information updated periodically and is not guaranteed to be real time.
MaxMediaStorageUsageInMB
Gets the attachment content (media) storage quota in megabytes for the media resource in the Azure Cosmos DB service. Retrieved from gateway.
long MaxMediaStorageUsageInMB { get; }
Property Value
- long
The attachment content (media) storage quota in megabytes.
Media
Gets the attachment content stream for the media resource in the Azure Cosmos DB service.
Stream Media { get; }
Property Value
- Stream
The attachment content stream.
ResponseHeaders
Gets the headers associated with the response associated with the media resource in the Azure Cosmos DB service.
NameValueCollection ResponseHeaders { get; }
Property Value
- NameValueCollection
The headers associated with the response.
Slug
Gets the HTTP slug header value for the response associcated with the media resource in the Azure Cosmos DB service.
string Slug { get; }
Property Value
- string
The HTTP slug header value.