[I] HttpOperationFileBody
The type of an HTTP body that is a file upload or download.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Modifier | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|---|
bodyKind | readonly | "file" | - | - | - |
contents | readonly | ModelProperty & object | The contents property. | - | - |
contentTypeProperty | readonly | ModelProperty | The contentType property. | HttpOperationBodyBase.contentTypeProperty | - |
contentTypes | readonly | string[] | The list of inner media types of the file. In other words, what kind of files can be returned. This is determined by the contentType property of the file model. | HttpOperationBodyBase.contentTypes | - |
filename | readonly | ModelProperty | The filename property. | - | - |
isText | readonly | boolean | Whether the file contents should be represented as a string or raw byte stream. True if the contents property is a string, false if it is bytes. Emitters may choose to represent textual files as strings or streams of textual characters. If this property is false, emitters must expect that the contents may contain non-textual data. | - | - |
property? | readonly | ModelProperty | The payload property that defined this body, if any. | - | HttpOperationBodyBase.property |
type | readonly | Model | The model type of the body that is or extends Http.File. | - | - |