ComputerVisionClientGenerateThumbnailOptionalParams interface
Optional Parameters.
- Extends
-
RequestOptionsBase
Properties
| abort |
The signal which can be used to abort requests. |
| custom |
{object} [customHeaders] User defined custom request headers that will be applied before the request is sent. |
| model |
Optional parameter to specify the version of the AI model. Accepted values are: "latest", "2021-04-01", "2021-05-01". Defaults to "latest". Default value: 'latest'. |
| on |
Callback which fires upon download progress. |
| on |
Callback which fires upon upload progress. |
| smart |
Boolean flag for enabling smart cropping. Default value: false. |
| timeout | The number of milliseconds a request can take before automatically being terminated. |
Property Details
abortSignal
The signal which can be used to abort requests.
abortSignal?: AbortSignalLike
Property Value
AbortSignalLike
customHeaders
{object} [customHeaders] User defined custom request headers that will be applied before the request is sent.
customHeaders?: undefined | [key: string]: string
Property Value
undefined | [key: string]: string
modelVersion
Optional parameter to specify the version of the AI model. Accepted values are: "latest", "2021-04-01", "2021-05-01". Defaults to "latest". Default value: 'latest'.
modelVersion?: undefined | string
Property Value
undefined | string
onDownloadProgress
Callback which fires upon download progress.
onDownloadProgress?: undefined | (progress: TransferProgressEvent) => void
Property Value
undefined | (progress: TransferProgressEvent) => void
onUploadProgress
Callback which fires upon upload progress.
onUploadProgress?: undefined | (progress: TransferProgressEvent) => void
Property Value
undefined | (progress: TransferProgressEvent) => void
smartCropping
Boolean flag for enabling smart cropping. Default value: false.
smartCropping?: undefined | false | true
Property Value
undefined | false | true
timeout
The number of milliseconds a request can take before automatically being terminated.
timeout?: undefined | number
Property Value
undefined | number