createRelatedMedia

open fun createRelatedMedia(entity: EntityValue, content: StreamBase, parent: EntityValue, property: Property)

See createRelatedMedia(EntityValue, StreamBase, EntityValue, Property, HttpHeaders?, RequestOptions?).

Parameters

entity

Entity parameter.

content

Content parameter.

parent

Parent parameter.

property

Property parameter.


open fun createRelatedMedia(entity: EntityValue, content: StreamBase, parent: EntityValue, property: Property, headers: HttpHeaders?)

See createRelatedMedia(EntityValue, StreamBase, EntityValue, Property, HttpHeaders?, RequestOptions?).

Parameters

entity

Entity parameter.

content

Content parameter.

parent

Parent parameter.

property

Property parameter.

headers

Headers parameter.


open fun createRelatedMedia(entity: EntityValue, content: StreamBase, parent: EntityValue, property: Property, headers: HttpHeaders?, options: RequestOptions?)

Add a pending created media entity to the change set, related to a parent entity via a parent navigation property.

Parameters

entity

Entity to be created.

content

Initial content. Must be a {@link com.sap.cloud.mobile.kotlin.odata.ByteStream} or {@link com.sap.cloud.mobile.kotlin.odata.CharStream}. Will be closed before this function returns.

parent

Previously created parent entity.

property

Parent's navigation property.

headers

(nullable) Optional request-specific headers.

options

(nullable) Optional request-specific options.