github.com/muxinc/mux-go@v1.1.1/model_upload.go (about) 1 // Mux Go - Copyright 2019 Mux Inc. 2 // NOTE: This file is auto generated. Do not edit this file manually. 3 4 package muxgo 5 6 type Upload struct { 7 // Unique identifier for the Direct Upload. 8 Id string `json:"id,omitempty"` 9 // Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` 10 Timeout int32 `json:"timeout,omitempty"` 11 Status string `json:"status,omitempty"` 12 NewAssetSettings Asset `json:"new_asset_settings,omitempty"` 13 // Only set once the upload is in the `asset_created` state. 14 AssetId string `json:"asset_id,omitempty"` 15 Error UploadError `json:"error,omitempty"` 16 // If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. 17 CorsOrigin string `json:"cors_origin,omitempty"` 18 // The URL to upload the associated source media to. 19 Url string `json:"url,omitempty"` 20 // Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset. 21 Test bool `json:"test,omitempty"` 22 }