Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Bytes(b []byte) *[]byte
- func Complex64(c complex64) *complex64
- func Complex128(c complex128) *complex128
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int8(i int8) *int8
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Ptr[T any](v T) *T
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint8(u uint8) *uint8
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uintptr(u uintptr) *uintptr
- type APIKey
- func (a *APIKey) GetCreatedAt() int
- func (a *APIKey) GetCreatedBy() *APIKeyCreatedBy
- func (a *APIKey) GetDisabledAt() *int
- func (a *APIKey) GetDisabledBy() *APIKeyDisabledBy
- func (a *APIKey) GetEnabled() bool
- func (a *APIKey) GetExpiresAt() *int
- func (a *APIKey) GetExtraProperties() map[string]interface{}
- func (a *APIKey) GetID() string
- func (a *APIKey) GetLastUsedAt() *int
- func (a *APIKey) GetManageable() bool
- func (a *APIKey) GetName() string
- func (a *APIKey) GetPrefix() string
- func (a *APIKey) GetScopes() []string
- func (a *APIKey) MarshalJSON() ([]byte, error)
- func (a *APIKey) SetCreatedAt(createdAt int)
- func (a *APIKey) SetCreatedBy(createdBy *APIKeyCreatedBy)
- func (a *APIKey) SetDisabledAt(disabledAt *int)
- func (a *APIKey) SetDisabledBy(disabledBy *APIKeyDisabledBy)
- func (a *APIKey) SetEnabled(enabled bool)
- func (a *APIKey) SetExpiresAt(expiresAt *int)
- func (a *APIKey) SetID(id string)
- func (a *APIKey) SetLastUsedAt(lastUsedAt *int)
- func (a *APIKey) SetManageable(manageable bool)
- func (a *APIKey) SetName(name string)
- func (a *APIKey) SetPrefix(prefix string)
- func (a *APIKey) SetScopes(scopes []string)
- func (a *APIKey) String() string
- func (a *APIKey) UnmarshalJSON(data []byte) error
- type APIKeyCreatedBy
- func (a *APIKeyCreatedBy) GetEmail() *string
- func (a *APIKeyCreatedBy) GetExtraProperties() map[string]interface{}
- func (a *APIKeyCreatedBy) GetInWorkspace() bool
- func (a *APIKeyCreatedBy) GetName() string
- func (a *APIKeyCreatedBy) GetRole() *APIKeyCreatedByRole
- func (a *APIKeyCreatedBy) MarshalJSON() ([]byte, error)
- func (a *APIKeyCreatedBy) SetEmail(email *string)
- func (a *APIKeyCreatedBy) SetInWorkspace(inWorkspace bool)
- func (a *APIKeyCreatedBy) SetName(name string)
- func (a *APIKeyCreatedBy) SetRole(role *APIKeyCreatedByRole)
- func (a *APIKeyCreatedBy) String() string
- func (a *APIKeyCreatedBy) UnmarshalJSON(data []byte) error
- type APIKeyCreatedByRole
- type APIKeyDisabledBy
- func (a *APIKeyDisabledBy) GetExtraProperties() map[string]interface{}
- func (a *APIKeyDisabledBy) GetName() string
- func (a *APIKeyDisabledBy) MarshalJSON() ([]byte, error)
- func (a *APIKeyDisabledBy) SetName(name string)
- func (a *APIKeyDisabledBy) String() string
- func (a *APIKeyDisabledBy) UnmarshalJSON(data []byte) error
- type BadRequestError
- type BalanceDepletedData
- func (b *BalanceDepletedData) GetBalance() int
- func (b *BalanceDepletedData) GetBalanceFormatted() string
- func (b *BalanceDepletedData) GetExtraProperties() map[string]interface{}
- func (b *BalanceDepletedData) GetTriggeredByJobID() string
- func (b *BalanceDepletedData) GetTriggeredByJobType() string
- func (b *BalanceDepletedData) MarshalJSON() ([]byte, error)
- func (b *BalanceDepletedData) SetBalance(balance int)
- func (b *BalanceDepletedData) SetBalanceFormatted(balanceFormatted string)
- func (b *BalanceDepletedData) SetTriggeredByJobID(triggeredByJobID string)
- func (b *BalanceDepletedData) SetTriggeredByJobType(triggeredByJobType string)
- func (b *BalanceDepletedData) String() string
- func (b *BalanceDepletedData) UnmarshalJSON(data []byte) error
- type BalanceDepletedWebhookEvent
- func (b *BalanceDepletedWebhookEvent) GetData() *BalanceDepletedData
- func (b *BalanceDepletedWebhookEvent) GetDeliveryID() string
- func (b *BalanceDepletedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (b *BalanceDepletedWebhookEvent) GetOrgID() string
- func (b *BalanceDepletedWebhookEvent) GetTimestamp() int
- func (b *BalanceDepletedWebhookEvent) GetVersion() BalanceDepletedWebhookEventVersion
- func (b *BalanceDepletedWebhookEvent) MarshalJSON() ([]byte, error)
- func (b *BalanceDepletedWebhookEvent) SetData(data *BalanceDepletedData)
- func (b *BalanceDepletedWebhookEvent) SetDeliveryID(deliveryID string)
- func (b *BalanceDepletedWebhookEvent) SetOrgID(orgID string)
- func (b *BalanceDepletedWebhookEvent) SetTimestamp(timestamp int)
- func (b *BalanceDepletedWebhookEvent) SetVersion(version BalanceDepletedWebhookEventVersion)
- func (b *BalanceDepletedWebhookEvent) String() string
- func (b *BalanceDepletedWebhookEvent) UnmarshalJSON(data []byte) error
- type BalanceDepletedWebhookEventVersion
- type BalanceLowData
- func (b *BalanceLowData) GetBalance() int
- func (b *BalanceLowData) GetBalanceFormatted() string
- func (b *BalanceLowData) GetExtraProperties() map[string]interface{}
- func (b *BalanceLowData) GetThreshold() int
- func (b *BalanceLowData) GetThresholdFormatted() string
- func (b *BalanceLowData) GetTriggeredByJobID() string
- func (b *BalanceLowData) GetTriggeredByJobType() string
- func (b *BalanceLowData) MarshalJSON() ([]byte, error)
- func (b *BalanceLowData) SetBalance(balance int)
- func (b *BalanceLowData) SetBalanceFormatted(balanceFormatted string)
- func (b *BalanceLowData) SetThreshold(threshold int)
- func (b *BalanceLowData) SetThresholdFormatted(thresholdFormatted string)
- func (b *BalanceLowData) SetTriggeredByJobID(triggeredByJobID string)
- func (b *BalanceLowData) SetTriggeredByJobType(triggeredByJobType string)
- func (b *BalanceLowData) String() string
- func (b *BalanceLowData) UnmarshalJSON(data []byte) error
- type BalanceLowWebhookEvent
- func (b *BalanceLowWebhookEvent) GetData() *BalanceLowData
- func (b *BalanceLowWebhookEvent) GetDeliveryID() string
- func (b *BalanceLowWebhookEvent) GetExtraProperties() map[string]interface{}
- func (b *BalanceLowWebhookEvent) GetOrgID() string
- func (b *BalanceLowWebhookEvent) GetTimestamp() int
- func (b *BalanceLowWebhookEvent) GetVersion() BalanceLowWebhookEventVersion
- func (b *BalanceLowWebhookEvent) MarshalJSON() ([]byte, error)
- func (b *BalanceLowWebhookEvent) SetData(data *BalanceLowData)
- func (b *BalanceLowWebhookEvent) SetDeliveryID(deliveryID string)
- func (b *BalanceLowWebhookEvent) SetOrgID(orgID string)
- func (b *BalanceLowWebhookEvent) SetTimestamp(timestamp int)
- func (b *BalanceLowWebhookEvent) SetVersion(version BalanceLowWebhookEventVersion)
- func (b *BalanceLowWebhookEvent) String() string
- func (b *BalanceLowWebhookEvent) UnmarshalJSON(data []byte) error
- type BalanceLowWebhookEventVersion
- type CallbackStatus
- func (c *CallbackStatus) GetExtraProperties() map[string]interface{}
- func (c *CallbackStatus) GetStatus() CallbackStatusStatus
- func (c *CallbackStatus) MarshalJSON() ([]byte, error)
- func (c *CallbackStatus) SetStatus(status CallbackStatusStatus)
- func (c *CallbackStatus) String() string
- func (c *CallbackStatus) UnmarshalJSON(data []byte) error
- type CallbackStatusStatus
- type CancelJobRequest
- type CancelJobResponse
- func (c *CancelJobResponse) GetData() *CancelJobResponseData
- func (c *CancelJobResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelJobResponse) MarshalJSON() ([]byte, error)
- func (c *CancelJobResponse) SetData(data *CancelJobResponseData)
- func (c *CancelJobResponse) String() string
- func (c *CancelJobResponse) UnmarshalJSON(data []byte) error
- type CancelJobResponseData
- func (c *CancelJobResponseData) GetExtraProperties() map[string]interface{}
- func (c *CancelJobResponseData) GetID() string
- func (c *CancelJobResponseData) GetStatus() CancelJobResponseDataStatus
- func (c *CancelJobResponseData) MarshalJSON() ([]byte, error)
- func (c *CancelJobResponseData) SetID(id string)
- func (c *CancelJobResponseData) SetStatus(status CancelJobResponseDataStatus)
- func (c *CancelJobResponseData) String() string
- func (c *CancelJobResponseData) UnmarshalJSON(data []byte) error
- type CancelJobResponseDataStatus
- type CaptionBurnParams
- func (c *CaptionBurnParams) GetAlignment() *CaptionBurnParamsAlignment
- func (c *CaptionBurnParams) GetBold() *bool
- func (c *CaptionBurnParams) GetBoxColor() *string
- func (c *CaptionBurnParams) GetBoxEnabled() *bool
- func (c *CaptionBurnParams) GetBoxOpacity() *float64
- func (c *CaptionBurnParams) GetExtraProperties() map[string]interface{}
- func (c *CaptionBurnParams) GetFont() *string
- func (c *CaptionBurnParams) GetFontColor() *string
- func (c *CaptionBurnParams) GetFontFamily() *string
- func (c *CaptionBurnParams) GetFontSize() *int
- func (c *CaptionBurnParams) GetItalic() *bool
- func (c *CaptionBurnParams) GetLanguage() *CaptionBurnParamsLanguage
- func (c *CaptionBurnParams) GetMarginH() *int
- func (c *CaptionBurnParams) GetMarginV() *int
- func (c *CaptionBurnParams) GetMaxCharsPerLine() *int
- func (c *CaptionBurnParams) GetOutlineColor() *string
- func (c *CaptionBurnParams) GetOutlineWidth() *float64
- func (c *CaptionBurnParams) GetPosition() *CaptionBurnParamsPosition
- func (c *CaptionBurnParams) GetShadow() *float64
- func (c *CaptionBurnParams) MarshalJSON() ([]byte, error)
- func (c *CaptionBurnParams) SetAlignment(alignment *CaptionBurnParamsAlignment)
- func (c *CaptionBurnParams) SetBold(bold *bool)
- func (c *CaptionBurnParams) SetBoxColor(boxColor *string)
- func (c *CaptionBurnParams) SetBoxEnabled(boxEnabled *bool)
- func (c *CaptionBurnParams) SetBoxOpacity(boxOpacity *float64)
- func (c *CaptionBurnParams) SetFont(font *string)
- func (c *CaptionBurnParams) SetFontColor(fontColor *string)
- func (c *CaptionBurnParams) SetFontFamily(fontFamily *string)
- func (c *CaptionBurnParams) SetFontSize(fontSize *int)
- func (c *CaptionBurnParams) SetItalic(italic *bool)
- func (c *CaptionBurnParams) SetLanguage(language *CaptionBurnParamsLanguage)
- func (c *CaptionBurnParams) SetMarginH(marginH *int)
- func (c *CaptionBurnParams) SetMarginV(marginV *int)
- func (c *CaptionBurnParams) SetMaxCharsPerLine(maxCharsPerLine *int)
- func (c *CaptionBurnParams) SetOutlineColor(outlineColor *string)
- func (c *CaptionBurnParams) SetOutlineWidth(outlineWidth *float64)
- func (c *CaptionBurnParams) SetPosition(position *CaptionBurnParamsPosition)
- func (c *CaptionBurnParams) SetShadow(shadow *float64)
- func (c *CaptionBurnParams) String() string
- func (c *CaptionBurnParams) UnmarshalJSON(data []byte) error
- type CaptionBurnParamsAlignment
- type CaptionBurnParamsLanguage
- type CaptionBurnParamsPosition
- type CaptionsAnimateParams
- func (c *CaptionsAnimateParams) GetAutoEmphasis() *bool
- func (c *CaptionsAnimateParams) GetCaptionData() *bool
- func (c *CaptionsAnimateParams) GetExtraProperties() map[string]interface{}
- func (c *CaptionsAnimateParams) GetLanguage() *CaptionsAnimateParamsLanguage
- func (c *CaptionsAnimateParams) GetMode() *CaptionsAnimateParamsMode
- func (c *CaptionsAnimateParams) GetPreset() *CaptionsAnimateParamsPreset
- func (c *CaptionsAnimateParams) GetStyle() *CaptionsAnimateParamsStyle
- func (c *CaptionsAnimateParams) GetTranslateTo() *CaptionsAnimateParamsTranslateTo
- func (c *CaptionsAnimateParams) MarshalJSON() ([]byte, error)
- func (c *CaptionsAnimateParams) SetAutoEmphasis(autoEmphasis *bool)
- func (c *CaptionsAnimateParams) SetCaptionData(captionData *bool)
- func (c *CaptionsAnimateParams) SetLanguage(language *CaptionsAnimateParamsLanguage)
- func (c *CaptionsAnimateParams) SetMode(mode *CaptionsAnimateParamsMode)
- func (c *CaptionsAnimateParams) SetPreset(preset *CaptionsAnimateParamsPreset)
- func (c *CaptionsAnimateParams) SetStyle(style *CaptionsAnimateParamsStyle)
- func (c *CaptionsAnimateParams) SetTranslateTo(translateTo *CaptionsAnimateParamsTranslateTo)
- func (c *CaptionsAnimateParams) String() string
- func (c *CaptionsAnimateParams) UnmarshalJSON(data []byte) error
- type CaptionsAnimateParamsLanguage
- type CaptionsAnimateParamsMode
- type CaptionsAnimateParamsPreset
- type CaptionsAnimateParamsStyle
- func (c *CaptionsAnimateParamsStyle) GetBold() *bool
- func (c *CaptionsAnimateParamsStyle) GetCase() *CaptionsAnimateParamsStyleCase
- func (c *CaptionsAnimateParamsStyle) GetEmphasis() *CaptionsAnimateParamsStyleEmphasis
- func (c *CaptionsAnimateParamsStyle) GetEntrance() *CaptionsAnimateParamsStyleEntrance
- func (c *CaptionsAnimateParamsStyle) GetExtraProperties() map[string]interface{}
- func (c *CaptionsAnimateParamsStyle) GetFill() *string
- func (c *CaptionsAnimateParamsStyle) GetFont() *string
- func (c *CaptionsAnimateParamsStyle) GetFontSize() *int
- func (c *CaptionsAnimateParamsStyle) GetHighlight() *CaptionsAnimateParamsStyleHighlight
- func (c *CaptionsAnimateParamsStyle) GetLayout() *CaptionsAnimateParamsStyleLayout
- func (c *CaptionsAnimateParamsStyle) GetMarginV() *int
- func (c *CaptionsAnimateParamsStyle) GetPosition() *CaptionsAnimateParamsStylePosition
- func (c *CaptionsAnimateParamsStyle) GetPunctuation() *CaptionsAnimateParamsStylePunctuation
- func (c *CaptionsAnimateParamsStyle) GetShadow() *float64
- func (c *CaptionsAnimateParamsStyle) GetStroke() *CaptionsAnimateParamsStyleStroke
- func (c *CaptionsAnimateParamsStyle) MarshalJSON() ([]byte, error)
- func (c *CaptionsAnimateParamsStyle) SetBold(bold *bool)
- func (c *CaptionsAnimateParamsStyle) SetCase(case_ *CaptionsAnimateParamsStyleCase)
- func (c *CaptionsAnimateParamsStyle) SetEmphasis(emphasis *CaptionsAnimateParamsStyleEmphasis)
- func (c *CaptionsAnimateParamsStyle) SetEntrance(entrance *CaptionsAnimateParamsStyleEntrance)
- func (c *CaptionsAnimateParamsStyle) SetFill(fill *string)
- func (c *CaptionsAnimateParamsStyle) SetFont(font *string)
- func (c *CaptionsAnimateParamsStyle) SetFontSize(fontSize *int)
- func (c *CaptionsAnimateParamsStyle) SetHighlight(highlight *CaptionsAnimateParamsStyleHighlight)
- func (c *CaptionsAnimateParamsStyle) SetLayout(layout *CaptionsAnimateParamsStyleLayout)
- func (c *CaptionsAnimateParamsStyle) SetMarginV(marginV *int)
- func (c *CaptionsAnimateParamsStyle) SetPosition(position *CaptionsAnimateParamsStylePosition)
- func (c *CaptionsAnimateParamsStyle) SetPunctuation(punctuation *CaptionsAnimateParamsStylePunctuation)
- func (c *CaptionsAnimateParamsStyle) SetShadow(shadow *float64)
- func (c *CaptionsAnimateParamsStyle) SetStroke(stroke *CaptionsAnimateParamsStyleStroke)
- func (c *CaptionsAnimateParamsStyle) String() string
- func (c *CaptionsAnimateParamsStyle) UnmarshalJSON(data []byte) error
- type CaptionsAnimateParamsStyleCase
- type CaptionsAnimateParamsStyleEmphasis
- func (c *CaptionsAnimateParamsStyleEmphasis) GetColor() string
- func (c *CaptionsAnimateParamsStyleEmphasis) GetExtraProperties() map[string]interface{}
- func (c *CaptionsAnimateParamsStyleEmphasis) MarshalJSON() ([]byte, error)
- func (c *CaptionsAnimateParamsStyleEmphasis) SetColor(color string)
- func (c *CaptionsAnimateParamsStyleEmphasis) String() string
- func (c *CaptionsAnimateParamsStyleEmphasis) UnmarshalJSON(data []byte) error
- type CaptionsAnimateParamsStyleEntrance
- type CaptionsAnimateParamsStyleHighlight
- func (c *CaptionsAnimateParamsStyleHighlight) GetColor() *string
- func (c *CaptionsAnimateParamsStyleHighlight) GetExtraProperties() map[string]interface{}
- func (c *CaptionsAnimateParamsStyleHighlight) GetMode() *CaptionsAnimateParamsStyleHighlightMode
- func (c *CaptionsAnimateParamsStyleHighlight) GetScale() *float64
- func (c *CaptionsAnimateParamsStyleHighlight) GetTextColor() *string
- func (c *CaptionsAnimateParamsStyleHighlight) MarshalJSON() ([]byte, error)
- func (c *CaptionsAnimateParamsStyleHighlight) SetColor(color *string)
- func (c *CaptionsAnimateParamsStyleHighlight) SetMode(mode *CaptionsAnimateParamsStyleHighlightMode)
- func (c *CaptionsAnimateParamsStyleHighlight) SetScale(scale *float64)
- func (c *CaptionsAnimateParamsStyleHighlight) SetTextColor(textColor *string)
- func (c *CaptionsAnimateParamsStyleHighlight) String() string
- func (c *CaptionsAnimateParamsStyleHighlight) UnmarshalJSON(data []byte) error
- type CaptionsAnimateParamsStyleHighlightMode
- type CaptionsAnimateParamsStyleLayout
- type CaptionsAnimateParamsStylePosition
- type CaptionsAnimateParamsStylePunctuation
- type CaptionsAnimateParamsStyleStroke
- func (c *CaptionsAnimateParamsStyleStroke) GetColor() string
- func (c *CaptionsAnimateParamsStyleStroke) GetExtraProperties() map[string]interface{}
- func (c *CaptionsAnimateParamsStyleStroke) GetWidth() float64
- func (c *CaptionsAnimateParamsStyleStroke) MarshalJSON() ([]byte, error)
- func (c *CaptionsAnimateParamsStyleStroke) SetColor(color string)
- func (c *CaptionsAnimateParamsStyleStroke) SetWidth(width float64)
- func (c *CaptionsAnimateParamsStyleStroke) String() string
- func (c *CaptionsAnimateParamsStyleStroke) UnmarshalJSON(data []byte) error
- type CaptionsAnimateParamsTranslateTo
- type CompressTargetParams
- func (c *CompressTargetParams) GetAlpha() *CompressTargetParamsAlpha
- func (c *CompressTargetParams) GetAudio() *CompressTargetParamsAudio
- func (c *CompressTargetParams) GetCodec() *CompressTargetParamsCodec
- func (c *CompressTargetParams) GetColorspace() *CompressTargetParamsColorspace
- func (c *CompressTargetParams) GetCompatibility() *CompressTargetParamsCompatibility
- func (c *CompressTargetParams) GetDryRun() *bool
- func (c *CompressTargetParams) GetEffort() *CompressTargetParamsEffort
- func (c *CompressTargetParams) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParams) GetFor() *CompressTargetParamsFor
- func (c *CompressTargetParams) GetForceReencode() *bool
- func (c *CompressTargetParams) GetMaxResolution() *CompressTargetParamsMaxResolution
- func (c *CompressTargetParams) GetMetadata() *CompressTargetParamsMetadata
- func (c *CompressTargetParams) GetTarget() *CompressTargetParamsTarget
- func (c *CompressTargetParams) GetTimeout() *int
- func (c *CompressTargetParams) GetTuning() *CompressTargetParamsTuning
- func (c *CompressTargetParams) GetVideo() *CompressTargetParamsVideo
- func (c *CompressTargetParams) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParams) SetAlpha(alpha *CompressTargetParamsAlpha)
- func (c *CompressTargetParams) SetAudio(audio *CompressTargetParamsAudio)
- func (c *CompressTargetParams) SetCodec(codec *CompressTargetParamsCodec)
- func (c *CompressTargetParams) SetColorspace(colorspace *CompressTargetParamsColorspace)
- func (c *CompressTargetParams) SetCompatibility(compatibility *CompressTargetParamsCompatibility)
- func (c *CompressTargetParams) SetDryRun(dryRun *bool)
- func (c *CompressTargetParams) SetEffort(effort *CompressTargetParamsEffort)
- func (c *CompressTargetParams) SetFor(for_ *CompressTargetParamsFor)
- func (c *CompressTargetParams) SetForceReencode(forceReencode *bool)
- func (c *CompressTargetParams) SetMaxResolution(maxResolution *CompressTargetParamsMaxResolution)
- func (c *CompressTargetParams) SetMetadata(metadata *CompressTargetParamsMetadata)
- func (c *CompressTargetParams) SetTarget(target *CompressTargetParamsTarget)
- func (c *CompressTargetParams) SetTimeout(timeout *int)
- func (c *CompressTargetParams) SetTuning(tuning *CompressTargetParamsTuning)
- func (c *CompressTargetParams) SetVideo(video *CompressTargetParamsVideo)
- func (c *CompressTargetParams) String() string
- func (c *CompressTargetParams) UnmarshalJSON(data []byte) error
- type CompressTargetParamsAlpha
- func (c *CompressTargetParamsAlpha) Accept(visitor CompressTargetParamsAlphaVisitor) error
- func (c *CompressTargetParamsAlpha) GetCompressTargetParamsAlphaZero() CompressTargetParamsAlphaZero
- func (c *CompressTargetParamsAlpha) GetString() string
- func (c CompressTargetParamsAlpha) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsAlpha) UnmarshalJSON(data []byte) error
- type CompressTargetParamsAlphaVisitor
- type CompressTargetParamsAlphaZero
- type CompressTargetParamsAudio
- func (c *CompressTargetParamsAudio) GetChannels() *CompressTargetParamsAudioChannels
- func (c *CompressTargetParamsAudio) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsAudio) GetLoudnessLufs() *float64
- func (c *CompressTargetParamsAudio) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsAudio) SetChannels(channels *CompressTargetParamsAudioChannels)
- func (c *CompressTargetParamsAudio) SetLoudnessLufs(loudnessLufs *float64)
- func (c *CompressTargetParamsAudio) String() string
- func (c *CompressTargetParamsAudio) UnmarshalJSON(data []byte) error
- type CompressTargetParamsAudioChannels
- type CompressTargetParamsCodec
- type CompressTargetParamsColorspace
- type CompressTargetParamsCompatibility
- type CompressTargetParamsEffort
- type CompressTargetParamsFor
- type CompressTargetParamsMaxResolution
- func (c *CompressTargetParamsMaxResolution) Accept(visitor CompressTargetParamsMaxResolutionVisitor) error
- func (c *CompressTargetParamsMaxResolution) GetCompressTargetParamsMaxResolutionOne() CompressTargetParamsMaxResolutionOne
- func (c *CompressTargetParamsMaxResolution) GetInteger() int
- func (c CompressTargetParamsMaxResolution) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsMaxResolution) UnmarshalJSON(data []byte) error
- type CompressTargetParamsMaxResolutionOne
- type CompressTargetParamsMaxResolutionVisitor
- type CompressTargetParamsMetadata
- type CompressTargetParamsTarget
- func (c *CompressTargetParamsTarget) Accept(visitor CompressTargetParamsTargetVisitor) error
- func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetBitrate() *CompressTargetParamsTargetBitrate
- func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxBytes() *CompressTargetParamsTargetMaxBytes
- func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxSize() *CompressTargetParamsTargetMaxSize
- func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetQuality() *CompressTargetParamsTargetQuality
- func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetZero() CompressTargetParamsTargetZero
- func (c *CompressTargetParamsTarget) GetInteger() int
- func (c CompressTargetParamsTarget) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTarget) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTargetBitrate
- func (c *CompressTargetParamsTargetBitrate) GetBitrate() int
- func (c *CompressTargetParamsTargetBitrate) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsTargetBitrate) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTargetBitrate) SetBitrate(bitrate int)
- func (c *CompressTargetParamsTargetBitrate) String() string
- func (c *CompressTargetParamsTargetBitrate) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTargetMaxBytes
- func (c *CompressTargetParamsTargetMaxBytes) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsTargetMaxBytes) GetMaxBytes() int
- func (c *CompressTargetParamsTargetMaxBytes) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTargetMaxBytes) SetMaxBytes(maxBytes int)
- func (c *CompressTargetParamsTargetMaxBytes) String() string
- func (c *CompressTargetParamsTargetMaxBytes) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTargetMaxSize
- func (c *CompressTargetParamsTargetMaxSize) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsTargetMaxSize) GetMaxSize() string
- func (c *CompressTargetParamsTargetMaxSize) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTargetMaxSize) SetMaxSize(maxSize string)
- func (c *CompressTargetParamsTargetMaxSize) String() string
- func (c *CompressTargetParamsTargetMaxSize) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTargetQuality
- func (c *CompressTargetParamsTargetQuality) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsTargetQuality) GetQuality() int
- func (c *CompressTargetParamsTargetQuality) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTargetQuality) SetQuality(quality int)
- func (c *CompressTargetParamsTargetQuality) String() string
- func (c *CompressTargetParamsTargetQuality) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTargetVisitor
- type CompressTargetParamsTargetZero
- type CompressTargetParamsTuning
- func (c *CompressTargetParamsTuning) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsTuning) GetFloor() *float64
- func (c *CompressTargetParamsTuning) GetMetric() *CompressTargetParamsTuningMetric
- func (c *CompressTargetParamsTuning) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsTuning) SetFloor(floor *float64)
- func (c *CompressTargetParamsTuning) SetMetric(metric *CompressTargetParamsTuningMetric)
- func (c *CompressTargetParamsTuning) String() string
- func (c *CompressTargetParamsTuning) UnmarshalJSON(data []byte) error
- type CompressTargetParamsTuningMetric
- type CompressTargetParamsVideo
- func (c *CompressTargetParamsVideo) GetAudioTracks() *CompressTargetParamsVideoAudioTracks
- func (c *CompressTargetParamsVideo) GetExtraProperties() map[string]interface{}
- func (c *CompressTargetParamsVideo) GetSubtitles() *CompressTargetParamsVideoSubtitles
- func (c *CompressTargetParamsVideo) MarshalJSON() ([]byte, error)
- func (c *CompressTargetParamsVideo) SetAudioTracks(audioTracks *CompressTargetParamsVideoAudioTracks)
- func (c *CompressTargetParamsVideo) SetSubtitles(subtitles *CompressTargetParamsVideoSubtitles)
- func (c *CompressTargetParamsVideo) String() string
- func (c *CompressTargetParamsVideo) UnmarshalJSON(data []byte) error
- type CompressTargetParamsVideoAudioTracks
- type CompressTargetParamsVideoSubtitles
- type ConflictError
- type ConnectorField
- func (c *ConnectorField) GetAdvanced() *bool
- func (c *ConnectorField) GetDefault() any
- func (c *ConnectorField) GetDescription() *string
- func (c *ConnectorField) GetExample() any
- func (c *ConnectorField) GetExtraProperties() map[string]interface{}
- func (c *ConnectorField) GetKey() string
- func (c *ConnectorField) GetLabel() string
- func (c *ConnectorField) GetMax() *float64
- func (c *ConnectorField) GetMaxLength() *int
- func (c *ConnectorField) GetMin() *float64
- func (c *ConnectorField) GetMinLength() *int
- func (c *ConnectorField) GetName() string
- func (c *ConnectorField) GetNullable() *bool
- func (c *ConnectorField) GetOptions() []*ConnectorFieldOptionsItem
- func (c *ConnectorField) GetOrder() *int
- func (c *ConnectorField) GetRequired() bool
- func (c *ConnectorField) GetShowWhen() *ConnectorFieldShowWhen
- func (c *ConnectorField) GetType() ConnectorFieldType
- func (c *ConnectorField) MarshalJSON() ([]byte, error)
- func (c *ConnectorField) SetAdvanced(advanced *bool)
- func (c *ConnectorField) SetDefault(default_ any)
- func (c *ConnectorField) SetDescription(description *string)
- func (c *ConnectorField) SetExample(example any)
- func (c *ConnectorField) SetKey(key string)
- func (c *ConnectorField) SetLabel(label string)
- func (c *ConnectorField) SetMax(max *float64)
- func (c *ConnectorField) SetMaxLength(maxLength *int)
- func (c *ConnectorField) SetMin(min *float64)
- func (c *ConnectorField) SetMinLength(minLength *int)
- func (c *ConnectorField) SetName(name string)
- func (c *ConnectorField) SetNullable(nullable *bool)
- func (c *ConnectorField) SetOptions(options []*ConnectorFieldOptionsItem)
- func (c *ConnectorField) SetOrder(order *int)
- func (c *ConnectorField) SetRequired(required bool)
- func (c *ConnectorField) SetShowWhen(showWhen *ConnectorFieldShowWhen)
- func (c *ConnectorField) SetType(type_ ConnectorFieldType)
- func (c *ConnectorField) String() string
- func (c *ConnectorField) UnmarshalJSON(data []byte) error
- type ConnectorFieldOptionsItem
- func (c *ConnectorFieldOptionsItem) GetExtraProperties() map[string]interface{}
- func (c *ConnectorFieldOptionsItem) GetLabel() string
- func (c *ConnectorFieldOptionsItem) GetValue() string
- func (c *ConnectorFieldOptionsItem) MarshalJSON() ([]byte, error)
- func (c *ConnectorFieldOptionsItem) SetLabel(label string)
- func (c *ConnectorFieldOptionsItem) SetValue(value string)
- func (c *ConnectorFieldOptionsItem) String() string
- func (c *ConnectorFieldOptionsItem) UnmarshalJSON(data []byte) error
- type ConnectorFieldShowWhen
- func (c *ConnectorFieldShowWhen) GetEquals() []string
- func (c *ConnectorFieldShowWhen) GetExtraProperties() map[string]interface{}
- func (c *ConnectorFieldShowWhen) GetField() string
- func (c *ConnectorFieldShowWhen) MarshalJSON() ([]byte, error)
- func (c *ConnectorFieldShowWhen) SetEquals(equals []string)
- func (c *ConnectorFieldShowWhen) SetField(field string)
- func (c *ConnectorFieldShowWhen) String() string
- func (c *ConnectorFieldShowWhen) UnmarshalJSON(data []byte) error
- type ConnectorFieldType
- type ConnectorInput
- func (c *ConnectorInput) GetAdvanced() *bool
- func (c *ConnectorInput) GetDefault() any
- func (c *ConnectorInput) GetDescription() *string
- func (c *ConnectorInput) GetExample() any
- func (c *ConnectorInput) GetExtraProperties() map[string]interface{}
- func (c *ConnectorInput) GetKey() string
- func (c *ConnectorInput) GetLabel() string
- func (c *ConnectorInput) GetMax() *float64
- func (c *ConnectorInput) GetMaxLength() *int
- func (c *ConnectorInput) GetMin() *float64
- func (c *ConnectorInput) GetMinLength() *int
- func (c *ConnectorInput) GetMultiple() *bool
- func (c *ConnectorInput) GetName() string
- func (c *ConnectorInput) GetNullable() *bool
- func (c *ConnectorInput) GetOptions() []*ConnectorFieldOptionsItem
- func (c *ConnectorInput) GetOrder() *int
- func (c *ConnectorInput) GetRequired() bool
- func (c *ConnectorInput) GetShowWhen() *ConnectorFieldShowWhen
- func (c *ConnectorInput) GetType() ConnectorFieldType
- func (c *ConnectorInput) GetURL() *bool
- func (c *ConnectorInput) MarshalJSON() ([]byte, error)
- func (c *ConnectorInput) SetAdvanced(advanced *bool)
- func (c *ConnectorInput) SetDefault(default_ any)
- func (c *ConnectorInput) SetDescription(description *string)
- func (c *ConnectorInput) SetExample(example any)
- func (c *ConnectorInput) SetKey(key string)
- func (c *ConnectorInput) SetLabel(label string)
- func (c *ConnectorInput) SetMax(max *float64)
- func (c *ConnectorInput) SetMaxLength(maxLength *int)
- func (c *ConnectorInput) SetMin(min *float64)
- func (c *ConnectorInput) SetMinLength(minLength *int)
- func (c *ConnectorInput) SetMultiple(multiple *bool)
- func (c *ConnectorInput) SetName(name string)
- func (c *ConnectorInput) SetNullable(nullable *bool)
- func (c *ConnectorInput) SetOptions(options []*ConnectorFieldOptionsItem)
- func (c *ConnectorInput) SetOrder(order *int)
- func (c *ConnectorInput) SetRequired(required bool)
- func (c *ConnectorInput) SetShowWhen(showWhen *ConnectorFieldShowWhen)
- func (c *ConnectorInput) SetType(type_ ConnectorFieldType)
- func (c *ConnectorInput) SetURL(url *bool)
- func (c *ConnectorInput) String() string
- func (c *ConnectorInput) UnmarshalJSON(data []byte) error
- type CreateProCheckoutResponse
- func (c *CreateProCheckoutResponse) GetData() *CreateProCheckoutResponseData
- func (c *CreateProCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateProCheckoutResponse) MarshalJSON() ([]byte, error)
- func (c *CreateProCheckoutResponse) SetData(data *CreateProCheckoutResponseData)
- func (c *CreateProCheckoutResponse) String() string
- func (c *CreateProCheckoutResponse) UnmarshalJSON(data []byte) error
- type CreateProCheckoutResponseData
- func (c *CreateProCheckoutResponseData) GetCheckoutID() string
- func (c *CreateProCheckoutResponseData) GetCheckoutURL() string
- func (c *CreateProCheckoutResponseData) GetExtraProperties() map[string]interface{}
- func (c *CreateProCheckoutResponseData) MarshalJSON() ([]byte, error)
- func (c *CreateProCheckoutResponseData) SetCheckoutID(checkoutID string)
- func (c *CreateProCheckoutResponseData) SetCheckoutURL(checkoutURL string)
- func (c *CreateProCheckoutResponseData) String() string
- func (c *CreateProCheckoutResponseData) UnmarshalJSON(data []byte) error
- type ErrorResponse
- func (e *ErrorResponse) GetError() *ErrorResponseError
- func (e *ErrorResponse) GetExtraProperties() map[string]interface{}
- func (e *ErrorResponse) MarshalJSON() ([]byte, error)
- func (e *ErrorResponse) SetError(error_ *ErrorResponseError)
- func (e *ErrorResponse) String() string
- func (e *ErrorResponse) UnmarshalJSON(data []byte) error
- type ErrorResponseError
- func (e *ErrorResponseError) GetCode() string
- func (e *ErrorResponseError) GetDetails() any
- func (e *ErrorResponseError) GetExtraProperties() map[string]interface{}
- func (e *ErrorResponseError) GetMessage() string
- func (e *ErrorResponseError) MarshalJSON() ([]byte, error)
- func (e *ErrorResponseError) SetCode(code string)
- func (e *ErrorResponseError) SetDetails(details any)
- func (e *ErrorResponseError) SetMessage(message string)
- func (e *ErrorResponseError) String() string
- func (e *ErrorResponseError) UnmarshalJSON(data []byte) error
- type FfmpegParams
- func (f *FfmpegParams) GetCommand() string
- func (f *FfmpegParams) GetCompute() *FfmpegParamsCompute
- func (f *FfmpegParams) GetExtraProperties() map[string]interface{}
- func (f *FfmpegParams) GetTimeout() *int
- func (f *FfmpegParams) MarshalJSON() ([]byte, error)
- func (f *FfmpegParams) SetCommand(command string)
- func (f *FfmpegParams) SetCompute(compute *FfmpegParamsCompute)
- func (f *FfmpegParams) SetTimeout(timeout *int)
- func (f *FfmpegParams) String() string
- func (f *FfmpegParams) UnmarshalJSON(data []byte) error
- type FfmpegParamsCompute
- type FfprobeAudioStream
- func (f *FfprobeAudioStream) GetBitrateBps() *int
- func (f *FfprobeAudioStream) GetChannelLayout() *string
- func (f *FfprobeAudioStream) GetChannels() *int
- func (f *FfprobeAudioStream) GetCodec() *string
- func (f *FfprobeAudioStream) GetExtraProperties() map[string]interface{}
- func (f *FfprobeAudioStream) GetLanguage() *string
- func (f *FfprobeAudioStream) GetProfile() *string
- func (f *FfprobeAudioStream) GetSampleRate() *int
- func (f *FfprobeAudioStream) MarshalJSON() ([]byte, error)
- func (f *FfprobeAudioStream) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeAudioStream) SetChannelLayout(channelLayout *string)
- func (f *FfprobeAudioStream) SetChannels(channels *int)
- func (f *FfprobeAudioStream) SetCodec(codec *string)
- func (f *FfprobeAudioStream) SetLanguage(language *string)
- func (f *FfprobeAudioStream) SetProfile(profile *string)
- func (f *FfprobeAudioStream) SetSampleRate(sampleRate *int)
- func (f *FfprobeAudioStream) String() string
- func (f *FfprobeAudioStream) UnmarshalJSON(data []byte) error
- type FfprobeAudioSummary
- func (f *FfprobeAudioSummary) GetAudio() *FfprobeAudioStream
- func (f *FfprobeAudioSummary) GetBitrateBps() *int
- func (f *FfprobeAudioSummary) GetContainer() *string
- func (f *FfprobeAudioSummary) GetDurationSec() *float64
- func (f *FfprobeAudioSummary) GetExtraProperties() map[string]interface{}
- func (f *FfprobeAudioSummary) GetFormatLongName() *string
- func (f *FfprobeAudioSummary) GetSizeBytes() *int
- func (f *FfprobeAudioSummary) GetStartTimeSec() *float64
- func (f *FfprobeAudioSummary) GetStreamCounts() *FfprobeStreamCounts
- func (f *FfprobeAudioSummary) GetTags() map[string]string
- func (f *FfprobeAudioSummary) MarshalJSON() ([]byte, error)
- func (f *FfprobeAudioSummary) SetAudio(audio *FfprobeAudioStream)
- func (f *FfprobeAudioSummary) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeAudioSummary) SetContainer(container *string)
- func (f *FfprobeAudioSummary) SetDurationSec(durationSec *float64)
- func (f *FfprobeAudioSummary) SetFormatLongName(formatLongName *string)
- func (f *FfprobeAudioSummary) SetSizeBytes(sizeBytes *int)
- func (f *FfprobeAudioSummary) SetStartTimeSec(startTimeSec *float64)
- func (f *FfprobeAudioSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
- func (f *FfprobeAudioSummary) SetTags(tags map[string]string)
- func (f *FfprobeAudioSummary) String() string
- func (f *FfprobeAudioSummary) UnmarshalJSON(data []byte) error
- type FfprobeChapter
- func (f *FfprobeChapter) GetEndTime() *string
- func (f *FfprobeChapter) GetExtraProperties() map[string]interface{}
- func (f *FfprobeChapter) GetID() *int
- func (f *FfprobeChapter) GetStartTime() *string
- func (f *FfprobeChapter) GetTags() map[string]string
- func (f *FfprobeChapter) MarshalJSON() ([]byte, error)
- func (f *FfprobeChapter) SetEndTime(endTime *string)
- func (f *FfprobeChapter) SetID(id *int)
- func (f *FfprobeChapter) SetStartTime(startTime *string)
- func (f *FfprobeChapter) SetTags(tags map[string]string)
- func (f *FfprobeChapter) String() string
- func (f *FfprobeChapter) UnmarshalJSON(data []byte) error
- type FfprobeFormat
- func (f *FfprobeFormat) GetBitRate() *string
- func (f *FfprobeFormat) GetDuration() *string
- func (f *FfprobeFormat) GetExtraProperties() map[string]interface{}
- func (f *FfprobeFormat) GetFilename() *string
- func (f *FfprobeFormat) GetFormatLongName() *string
- func (f *FfprobeFormat) GetFormatName() *string
- func (f *FfprobeFormat) GetNbPrograms() *int
- func (f *FfprobeFormat) GetNbStreams() *int
- func (f *FfprobeFormat) GetProbeScore() *int
- func (f *FfprobeFormat) GetSize() *string
- func (f *FfprobeFormat) GetStartTime() *string
- func (f *FfprobeFormat) GetTags() map[string]string
- func (f *FfprobeFormat) MarshalJSON() ([]byte, error)
- func (f *FfprobeFormat) SetBitRate(bitRate *string)
- func (f *FfprobeFormat) SetDuration(duration *string)
- func (f *FfprobeFormat) SetFilename(filename *string)
- func (f *FfprobeFormat) SetFormatLongName(formatLongName *string)
- func (f *FfprobeFormat) SetFormatName(formatName *string)
- func (f *FfprobeFormat) SetNbPrograms(nbPrograms *int)
- func (f *FfprobeFormat) SetNbStreams(nbStreams *int)
- func (f *FfprobeFormat) SetProbeScore(probeScore *int)
- func (f *FfprobeFormat) SetSize(size *string)
- func (f *FfprobeFormat) SetStartTime(startTime *string)
- func (f *FfprobeFormat) SetTags(tags map[string]string)
- func (f *FfprobeFormat) String() string
- func (f *FfprobeFormat) UnmarshalJSON(data []byte) error
- type FfprobeFrame
- func (f *FfprobeFrame) GetExtraProperties() map[string]interface{}
- func (f *FfprobeFrame) GetMediaType() *string
- func (f *FfprobeFrame) GetStreamIndex() *int
- func (f *FfprobeFrame) MarshalJSON() ([]byte, error)
- func (f *FfprobeFrame) SetMediaType(mediaType *string)
- func (f *FfprobeFrame) SetStreamIndex(streamIndex *int)
- func (f *FfprobeFrame) String() string
- func (f *FfprobeFrame) UnmarshalJSON(data []byte) error
- type FfprobeImageStream
- func (f *FfprobeImageStream) GetBitDepth() *int
- func (f *FfprobeImageStream) GetCodec() *string
- func (f *FfprobeImageStream) GetExtraProperties() map[string]interface{}
- func (f *FfprobeImageStream) GetHeight() *int
- func (f *FfprobeImageStream) GetPixelFormat() *string
- func (f *FfprobeImageStream) GetWidth() *int
- func (f *FfprobeImageStream) MarshalJSON() ([]byte, error)
- func (f *FfprobeImageStream) SetBitDepth(bitDepth *int)
- func (f *FfprobeImageStream) SetCodec(codec *string)
- func (f *FfprobeImageStream) SetHeight(height *int)
- func (f *FfprobeImageStream) SetPixelFormat(pixelFormat *string)
- func (f *FfprobeImageStream) SetWidth(width *int)
- func (f *FfprobeImageStream) String() string
- func (f *FfprobeImageStream) UnmarshalJSON(data []byte) error
- type FfprobeImageSummary
- func (f *FfprobeImageSummary) GetBitrateBps() *int
- func (f *FfprobeImageSummary) GetContainer() *string
- func (f *FfprobeImageSummary) GetDurationSec() *float64
- func (f *FfprobeImageSummary) GetExtraProperties() map[string]interface{}
- func (f *FfprobeImageSummary) GetFormatLongName() *string
- func (f *FfprobeImageSummary) GetImage() *FfprobeImageStream
- func (f *FfprobeImageSummary) GetSizeBytes() *int
- func (f *FfprobeImageSummary) GetStartTimeSec() *float64
- func (f *FfprobeImageSummary) GetStreamCounts() *FfprobeStreamCounts
- func (f *FfprobeImageSummary) GetTags() map[string]string
- func (f *FfprobeImageSummary) MarshalJSON() ([]byte, error)
- func (f *FfprobeImageSummary) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeImageSummary) SetContainer(container *string)
- func (f *FfprobeImageSummary) SetDurationSec(durationSec *float64)
- func (f *FfprobeImageSummary) SetFormatLongName(formatLongName *string)
- func (f *FfprobeImageSummary) SetImage(image *FfprobeImageStream)
- func (f *FfprobeImageSummary) SetSizeBytes(sizeBytes *int)
- func (f *FfprobeImageSummary) SetStartTimeSec(startTimeSec *float64)
- func (f *FfprobeImageSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
- func (f *FfprobeImageSummary) SetTags(tags map[string]string)
- func (f *FfprobeImageSummary) String() string
- func (f *FfprobeImageSummary) UnmarshalJSON(data []byte) error
- type FfprobeOtherSummary
- func (f *FfprobeOtherSummary) GetBitrateBps() *int
- func (f *FfprobeOtherSummary) GetContainer() *string
- func (f *FfprobeOtherSummary) GetDurationSec() *float64
- func (f *FfprobeOtherSummary) GetExtraProperties() map[string]interface{}
- func (f *FfprobeOtherSummary) GetFormatLongName() *string
- func (f *FfprobeOtherSummary) GetSizeBytes() *int
- func (f *FfprobeOtherSummary) GetStartTimeSec() *float64
- func (f *FfprobeOtherSummary) GetStreamCounts() *FfprobeStreamCounts
- func (f *FfprobeOtherSummary) GetTags() map[string]string
- func (f *FfprobeOtherSummary) MarshalJSON() ([]byte, error)
- func (f *FfprobeOtherSummary) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeOtherSummary) SetContainer(container *string)
- func (f *FfprobeOtherSummary) SetDurationSec(durationSec *float64)
- func (f *FfprobeOtherSummary) SetFormatLongName(formatLongName *string)
- func (f *FfprobeOtherSummary) SetSizeBytes(sizeBytes *int)
- func (f *FfprobeOtherSummary) SetStartTimeSec(startTimeSec *float64)
- func (f *FfprobeOtherSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
- func (f *FfprobeOtherSummary) SetTags(tags map[string]string)
- func (f *FfprobeOtherSummary) String() string
- func (f *FfprobeOtherSummary) UnmarshalJSON(data []byte) error
- type FfprobePacket
- func (f *FfprobePacket) GetCodecType() *string
- func (f *FfprobePacket) GetExtraProperties() map[string]interface{}
- func (f *FfprobePacket) GetStreamIndex() *int
- func (f *FfprobePacket) MarshalJSON() ([]byte, error)
- func (f *FfprobePacket) SetCodecType(codecType *string)
- func (f *FfprobePacket) SetStreamIndex(streamIndex *int)
- func (f *FfprobePacket) String() string
- func (f *FfprobePacket) UnmarshalJSON(data []byte) error
- type FfprobeParams
- func (f *FfprobeParams) GetCommand() string
- func (f *FfprobeParams) GetExtraProperties() map[string]interface{}
- func (f *FfprobeParams) GetTimeout() *int
- func (f *FfprobeParams) MarshalJSON() ([]byte, error)
- func (f *FfprobeParams) SetCommand(command string)
- func (f *FfprobeParams) SetTimeout(timeout *int)
- func (f *FfprobeParams) String() string
- func (f *FfprobeParams) UnmarshalJSON(data []byte) error
- type FfprobeProgram
- func (f *FfprobeProgram) GetExtraProperties() map[string]interface{}
- func (f *FfprobeProgram) GetNbStreams() *int
- func (f *FfprobeProgram) GetProgramID() *int
- func (f *FfprobeProgram) GetStreams() []*FfprobeStream
- func (f *FfprobeProgram) GetTags() map[string]string
- func (f *FfprobeProgram) MarshalJSON() ([]byte, error)
- func (f *FfprobeProgram) SetNbStreams(nbStreams *int)
- func (f *FfprobeProgram) SetProgramID(programID *int)
- func (f *FfprobeProgram) SetStreams(streams []*FfprobeStream)
- func (f *FfprobeProgram) SetTags(tags map[string]string)
- func (f *FfprobeProgram) String() string
- func (f *FfprobeProgram) UnmarshalJSON(data []byte) error
- type FfprobeResult
- func (f *FfprobeResult) GetChapters() []*FfprobeChapter
- func (f *FfprobeResult) GetExtraProperties() map[string]interface{}
- func (f *FfprobeResult) GetFormat() *FfprobeFormat
- func (f *FfprobeResult) GetFrames() []*FfprobeFrame
- func (f *FfprobeResult) GetPackets() []*FfprobePacket
- func (f *FfprobeResult) GetPrograms() []*FfprobeProgram
- func (f *FfprobeResult) GetReportURL() *string
- func (f *FfprobeResult) GetStderr() *string
- func (f *FfprobeResult) GetStdout() *string
- func (f *FfprobeResult) GetStreamGroups() []*FfprobeStreamGroup
- func (f *FfprobeResult) GetStreams() []*FfprobeStream
- func (f *FfprobeResult) GetSummary() *FfprobeSummary
- func (f *FfprobeResult) GetWarnings() []*FfprobeWarning
- func (f *FfprobeResult) MarshalJSON() ([]byte, error)
- func (f *FfprobeResult) SetChapters(chapters []*FfprobeChapter)
- func (f *FfprobeResult) SetFormat(format *FfprobeFormat)
- func (f *FfprobeResult) SetFrames(frames []*FfprobeFrame)
- func (f *FfprobeResult) SetPackets(packets []*FfprobePacket)
- func (f *FfprobeResult) SetPrograms(programs []*FfprobeProgram)
- func (f *FfprobeResult) SetReportURL(reportURL *string)
- func (f *FfprobeResult) SetStderr(stderr *string)
- func (f *FfprobeResult) SetStdout(stdout *string)
- func (f *FfprobeResult) SetStreamGroups(streamGroups []*FfprobeStreamGroup)
- func (f *FfprobeResult) SetStreams(streams []*FfprobeStream)
- func (f *FfprobeResult) SetSummary(summary *FfprobeSummary)
- func (f *FfprobeResult) SetWarnings(warnings []*FfprobeWarning)
- func (f *FfprobeResult) String() string
- func (f *FfprobeResult) UnmarshalJSON(data []byte) error
- type FfprobeStream
- func (f *FfprobeStream) GetAvgFrameRate() *string
- func (f *FfprobeStream) GetBitRate() *string
- func (f *FfprobeStream) GetChannelLayout() *string
- func (f *FfprobeStream) GetChannels() *int
- func (f *FfprobeStream) GetCodecLongName() *string
- func (f *FfprobeStream) GetCodecName() *string
- func (f *FfprobeStream) GetCodecType() *FfprobeStreamCodecType
- func (f *FfprobeStream) GetCodedHeight() *int
- func (f *FfprobeStream) GetCodedWidth() *int
- func (f *FfprobeStream) GetDisplayAspectRatio() *string
- func (f *FfprobeStream) GetDisposition() map[string]float64
- func (f *FfprobeStream) GetDuration() *string
- func (f *FfprobeStream) GetExtraProperties() map[string]interface{}
- func (f *FfprobeStream) GetFieldOrder() *string
- func (f *FfprobeStream) GetHeight() *int
- func (f *FfprobeStream) GetIndex() int
- func (f *FfprobeStream) GetNbFrames() *string
- func (f *FfprobeStream) GetNbReadFrames() *string
- func (f *FfprobeStream) GetPixFmt() *string
- func (f *FfprobeStream) GetProfile() *string
- func (f *FfprobeStream) GetRFrameRate() *string
- func (f *FfprobeStream) GetSampleAspectRatio() *string
- func (f *FfprobeStream) GetSampleFmt() *string
- func (f *FfprobeStream) GetSampleRate() *string
- func (f *FfprobeStream) GetTags() map[string]string
- func (f *FfprobeStream) GetWidth() *int
- func (f *FfprobeStream) MarshalJSON() ([]byte, error)
- func (f *FfprobeStream) SetAvgFrameRate(avgFrameRate *string)
- func (f *FfprobeStream) SetBitRate(bitRate *string)
- func (f *FfprobeStream) SetChannelLayout(channelLayout *string)
- func (f *FfprobeStream) SetChannels(channels *int)
- func (f *FfprobeStream) SetCodecLongName(codecLongName *string)
- func (f *FfprobeStream) SetCodecName(codecName *string)
- func (f *FfprobeStream) SetCodecType(codecType *FfprobeStreamCodecType)
- func (f *FfprobeStream) SetCodedHeight(codedHeight *int)
- func (f *FfprobeStream) SetCodedWidth(codedWidth *int)
- func (f *FfprobeStream) SetDisplayAspectRatio(displayAspectRatio *string)
- func (f *FfprobeStream) SetDisposition(disposition map[string]float64)
- func (f *FfprobeStream) SetDuration(duration *string)
- func (f *FfprobeStream) SetFieldOrder(fieldOrder *string)
- func (f *FfprobeStream) SetHeight(height *int)
- func (f *FfprobeStream) SetIndex(index int)
- func (f *FfprobeStream) SetNbFrames(nbFrames *string)
- func (f *FfprobeStream) SetNbReadFrames(nbReadFrames *string)
- func (f *FfprobeStream) SetPixFmt(pixFmt *string)
- func (f *FfprobeStream) SetProfile(profile *string)
- func (f *FfprobeStream) SetRFrameRate(rFrameRate *string)
- func (f *FfprobeStream) SetSampleAspectRatio(sampleAspectRatio *string)
- func (f *FfprobeStream) SetSampleFmt(sampleFmt *string)
- func (f *FfprobeStream) SetSampleRate(sampleRate *string)
- func (f *FfprobeStream) SetTags(tags map[string]string)
- func (f *FfprobeStream) SetWidth(width *int)
- func (f *FfprobeStream) String() string
- func (f *FfprobeStream) UnmarshalJSON(data []byte) error
- type FfprobeStreamCodecType
- type FfprobeStreamCounts
- func (f *FfprobeStreamCounts) GetAttachment() int
- func (f *FfprobeStreamCounts) GetAudio() int
- func (f *FfprobeStreamCounts) GetData() int
- func (f *FfprobeStreamCounts) GetExtraProperties() map[string]interface{}
- func (f *FfprobeStreamCounts) GetSubtitle() int
- func (f *FfprobeStreamCounts) GetVideo() int
- func (f *FfprobeStreamCounts) MarshalJSON() ([]byte, error)
- func (f *FfprobeStreamCounts) SetAttachment(attachment int)
- func (f *FfprobeStreamCounts) SetAudio(audio int)
- func (f *FfprobeStreamCounts) SetData(data int)
- func (f *FfprobeStreamCounts) SetSubtitle(subtitle int)
- func (f *FfprobeStreamCounts) SetVideo(video int)
- func (f *FfprobeStreamCounts) String() string
- func (f *FfprobeStreamCounts) UnmarshalJSON(data []byte) error
- type FfprobeStreamGroup
- func (f *FfprobeStreamGroup) GetExtraProperties() map[string]interface{}
- func (f *FfprobeStreamGroup) GetIndex() *int
- func (f *FfprobeStreamGroup) GetNbStreams() *int
- func (f *FfprobeStreamGroup) GetType() *string
- func (f *FfprobeStreamGroup) MarshalJSON() ([]byte, error)
- func (f *FfprobeStreamGroup) SetIndex(index *int)
- func (f *FfprobeStreamGroup) SetNbStreams(nbStreams *int)
- func (f *FfprobeStreamGroup) SetType(type_ *string)
- func (f *FfprobeStreamGroup) String() string
- func (f *FfprobeStreamGroup) UnmarshalJSON(data []byte) error
- type FfprobeSummary
- func (f *FfprobeSummary) Accept(visitor FfprobeSummaryVisitor) error
- func (f *FfprobeSummary) GetAudio() *FfprobeAudioSummary
- func (f *FfprobeSummary) GetImage() *FfprobeImageSummary
- func (f *FfprobeSummary) GetKind() string
- func (f *FfprobeSummary) GetOther() *FfprobeOtherSummary
- func (f *FfprobeSummary) GetVideo() *FfprobeVideoSummary
- func (f FfprobeSummary) MarshalJSON() ([]byte, error)
- func (f *FfprobeSummary) UnmarshalJSON(data []byte) error
- type FfprobeSummaryVisitor
- type FfprobeVideoStream
- func (f *FfprobeVideoStream) GetBitDepth() *int
- func (f *FfprobeVideoStream) GetBitrateBps() *int
- func (f *FfprobeVideoStream) GetCodec() *string
- func (f *FfprobeVideoStream) GetDisplayAspectRatio() *string
- func (f *FfprobeVideoStream) GetExtraProperties() map[string]interface{}
- func (f *FfprobeVideoStream) GetFps() *float64
- func (f *FfprobeVideoStream) GetHeight() *int
- func (f *FfprobeVideoStream) GetIsHdr() bool
- func (f *FfprobeVideoStream) GetIsVariableFrameRate() bool
- func (f *FfprobeVideoStream) GetLanguage() *string
- func (f *FfprobeVideoStream) GetPixelFormat() *string
- func (f *FfprobeVideoStream) GetProfile() *string
- func (f *FfprobeVideoStream) GetRotation() float64
- func (f *FfprobeVideoStream) GetWidth() *int
- func (f *FfprobeVideoStream) MarshalJSON() ([]byte, error)
- func (f *FfprobeVideoStream) SetBitDepth(bitDepth *int)
- func (f *FfprobeVideoStream) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeVideoStream) SetCodec(codec *string)
- func (f *FfprobeVideoStream) SetDisplayAspectRatio(displayAspectRatio *string)
- func (f *FfprobeVideoStream) SetFps(fps *float64)
- func (f *FfprobeVideoStream) SetHeight(height *int)
- func (f *FfprobeVideoStream) SetIsHdr(isHdr bool)
- func (f *FfprobeVideoStream) SetIsVariableFrameRate(isVariableFrameRate bool)
- func (f *FfprobeVideoStream) SetLanguage(language *string)
- func (f *FfprobeVideoStream) SetPixelFormat(pixelFormat *string)
- func (f *FfprobeVideoStream) SetProfile(profile *string)
- func (f *FfprobeVideoStream) SetRotation(rotation float64)
- func (f *FfprobeVideoStream) SetWidth(width *int)
- func (f *FfprobeVideoStream) String() string
- func (f *FfprobeVideoStream) UnmarshalJSON(data []byte) error
- type FfprobeVideoSummary
- func (f *FfprobeVideoSummary) GetAudio() *FfprobeAudioStream
- func (f *FfprobeVideoSummary) GetBitrateBps() *int
- func (f *FfprobeVideoSummary) GetContainer() *string
- func (f *FfprobeVideoSummary) GetDurationSec() *float64
- func (f *FfprobeVideoSummary) GetExtraProperties() map[string]interface{}
- func (f *FfprobeVideoSummary) GetFormatLongName() *string
- func (f *FfprobeVideoSummary) GetSizeBytes() *int
- func (f *FfprobeVideoSummary) GetStartTimeSec() *float64
- func (f *FfprobeVideoSummary) GetStreamCounts() *FfprobeStreamCounts
- func (f *FfprobeVideoSummary) GetTags() map[string]string
- func (f *FfprobeVideoSummary) GetVideo() *FfprobeVideoStream
- func (f *FfprobeVideoSummary) MarshalJSON() ([]byte, error)
- func (f *FfprobeVideoSummary) SetAudio(audio *FfprobeAudioStream)
- func (f *FfprobeVideoSummary) SetBitrateBps(bitrateBps *int)
- func (f *FfprobeVideoSummary) SetContainer(container *string)
- func (f *FfprobeVideoSummary) SetDurationSec(durationSec *float64)
- func (f *FfprobeVideoSummary) SetFormatLongName(formatLongName *string)
- func (f *FfprobeVideoSummary) SetSizeBytes(sizeBytes *int)
- func (f *FfprobeVideoSummary) SetStartTimeSec(startTimeSec *float64)
- func (f *FfprobeVideoSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
- func (f *FfprobeVideoSummary) SetTags(tags map[string]string)
- func (f *FfprobeVideoSummary) SetVideo(video *FfprobeVideoStream)
- func (f *FfprobeVideoSummary) String() string
- func (f *FfprobeVideoSummary) UnmarshalJSON(data []byte) error
- type FfprobeWarning
- func (f *FfprobeWarning) GetCode() string
- func (f *FfprobeWarning) GetExtraProperties() map[string]interface{}
- func (f *FfprobeWarning) GetMessage() string
- func (f *FfprobeWarning) MarshalJSON() ([]byte, error)
- func (f *FfprobeWarning) SetCode(code string)
- func (f *FfprobeWarning) SetMessage(message string)
- func (f *FfprobeWarning) String() string
- func (f *FfprobeWarning) UnmarshalJSON(data []byte) error
- type FileParam
- type FileParamOption
- type ForbiddenError
- type GenModel
- func (g *GenModel) GetEnhanceDefault() bool
- func (g *GenModel) GetExtraProperties() map[string]interface{}
- func (g *GenModel) GetID() string
- func (g *GenModel) GetJobs() []string
- func (g *GenModel) GetMaxRefImages() int
- func (g *GenModel) GetPriceTier() GenModelPriceTier
- func (g *GenModel) GetStatus() GenModelStatus
- func (g *GenModel) GetSteps() *GenModelSteps
- func (g *GenModel) GetSupports() *GenModelSupports
- func (g *GenModel) GetTier() *GenModelTier
- func (g *GenModel) GetUnderReview() bool
- func (g *GenModel) MarshalJSON() ([]byte, error)
- func (g *GenModel) SetEnhanceDefault(enhanceDefault bool)
- func (g *GenModel) SetID(id string)
- func (g *GenModel) SetJobs(jobs []string)
- func (g *GenModel) SetMaxRefImages(maxRefImages int)
- func (g *GenModel) SetPriceTier(priceTier GenModelPriceTier)
- func (g *GenModel) SetStatus(status GenModelStatus)
- func (g *GenModel) SetSteps(steps *GenModelSteps)
- func (g *GenModel) SetSupports(supports *GenModelSupports)
- func (g *GenModel) SetTier(tier *GenModelTier)
- func (g *GenModel) SetUnderReview(underReview bool)
- func (g *GenModel) String() string
- func (g *GenModel) UnmarshalJSON(data []byte) error
- type GenModelPriceTier
- type GenModelStatus
- type GenModelSteps
- func (g *GenModelSteps) GetDefault() int
- func (g *GenModelSteps) GetExtraProperties() map[string]interface{}
- func (g *GenModelSteps) GetMax() int
- func (g *GenModelSteps) GetMin() int
- func (g *GenModelSteps) MarshalJSON() ([]byte, error)
- func (g *GenModelSteps) SetDefault(default_ int)
- func (g *GenModelSteps) SetMax(max int)
- func (g *GenModelSteps) SetMin(min int)
- func (g *GenModelSteps) String() string
- func (g *GenModelSteps) UnmarshalJSON(data []byte) error
- type GenModelSupports
- func (g *GenModelSupports) GetExtraProperties() map[string]interface{}
- func (g *GenModelSupports) GetGuidance() bool
- func (g *GenModelSupports) GetNegativePrompt() bool
- func (g *GenModelSupports) MarshalJSON() ([]byte, error)
- func (g *GenModelSupports) SetGuidance(guidance bool)
- func (g *GenModelSupports) SetNegativePrompt(negativePrompt bool)
- func (g *GenModelSupports) String() string
- func (g *GenModelSupports) UnmarshalJSON(data []byte) error
- type GenModelTier
- type GetAccountCapabilitiesResponse
- func (g *GetAccountCapabilitiesResponse) GetData() *GetAccountCapabilitiesResponseData
- func (g *GetAccountCapabilitiesResponse) GetExtraProperties() map[string]interface{}
- func (g *GetAccountCapabilitiesResponse) MarshalJSON() ([]byte, error)
- func (g *GetAccountCapabilitiesResponse) SetData(data *GetAccountCapabilitiesResponseData)
- func (g *GetAccountCapabilitiesResponse) String() string
- func (g *GetAccountCapabilitiesResponse) UnmarshalJSON(data []byte) error
- type GetAccountCapabilitiesResponseData
- func (g *GetAccountCapabilitiesResponseData) GetExtraProperties() map[string]interface{}
- func (g *GetAccountCapabilitiesResponseData) GetFeatures() *GetAccountCapabilitiesResponseDataFeatures
- func (g *GetAccountCapabilitiesResponseData) GetLimits() *GetAccountCapabilitiesResponseDataLimits
- func (g *GetAccountCapabilitiesResponseData) GetPlan() *GetAccountCapabilitiesResponseDataPlan
- func (g *GetAccountCapabilitiesResponseData) MarshalJSON() ([]byte, error)
- func (g *GetAccountCapabilitiesResponseData) SetFeatures(features *GetAccountCapabilitiesResponseDataFeatures)
- func (g *GetAccountCapabilitiesResponseData) SetLimits(limits *GetAccountCapabilitiesResponseDataLimits)
- func (g *GetAccountCapabilitiesResponseData) SetPlan(plan *GetAccountCapabilitiesResponseDataPlan)
- func (g *GetAccountCapabilitiesResponseData) String() string
- func (g *GetAccountCapabilitiesResponseData) UnmarshalJSON(data []byte) error
- type GetAccountCapabilitiesResponseDataFeatures
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetAuditLog() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetCustomRunners() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetExtraProperties() map[string]interface{}
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetFastOutputDelivery() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetGpu() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetMcp() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetPriorityQueue() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetPrioritySupport() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetRawFfmpeg() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) GetWebhooks() bool
- func (g *GetAccountCapabilitiesResponseDataFeatures) MarshalJSON() ([]byte, error)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetAuditLog(auditLog bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetCustomRunners(customRunners bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetFastOutputDelivery(fastOutputDelivery bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetGpu(gpu bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetMcp(mcp bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetPriorityQueue(priorityQueue bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetPrioritySupport(prioritySupport bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetRawFfmpeg(rawFfmpeg bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) SetWebhooks(webhooks bool)
- func (g *GetAccountCapabilitiesResponseDataFeatures) String() string
- func (g *GetAccountCapabilitiesResponseDataFeatures) UnmarshalJSON(data []byte) error
- type GetAccountCapabilitiesResponseDataLimits
- func (g *GetAccountCapabilitiesResponseDataLimits) GetAPIRequestsPerMinute() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxFps() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxPixels() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxFps() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxPixels() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetConcurrentJobs() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetExtraProperties() map[string]interface{}
- func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxInputFileSize() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobInputSize() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobTimeout() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxQueuedJobs() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxUploadSessionFiles() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetOutputRetentionDays() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetStorageQuota() int
- func (g *GetAccountCapabilitiesResponseDataLimits) GetTeamMembers() int
- func (g *GetAccountCapabilitiesResponseDataLimits) MarshalJSON() ([]byte, error)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetAPIRequestsPerMinute(apiRequestsPerMinute int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxFps(composeAnimatedMaxFps int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxPixels(composeAnimatedMaxPixels int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxFps(composeMaxFps int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxPixels(composeMaxPixels int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetConcurrentJobs(concurrentJobs int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxInputFileSize(maxInputFileSize int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobInputSize(maxJobInputSize int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobTimeout(maxJobTimeout int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxQueuedJobs(maxQueuedJobs int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxUploadSessionFiles(maxUploadSessionFiles int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetOutputRetentionDays(outputRetentionDays int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetStorageQuota(storageQuota int)
- func (g *GetAccountCapabilitiesResponseDataLimits) SetTeamMembers(teamMembers int)
- func (g *GetAccountCapabilitiesResponseDataLimits) String() string
- func (g *GetAccountCapabilitiesResponseDataLimits) UnmarshalJSON(data []byte) error
- type GetAccountCapabilitiesResponseDataPlan
- func (g *GetAccountCapabilitiesResponseDataPlan) GetExtraProperties() map[string]interface{}
- func (g *GetAccountCapabilitiesResponseDataPlan) GetName() string
- func (g *GetAccountCapabilitiesResponseDataPlan) GetSlug() string
- func (g *GetAccountCapabilitiesResponseDataPlan) MarshalJSON() ([]byte, error)
- func (g *GetAccountCapabilitiesResponseDataPlan) SetName(name string)
- func (g *GetAccountCapabilitiesResponseDataPlan) SetSlug(slug string)
- func (g *GetAccountCapabilitiesResponseDataPlan) String() string
- func (g *GetAccountCapabilitiesResponseDataPlan) UnmarshalJSON(data []byte) error
- type GetJobRequest
- type GetJobResponse
- func (g *GetJobResponse) GetData() *Job
- func (g *GetJobResponse) GetExtraProperties() map[string]interface{}
- func (g *GetJobResponse) MarshalJSON() ([]byte, error)
- func (g *GetJobResponse) SetData(data *Job)
- func (g *GetJobResponse) String() string
- func (g *GetJobResponse) UnmarshalJSON(data []byte) error
- type GetJobTypeSchemaRequest
- type GetJobTypeSchemaResponse
- func (g *GetJobTypeSchemaResponse) GetData() *GetJobTypeSchemaResponseData
- func (g *GetJobTypeSchemaResponse) GetExtraProperties() map[string]interface{}
- func (g *GetJobTypeSchemaResponse) MarshalJSON() ([]byte, error)
- func (g *GetJobTypeSchemaResponse) SetData(data *GetJobTypeSchemaResponseData)
- func (g *GetJobTypeSchemaResponse) String() string
- func (g *GetJobTypeSchemaResponse) UnmarshalJSON(data []byte) error
- type GetJobTypeSchemaResponseData
- func (g *GetJobTypeSchemaResponseData) GetDiscriminator() *string
- func (g *GetJobTypeSchemaResponseData) GetExtraProperties() map[string]interface{}
- func (g *GetJobTypeSchemaResponseData) GetFields() []*ConnectorField
- func (g *GetJobTypeSchemaResponseData) GetInputs() *GetJobTypeSchemaResponseDataInputs
- func (g *GetJobTypeSchemaResponseData) GetJSONSchema() any
- func (g *GetJobTypeSchemaResponseData) GetType() string
- func (g *GetJobTypeSchemaResponseData) MarshalJSON() ([]byte, error)
- func (g *GetJobTypeSchemaResponseData) SetDiscriminator(discriminator *string)
- func (g *GetJobTypeSchemaResponseData) SetFields(fields []*ConnectorField)
- func (g *GetJobTypeSchemaResponseData) SetInputs(inputs *GetJobTypeSchemaResponseDataInputs)
- func (g *GetJobTypeSchemaResponseData) SetJSONSchema(jsonSchema any)
- func (g *GetJobTypeSchemaResponseData) SetType(type_ string)
- func (g *GetJobTypeSchemaResponseData) String() string
- func (g *GetJobTypeSchemaResponseData) UnmarshalJSON(data []byte) error
- type GetJobTypeSchemaResponseDataInputs
- func (g *GetJobTypeSchemaResponseDataInputs) GetExtraProperties() map[string]interface{}
- func (g *GetJobTypeSchemaResponseDataInputs) GetFields() []*ConnectorInput
- func (g *GetJobTypeSchemaResponseDataInputs) GetVariadic() bool
- func (g *GetJobTypeSchemaResponseDataInputs) MarshalJSON() ([]byte, error)
- func (g *GetJobTypeSchemaResponseDataInputs) SetFields(fields []*ConnectorInput)
- func (g *GetJobTypeSchemaResponseDataInputs) SetVariadic(variadic bool)
- func (g *GetJobTypeSchemaResponseDataInputs) String() string
- func (g *GetJobTypeSchemaResponseDataInputs) UnmarshalJSON(data []byte) error
- type ImageEditParams
- func (i *ImageEditParams) Accept(visitor ImageEditParamsVisitor) error
- func (i *ImageEditParams) GetEconomy() *ImageEditParamsEconomy
- func (i *ImageEditParams) GetFlux2Klein4B() *ImageEditParamsFlux2Klein4B
- func (i *ImageEditParams) GetModel() string
- func (i *ImageEditParams) GetPremium() *ImageEditParamsPremium
- func (i *ImageEditParams) GetQwenImageEdit2511() *ImageEditParamsQwenImageEdit2511
- func (i *ImageEditParams) GetQwenImageEdit2511Lightning() *ImageEditParamsQwenImageEdit2511Lightning
- func (i *ImageEditParams) GetStandard() *ImageEditParamsStandard
- func (i ImageEditParams) MarshalJSON() ([]byte, error)
- func (i *ImageEditParams) UnmarshalJSON(data []byte) error
- type ImageEditParamsEconomy
- func (i *ImageEditParamsEconomy) GetEnhancePrompt() *bool
- func (i *ImageEditParamsEconomy) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsEconomy) GetHeight() *int
- func (i *ImageEditParamsEconomy) GetPrompt() string
- func (i *ImageEditParamsEconomy) GetSeed() *int
- func (i *ImageEditParamsEconomy) GetWidth() *int
- func (i *ImageEditParamsEconomy) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsEconomy) SetHeight(height *int)
- func (i *ImageEditParamsEconomy) SetPrompt(prompt string)
- func (i *ImageEditParamsEconomy) SetSeed(seed *int)
- func (i *ImageEditParamsEconomy) SetWidth(width *int)
- func (i *ImageEditParamsEconomy) String() string
- func (i *ImageEditParamsEconomy) UnmarshalJSON(data []byte) error
- type ImageEditParamsFlux2Klein4B
- func (i *ImageEditParamsFlux2Klein4B) GetEnhancePrompt() *bool
- func (i *ImageEditParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsFlux2Klein4B) GetHeight() *int
- func (i *ImageEditParamsFlux2Klein4B) GetPrompt() string
- func (i *ImageEditParamsFlux2Klein4B) GetSeed() *int
- func (i *ImageEditParamsFlux2Klein4B) GetWidth() *int
- func (i *ImageEditParamsFlux2Klein4B) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsFlux2Klein4B) SetHeight(height *int)
- func (i *ImageEditParamsFlux2Klein4B) SetPrompt(prompt string)
- func (i *ImageEditParamsFlux2Klein4B) SetSeed(seed *int)
- func (i *ImageEditParamsFlux2Klein4B) SetWidth(width *int)
- func (i *ImageEditParamsFlux2Klein4B) String() string
- func (i *ImageEditParamsFlux2Klein4B) UnmarshalJSON(data []byte) error
- type ImageEditParamsPremium
- func (i *ImageEditParamsPremium) GetEnhancePrompt() *bool
- func (i *ImageEditParamsPremium) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsPremium) GetHeight() *int
- func (i *ImageEditParamsPremium) GetPrompt() string
- func (i *ImageEditParamsPremium) GetSeed() *int
- func (i *ImageEditParamsPremium) GetWidth() *int
- func (i *ImageEditParamsPremium) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsPremium) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsPremium) SetHeight(height *int)
- func (i *ImageEditParamsPremium) SetPrompt(prompt string)
- func (i *ImageEditParamsPremium) SetSeed(seed *int)
- func (i *ImageEditParamsPremium) SetWidth(width *int)
- func (i *ImageEditParamsPremium) String() string
- func (i *ImageEditParamsPremium) UnmarshalJSON(data []byte) error
- type ImageEditParamsQwenImageEdit2511
- func (i *ImageEditParamsQwenImageEdit2511) GetEnhancePrompt() *bool
- func (i *ImageEditParamsQwenImageEdit2511) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsQwenImageEdit2511) GetGuidance() *float64
- func (i *ImageEditParamsQwenImageEdit2511) GetHeight() *int
- func (i *ImageEditParamsQwenImageEdit2511) GetNegativePrompt() *string
- func (i *ImageEditParamsQwenImageEdit2511) GetPrompt() string
- func (i *ImageEditParamsQwenImageEdit2511) GetSeed() *int
- func (i *ImageEditParamsQwenImageEdit2511) GetSteps() *int
- func (i *ImageEditParamsQwenImageEdit2511) GetWidth() *int
- func (i *ImageEditParamsQwenImageEdit2511) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsQwenImageEdit2511) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsQwenImageEdit2511) SetGuidance(guidance *float64)
- func (i *ImageEditParamsQwenImageEdit2511) SetHeight(height *int)
- func (i *ImageEditParamsQwenImageEdit2511) SetNegativePrompt(negativePrompt *string)
- func (i *ImageEditParamsQwenImageEdit2511) SetPrompt(prompt string)
- func (i *ImageEditParamsQwenImageEdit2511) SetSeed(seed *int)
- func (i *ImageEditParamsQwenImageEdit2511) SetSteps(steps *int)
- func (i *ImageEditParamsQwenImageEdit2511) SetWidth(width *int)
- func (i *ImageEditParamsQwenImageEdit2511) String() string
- func (i *ImageEditParamsQwenImageEdit2511) UnmarshalJSON(data []byte) error
- type ImageEditParamsQwenImageEdit2511Lightning
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetEnhancePrompt() *bool
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetHeight() *int
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetPrompt() string
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetSeed() *int
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetSteps() *int
- func (i *ImageEditParamsQwenImageEdit2511Lightning) GetWidth() *int
- func (i *ImageEditParamsQwenImageEdit2511Lightning) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetHeight(height *int)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetPrompt(prompt string)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetSeed(seed *int)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetSteps(steps *int)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) SetWidth(width *int)
- func (i *ImageEditParamsQwenImageEdit2511Lightning) String() string
- func (i *ImageEditParamsQwenImageEdit2511Lightning) UnmarshalJSON(data []byte) error
- type ImageEditParamsStandard
- func (i *ImageEditParamsStandard) GetEnhancePrompt() *bool
- func (i *ImageEditParamsStandard) GetExtraProperties() map[string]interface{}
- func (i *ImageEditParamsStandard) GetHeight() *int
- func (i *ImageEditParamsStandard) GetPrompt() string
- func (i *ImageEditParamsStandard) GetSeed() *int
- func (i *ImageEditParamsStandard) GetWidth() *int
- func (i *ImageEditParamsStandard) MarshalJSON() ([]byte, error)
- func (i *ImageEditParamsStandard) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageEditParamsStandard) SetHeight(height *int)
- func (i *ImageEditParamsStandard) SetPrompt(prompt string)
- func (i *ImageEditParamsStandard) SetSeed(seed *int)
- func (i *ImageEditParamsStandard) SetWidth(width *int)
- func (i *ImageEditParamsStandard) String() string
- func (i *ImageEditParamsStandard) UnmarshalJSON(data []byte) error
- type ImageEditParamsVisitor
- type ImageGenerateParams
- func (i *ImageGenerateParams) Accept(visitor ImageGenerateParamsVisitor) error
- func (i *ImageGenerateParams) GetEconomy() *ImageGenerateParamsEconomy
- func (i *ImageGenerateParams) GetErnieImageTurbo() *ImageGenerateParamsErnieImageTurbo
- func (i *ImageGenerateParams) GetFlux2Dev() *ImageGenerateParamsFlux2Dev
- func (i *ImageGenerateParams) GetFlux2Klein4B() *ImageGenerateParamsFlux2Klein4B
- func (i *ImageGenerateParams) GetModel() string
- func (i *ImageGenerateParams) GetPremium() *ImageGenerateParamsPremium
- func (i *ImageGenerateParams) GetQwenImage2512() *ImageGenerateParamsQwenImage2512
- func (i *ImageGenerateParams) GetQwenImage2512Lightning() *ImageGenerateParamsQwenImage2512Lightning
- func (i *ImageGenerateParams) GetStandard() *ImageGenerateParamsStandard
- func (i *ImageGenerateParams) GetZImageTurbo() *ImageGenerateParamsZImageTurbo
- func (i ImageGenerateParams) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParams) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsEconomy
- func (i *ImageGenerateParamsEconomy) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsEconomy) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsEconomy) GetHeight() *int
- func (i *ImageGenerateParamsEconomy) GetPrompt() string
- func (i *ImageGenerateParamsEconomy) GetSeed() *int
- func (i *ImageGenerateParamsEconomy) GetWidth() *int
- func (i *ImageGenerateParamsEconomy) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsEconomy) SetHeight(height *int)
- func (i *ImageGenerateParamsEconomy) SetPrompt(prompt string)
- func (i *ImageGenerateParamsEconomy) SetSeed(seed *int)
- func (i *ImageGenerateParamsEconomy) SetWidth(width *int)
- func (i *ImageGenerateParamsEconomy) String() string
- func (i *ImageGenerateParamsEconomy) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsErnieImageTurbo
- func (i *ImageGenerateParamsErnieImageTurbo) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsErnieImageTurbo) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsErnieImageTurbo) GetHeight() *int
- func (i *ImageGenerateParamsErnieImageTurbo) GetPrompt() string
- func (i *ImageGenerateParamsErnieImageTurbo) GetSeed() *int
- func (i *ImageGenerateParamsErnieImageTurbo) GetWidth() *int
- func (i *ImageGenerateParamsErnieImageTurbo) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsErnieImageTurbo) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsErnieImageTurbo) SetHeight(height *int)
- func (i *ImageGenerateParamsErnieImageTurbo) SetPrompt(prompt string)
- func (i *ImageGenerateParamsErnieImageTurbo) SetSeed(seed *int)
- func (i *ImageGenerateParamsErnieImageTurbo) SetWidth(width *int)
- func (i *ImageGenerateParamsErnieImageTurbo) String() string
- func (i *ImageGenerateParamsErnieImageTurbo) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsFlux2Dev
- func (i *ImageGenerateParamsFlux2Dev) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsFlux2Dev) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsFlux2Dev) GetGuidance() *float64
- func (i *ImageGenerateParamsFlux2Dev) GetHeight() *int
- func (i *ImageGenerateParamsFlux2Dev) GetPrompt() string
- func (i *ImageGenerateParamsFlux2Dev) GetSeed() *int
- func (i *ImageGenerateParamsFlux2Dev) GetSteps() *int
- func (i *ImageGenerateParamsFlux2Dev) GetWidth() *int
- func (i *ImageGenerateParamsFlux2Dev) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsFlux2Dev) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsFlux2Dev) SetGuidance(guidance *float64)
- func (i *ImageGenerateParamsFlux2Dev) SetHeight(height *int)
- func (i *ImageGenerateParamsFlux2Dev) SetPrompt(prompt string)
- func (i *ImageGenerateParamsFlux2Dev) SetSeed(seed *int)
- func (i *ImageGenerateParamsFlux2Dev) SetSteps(steps *int)
- func (i *ImageGenerateParamsFlux2Dev) SetWidth(width *int)
- func (i *ImageGenerateParamsFlux2Dev) String() string
- func (i *ImageGenerateParamsFlux2Dev) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsFlux2Klein4B
- func (i *ImageGenerateParamsFlux2Klein4B) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsFlux2Klein4B) GetHeight() *int
- func (i *ImageGenerateParamsFlux2Klein4B) GetPrompt() string
- func (i *ImageGenerateParamsFlux2Klein4B) GetSeed() *int
- func (i *ImageGenerateParamsFlux2Klein4B) GetWidth() *int
- func (i *ImageGenerateParamsFlux2Klein4B) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsFlux2Klein4B) SetHeight(height *int)
- func (i *ImageGenerateParamsFlux2Klein4B) SetPrompt(prompt string)
- func (i *ImageGenerateParamsFlux2Klein4B) SetSeed(seed *int)
- func (i *ImageGenerateParamsFlux2Klein4B) SetWidth(width *int)
- func (i *ImageGenerateParamsFlux2Klein4B) String() string
- func (i *ImageGenerateParamsFlux2Klein4B) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsPremium
- func (i *ImageGenerateParamsPremium) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsPremium) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsPremium) GetHeight() *int
- func (i *ImageGenerateParamsPremium) GetPrompt() string
- func (i *ImageGenerateParamsPremium) GetSeed() *int
- func (i *ImageGenerateParamsPremium) GetWidth() *int
- func (i *ImageGenerateParamsPremium) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsPremium) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsPremium) SetHeight(height *int)
- func (i *ImageGenerateParamsPremium) SetPrompt(prompt string)
- func (i *ImageGenerateParamsPremium) SetSeed(seed *int)
- func (i *ImageGenerateParamsPremium) SetWidth(width *int)
- func (i *ImageGenerateParamsPremium) String() string
- func (i *ImageGenerateParamsPremium) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsQwenImage2512
- func (i *ImageGenerateParamsQwenImage2512) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsQwenImage2512) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsQwenImage2512) GetGuidance() *float64
- func (i *ImageGenerateParamsQwenImage2512) GetHeight() *int
- func (i *ImageGenerateParamsQwenImage2512) GetNegativePrompt() *string
- func (i *ImageGenerateParamsQwenImage2512) GetPrompt() string
- func (i *ImageGenerateParamsQwenImage2512) GetSeed() *int
- func (i *ImageGenerateParamsQwenImage2512) GetSteps() *int
- func (i *ImageGenerateParamsQwenImage2512) GetWidth() *int
- func (i *ImageGenerateParamsQwenImage2512) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsQwenImage2512) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsQwenImage2512) SetGuidance(guidance *float64)
- func (i *ImageGenerateParamsQwenImage2512) SetHeight(height *int)
- func (i *ImageGenerateParamsQwenImage2512) SetNegativePrompt(negativePrompt *string)
- func (i *ImageGenerateParamsQwenImage2512) SetPrompt(prompt string)
- func (i *ImageGenerateParamsQwenImage2512) SetSeed(seed *int)
- func (i *ImageGenerateParamsQwenImage2512) SetSteps(steps *int)
- func (i *ImageGenerateParamsQwenImage2512) SetWidth(width *int)
- func (i *ImageGenerateParamsQwenImage2512) String() string
- func (i *ImageGenerateParamsQwenImage2512) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsQwenImage2512Lightning
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetHeight() *int
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetPrompt() string
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetSeed() *int
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetSteps() *int
- func (i *ImageGenerateParamsQwenImage2512Lightning) GetWidth() *int
- func (i *ImageGenerateParamsQwenImage2512Lightning) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetHeight(height *int)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetPrompt(prompt string)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetSeed(seed *int)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetSteps(steps *int)
- func (i *ImageGenerateParamsQwenImage2512Lightning) SetWidth(width *int)
- func (i *ImageGenerateParamsQwenImage2512Lightning) String() string
- func (i *ImageGenerateParamsQwenImage2512Lightning) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsStandard
- func (i *ImageGenerateParamsStandard) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsStandard) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsStandard) GetHeight() *int
- func (i *ImageGenerateParamsStandard) GetPrompt() string
- func (i *ImageGenerateParamsStandard) GetSeed() *int
- func (i *ImageGenerateParamsStandard) GetWidth() *int
- func (i *ImageGenerateParamsStandard) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsStandard) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsStandard) SetHeight(height *int)
- func (i *ImageGenerateParamsStandard) SetPrompt(prompt string)
- func (i *ImageGenerateParamsStandard) SetSeed(seed *int)
- func (i *ImageGenerateParamsStandard) SetWidth(width *int)
- func (i *ImageGenerateParamsStandard) String() string
- func (i *ImageGenerateParamsStandard) UnmarshalJSON(data []byte) error
- type ImageGenerateParamsVisitor
- type ImageGenerateParamsZImageTurbo
- func (i *ImageGenerateParamsZImageTurbo) GetEnhancePrompt() *bool
- func (i *ImageGenerateParamsZImageTurbo) GetExtraProperties() map[string]interface{}
- func (i *ImageGenerateParamsZImageTurbo) GetHeight() *int
- func (i *ImageGenerateParamsZImageTurbo) GetPrompt() string
- func (i *ImageGenerateParamsZImageTurbo) GetSeed() *int
- func (i *ImageGenerateParamsZImageTurbo) GetSteps() *int
- func (i *ImageGenerateParamsZImageTurbo) GetWidth() *int
- func (i *ImageGenerateParamsZImageTurbo) MarshalJSON() ([]byte, error)
- func (i *ImageGenerateParamsZImageTurbo) SetEnhancePrompt(enhancePrompt *bool)
- func (i *ImageGenerateParamsZImageTurbo) SetHeight(height *int)
- func (i *ImageGenerateParamsZImageTurbo) SetPrompt(prompt string)
- func (i *ImageGenerateParamsZImageTurbo) SetSeed(seed *int)
- func (i *ImageGenerateParamsZImageTurbo) SetSteps(steps *int)
- func (i *ImageGenerateParamsZImageTurbo) SetWidth(width *int)
- func (i *ImageGenerateParamsZImageTurbo) String() string
- func (i *ImageGenerateParamsZImageTurbo) UnmarshalJSON(data []byte) error
- type ImageUpscaleParams
- func (i *ImageUpscaleParams) GetColorCorrection() *ImageUpscaleParamsColorCorrection
- func (i *ImageUpscaleParams) GetExtraProperties() map[string]interface{}
- func (i *ImageUpscaleParams) GetInputNoise() *float64
- func (i *ImageUpscaleParams) GetInputScale() *float64
- func (i *ImageUpscaleParams) GetLatentNoise() *float64
- func (i *ImageUpscaleParams) GetModel() *ImageUpscaleParamsModel
- func (i *ImageUpscaleParams) GetPasses() *int
- func (i *ImageUpscaleParams) GetSeed() *int
- func (i *ImageUpscaleParams) GetSizing() *ImageUpscaleParamsSizing
- func (i *ImageUpscaleParams) MarshalJSON() ([]byte, error)
- func (i *ImageUpscaleParams) SetColorCorrection(colorCorrection *ImageUpscaleParamsColorCorrection)
- func (i *ImageUpscaleParams) SetInputNoise(inputNoise *float64)
- func (i *ImageUpscaleParams) SetInputScale(inputScale *float64)
- func (i *ImageUpscaleParams) SetLatentNoise(latentNoise *float64)
- func (i *ImageUpscaleParams) SetModel(model *ImageUpscaleParamsModel)
- func (i *ImageUpscaleParams) SetPasses(passes *int)
- func (i *ImageUpscaleParams) SetSeed(seed *int)
- func (i *ImageUpscaleParams) SetSizing(sizing *ImageUpscaleParamsSizing)
- func (i *ImageUpscaleParams) String() string
- func (i *ImageUpscaleParams) UnmarshalJSON(data []byte) error
- type ImageUpscaleParamsColorCorrection
- type ImageUpscaleParamsModel
- type ImageUpscaleParamsSizing
- func (i *ImageUpscaleParamsSizing) Accept(visitor ImageUpscaleParamsSizingVisitor) error
- func (i *ImageUpscaleParamsSizing) GetFactor() *ImageUpscaleParamsSizingFactor
- func (i *ImageUpscaleParamsSizing) GetHeight() *ImageUpscaleParamsSizingHeight
- func (i *ImageUpscaleParamsSizing) GetMode() string
- func (i ImageUpscaleParamsSizing) MarshalJSON() ([]byte, error)
- func (i *ImageUpscaleParamsSizing) UnmarshalJSON(data []byte) error
- type ImageUpscaleParamsSizingFactor
- func (i *ImageUpscaleParamsSizingFactor) GetExtraProperties() map[string]interface{}
- func (i *ImageUpscaleParamsSizingFactor) GetFactor() float64
- func (i *ImageUpscaleParamsSizingFactor) MarshalJSON() ([]byte, error)
- func (i *ImageUpscaleParamsSizingFactor) SetFactor(factor float64)
- func (i *ImageUpscaleParamsSizingFactor) String() string
- func (i *ImageUpscaleParamsSizingFactor) UnmarshalJSON(data []byte) error
- type ImageUpscaleParamsSizingHeight
- func (i *ImageUpscaleParamsSizingHeight) GetExtraProperties() map[string]interface{}
- func (i *ImageUpscaleParamsSizingHeight) GetHeight() int
- func (i *ImageUpscaleParamsSizingHeight) MarshalJSON() ([]byte, error)
- func (i *ImageUpscaleParamsSizingHeight) SetHeight(height int)
- func (i *ImageUpscaleParamsSizingHeight) String() string
- func (i *ImageUpscaleParamsSizingHeight) UnmarshalJSON(data []byte) error
- type ImageUpscaleParamsSizingVisitor
- type InternalServerError
- type Job
- func (j *Job) Accept(visitor JobVisitor) error
- func (j *Job) GetCancelled() *JobCancelled
- func (j *Job) GetComplete() *JobComplete
- func (j *Job) GetDispatched() *JobDispatched
- func (j *Job) GetFailed() *JobFailed
- func (j *Job) GetRunning() *JobRunning
- func (j *Job) GetStatus() string
- func (j *Job) GetWaiting() *JobWaiting
- func (j Job) MarshalJSON() ([]byte, error)
- func (j *Job) UnmarshalJSON(data []byte) error
- type JobCancelled
- func (j *JobCancelled) GetCallback() *CallbackStatus
- func (j *JobCancelled) GetClient() *string
- func (j *JobCancelled) GetCompletedAt() *int
- func (j *JobCancelled) GetCost() *JobCost
- func (j *JobCancelled) GetCreatedAt() int
- func (j *JobCancelled) GetDeliveries() []*JobDelivery
- func (j *JobCancelled) GetDispatchedAt() *int
- func (j *JobCancelled) GetExtraProperties() map[string]interface{}
- func (j *JobCancelled) GetID() string
- func (j *JobCancelled) GetIdempotencyKey() *string
- func (j *JobCancelled) GetInputs() map[string]any
- func (j *JobCancelled) GetLabel() *string
- func (j *JobCancelled) GetLogsAvailable() bool
- func (j *JobCancelled) GetMediaType() *string
- func (j *JobCancelled) GetMetricsAvailable() *bool
- func (j *JobCancelled) GetModel() *string
- func (j *JobCancelled) GetOrgID() string
- func (j *JobCancelled) GetOutputCategory() JobCancelledOutputCategory
- func (j *JobCancelled) GetParams() map[string]any
- func (j *JobCancelled) GetRegion() *string
- func (j *JobCancelled) GetResourcesAvailable() bool
- func (j *JobCancelled) GetRetentionExpiresAt() *int
- func (j *JobCancelled) GetRetryCount() int
- func (j *JobCancelled) GetSettledAt() *int
- func (j *JobCancelled) GetSource() string
- func (j *JobCancelled) GetStartedAt() *int
- func (j *JobCancelled) GetSteps() []*JobStep
- func (j *JobCancelled) GetTerminal() bool
- func (j *JobCancelled) GetTimeoutMs() *int
- func (j *JobCancelled) GetType() string
- func (j *JobCancelled) GetWebURL() string
- func (j *JobCancelled) MarshalJSON() ([]byte, error)
- func (j *JobCancelled) SetCallback(callback *CallbackStatus)
- func (j *JobCancelled) SetClient(client *string)
- func (j *JobCancelled) SetCompletedAt(completedAt *int)
- func (j *JobCancelled) SetCost(cost *JobCost)
- func (j *JobCancelled) SetCreatedAt(createdAt int)
- func (j *JobCancelled) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobCancelled) SetDispatchedAt(dispatchedAt *int)
- func (j *JobCancelled) SetID(id string)
- func (j *JobCancelled) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobCancelled) SetInputs(inputs map[string]any)
- func (j *JobCancelled) SetLabel(label *string)
- func (j *JobCancelled) SetLogsAvailable(logsAvailable bool)
- func (j *JobCancelled) SetMediaType(mediaType *string)
- func (j *JobCancelled) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobCancelled) SetModel(model *string)
- func (j *JobCancelled) SetOrgID(orgID string)
- func (j *JobCancelled) SetOutputCategory(outputCategory JobCancelledOutputCategory)
- func (j *JobCancelled) SetParams(params map[string]any)
- func (j *JobCancelled) SetRegion(region *string)
- func (j *JobCancelled) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobCancelled) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobCancelled) SetRetryCount(retryCount int)
- func (j *JobCancelled) SetSettledAt(settledAt *int)
- func (j *JobCancelled) SetSource(source string)
- func (j *JobCancelled) SetStartedAt(startedAt *int)
- func (j *JobCancelled) SetSteps(steps []*JobStep)
- func (j *JobCancelled) SetTerminal(terminal bool)
- func (j *JobCancelled) SetTimeoutMs(timeoutMs *int)
- func (j *JobCancelled) SetType(type_ string)
- func (j *JobCancelled) SetWebURL(webURL string)
- func (j *JobCancelled) String() string
- func (j *JobCancelled) UnmarshalJSON(data []byte) error
- type JobCancelledData
- func (j *JobCancelledData) GetExtraProperties() map[string]interface{}
- func (j *JobCancelledData) GetJobID() string
- func (j *JobCancelledData) GetJobType() string
- func (j *JobCancelledData) GetStatus() JobCancelledDataStatus
- func (j *JobCancelledData) GetTiming() *JobCancelledDataTiming
- func (j *JobCancelledData) MarshalJSON() ([]byte, error)
- func (j *JobCancelledData) SetJobID(jobID string)
- func (j *JobCancelledData) SetJobType(jobType string)
- func (j *JobCancelledData) SetStatus(status JobCancelledDataStatus)
- func (j *JobCancelledData) SetTiming(timing *JobCancelledDataTiming)
- func (j *JobCancelledData) String() string
- func (j *JobCancelledData) UnmarshalJSON(data []byte) error
- type JobCancelledDataStatus
- type JobCancelledDataTiming
- func (j *JobCancelledDataTiming) GetCancelledAt() int
- func (j *JobCancelledDataTiming) GetCreatedAt() int
- func (j *JobCancelledDataTiming) GetExtraProperties() map[string]interface{}
- func (j *JobCancelledDataTiming) MarshalJSON() ([]byte, error)
- func (j *JobCancelledDataTiming) SetCancelledAt(cancelledAt int)
- func (j *JobCancelledDataTiming) SetCreatedAt(createdAt int)
- func (j *JobCancelledDataTiming) String() string
- func (j *JobCancelledDataTiming) UnmarshalJSON(data []byte) error
- type JobCancelledOutputCategory
- type JobCancelledWebhookEvent
- func (j *JobCancelledWebhookEvent) GetData() *JobCancelledData
- func (j *JobCancelledWebhookEvent) GetDeliveryID() string
- func (j *JobCancelledWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobCancelledWebhookEvent) GetOrgID() string
- func (j *JobCancelledWebhookEvent) GetTimestamp() int
- func (j *JobCancelledWebhookEvent) GetVersion() JobCancelledWebhookEventVersion
- func (j *JobCancelledWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobCancelledWebhookEvent) SetData(data *JobCancelledData)
- func (j *JobCancelledWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobCancelledWebhookEvent) SetOrgID(orgID string)
- func (j *JobCancelledWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobCancelledWebhookEvent) SetVersion(version JobCancelledWebhookEventVersion)
- func (j *JobCancelledWebhookEvent) String() string
- func (j *JobCancelledWebhookEvent) UnmarshalJSON(data []byte) error
- type JobCancelledWebhookEventVersion
- type JobComplete
- func (j *JobComplete) GetCallback() *CallbackStatus
- func (j *JobComplete) GetClient() *string
- func (j *JobComplete) GetCompletedAt() *int
- func (j *JobComplete) GetCost() *JobCost
- func (j *JobComplete) GetCreatedAt() int
- func (j *JobComplete) GetDeliveries() []*JobDelivery
- func (j *JobComplete) GetDispatchedAt() *int
- func (j *JobComplete) GetExtraProperties() map[string]interface{}
- func (j *JobComplete) GetID() string
- func (j *JobComplete) GetIdempotencyKey() *string
- func (j *JobComplete) GetInputs() map[string]any
- func (j *JobComplete) GetLabel() *string
- func (j *JobComplete) GetLogsAvailable() bool
- func (j *JobComplete) GetMediaType() *string
- func (j *JobComplete) GetMetricsAvailable() *bool
- func (j *JobComplete) GetModel() *string
- func (j *JobComplete) GetOrgID() string
- func (j *JobComplete) GetOutput() *JobOutput
- func (j *JobComplete) GetOutputCategory() JobCompleteOutputCategory
- func (j *JobComplete) GetParams() map[string]any
- func (j *JobComplete) GetRegion() *string
- func (j *JobComplete) GetResourcesAvailable() bool
- func (j *JobComplete) GetRetentionExpiresAt() *int
- func (j *JobComplete) GetRetryCount() int
- func (j *JobComplete) GetSettledAt() *int
- func (j *JobComplete) GetSource() string
- func (j *JobComplete) GetStartedAt() *int
- func (j *JobComplete) GetSteps() []*JobStep
- func (j *JobComplete) GetTerminal() bool
- func (j *JobComplete) GetTimeoutMs() *int
- func (j *JobComplete) GetType() string
- func (j *JobComplete) GetWebURL() string
- func (j *JobComplete) MarshalJSON() ([]byte, error)
- func (j *JobComplete) SetCallback(callback *CallbackStatus)
- func (j *JobComplete) SetClient(client *string)
- func (j *JobComplete) SetCompletedAt(completedAt *int)
- func (j *JobComplete) SetCost(cost *JobCost)
- func (j *JobComplete) SetCreatedAt(createdAt int)
- func (j *JobComplete) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobComplete) SetDispatchedAt(dispatchedAt *int)
- func (j *JobComplete) SetID(id string)
- func (j *JobComplete) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobComplete) SetInputs(inputs map[string]any)
- func (j *JobComplete) SetLabel(label *string)
- func (j *JobComplete) SetLogsAvailable(logsAvailable bool)
- func (j *JobComplete) SetMediaType(mediaType *string)
- func (j *JobComplete) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobComplete) SetModel(model *string)
- func (j *JobComplete) SetOrgID(orgID string)
- func (j *JobComplete) SetOutput(output *JobOutput)
- func (j *JobComplete) SetOutputCategory(outputCategory JobCompleteOutputCategory)
- func (j *JobComplete) SetParams(params map[string]any)
- func (j *JobComplete) SetRegion(region *string)
- func (j *JobComplete) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobComplete) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobComplete) SetRetryCount(retryCount int)
- func (j *JobComplete) SetSettledAt(settledAt *int)
- func (j *JobComplete) SetSource(source string)
- func (j *JobComplete) SetStartedAt(startedAt *int)
- func (j *JobComplete) SetSteps(steps []*JobStep)
- func (j *JobComplete) SetTerminal(terminal bool)
- func (j *JobComplete) SetTimeoutMs(timeoutMs *int)
- func (j *JobComplete) SetType(type_ string)
- func (j *JobComplete) SetWebURL(webURL string)
- func (j *JobComplete) String() string
- func (j *JobComplete) UnmarshalJSON(data []byte) error
- type JobCompleteOutputCategory
- type JobCompletedData
- func (j *JobCompletedData) GetCost() *WebhookJobCost
- func (j *JobCompletedData) GetExtraProperties() map[string]interface{}
- func (j *JobCompletedData) GetJobID() string
- func (j *JobCompletedData) GetJobType() string
- func (j *JobCompletedData) GetMediaType() *string
- func (j *JobCompletedData) GetOutput() *JobOutput
- func (j *JobCompletedData) GetOutputCategory() *string
- func (j *JobCompletedData) GetStatus() JobCompletedDataStatus
- func (j *JobCompletedData) GetSteps() []*WebhookJobStep
- func (j *JobCompletedData) GetTiming() *JobCompletedDataTiming
- func (j *JobCompletedData) MarshalJSON() ([]byte, error)
- func (j *JobCompletedData) SetCost(cost *WebhookJobCost)
- func (j *JobCompletedData) SetJobID(jobID string)
- func (j *JobCompletedData) SetJobType(jobType string)
- func (j *JobCompletedData) SetMediaType(mediaType *string)
- func (j *JobCompletedData) SetOutput(output *JobOutput)
- func (j *JobCompletedData) SetOutputCategory(outputCategory *string)
- func (j *JobCompletedData) SetStatus(status JobCompletedDataStatus)
- func (j *JobCompletedData) SetSteps(steps []*WebhookJobStep)
- func (j *JobCompletedData) SetTiming(timing *JobCompletedDataTiming)
- func (j *JobCompletedData) String() string
- func (j *JobCompletedData) UnmarshalJSON(data []byte) error
- type JobCompletedDataStatus
- type JobCompletedDataTiming
- func (j *JobCompletedDataTiming) GetCompletedAt() int
- func (j *JobCompletedDataTiming) GetCreatedAt() int
- func (j *JobCompletedDataTiming) GetDispatchedAt() *int
- func (j *JobCompletedDataTiming) GetExtraProperties() map[string]interface{}
- func (j *JobCompletedDataTiming) GetStartedAt() *int
- func (j *JobCompletedDataTiming) MarshalJSON() ([]byte, error)
- func (j *JobCompletedDataTiming) SetCompletedAt(completedAt int)
- func (j *JobCompletedDataTiming) SetCreatedAt(createdAt int)
- func (j *JobCompletedDataTiming) SetDispatchedAt(dispatchedAt *int)
- func (j *JobCompletedDataTiming) SetStartedAt(startedAt *int)
- func (j *JobCompletedDataTiming) String() string
- func (j *JobCompletedDataTiming) UnmarshalJSON(data []byte) error
- type JobCompletedOnSubmit
- func (j *JobCompletedOnSubmit) GetExtraProperties() map[string]interface{}
- func (j *JobCompletedOnSubmit) GetID() string
- func (j *JobCompletedOnSubmit) GetStatus() JobCompletedOnSubmitStatus
- func (j *JobCompletedOnSubmit) GetURL() *string
- func (j *JobCompletedOnSubmit) MarshalJSON() ([]byte, error)
- func (j *JobCompletedOnSubmit) SetID(id string)
- func (j *JobCompletedOnSubmit) SetStatus(status JobCompletedOnSubmitStatus)
- func (j *JobCompletedOnSubmit) SetURL(url *string)
- func (j *JobCompletedOnSubmit) String() string
- func (j *JobCompletedOnSubmit) UnmarshalJSON(data []byte) error
- type JobCompletedOnSubmitStatus
- type JobCompletedWebhookEvent
- func (j *JobCompletedWebhookEvent) GetData() *JobCompletedData
- func (j *JobCompletedWebhookEvent) GetDeliveryID() string
- func (j *JobCompletedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobCompletedWebhookEvent) GetOrgID() string
- func (j *JobCompletedWebhookEvent) GetTimestamp() int
- func (j *JobCompletedWebhookEvent) GetVersion() JobCompletedWebhookEventVersion
- func (j *JobCompletedWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobCompletedWebhookEvent) SetData(data *JobCompletedData)
- func (j *JobCompletedWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobCompletedWebhookEvent) SetOrgID(orgID string)
- func (j *JobCompletedWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobCompletedWebhookEvent) SetVersion(version JobCompletedWebhookEventVersion)
- func (j *JobCompletedWebhookEvent) String() string
- func (j *JobCompletedWebhookEvent) UnmarshalJSON(data []byte) error
- type JobCompletedWebhookEventVersion
- type JobCost
- func (j *JobCost) GetAmount() int
- func (j *JobCost) GetCurrency() JobCostCurrency
- func (j *JobCost) GetExtraProperties() map[string]interface{}
- func (j *JobCost) GetFormatted() string
- func (j *JobCost) MarshalJSON() ([]byte, error)
- func (j *JobCost) SetAmount(amount int)
- func (j *JobCost) SetCurrency(currency JobCostCurrency)
- func (j *JobCost) SetFormatted(formatted string)
- func (j *JobCost) String() string
- func (j *JobCost) UnmarshalJSON(data []byte) error
- type JobCostCurrency
- type JobCreated
- func (j *JobCreated) GetExtraProperties() map[string]interface{}
- func (j *JobCreated) GetID() string
- func (j *JobCreated) GetStatus() JobCreatedStatus
- func (j *JobCreated) MarshalJSON() ([]byte, error)
- func (j *JobCreated) SetID(id string)
- func (j *JobCreated) SetStatus(status JobCreatedStatus)
- func (j *JobCreated) String() string
- func (j *JobCreated) UnmarshalJSON(data []byte) error
- type JobCreatedData
- func (j *JobCreatedData) GetExtraProperties() map[string]interface{}
- func (j *JobCreatedData) GetJobID() string
- func (j *JobCreatedData) GetJobType() string
- func (j *JobCreatedData) GetStatus() JobCreatedDataStatus
- func (j *JobCreatedData) GetTiming() *JobCreatedDataTiming
- func (j *JobCreatedData) MarshalJSON() ([]byte, error)
- func (j *JobCreatedData) SetJobID(jobID string)
- func (j *JobCreatedData) SetJobType(jobType string)
- func (j *JobCreatedData) SetStatus(status JobCreatedDataStatus)
- func (j *JobCreatedData) SetTiming(timing *JobCreatedDataTiming)
- func (j *JobCreatedData) String() string
- func (j *JobCreatedData) UnmarshalJSON(data []byte) error
- type JobCreatedDataStatus
- type JobCreatedDataTiming
- func (j *JobCreatedDataTiming) GetCreatedAt() int
- func (j *JobCreatedDataTiming) GetExtraProperties() map[string]interface{}
- func (j *JobCreatedDataTiming) MarshalJSON() ([]byte, error)
- func (j *JobCreatedDataTiming) SetCreatedAt(createdAt int)
- func (j *JobCreatedDataTiming) String() string
- func (j *JobCreatedDataTiming) UnmarshalJSON(data []byte) error
- type JobCreatedStatus
- type JobCreatedWebhookEvent
- func (j *JobCreatedWebhookEvent) GetData() *JobCreatedData
- func (j *JobCreatedWebhookEvent) GetDeliveryID() string
- func (j *JobCreatedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobCreatedWebhookEvent) GetOrgID() string
- func (j *JobCreatedWebhookEvent) GetTimestamp() int
- func (j *JobCreatedWebhookEvent) GetVersion() JobCreatedWebhookEventVersion
- func (j *JobCreatedWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobCreatedWebhookEvent) SetData(data *JobCreatedData)
- func (j *JobCreatedWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobCreatedWebhookEvent) SetOrgID(orgID string)
- func (j *JobCreatedWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobCreatedWebhookEvent) SetVersion(version JobCreatedWebhookEventVersion)
- func (j *JobCreatedWebhookEvent) String() string
- func (j *JobCreatedWebhookEvent) UnmarshalJSON(data []byte) error
- type JobCreatedWebhookEventVersion
- type JobDeliveriesSettledData
- func (j *JobDeliveriesSettledData) GetDeliveries() []*SettledDelivery
- func (j *JobDeliveriesSettledData) GetExtraProperties() map[string]interface{}
- func (j *JobDeliveriesSettledData) GetJobID() string
- func (j *JobDeliveriesSettledData) MarshalJSON() ([]byte, error)
- func (j *JobDeliveriesSettledData) SetDeliveries(deliveries []*SettledDelivery)
- func (j *JobDeliveriesSettledData) SetJobID(jobID string)
- func (j *JobDeliveriesSettledData) String() string
- func (j *JobDeliveriesSettledData) UnmarshalJSON(data []byte) error
- type JobDeliveriesSettledWebhookEvent
- func (j *JobDeliveriesSettledWebhookEvent) GetData() *JobDeliveriesSettledData
- func (j *JobDeliveriesSettledWebhookEvent) GetDeliveryID() string
- func (j *JobDeliveriesSettledWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobDeliveriesSettledWebhookEvent) GetOrgID() string
- func (j *JobDeliveriesSettledWebhookEvent) GetTimestamp() int
- func (j *JobDeliveriesSettledWebhookEvent) GetVersion() JobDeliveriesSettledWebhookEventVersion
- func (j *JobDeliveriesSettledWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobDeliveriesSettledWebhookEvent) SetData(data *JobDeliveriesSettledData)
- func (j *JobDeliveriesSettledWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobDeliveriesSettledWebhookEvent) SetOrgID(orgID string)
- func (j *JobDeliveriesSettledWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobDeliveriesSettledWebhookEvent) SetVersion(version JobDeliveriesSettledWebhookEventVersion)
- func (j *JobDeliveriesSettledWebhookEvent) String() string
- func (j *JobDeliveriesSettledWebhookEvent) UnmarshalJSON(data []byte) error
- type JobDeliveriesSettledWebhookEventVersion
- type JobDelivery
- func (j *JobDelivery) GetExtraProperties() map[string]interface{}
- func (j *JobDelivery) GetPath() *string
- func (j *JobDelivery) GetReason() *JobDeliveryReason
- func (j *JobDelivery) GetRenamed() *bool
- func (j *JobDelivery) GetStatus() JobDeliveryStatus
- func (j *JobDelivery) GetStorageID() string
- func (j *JobDelivery) GetURL() *string
- func (j *JobDelivery) MarshalJSON() ([]byte, error)
- func (j *JobDelivery) SetPath(path *string)
- func (j *JobDelivery) SetReason(reason *JobDeliveryReason)
- func (j *JobDelivery) SetRenamed(renamed *bool)
- func (j *JobDelivery) SetStatus(status JobDeliveryStatus)
- func (j *JobDelivery) SetStorageID(storageID string)
- func (j *JobDelivery) SetURL(url *string)
- func (j *JobDelivery) String() string
- func (j *JobDelivery) UnmarshalJSON(data []byte) error
- type JobDeliveryFailedData
- func (j *JobDeliveryFailedData) GetExtraProperties() map[string]interface{}
- func (j *JobDeliveryFailedData) GetJobID() string
- func (j *JobDeliveryFailedData) GetReason() string
- func (j *JobDeliveryFailedData) GetStatus() JobDeliveryFailedDataStatus
- func (j *JobDeliveryFailedData) GetStorageID() string
- func (j *JobDeliveryFailedData) MarshalJSON() ([]byte, error)
- func (j *JobDeliveryFailedData) SetJobID(jobID string)
- func (j *JobDeliveryFailedData) SetReason(reason string)
- func (j *JobDeliveryFailedData) SetStatus(status JobDeliveryFailedDataStatus)
- func (j *JobDeliveryFailedData) SetStorageID(storageID string)
- func (j *JobDeliveryFailedData) String() string
- func (j *JobDeliveryFailedData) UnmarshalJSON(data []byte) error
- type JobDeliveryFailedDataStatus
- type JobDeliveryFailedWebhookEvent
- func (j *JobDeliveryFailedWebhookEvent) GetData() *JobDeliveryFailedData
- func (j *JobDeliveryFailedWebhookEvent) GetDeliveryID() string
- func (j *JobDeliveryFailedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobDeliveryFailedWebhookEvent) GetOrgID() string
- func (j *JobDeliveryFailedWebhookEvent) GetTimestamp() int
- func (j *JobDeliveryFailedWebhookEvent) GetVersion() JobDeliveryFailedWebhookEventVersion
- func (j *JobDeliveryFailedWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobDeliveryFailedWebhookEvent) SetData(data *JobDeliveryFailedData)
- func (j *JobDeliveryFailedWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobDeliveryFailedWebhookEvent) SetOrgID(orgID string)
- func (j *JobDeliveryFailedWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobDeliveryFailedWebhookEvent) SetVersion(version JobDeliveryFailedWebhookEventVersion)
- func (j *JobDeliveryFailedWebhookEvent) String() string
- func (j *JobDeliveryFailedWebhookEvent) UnmarshalJSON(data []byte) error
- type JobDeliveryFailedWebhookEventVersion
- type JobDeliveryReason
- type JobDeliveryStatus
- type JobDeliverySucceededData
- func (j *JobDeliverySucceededData) GetExtraProperties() map[string]interface{}
- func (j *JobDeliverySucceededData) GetJobID() string
- func (j *JobDeliverySucceededData) GetPath() string
- func (j *JobDeliverySucceededData) GetStatus() JobDeliverySucceededDataStatus
- func (j *JobDeliverySucceededData) GetStorageID() string
- func (j *JobDeliverySucceededData) GetURL() *string
- func (j *JobDeliverySucceededData) MarshalJSON() ([]byte, error)
- func (j *JobDeliverySucceededData) SetJobID(jobID string)
- func (j *JobDeliverySucceededData) SetPath(path string)
- func (j *JobDeliverySucceededData) SetStatus(status JobDeliverySucceededDataStatus)
- func (j *JobDeliverySucceededData) SetStorageID(storageID string)
- func (j *JobDeliverySucceededData) SetURL(url *string)
- func (j *JobDeliverySucceededData) String() string
- func (j *JobDeliverySucceededData) UnmarshalJSON(data []byte) error
- type JobDeliverySucceededDataStatus
- type JobDeliverySucceededWebhookEvent
- func (j *JobDeliverySucceededWebhookEvent) GetData() *JobDeliverySucceededData
- func (j *JobDeliverySucceededWebhookEvent) GetDeliveryID() string
- func (j *JobDeliverySucceededWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobDeliverySucceededWebhookEvent) GetOrgID() string
- func (j *JobDeliverySucceededWebhookEvent) GetTimestamp() int
- func (j *JobDeliverySucceededWebhookEvent) GetVersion() JobDeliverySucceededWebhookEventVersion
- func (j *JobDeliverySucceededWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobDeliverySucceededWebhookEvent) SetData(data *JobDeliverySucceededData)
- func (j *JobDeliverySucceededWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobDeliverySucceededWebhookEvent) SetOrgID(orgID string)
- func (j *JobDeliverySucceededWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobDeliverySucceededWebhookEvent) SetVersion(version JobDeliverySucceededWebhookEventVersion)
- func (j *JobDeliverySucceededWebhookEvent) String() string
- func (j *JobDeliverySucceededWebhookEvent) UnmarshalJSON(data []byte) error
- type JobDeliverySucceededWebhookEventVersion
- type JobDispatched
- func (j *JobDispatched) GetBootState() *JobDispatchedBootState
- func (j *JobDispatched) GetCallback() *CallbackStatus
- func (j *JobDispatched) GetClient() *string
- func (j *JobDispatched) GetCompletedAt() *int
- func (j *JobDispatched) GetCost() *JobCost
- func (j *JobDispatched) GetCreatedAt() int
- func (j *JobDispatched) GetDeliveries() []*JobDelivery
- func (j *JobDispatched) GetDispatchedAt() *int
- func (j *JobDispatched) GetEta() *float64
- func (j *JobDispatched) GetExtraProperties() map[string]interface{}
- func (j *JobDispatched) GetID() string
- func (j *JobDispatched) GetIdempotencyKey() *string
- func (j *JobDispatched) GetInputs() map[string]any
- func (j *JobDispatched) GetLabel() *string
- func (j *JobDispatched) GetLogsAvailable() bool
- func (j *JobDispatched) GetMediaType() *string
- func (j *JobDispatched) GetMetricsAvailable() *bool
- func (j *JobDispatched) GetModel() *string
- func (j *JobDispatched) GetOrgID() string
- func (j *JobDispatched) GetOutputCategory() JobDispatchedOutputCategory
- func (j *JobDispatched) GetParams() map[string]any
- func (j *JobDispatched) GetProgress() *float64
- func (j *JobDispatched) GetRegion() *string
- func (j *JobDispatched) GetResourcesAvailable() bool
- func (j *JobDispatched) GetRetentionExpiresAt() *int
- func (j *JobDispatched) GetRetryCount() int
- func (j *JobDispatched) GetSettledAt() *int
- func (j *JobDispatched) GetSource() string
- func (j *JobDispatched) GetStartedAt() *int
- func (j *JobDispatched) GetSteps() []*JobStep
- func (j *JobDispatched) GetTerminal() bool
- func (j *JobDispatched) GetTimeoutMs() *int
- func (j *JobDispatched) GetType() string
- func (j *JobDispatched) GetWebURL() string
- func (j *JobDispatched) MarshalJSON() ([]byte, error)
- func (j *JobDispatched) SetBootState(bootState *JobDispatchedBootState)
- func (j *JobDispatched) SetCallback(callback *CallbackStatus)
- func (j *JobDispatched) SetClient(client *string)
- func (j *JobDispatched) SetCompletedAt(completedAt *int)
- func (j *JobDispatched) SetCost(cost *JobCost)
- func (j *JobDispatched) SetCreatedAt(createdAt int)
- func (j *JobDispatched) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobDispatched) SetDispatchedAt(dispatchedAt *int)
- func (j *JobDispatched) SetEta(eta *float64)
- func (j *JobDispatched) SetID(id string)
- func (j *JobDispatched) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobDispatched) SetInputs(inputs map[string]any)
- func (j *JobDispatched) SetLabel(label *string)
- func (j *JobDispatched) SetLogsAvailable(logsAvailable bool)
- func (j *JobDispatched) SetMediaType(mediaType *string)
- func (j *JobDispatched) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobDispatched) SetModel(model *string)
- func (j *JobDispatched) SetOrgID(orgID string)
- func (j *JobDispatched) SetOutputCategory(outputCategory JobDispatchedOutputCategory)
- func (j *JobDispatched) SetParams(params map[string]any)
- func (j *JobDispatched) SetProgress(progress *float64)
- func (j *JobDispatched) SetRegion(region *string)
- func (j *JobDispatched) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobDispatched) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobDispatched) SetRetryCount(retryCount int)
- func (j *JobDispatched) SetSettledAt(settledAt *int)
- func (j *JobDispatched) SetSource(source string)
- func (j *JobDispatched) SetStartedAt(startedAt *int)
- func (j *JobDispatched) SetSteps(steps []*JobStep)
- func (j *JobDispatched) SetTerminal(terminal bool)
- func (j *JobDispatched) SetTimeoutMs(timeoutMs *int)
- func (j *JobDispatched) SetType(type_ string)
- func (j *JobDispatched) SetWebURL(webURL string)
- func (j *JobDispatched) String() string
- func (j *JobDispatched) UnmarshalJSON(data []byte) error
- type JobDispatchedBootState
- func (j *JobDispatchedBootState) GetDetail() string
- func (j *JobDispatchedBootState) GetElapsedMs() int
- func (j *JobDispatchedBootState) GetEtaMs() *int
- func (j *JobDispatchedBootState) GetExtraProperties() map[string]interface{}
- func (j *JobDispatchedBootState) GetPhase() string
- func (j *JobDispatchedBootState) GetTypicalMs() *int
- func (j *JobDispatchedBootState) MarshalJSON() ([]byte, error)
- func (j *JobDispatchedBootState) SetDetail(detail string)
- func (j *JobDispatchedBootState) SetElapsedMs(elapsedMs int)
- func (j *JobDispatchedBootState) SetEtaMs(etaMs *int)
- func (j *JobDispatchedBootState) SetPhase(phase string)
- func (j *JobDispatchedBootState) SetTypicalMs(typicalMs *int)
- func (j *JobDispatchedBootState) String() string
- func (j *JobDispatchedBootState) UnmarshalJSON(data []byte) error
- type JobDispatchedOutputCategory
- type JobError
- func (j *JobError) GetCode() string
- func (j *JobError) GetDetail() *string
- func (j *JobError) GetExtraProperties() map[string]interface{}
- func (j *JobError) GetFailedPhase() *JobErrorFailedPhase
- func (j *JobError) GetMessage() string
- func (j *JobError) GetRetryable() bool
- func (j *JobError) MarshalJSON() ([]byte, error)
- func (j *JobError) SetCode(code string)
- func (j *JobError) SetDetail(detail *string)
- func (j *JobError) SetFailedPhase(failedPhase *JobErrorFailedPhase)
- func (j *JobError) SetMessage(message string)
- func (j *JobError) SetRetryable(retryable bool)
- func (j *JobError) String() string
- func (j *JobError) UnmarshalJSON(data []byte) error
- type JobErrorFailedPhase
- type JobFailed
- func (j *JobFailed) GetCallback() *CallbackStatus
- func (j *JobFailed) GetClient() *string
- func (j *JobFailed) GetCompletedAt() *int
- func (j *JobFailed) GetCost() *JobCost
- func (j *JobFailed) GetCreatedAt() int
- func (j *JobFailed) GetDeliveries() []*JobDelivery
- func (j *JobFailed) GetDispatchedAt() *int
- func (j *JobFailed) GetError() *JobError
- func (j *JobFailed) GetExtraProperties() map[string]interface{}
- func (j *JobFailed) GetID() string
- func (j *JobFailed) GetIdempotencyKey() *string
- func (j *JobFailed) GetInputs() map[string]any
- func (j *JobFailed) GetLabel() *string
- func (j *JobFailed) GetLogsAvailable() bool
- func (j *JobFailed) GetMediaType() *string
- func (j *JobFailed) GetMetricsAvailable() *bool
- func (j *JobFailed) GetModel() *string
- func (j *JobFailed) GetOrgID() string
- func (j *JobFailed) GetOutputCategory() JobFailedOutputCategory
- func (j *JobFailed) GetParams() map[string]any
- func (j *JobFailed) GetRegion() *string
- func (j *JobFailed) GetResourcesAvailable() bool
- func (j *JobFailed) GetRetentionExpiresAt() *int
- func (j *JobFailed) GetRetryCount() int
- func (j *JobFailed) GetSettledAt() *int
- func (j *JobFailed) GetSource() string
- func (j *JobFailed) GetStartedAt() *int
- func (j *JobFailed) GetSteps() []*JobStep
- func (j *JobFailed) GetTerminal() bool
- func (j *JobFailed) GetTimeoutMs() *int
- func (j *JobFailed) GetType() string
- func (j *JobFailed) GetWebURL() string
- func (j *JobFailed) MarshalJSON() ([]byte, error)
- func (j *JobFailed) SetCallback(callback *CallbackStatus)
- func (j *JobFailed) SetClient(client *string)
- func (j *JobFailed) SetCompletedAt(completedAt *int)
- func (j *JobFailed) SetCost(cost *JobCost)
- func (j *JobFailed) SetCreatedAt(createdAt int)
- func (j *JobFailed) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobFailed) SetDispatchedAt(dispatchedAt *int)
- func (j *JobFailed) SetError(error_ *JobError)
- func (j *JobFailed) SetID(id string)
- func (j *JobFailed) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobFailed) SetInputs(inputs map[string]any)
- func (j *JobFailed) SetLabel(label *string)
- func (j *JobFailed) SetLogsAvailable(logsAvailable bool)
- func (j *JobFailed) SetMediaType(mediaType *string)
- func (j *JobFailed) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobFailed) SetModel(model *string)
- func (j *JobFailed) SetOrgID(orgID string)
- func (j *JobFailed) SetOutputCategory(outputCategory JobFailedOutputCategory)
- func (j *JobFailed) SetParams(params map[string]any)
- func (j *JobFailed) SetRegion(region *string)
- func (j *JobFailed) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobFailed) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobFailed) SetRetryCount(retryCount int)
- func (j *JobFailed) SetSettledAt(settledAt *int)
- func (j *JobFailed) SetSource(source string)
- func (j *JobFailed) SetStartedAt(startedAt *int)
- func (j *JobFailed) SetSteps(steps []*JobStep)
- func (j *JobFailed) SetTerminal(terminal bool)
- func (j *JobFailed) SetTimeoutMs(timeoutMs *int)
- func (j *JobFailed) SetType(type_ string)
- func (j *JobFailed) SetWebURL(webURL string)
- func (j *JobFailed) String() string
- func (j *JobFailed) UnmarshalJSON(data []byte) error
- type JobFailedData
- func (j *JobFailedData) GetError() *JobError
- func (j *JobFailedData) GetExtraProperties() map[string]interface{}
- func (j *JobFailedData) GetJobID() string
- func (j *JobFailedData) GetJobType() string
- func (j *JobFailedData) GetStatus() JobFailedDataStatus
- func (j *JobFailedData) GetSteps() []*WebhookJobStep
- func (j *JobFailedData) GetTiming() *JobFailedDataTiming
- func (j *JobFailedData) MarshalJSON() ([]byte, error)
- func (j *JobFailedData) SetError(error_ *JobError)
- func (j *JobFailedData) SetJobID(jobID string)
- func (j *JobFailedData) SetJobType(jobType string)
- func (j *JobFailedData) SetStatus(status JobFailedDataStatus)
- func (j *JobFailedData) SetSteps(steps []*WebhookJobStep)
- func (j *JobFailedData) SetTiming(timing *JobFailedDataTiming)
- func (j *JobFailedData) String() string
- func (j *JobFailedData) UnmarshalJSON(data []byte) error
- type JobFailedDataStatus
- type JobFailedDataTiming
- func (j *JobFailedDataTiming) GetCreatedAt() int
- func (j *JobFailedDataTiming) GetDispatchedAt() *int
- func (j *JobFailedDataTiming) GetExtraProperties() map[string]interface{}
- func (j *JobFailedDataTiming) GetFailedAt() int
- func (j *JobFailedDataTiming) GetStartedAt() *int
- func (j *JobFailedDataTiming) MarshalJSON() ([]byte, error)
- func (j *JobFailedDataTiming) SetCreatedAt(createdAt int)
- func (j *JobFailedDataTiming) SetDispatchedAt(dispatchedAt *int)
- func (j *JobFailedDataTiming) SetFailedAt(failedAt int)
- func (j *JobFailedDataTiming) SetStartedAt(startedAt *int)
- func (j *JobFailedDataTiming) String() string
- func (j *JobFailedDataTiming) UnmarshalJSON(data []byte) error
- type JobFailedOutputCategory
- type JobFailedWebhookEvent
- func (j *JobFailedWebhookEvent) GetData() *JobFailedData
- func (j *JobFailedWebhookEvent) GetDeliveryID() string
- func (j *JobFailedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobFailedWebhookEvent) GetOrgID() string
- func (j *JobFailedWebhookEvent) GetTimestamp() int
- func (j *JobFailedWebhookEvent) GetVersion() JobFailedWebhookEventVersion
- func (j *JobFailedWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobFailedWebhookEvent) SetData(data *JobFailedData)
- func (j *JobFailedWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobFailedWebhookEvent) SetOrgID(orgID string)
- func (j *JobFailedWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobFailedWebhookEvent) SetVersion(version JobFailedWebhookEventVersion)
- func (j *JobFailedWebhookEvent) String() string
- func (j *JobFailedWebhookEvent) UnmarshalJSON(data []byte) error
- type JobFailedWebhookEventVersion
- type JobOutput
- func (j *JobOutput) GetData() any
- func (j *JobOutput) GetExpiresAt() *int
- func (j *JobOutput) GetExtraProperties() map[string]interface{}
- func (j *JobOutput) GetFile() *JobOutputFile
- func (j *JobOutput) GetFiles() []*OutputFile
- func (j *JobOutput) MarshalJSON() ([]byte, error)
- func (j *JobOutput) SetData(data any)
- func (j *JobOutput) SetExpiresAt(expiresAt *int)
- func (j *JobOutput) SetFile(file *JobOutputFile)
- func (j *JobOutput) SetFiles(files []*OutputFile)
- func (j *JobOutput) String() string
- func (j *JobOutput) UnmarshalJSON(data []byte) error
- type JobOutputFile
- func (j *JobOutputFile) GetExtraProperties() map[string]interface{}
- func (j *JobOutputFile) GetMeta() *JobOutputFileMeta
- func (j *JobOutputFile) GetPath() string
- func (j *JobOutputFile) GetSha256() *string
- func (j *JobOutputFile) GetSize() int
- func (j *JobOutputFile) GetType() OutputFileType
- func (j *JobOutputFile) GetURL() string
- func (j *JobOutputFile) MarshalJSON() ([]byte, error)
- func (j *JobOutputFile) SetMeta(meta *JobOutputFileMeta)
- func (j *JobOutputFile) SetPath(path string)
- func (j *JobOutputFile) SetSha256(sha256 *string)
- func (j *JobOutputFile) SetSize(size int)
- func (j *JobOutputFile) SetType(type_ OutputFileType)
- func (j *JobOutputFile) SetURL(url string)
- func (j *JobOutputFile) String() string
- func (j *JobOutputFile) UnmarshalJSON(data []byte) error
- type JobOutputFileMeta
- func (j *JobOutputFileMeta) GetDurationMs() *int
- func (j *JobOutputFileMeta) GetExtraProperties() map[string]interface{}
- func (j *JobOutputFileMeta) GetFormat() *string
- func (j *JobOutputFileMeta) GetHeight() *int
- func (j *JobOutputFileMeta) GetSeed() *int
- func (j *JobOutputFileMeta) GetWidth() *int
- func (j *JobOutputFileMeta) MarshalJSON() ([]byte, error)
- func (j *JobOutputFileMeta) SetDurationMs(durationMs *int)
- func (j *JobOutputFileMeta) SetFormat(format *string)
- func (j *JobOutputFileMeta) SetHeight(height *int)
- func (j *JobOutputFileMeta) SetSeed(seed *int)
- func (j *JobOutputFileMeta) SetWidth(width *int)
- func (j *JobOutputFileMeta) String() string
- func (j *JobOutputFileMeta) UnmarshalJSON(data []byte) error
- type JobReplayed
- func (j *JobReplayed) GetExtraProperties() map[string]interface{}
- func (j *JobReplayed) GetID() string
- func (j *JobReplayed) GetIdempotent() bool
- func (j *JobReplayed) GetStatus() string
- func (j *JobReplayed) MarshalJSON() ([]byte, error)
- func (j *JobReplayed) SetID(id string)
- func (j *JobReplayed) SetIdempotent(idempotent bool)
- func (j *JobReplayed) SetStatus(status string)
- func (j *JobReplayed) String() string
- func (j *JobReplayed) UnmarshalJSON(data []byte) error
- type JobRunning
- func (j *JobRunning) GetCallback() *CallbackStatus
- func (j *JobRunning) GetClient() *string
- func (j *JobRunning) GetCompletedAt() *int
- func (j *JobRunning) GetCost() *JobCost
- func (j *JobRunning) GetCreatedAt() int
- func (j *JobRunning) GetDeliveries() []*JobDelivery
- func (j *JobRunning) GetDispatchedAt() *int
- func (j *JobRunning) GetEta() *float64
- func (j *JobRunning) GetExtraProperties() map[string]interface{}
- func (j *JobRunning) GetID() string
- func (j *JobRunning) GetIdempotencyKey() *string
- func (j *JobRunning) GetInputs() map[string]any
- func (j *JobRunning) GetLabel() *string
- func (j *JobRunning) GetLogsAvailable() bool
- func (j *JobRunning) GetMediaType() *string
- func (j *JobRunning) GetMetricsAvailable() *bool
- func (j *JobRunning) GetModel() *string
- func (j *JobRunning) GetOrgID() string
- func (j *JobRunning) GetOutputCategory() JobRunningOutputCategory
- func (j *JobRunning) GetParams() map[string]any
- func (j *JobRunning) GetProgress() *float64
- func (j *JobRunning) GetRegion() *string
- func (j *JobRunning) GetResourcesAvailable() bool
- func (j *JobRunning) GetRetentionExpiresAt() *int
- func (j *JobRunning) GetRetryCount() int
- func (j *JobRunning) GetSettledAt() *int
- func (j *JobRunning) GetSource() string
- func (j *JobRunning) GetStartedAt() *int
- func (j *JobRunning) GetSteps() []*JobStep
- func (j *JobRunning) GetTerminal() bool
- func (j *JobRunning) GetTimeoutMs() *int
- func (j *JobRunning) GetType() string
- func (j *JobRunning) GetWebURL() string
- func (j *JobRunning) MarshalJSON() ([]byte, error)
- func (j *JobRunning) SetCallback(callback *CallbackStatus)
- func (j *JobRunning) SetClient(client *string)
- func (j *JobRunning) SetCompletedAt(completedAt *int)
- func (j *JobRunning) SetCost(cost *JobCost)
- func (j *JobRunning) SetCreatedAt(createdAt int)
- func (j *JobRunning) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobRunning) SetDispatchedAt(dispatchedAt *int)
- func (j *JobRunning) SetEta(eta *float64)
- func (j *JobRunning) SetID(id string)
- func (j *JobRunning) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobRunning) SetInputs(inputs map[string]any)
- func (j *JobRunning) SetLabel(label *string)
- func (j *JobRunning) SetLogsAvailable(logsAvailable bool)
- func (j *JobRunning) SetMediaType(mediaType *string)
- func (j *JobRunning) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobRunning) SetModel(model *string)
- func (j *JobRunning) SetOrgID(orgID string)
- func (j *JobRunning) SetOutputCategory(outputCategory JobRunningOutputCategory)
- func (j *JobRunning) SetParams(params map[string]any)
- func (j *JobRunning) SetProgress(progress *float64)
- func (j *JobRunning) SetRegion(region *string)
- func (j *JobRunning) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobRunning) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobRunning) SetRetryCount(retryCount int)
- func (j *JobRunning) SetSettledAt(settledAt *int)
- func (j *JobRunning) SetSource(source string)
- func (j *JobRunning) SetStartedAt(startedAt *int)
- func (j *JobRunning) SetSteps(steps []*JobStep)
- func (j *JobRunning) SetTerminal(terminal bool)
- func (j *JobRunning) SetTimeoutMs(timeoutMs *int)
- func (j *JobRunning) SetType(type_ string)
- func (j *JobRunning) SetWebURL(webURL string)
- func (j *JobRunning) String() string
- func (j *JobRunning) UnmarshalJSON(data []byte) error
- type JobRunningOutputCategory
- type JobStartedData
- func (j *JobStartedData) GetExtraProperties() map[string]interface{}
- func (j *JobStartedData) GetJobID() string
- func (j *JobStartedData) GetJobType() string
- func (j *JobStartedData) GetStatus() JobStartedDataStatus
- func (j *JobStartedData) GetTiming() *JobStartedDataTiming
- func (j *JobStartedData) MarshalJSON() ([]byte, error)
- func (j *JobStartedData) SetJobID(jobID string)
- func (j *JobStartedData) SetJobType(jobType string)
- func (j *JobStartedData) SetStatus(status JobStartedDataStatus)
- func (j *JobStartedData) SetTiming(timing *JobStartedDataTiming)
- func (j *JobStartedData) String() string
- func (j *JobStartedData) UnmarshalJSON(data []byte) error
- type JobStartedDataStatus
- type JobStartedDataTiming
- func (j *JobStartedDataTiming) GetCreatedAt() int
- func (j *JobStartedDataTiming) GetDispatchedAt() *int
- func (j *JobStartedDataTiming) GetExtraProperties() map[string]interface{}
- func (j *JobStartedDataTiming) GetStartedAt() int
- func (j *JobStartedDataTiming) MarshalJSON() ([]byte, error)
- func (j *JobStartedDataTiming) SetCreatedAt(createdAt int)
- func (j *JobStartedDataTiming) SetDispatchedAt(dispatchedAt *int)
- func (j *JobStartedDataTiming) SetStartedAt(startedAt int)
- func (j *JobStartedDataTiming) String() string
- func (j *JobStartedDataTiming) UnmarshalJSON(data []byte) error
- type JobStartedWebhookEvent
- func (j *JobStartedWebhookEvent) GetData() *JobStartedData
- func (j *JobStartedWebhookEvent) GetDeliveryID() string
- func (j *JobStartedWebhookEvent) GetExtraProperties() map[string]interface{}
- func (j *JobStartedWebhookEvent) GetOrgID() string
- func (j *JobStartedWebhookEvent) GetTimestamp() int
- func (j *JobStartedWebhookEvent) GetVersion() JobStartedWebhookEventVersion
- func (j *JobStartedWebhookEvent) MarshalJSON() ([]byte, error)
- func (j *JobStartedWebhookEvent) SetData(data *JobStartedData)
- func (j *JobStartedWebhookEvent) SetDeliveryID(deliveryID string)
- func (j *JobStartedWebhookEvent) SetOrgID(orgID string)
- func (j *JobStartedWebhookEvent) SetTimestamp(timestamp int)
- func (j *JobStartedWebhookEvent) SetVersion(version JobStartedWebhookEventVersion)
- func (j *JobStartedWebhookEvent) String() string
- func (j *JobStartedWebhookEvent) UnmarshalJSON(data []byte) error
- type JobStartedWebhookEventVersion
- type JobStep
- func (j *JobStep) GetCompletedAt() *int
- func (j *JobStep) GetDurationMs() *int
- func (j *JobStep) GetError() *string
- func (j *JobStep) GetExtraProperties() map[string]interface{}
- func (j *JobStep) GetID() string
- func (j *JobStep) GetMeta() map[string]any
- func (j *JobStep) GetName() string
- func (j *JobStep) GetStartedAt() *int
- func (j *JobStep) GetStatus() string
- func (j *JobStep) MarshalJSON() ([]byte, error)
- func (j *JobStep) SetCompletedAt(completedAt *int)
- func (j *JobStep) SetDurationMs(durationMs *int)
- func (j *JobStep) SetError(error_ *string)
- func (j *JobStep) SetID(id string)
- func (j *JobStep) SetMeta(meta map[string]any)
- func (j *JobStep) SetName(name string)
- func (j *JobStep) SetStartedAt(startedAt *int)
- func (j *JobStep) SetStatus(status string)
- func (j *JobStep) String() string
- func (j *JobStep) UnmarshalJSON(data []byte) error
- type JobType
- func (j *JobType) GetAcceptsMedia() []string
- func (j *JobType) GetChainsWith() []string
- func (j *JobType) GetExtraProperties() map[string]interface{}
- func (j *JobType) GetSummary() string
- func (j *JobType) GetTag() string
- func (j *JobType) GetType() string
- func (j *JobType) GetUseCases() []string
- func (j *JobType) MarshalJSON() ([]byte, error)
- func (j *JobType) SetAcceptsMedia(acceptsMedia []string)
- func (j *JobType) SetChainsWith(chainsWith []string)
- func (j *JobType) SetSummary(summary string)
- func (j *JobType) SetTag(tag string)
- func (j *JobType) SetType(type_ string)
- func (j *JobType) SetUseCases(useCases []string)
- func (j *JobType) String() string
- func (j *JobType) UnmarshalJSON(data []byte) error
- type JobVisitor
- type JobWaiting
- func (j *JobWaiting) GetCallback() *CallbackStatus
- func (j *JobWaiting) GetClient() *string
- func (j *JobWaiting) GetCompletedAt() *int
- func (j *JobWaiting) GetCost() *JobCost
- func (j *JobWaiting) GetCreatedAt() int
- func (j *JobWaiting) GetDeliveries() []*JobDelivery
- func (j *JobWaiting) GetDispatchedAt() *int
- func (j *JobWaiting) GetExtraProperties() map[string]interface{}
- func (j *JobWaiting) GetID() string
- func (j *JobWaiting) GetIdempotencyKey() *string
- func (j *JobWaiting) GetInputs() map[string]any
- func (j *JobWaiting) GetLabel() *string
- func (j *JobWaiting) GetLogsAvailable() bool
- func (j *JobWaiting) GetMediaType() *string
- func (j *JobWaiting) GetMetricsAvailable() *bool
- func (j *JobWaiting) GetModel() *string
- func (j *JobWaiting) GetOrgID() string
- func (j *JobWaiting) GetOutputCategory() JobWaitingOutputCategory
- func (j *JobWaiting) GetParams() map[string]any
- func (j *JobWaiting) GetRegion() *string
- func (j *JobWaiting) GetResourcesAvailable() bool
- func (j *JobWaiting) GetRetentionExpiresAt() *int
- func (j *JobWaiting) GetRetryCount() int
- func (j *JobWaiting) GetSettledAt() *int
- func (j *JobWaiting) GetSource() string
- func (j *JobWaiting) GetStartedAt() *int
- func (j *JobWaiting) GetSteps() []*JobStep
- func (j *JobWaiting) GetTerminal() bool
- func (j *JobWaiting) GetTimeoutMs() *int
- func (j *JobWaiting) GetType() string
- func (j *JobWaiting) GetWebURL() string
- func (j *JobWaiting) MarshalJSON() ([]byte, error)
- func (j *JobWaiting) SetCallback(callback *CallbackStatus)
- func (j *JobWaiting) SetClient(client *string)
- func (j *JobWaiting) SetCompletedAt(completedAt *int)
- func (j *JobWaiting) SetCost(cost *JobCost)
- func (j *JobWaiting) SetCreatedAt(createdAt int)
- func (j *JobWaiting) SetDeliveries(deliveries []*JobDelivery)
- func (j *JobWaiting) SetDispatchedAt(dispatchedAt *int)
- func (j *JobWaiting) SetID(id string)
- func (j *JobWaiting) SetIdempotencyKey(idempotencyKey *string)
- func (j *JobWaiting) SetInputs(inputs map[string]any)
- func (j *JobWaiting) SetLabel(label *string)
- func (j *JobWaiting) SetLogsAvailable(logsAvailable bool)
- func (j *JobWaiting) SetMediaType(mediaType *string)
- func (j *JobWaiting) SetMetricsAvailable(metricsAvailable *bool)
- func (j *JobWaiting) SetModel(model *string)
- func (j *JobWaiting) SetOrgID(orgID string)
- func (j *JobWaiting) SetOutputCategory(outputCategory JobWaitingOutputCategory)
- func (j *JobWaiting) SetParams(params map[string]any)
- func (j *JobWaiting) SetRegion(region *string)
- func (j *JobWaiting) SetResourcesAvailable(resourcesAvailable bool)
- func (j *JobWaiting) SetRetentionExpiresAt(retentionExpiresAt *int)
- func (j *JobWaiting) SetRetryCount(retryCount int)
- func (j *JobWaiting) SetSettledAt(settledAt *int)
- func (j *JobWaiting) SetSource(source string)
- func (j *JobWaiting) SetStartedAt(startedAt *int)
- func (j *JobWaiting) SetSteps(steps []*JobStep)
- func (j *JobWaiting) SetTerminal(terminal bool)
- func (j *JobWaiting) SetTimeoutMs(timeoutMs *int)
- func (j *JobWaiting) SetType(type_ string)
- func (j *JobWaiting) SetWebURL(webURL string)
- func (j *JobWaiting) String() string
- func (j *JobWaiting) UnmarshalJSON(data []byte) error
- type JobWaitingOutputCategory
- type ListJobTypesResponse
- func (l *ListJobTypesResponse) GetData() []*JobType
- func (l *ListJobTypesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListJobTypesResponse) MarshalJSON() ([]byte, error)
- func (l *ListJobTypesResponse) SetData(data []*JobType)
- func (l *ListJobTypesResponse) String() string
- func (l *ListJobTypesResponse) UnmarshalJSON(data []byte) error
- type ListJobsRequest
- func (l *ListJobsRequest) SetClient(client *string)
- func (l *ListJobsRequest) SetFrom(from *int)
- func (l *ListJobsRequest) SetLimit(limit *int)
- func (l *ListJobsRequest) SetOffset(offset *int)
- func (l *ListJobsRequest) SetOrder(order *ListJobsRequestOrder)
- func (l *ListJobsRequest) SetSort(sort *ListJobsRequestSort)
- func (l *ListJobsRequest) SetStatus(status *ListJobsRequestStatus)
- func (l *ListJobsRequest) SetTo(to *int)
- func (l *ListJobsRequest) SetType(type_ *string)
- type ListJobsRequestOrder
- type ListJobsRequestSort
- type ListJobsRequestStatus
- type ListJobsResponse
- func (l *ListJobsResponse) GetData() []*Job
- func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListJobsResponse) GetMeta() *ListJobsResponseMeta
- func (l *ListJobsResponse) MarshalJSON() ([]byte, error)
- func (l *ListJobsResponse) SetData(data []*Job)
- func (l *ListJobsResponse) SetMeta(meta *ListJobsResponseMeta)
- func (l *ListJobsResponse) String() string
- func (l *ListJobsResponse) UnmarshalJSON(data []byte) error
- type ListJobsResponseMeta
- func (l *ListJobsResponseMeta) GetExtraProperties() map[string]interface{}
- func (l *ListJobsResponseMeta) GetLimit() int
- func (l *ListJobsResponseMeta) GetPage() int
- func (l *ListJobsResponseMeta) GetTotal() int
- func (l *ListJobsResponseMeta) MarshalJSON() ([]byte, error)
- func (l *ListJobsResponseMeta) SetLimit(limit int)
- func (l *ListJobsResponseMeta) SetPage(page int)
- func (l *ListJobsResponseMeta) SetTotal(total int)
- func (l *ListJobsResponseMeta) String() string
- func (l *ListJobsResponseMeta) UnmarshalJSON(data []byte) error
- type NotFoundError
- type OauthScope
- type OutputFile
- func (o *OutputFile) GetExtraProperties() map[string]interface{}
- func (o *OutputFile) GetMeta() *OutputFileMeta
- func (o *OutputFile) GetPath() string
- func (o *OutputFile) GetSha256() *string
- func (o *OutputFile) GetSize() int
- func (o *OutputFile) GetType() OutputFileType
- func (o *OutputFile) GetURL() string
- func (o *OutputFile) MarshalJSON() ([]byte, error)
- func (o *OutputFile) SetMeta(meta *OutputFileMeta)
- func (o *OutputFile) SetPath(path string)
- func (o *OutputFile) SetSha256(sha256 *string)
- func (o *OutputFile) SetSize(size int)
- func (o *OutputFile) SetType(type_ OutputFileType)
- func (o *OutputFile) SetURL(url string)
- func (o *OutputFile) String() string
- func (o *OutputFile) UnmarshalJSON(data []byte) error
- type OutputFileMeta
- func (o *OutputFileMeta) GetDurationMs() *int
- func (o *OutputFileMeta) GetExtraProperties() map[string]interface{}
- func (o *OutputFileMeta) GetFormat() *string
- func (o *OutputFileMeta) GetHeight() *int
- func (o *OutputFileMeta) GetSeed() *int
- func (o *OutputFileMeta) GetWidth() *int
- func (o *OutputFileMeta) MarshalJSON() ([]byte, error)
- func (o *OutputFileMeta) SetDurationMs(durationMs *int)
- func (o *OutputFileMeta) SetFormat(format *string)
- func (o *OutputFileMeta) SetHeight(height *int)
- func (o *OutputFileMeta) SetSeed(seed *int)
- func (o *OutputFileMeta) SetWidth(width *int)
- func (o *OutputFileMeta) String() string
- func (o *OutputFileMeta) UnmarshalJSON(data []byte) error
- type OutputFileType
- type PaymentRequiredError
- type SettledDelivery
- func (s *SettledDelivery) GetExtraProperties() map[string]interface{}
- func (s *SettledDelivery) GetPath() *string
- func (s *SettledDelivery) GetReason() *SettledDeliveryReason
- func (s *SettledDelivery) GetRenamed() *bool
- func (s *SettledDelivery) GetStatus() SettledDeliveryStatus
- func (s *SettledDelivery) GetStorageID() string
- func (s *SettledDelivery) GetURL() *string
- func (s *SettledDelivery) MarshalJSON() ([]byte, error)
- func (s *SettledDelivery) SetPath(path *string)
- func (s *SettledDelivery) SetReason(reason *SettledDeliveryReason)
- func (s *SettledDelivery) SetRenamed(renamed *bool)
- func (s *SettledDelivery) SetStatus(status SettledDeliveryStatus)
- func (s *SettledDelivery) SetStorageID(storageID string)
- func (s *SettledDelivery) SetURL(url *string)
- func (s *SettledDelivery) String() string
- func (s *SettledDelivery) UnmarshalJSON(data []byte) error
- type SettledDeliveryReason
- type SettledDeliveryStatus
- type SubmitAnyJob
- func (s *SubmitAnyJob) GetCallback() *SubmitAnyJobCallback
- func (s *SubmitAnyJob) GetDestinations() []string
- func (s *SubmitAnyJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitAnyJob) GetForceAsync() *bool
- func (s *SubmitAnyJob) GetIdempotencyKey() *string
- func (s *SubmitAnyJob) GetInputs() map[string]any
- func (s *SubmitAnyJob) GetLabel() *string
- func (s *SubmitAnyJob) GetParams() map[string]any
- func (s *SubmitAnyJob) GetType() string
- func (s *SubmitAnyJob) MarshalJSON() ([]byte, error)
- func (s *SubmitAnyJob) SetCallback(callback *SubmitAnyJobCallback)
- func (s *SubmitAnyJob) SetDestinations(destinations []string)
- func (s *SubmitAnyJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitAnyJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitAnyJob) SetInputs(inputs map[string]any)
- func (s *SubmitAnyJob) SetLabel(label *string)
- func (s *SubmitAnyJob) SetParams(params map[string]any)
- func (s *SubmitAnyJob) SetType(type_ string)
- func (s *SubmitAnyJob) String() string
- func (s *SubmitAnyJob) UnmarshalJSON(data []byte) error
- type SubmitAnyJobCallback
- func (s *SubmitAnyJobCallback) GetEvents() []SubmitAnyJobCallbackEventsItem
- func (s *SubmitAnyJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitAnyJobCallback) GetHeaders() map[string]string
- func (s *SubmitAnyJobCallback) GetURL() string
- func (s *SubmitAnyJobCallback) GetVerify() *bool
- func (s *SubmitAnyJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitAnyJobCallback) SetEvents(events []SubmitAnyJobCallbackEventsItem)
- func (s *SubmitAnyJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitAnyJobCallback) SetURL(url string)
- func (s *SubmitAnyJobCallback) SetVerify(verify *bool)
- func (s *SubmitAnyJobCallback) String() string
- func (s *SubmitAnyJobCallback) UnmarshalJSON(data []byte) error
- type SubmitAnyJobCallbackEventsItem
- type SubmitCaptionBurnJob
- func (s *SubmitCaptionBurnJob) GetCallback() *SubmitCaptionBurnJobCallback
- func (s *SubmitCaptionBurnJob) GetDestinations() []string
- func (s *SubmitCaptionBurnJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitCaptionBurnJob) GetForceAsync() *bool
- func (s *SubmitCaptionBurnJob) GetIdempotencyKey() *string
- func (s *SubmitCaptionBurnJob) GetInputs() map[string]any
- func (s *SubmitCaptionBurnJob) GetLabel() *string
- func (s *SubmitCaptionBurnJob) GetParams() *CaptionBurnParams
- func (s *SubmitCaptionBurnJob) GetType() SubmitCaptionBurnJobType
- func (s *SubmitCaptionBurnJob) MarshalJSON() ([]byte, error)
- func (s *SubmitCaptionBurnJob) SetCallback(callback *SubmitCaptionBurnJobCallback)
- func (s *SubmitCaptionBurnJob) SetDestinations(destinations []string)
- func (s *SubmitCaptionBurnJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitCaptionBurnJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitCaptionBurnJob) SetInputs(inputs map[string]any)
- func (s *SubmitCaptionBurnJob) SetLabel(label *string)
- func (s *SubmitCaptionBurnJob) SetParams(params *CaptionBurnParams)
- func (s *SubmitCaptionBurnJob) SetType(type_ SubmitCaptionBurnJobType)
- func (s *SubmitCaptionBurnJob) String() string
- func (s *SubmitCaptionBurnJob) UnmarshalJSON(data []byte) error
- type SubmitCaptionBurnJobCallback
- func (s *SubmitCaptionBurnJobCallback) GetEvents() []SubmitCaptionBurnJobCallbackEventsItem
- func (s *SubmitCaptionBurnJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitCaptionBurnJobCallback) GetHeaders() map[string]string
- func (s *SubmitCaptionBurnJobCallback) GetURL() string
- func (s *SubmitCaptionBurnJobCallback) GetVerify() *bool
- func (s *SubmitCaptionBurnJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitCaptionBurnJobCallback) SetEvents(events []SubmitCaptionBurnJobCallbackEventsItem)
- func (s *SubmitCaptionBurnJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitCaptionBurnJobCallback) SetURL(url string)
- func (s *SubmitCaptionBurnJobCallback) SetVerify(verify *bool)
- func (s *SubmitCaptionBurnJobCallback) String() string
- func (s *SubmitCaptionBurnJobCallback) UnmarshalJSON(data []byte) error
- type SubmitCaptionBurnJobCallbackEventsItem
- type SubmitCaptionBurnJobType
- type SubmitCaptionsAnimateJob
- func (s *SubmitCaptionsAnimateJob) GetCallback() *SubmitCaptionsAnimateJobCallback
- func (s *SubmitCaptionsAnimateJob) GetDestinations() []string
- func (s *SubmitCaptionsAnimateJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitCaptionsAnimateJob) GetForceAsync() *bool
- func (s *SubmitCaptionsAnimateJob) GetIdempotencyKey() *string
- func (s *SubmitCaptionsAnimateJob) GetInputs() map[string]any
- func (s *SubmitCaptionsAnimateJob) GetLabel() *string
- func (s *SubmitCaptionsAnimateJob) GetParams() *CaptionsAnimateParams
- func (s *SubmitCaptionsAnimateJob) GetType() SubmitCaptionsAnimateJobType
- func (s *SubmitCaptionsAnimateJob) MarshalJSON() ([]byte, error)
- func (s *SubmitCaptionsAnimateJob) SetCallback(callback *SubmitCaptionsAnimateJobCallback)
- func (s *SubmitCaptionsAnimateJob) SetDestinations(destinations []string)
- func (s *SubmitCaptionsAnimateJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitCaptionsAnimateJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitCaptionsAnimateJob) SetInputs(inputs map[string]any)
- func (s *SubmitCaptionsAnimateJob) SetLabel(label *string)
- func (s *SubmitCaptionsAnimateJob) SetParams(params *CaptionsAnimateParams)
- func (s *SubmitCaptionsAnimateJob) SetType(type_ SubmitCaptionsAnimateJobType)
- func (s *SubmitCaptionsAnimateJob) String() string
- func (s *SubmitCaptionsAnimateJob) UnmarshalJSON(data []byte) error
- type SubmitCaptionsAnimateJobCallback
- func (s *SubmitCaptionsAnimateJobCallback) GetEvents() []SubmitCaptionsAnimateJobCallbackEventsItem
- func (s *SubmitCaptionsAnimateJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitCaptionsAnimateJobCallback) GetHeaders() map[string]string
- func (s *SubmitCaptionsAnimateJobCallback) GetURL() string
- func (s *SubmitCaptionsAnimateJobCallback) GetVerify() *bool
- func (s *SubmitCaptionsAnimateJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitCaptionsAnimateJobCallback) SetEvents(events []SubmitCaptionsAnimateJobCallbackEventsItem)
- func (s *SubmitCaptionsAnimateJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitCaptionsAnimateJobCallback) SetURL(url string)
- func (s *SubmitCaptionsAnimateJobCallback) SetVerify(verify *bool)
- func (s *SubmitCaptionsAnimateJobCallback) String() string
- func (s *SubmitCaptionsAnimateJobCallback) UnmarshalJSON(data []byte) error
- type SubmitCaptionsAnimateJobCallbackEventsItem
- type SubmitCaptionsAnimateJobType
- type SubmitCompressTargetJob
- func (s *SubmitCompressTargetJob) GetCallback() *SubmitCompressTargetJobCallback
- func (s *SubmitCompressTargetJob) GetDestinations() []string
- func (s *SubmitCompressTargetJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitCompressTargetJob) GetForceAsync() *bool
- func (s *SubmitCompressTargetJob) GetIdempotencyKey() *string
- func (s *SubmitCompressTargetJob) GetInputs() map[string]any
- func (s *SubmitCompressTargetJob) GetLabel() *string
- func (s *SubmitCompressTargetJob) GetParams() *CompressTargetParams
- func (s *SubmitCompressTargetJob) GetType() SubmitCompressTargetJobType
- func (s *SubmitCompressTargetJob) MarshalJSON() ([]byte, error)
- func (s *SubmitCompressTargetJob) SetCallback(callback *SubmitCompressTargetJobCallback)
- func (s *SubmitCompressTargetJob) SetDestinations(destinations []string)
- func (s *SubmitCompressTargetJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitCompressTargetJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitCompressTargetJob) SetInputs(inputs map[string]any)
- func (s *SubmitCompressTargetJob) SetLabel(label *string)
- func (s *SubmitCompressTargetJob) SetParams(params *CompressTargetParams)
- func (s *SubmitCompressTargetJob) SetType(type_ SubmitCompressTargetJobType)
- func (s *SubmitCompressTargetJob) String() string
- func (s *SubmitCompressTargetJob) UnmarshalJSON(data []byte) error
- type SubmitCompressTargetJobCallback
- func (s *SubmitCompressTargetJobCallback) GetEvents() []SubmitCompressTargetJobCallbackEventsItem
- func (s *SubmitCompressTargetJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitCompressTargetJobCallback) GetHeaders() map[string]string
- func (s *SubmitCompressTargetJobCallback) GetURL() string
- func (s *SubmitCompressTargetJobCallback) GetVerify() *bool
- func (s *SubmitCompressTargetJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitCompressTargetJobCallback) SetEvents(events []SubmitCompressTargetJobCallbackEventsItem)
- func (s *SubmitCompressTargetJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitCompressTargetJobCallback) SetURL(url string)
- func (s *SubmitCompressTargetJobCallback) SetVerify(verify *bool)
- func (s *SubmitCompressTargetJobCallback) String() string
- func (s *SubmitCompressTargetJobCallback) UnmarshalJSON(data []byte) error
- type SubmitCompressTargetJobCallbackEventsItem
- type SubmitCompressTargetJobType
- type SubmitFfmpegJob
- func (s *SubmitFfmpegJob) GetCallback() *SubmitFfmpegJobCallback
- func (s *SubmitFfmpegJob) GetDestinations() []string
- func (s *SubmitFfmpegJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitFfmpegJob) GetForceAsync() *bool
- func (s *SubmitFfmpegJob) GetIdempotencyKey() *string
- func (s *SubmitFfmpegJob) GetInputs() map[string]any
- func (s *SubmitFfmpegJob) GetLabel() *string
- func (s *SubmitFfmpegJob) GetParams() *FfmpegParams
- func (s *SubmitFfmpegJob) GetType() SubmitFfmpegJobType
- func (s *SubmitFfmpegJob) MarshalJSON() ([]byte, error)
- func (s *SubmitFfmpegJob) SetCallback(callback *SubmitFfmpegJobCallback)
- func (s *SubmitFfmpegJob) SetDestinations(destinations []string)
- func (s *SubmitFfmpegJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitFfmpegJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitFfmpegJob) SetInputs(inputs map[string]any)
- func (s *SubmitFfmpegJob) SetLabel(label *string)
- func (s *SubmitFfmpegJob) SetParams(params *FfmpegParams)
- func (s *SubmitFfmpegJob) SetType(type_ SubmitFfmpegJobType)
- func (s *SubmitFfmpegJob) String() string
- func (s *SubmitFfmpegJob) UnmarshalJSON(data []byte) error
- type SubmitFfmpegJobCallback
- func (s *SubmitFfmpegJobCallback) GetEvents() []SubmitFfmpegJobCallbackEventsItem
- func (s *SubmitFfmpegJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitFfmpegJobCallback) GetHeaders() map[string]string
- func (s *SubmitFfmpegJobCallback) GetURL() string
- func (s *SubmitFfmpegJobCallback) GetVerify() *bool
- func (s *SubmitFfmpegJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitFfmpegJobCallback) SetEvents(events []SubmitFfmpegJobCallbackEventsItem)
- func (s *SubmitFfmpegJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitFfmpegJobCallback) SetURL(url string)
- func (s *SubmitFfmpegJobCallback) SetVerify(verify *bool)
- func (s *SubmitFfmpegJobCallback) String() string
- func (s *SubmitFfmpegJobCallback) UnmarshalJSON(data []byte) error
- type SubmitFfmpegJobCallbackEventsItem
- type SubmitFfmpegJobType
- type SubmitFfprobeJob
- func (s *SubmitFfprobeJob) GetCallback() *SubmitFfprobeJobCallback
- func (s *SubmitFfprobeJob) GetDestinations() []string
- func (s *SubmitFfprobeJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitFfprobeJob) GetForceAsync() *bool
- func (s *SubmitFfprobeJob) GetIdempotencyKey() *string
- func (s *SubmitFfprobeJob) GetInputs() map[string]any
- func (s *SubmitFfprobeJob) GetLabel() *string
- func (s *SubmitFfprobeJob) GetParams() *FfprobeParams
- func (s *SubmitFfprobeJob) GetType() SubmitFfprobeJobType
- func (s *SubmitFfprobeJob) MarshalJSON() ([]byte, error)
- func (s *SubmitFfprobeJob) SetCallback(callback *SubmitFfprobeJobCallback)
- func (s *SubmitFfprobeJob) SetDestinations(destinations []string)
- func (s *SubmitFfprobeJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitFfprobeJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitFfprobeJob) SetInputs(inputs map[string]any)
- func (s *SubmitFfprobeJob) SetLabel(label *string)
- func (s *SubmitFfprobeJob) SetParams(params *FfprobeParams)
- func (s *SubmitFfprobeJob) SetType(type_ SubmitFfprobeJobType)
- func (s *SubmitFfprobeJob) String() string
- func (s *SubmitFfprobeJob) UnmarshalJSON(data []byte) error
- type SubmitFfprobeJobCallback
- func (s *SubmitFfprobeJobCallback) GetEvents() []SubmitFfprobeJobCallbackEventsItem
- func (s *SubmitFfprobeJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitFfprobeJobCallback) GetHeaders() map[string]string
- func (s *SubmitFfprobeJobCallback) GetURL() string
- func (s *SubmitFfprobeJobCallback) GetVerify() *bool
- func (s *SubmitFfprobeJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitFfprobeJobCallback) SetEvents(events []SubmitFfprobeJobCallbackEventsItem)
- func (s *SubmitFfprobeJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitFfprobeJobCallback) SetURL(url string)
- func (s *SubmitFfprobeJobCallback) SetVerify(verify *bool)
- func (s *SubmitFfprobeJobCallback) String() string
- func (s *SubmitFfprobeJobCallback) UnmarshalJSON(data []byte) error
- type SubmitFfprobeJobCallbackEventsItem
- type SubmitFfprobeJobType
- type SubmitImageEditJob
- func (s *SubmitImageEditJob) GetCallback() *SubmitImageEditJobCallback
- func (s *SubmitImageEditJob) GetDestinations() []string
- func (s *SubmitImageEditJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageEditJob) GetForceAsync() *bool
- func (s *SubmitImageEditJob) GetIdempotencyKey() *string
- func (s *SubmitImageEditJob) GetInputs() map[string]any
- func (s *SubmitImageEditJob) GetLabel() *string
- func (s *SubmitImageEditJob) GetParams() *ImageEditParams
- func (s *SubmitImageEditJob) GetType() SubmitImageEditJobType
- func (s *SubmitImageEditJob) MarshalJSON() ([]byte, error)
- func (s *SubmitImageEditJob) SetCallback(callback *SubmitImageEditJobCallback)
- func (s *SubmitImageEditJob) SetDestinations(destinations []string)
- func (s *SubmitImageEditJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitImageEditJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitImageEditJob) SetInputs(inputs map[string]any)
- func (s *SubmitImageEditJob) SetLabel(label *string)
- func (s *SubmitImageEditJob) SetParams(params *ImageEditParams)
- func (s *SubmitImageEditJob) SetType(type_ SubmitImageEditJobType)
- func (s *SubmitImageEditJob) String() string
- func (s *SubmitImageEditJob) UnmarshalJSON(data []byte) error
- type SubmitImageEditJobCallback
- func (s *SubmitImageEditJobCallback) GetEvents() []SubmitImageEditJobCallbackEventsItem
- func (s *SubmitImageEditJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageEditJobCallback) GetHeaders() map[string]string
- func (s *SubmitImageEditJobCallback) GetURL() string
- func (s *SubmitImageEditJobCallback) GetVerify() *bool
- func (s *SubmitImageEditJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitImageEditJobCallback) SetEvents(events []SubmitImageEditJobCallbackEventsItem)
- func (s *SubmitImageEditJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitImageEditJobCallback) SetURL(url string)
- func (s *SubmitImageEditJobCallback) SetVerify(verify *bool)
- func (s *SubmitImageEditJobCallback) String() string
- func (s *SubmitImageEditJobCallback) UnmarshalJSON(data []byte) error
- type SubmitImageEditJobCallbackEventsItem
- type SubmitImageEditJobType
- type SubmitImageGenerateJob
- func (s *SubmitImageGenerateJob) GetCallback() *SubmitImageGenerateJobCallback
- func (s *SubmitImageGenerateJob) GetDestinations() []string
- func (s *SubmitImageGenerateJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageGenerateJob) GetForceAsync() *bool
- func (s *SubmitImageGenerateJob) GetIdempotencyKey() *string
- func (s *SubmitImageGenerateJob) GetInputs() map[string]any
- func (s *SubmitImageGenerateJob) GetLabel() *string
- func (s *SubmitImageGenerateJob) GetParams() *ImageGenerateParams
- func (s *SubmitImageGenerateJob) GetType() SubmitImageGenerateJobType
- func (s *SubmitImageGenerateJob) MarshalJSON() ([]byte, error)
- func (s *SubmitImageGenerateJob) SetCallback(callback *SubmitImageGenerateJobCallback)
- func (s *SubmitImageGenerateJob) SetDestinations(destinations []string)
- func (s *SubmitImageGenerateJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitImageGenerateJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitImageGenerateJob) SetInputs(inputs map[string]any)
- func (s *SubmitImageGenerateJob) SetLabel(label *string)
- func (s *SubmitImageGenerateJob) SetParams(params *ImageGenerateParams)
- func (s *SubmitImageGenerateJob) SetType(type_ SubmitImageGenerateJobType)
- func (s *SubmitImageGenerateJob) String() string
- func (s *SubmitImageGenerateJob) UnmarshalJSON(data []byte) error
- type SubmitImageGenerateJobCallback
- func (s *SubmitImageGenerateJobCallback) GetEvents() []SubmitImageGenerateJobCallbackEventsItem
- func (s *SubmitImageGenerateJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageGenerateJobCallback) GetHeaders() map[string]string
- func (s *SubmitImageGenerateJobCallback) GetURL() string
- func (s *SubmitImageGenerateJobCallback) GetVerify() *bool
- func (s *SubmitImageGenerateJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitImageGenerateJobCallback) SetEvents(events []SubmitImageGenerateJobCallbackEventsItem)
- func (s *SubmitImageGenerateJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitImageGenerateJobCallback) SetURL(url string)
- func (s *SubmitImageGenerateJobCallback) SetVerify(verify *bool)
- func (s *SubmitImageGenerateJobCallback) String() string
- func (s *SubmitImageGenerateJobCallback) UnmarshalJSON(data []byte) error
- type SubmitImageGenerateJobCallbackEventsItem
- type SubmitImageGenerateJobType
- type SubmitImageUpscaleJob
- func (s *SubmitImageUpscaleJob) GetCallback() *SubmitImageUpscaleJobCallback
- func (s *SubmitImageUpscaleJob) GetDestinations() []string
- func (s *SubmitImageUpscaleJob) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageUpscaleJob) GetForceAsync() *bool
- func (s *SubmitImageUpscaleJob) GetIdempotencyKey() *string
- func (s *SubmitImageUpscaleJob) GetInputs() map[string]any
- func (s *SubmitImageUpscaleJob) GetLabel() *string
- func (s *SubmitImageUpscaleJob) GetParams() *ImageUpscaleParams
- func (s *SubmitImageUpscaleJob) GetType() SubmitImageUpscaleJobType
- func (s *SubmitImageUpscaleJob) MarshalJSON() ([]byte, error)
- func (s *SubmitImageUpscaleJob) SetCallback(callback *SubmitImageUpscaleJobCallback)
- func (s *SubmitImageUpscaleJob) SetDestinations(destinations []string)
- func (s *SubmitImageUpscaleJob) SetForceAsync(forceAsync *bool)
- func (s *SubmitImageUpscaleJob) SetIdempotencyKey(idempotencyKey *string)
- func (s *SubmitImageUpscaleJob) SetInputs(inputs map[string]any)
- func (s *SubmitImageUpscaleJob) SetLabel(label *string)
- func (s *SubmitImageUpscaleJob) SetParams(params *ImageUpscaleParams)
- func (s *SubmitImageUpscaleJob) SetType(type_ SubmitImageUpscaleJobType)
- func (s *SubmitImageUpscaleJob) String() string
- func (s *SubmitImageUpscaleJob) UnmarshalJSON(data []byte) error
- type SubmitImageUpscaleJobCallback
- func (s *SubmitImageUpscaleJobCallback) GetEvents() []SubmitImageUpscaleJobCallbackEventsItem
- func (s *SubmitImageUpscaleJobCallback) GetExtraProperties() map[string]interface{}
- func (s *SubmitImageUpscaleJobCallback) GetHeaders() map[string]string
- func (s *SubmitImageUpscaleJobCallback) GetURL() string
- func (s *SubmitImageUpscaleJobCallback) GetVerify() *bool
- func (s *SubmitImageUpscaleJobCallback) MarshalJSON() ([]byte, error)
- func (s *SubmitImageUpscaleJobCallback) SetEvents(events []SubmitImageUpscaleJobCallbackEventsItem)
- func (s *SubmitImageUpscaleJobCallback) SetHeaders(headers map[string]string)
- func (s *SubmitImageUpscaleJobCallback) SetURL(url string)
- func (s *SubmitImageUpscaleJobCallback) SetVerify(verify *bool)
- func (s *SubmitImageUpscaleJobCallback) String() string
- func (s *SubmitImageUpscaleJobCallback) UnmarshalJSON(data []byte) error
- type SubmitImageUpscaleJobCallbackEventsItem
- type SubmitImageUpscaleJobType
- type SubmitJobRequest
- func (s *SubmitJobRequest) Accept(visitor SubmitJobRequestVisitor) error
- func (s *SubmitJobRequest) GetSubmitAnyJob() *SubmitAnyJob
- func (s *SubmitJobRequest) GetSubmitCaptionBurnJob() *SubmitCaptionBurnJob
- func (s *SubmitJobRequest) GetSubmitCaptionsAnimateJob() *SubmitCaptionsAnimateJob
- func (s *SubmitJobRequest) GetSubmitCompressTargetJob() *SubmitCompressTargetJob
- func (s *SubmitJobRequest) GetSubmitFfmpegJob() *SubmitFfmpegJob
- func (s *SubmitJobRequest) GetSubmitFfprobeJob() *SubmitFfprobeJob
- func (s *SubmitJobRequest) GetSubmitImageEditJob() *SubmitImageEditJob
- func (s *SubmitJobRequest) GetSubmitImageGenerateJob() *SubmitImageGenerateJob
- func (s *SubmitJobRequest) GetSubmitImageUpscaleJob() *SubmitImageUpscaleJob
- func (s SubmitJobRequest) MarshalJSON() ([]byte, error)
- func (s *SubmitJobRequest) UnmarshalJSON(data []byte) error
- type SubmitJobRequestVisitor
- type SubmitJobResponse
- func (s *SubmitJobResponse) GetData() *SubmitJobResponseData
- func (s *SubmitJobResponse) GetExtraProperties() map[string]interface{}
- func (s *SubmitJobResponse) MarshalJSON() ([]byte, error)
- func (s *SubmitJobResponse) SetData(data *SubmitJobResponseData)
- func (s *SubmitJobResponse) String() string
- func (s *SubmitJobResponse) UnmarshalJSON(data []byte) error
- type SubmitJobResponseData
- func (s *SubmitJobResponseData) Accept(visitor SubmitJobResponseDataVisitor) error
- func (s *SubmitJobResponseData) GetJobCompletedOnSubmit() *JobCompletedOnSubmit
- func (s *SubmitJobResponseData) GetJobReplayed() *JobReplayed
- func (s SubmitJobResponseData) MarshalJSON() ([]byte, error)
- func (s *SubmitJobResponseData) UnmarshalJSON(data []byte) error
- type SubmitJobResponseDataVisitor
- type TestEventData
- func (t *TestEventData) GetEndpointID() string
- func (t *TestEventData) GetExtraProperties() map[string]interface{}
- func (t *TestEventData) GetMessage() string
- func (t *TestEventData) MarshalJSON() ([]byte, error)
- func (t *TestEventData) SetEndpointID(endpointID string)
- func (t *TestEventData) SetMessage(message string)
- func (t *TestEventData) String() string
- func (t *TestEventData) UnmarshalJSON(data []byte) error
- type TestWebhookEvent
- func (t *TestWebhookEvent) GetData() *TestEventData
- func (t *TestWebhookEvent) GetDeliveryID() string
- func (t *TestWebhookEvent) GetExtraProperties() map[string]interface{}
- func (t *TestWebhookEvent) GetOrgID() string
- func (t *TestWebhookEvent) GetTimestamp() int
- func (t *TestWebhookEvent) GetVersion() TestWebhookEventVersion
- func (t *TestWebhookEvent) MarshalJSON() ([]byte, error)
- func (t *TestWebhookEvent) SetData(data *TestEventData)
- func (t *TestWebhookEvent) SetDeliveryID(deliveryID string)
- func (t *TestWebhookEvent) SetOrgID(orgID string)
- func (t *TestWebhookEvent) SetTimestamp(timestamp int)
- func (t *TestWebhookEvent) SetVersion(version TestWebhookEventVersion)
- func (t *TestWebhookEvent) String() string
- func (t *TestWebhookEvent) UnmarshalJSON(data []byte) error
- type TestWebhookEventVersion
- type TooManyRequestsError
- type UnauthorizedError
- type WebhookEndpoint
- func (w *WebhookEndpoint) GetActive() bool
- func (w *WebhookEndpoint) GetConsecutiveFailures() int
- func (w *WebhookEndpoint) GetCreatedAt() int
- func (w *WebhookEndpoint) GetDisabledReason() *string
- func (w *WebhookEndpoint) GetExtraProperties() map[string]interface{}
- func (w *WebhookEndpoint) GetID() string
- func (w *WebhookEndpoint) GetName() string
- func (w *WebhookEndpoint) GetRotationActive() bool
- func (w *WebhookEndpoint) GetSecretExpiresAt() *int
- func (w *WebhookEndpoint) GetSigningSecret() string
- func (w *WebhookEndpoint) GetSubscribedEvents() []string
- func (w *WebhookEndpoint) GetURL() string
- func (w *WebhookEndpoint) GetUpdatedAt() int
- func (w *WebhookEndpoint) MarshalJSON() ([]byte, error)
- func (w *WebhookEndpoint) SetActive(active bool)
- func (w *WebhookEndpoint) SetConsecutiveFailures(consecutiveFailures int)
- func (w *WebhookEndpoint) SetCreatedAt(createdAt int)
- func (w *WebhookEndpoint) SetDisabledReason(disabledReason *string)
- func (w *WebhookEndpoint) SetID(id string)
- func (w *WebhookEndpoint) SetName(name string)
- func (w *WebhookEndpoint) SetRotationActive(rotationActive bool)
- func (w *WebhookEndpoint) SetSecretExpiresAt(secretExpiresAt *int)
- func (w *WebhookEndpoint) SetSigningSecret(signingSecret string)
- func (w *WebhookEndpoint) SetSubscribedEvents(subscribedEvents []string)
- func (w *WebhookEndpoint) SetURL(url string)
- func (w *WebhookEndpoint) SetUpdatedAt(updatedAt int)
- func (w *WebhookEndpoint) String() string
- func (w *WebhookEndpoint) UnmarshalJSON(data []byte) error
- type WebhookJobCost
- func (w *WebhookJobCost) GetAmount() int
- func (w *WebhookJobCost) GetBreakdown() string
- func (w *WebhookJobCost) GetCurrency() WebhookJobCostCurrency
- func (w *WebhookJobCost) GetExtraProperties() map[string]interface{}
- func (w *WebhookJobCost) GetFormatted() string
- func (w *WebhookJobCost) MarshalJSON() ([]byte, error)
- func (w *WebhookJobCost) SetAmount(amount int)
- func (w *WebhookJobCost) SetBreakdown(breakdown string)
- func (w *WebhookJobCost) SetCurrency(currency WebhookJobCostCurrency)
- func (w *WebhookJobCost) SetFormatted(formatted string)
- func (w *WebhookJobCost) String() string
- func (w *WebhookJobCost) UnmarshalJSON(data []byte) error
- type WebhookJobCostCurrency
- type WebhookJobStep
- func (w *WebhookJobStep) GetDurationMs() *int
- func (w *WebhookJobStep) GetError() *string
- func (w *WebhookJobStep) GetExtraProperties() map[string]interface{}
- func (w *WebhookJobStep) GetID() string
- func (w *WebhookJobStep) GetName() string
- func (w *WebhookJobStep) GetStatus() string
- func (w *WebhookJobStep) MarshalJSON() ([]byte, error)
- func (w *WebhookJobStep) SetDurationMs(durationMs *int)
- func (w *WebhookJobStep) SetError(error_ *string)
- func (w *WebhookJobStep) SetID(id string)
- func (w *WebhookJobStep) SetName(name string)
- func (w *WebhookJobStep) SetStatus(status string)
- func (w *WebhookJobStep) String() string
- func (w *WebhookJobStep) UnmarshalJSON(data []byte) error
- type WebhookPayload
- func (w *WebhookPayload) Accept(visitor WebhookPayloadVisitor) error
- func (w *WebhookPayload) GetBalanceDepleted() *BalanceDepletedWebhookEvent
- func (w *WebhookPayload) GetBalanceLow() *BalanceLowWebhookEvent
- func (w *WebhookPayload) GetEvent() string
- func (w *WebhookPayload) GetJobCancelled() *JobCancelledWebhookEvent
- func (w *WebhookPayload) GetJobCompleted() *JobCompletedWebhookEvent
- func (w *WebhookPayload) GetJobCreated() *JobCreatedWebhookEvent
- func (w *WebhookPayload) GetJobDeliveriesSettled() *JobDeliveriesSettledWebhookEvent
- func (w *WebhookPayload) GetJobDeliveryFailed() *JobDeliveryFailedWebhookEvent
- func (w *WebhookPayload) GetJobDeliverySucceeded() *JobDeliverySucceededWebhookEvent
- func (w *WebhookPayload) GetJobFailed() *JobFailedWebhookEvent
- func (w *WebhookPayload) GetJobStarted() *JobStartedWebhookEvent
- func (w *WebhookPayload) GetTest() *TestWebhookEvent
- func (w WebhookPayload) MarshalJSON() ([]byte, error)
- func (w *WebhookPayload) UnmarshalJSON(data []byte) error
- type WebhookPayloadVisitor
Constants ¶
This section is empty.
Variables ¶
var Environments = struct { Default string }{ Default: "https://api.rendobar.com", }
Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ 429: func(apiError *core.APIError) error { return &TooManyRequestsError{ APIError: apiError, } }, 404: func(apiError *core.APIError) error { return &NotFoundError{ APIError: apiError, } }, 401: func(apiError *core.APIError) error { return &UnauthorizedError{ APIError: apiError, } }, 400: func(apiError *core.APIError) error { return &BadRequestError{ APIError: apiError, } }, 402: func(apiError *core.APIError) error { return &PaymentRequiredError{ APIError: apiError, } }, 403: func(apiError *core.APIError) error { return &ForbiddenError{ APIError: apiError, } }, 409: func(apiError *core.APIError) error { return &ConflictError{ APIError: apiError, } }, 500: func(apiError *core.APIError) error { return &InternalServerError{ APIError: apiError, } }, }
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type APIKey ¶
type APIKey struct {
ID string `json:"id" url:"id"`
Name string `json:"name" url:"name"`
// Key prefix (rb_xxx)
Prefix string `json:"prefix" url:"prefix"`
// False when the key is disabled (soft-revoked)
Enabled bool `json:"enabled" url:"enabled"`
// Unix ms
CreatedAt int `json:"createdAt" url:"createdAt"`
LastUsedAt *int `json:"lastUsedAt,omitempty" url:"lastUsedAt,omitempty"`
ExpiresAt *int `json:"expiresAt,omitempty" url:"expiresAt,omitempty"`
// What the key may do, `write` including `read`. Set when the key is created and never changed by its creator's role. Never keys:write.
Scopes []string `json:"scopes" url:"scopes"`
// Who created the key. Null when that account no longer exists.
CreatedBy *APIKeyCreatedBy `json:"createdBy,omitempty" url:"createdBy,omitempty"`
// Whether the caller may rename, disable or revoke this key.
Manageable bool `json:"manageable" url:"manageable"`
// Who disabled the key. Null when it is enabled, or was disabled before this was recorded.
DisabledBy *APIKeyDisabledBy `json:"disabledBy,omitempty" url:"disabledBy,omitempty"`
// Unix ms the key was disabled, when recorded.
DisabledAt *int `json:"disabledAt,omitempty" url:"disabledAt,omitempty"`
// contains filtered or unexported fields
}
func (*APIKey) GetCreatedAt ¶
func (*APIKey) GetCreatedBy ¶
func (a *APIKey) GetCreatedBy() *APIKeyCreatedBy
func (*APIKey) GetDisabledAt ¶
func (*APIKey) GetDisabledBy ¶
func (a *APIKey) GetDisabledBy() *APIKeyDisabledBy
func (*APIKey) GetEnabled ¶
func (*APIKey) GetExpiresAt ¶
func (*APIKey) GetExtraProperties ¶
func (*APIKey) GetLastUsedAt ¶
func (*APIKey) GetManageable ¶
func (*APIKey) MarshalJSON ¶
func (*APIKey) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetCreatedBy ¶
func (a *APIKey) SetCreatedBy(createdBy *APIKeyCreatedBy)
SetCreatedBy sets the CreatedBy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetDisabledAt ¶
SetDisabledAt sets the DisabledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetDisabledBy ¶
func (a *APIKey) SetDisabledBy(disabledBy *APIKeyDisabledBy)
SetDisabledBy sets the DisabledBy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetEnabled ¶
SetEnabled sets the Enabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetExpiresAt ¶
SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetID ¶
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetLastUsedAt ¶
SetLastUsedAt sets the LastUsedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetManageable ¶
SetManageable sets the Manageable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetName ¶
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetPrefix ¶
SetPrefix sets the Prefix field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) SetScopes ¶
SetScopes sets the Scopes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKey) UnmarshalJSON ¶
type APIKeyCreatedBy ¶
type APIKeyCreatedBy struct {
Name string `json:"name" url:"name"`
// False once the creator has left the workspace. The key stays.
InWorkspace bool `json:"inWorkspace" url:"inWorkspace"`
// The creator's email, as the Team page shows it. Null once they have left, or when the caller cannot read the team.
Email *string `json:"email,omitempty" url:"email,omitempty"`
// The creator's role in this workspace now. Null once they have left, or when the caller cannot read the team.
Role *APIKeyCreatedByRole `json:"role,omitempty" url:"role,omitempty"`
// contains filtered or unexported fields
}
Who created the key. Null when that account no longer exists.
func (*APIKeyCreatedBy) GetEmail ¶
func (a *APIKeyCreatedBy) GetEmail() *string
func (*APIKeyCreatedBy) GetExtraProperties ¶
func (a *APIKeyCreatedBy) GetExtraProperties() map[string]interface{}
func (*APIKeyCreatedBy) GetInWorkspace ¶
func (a *APIKeyCreatedBy) GetInWorkspace() bool
func (*APIKeyCreatedBy) GetName ¶
func (a *APIKeyCreatedBy) GetName() string
func (*APIKeyCreatedBy) GetRole ¶
func (a *APIKeyCreatedBy) GetRole() *APIKeyCreatedByRole
func (*APIKeyCreatedBy) MarshalJSON ¶
func (a *APIKeyCreatedBy) MarshalJSON() ([]byte, error)
func (*APIKeyCreatedBy) SetEmail ¶
func (a *APIKeyCreatedBy) SetEmail(email *string)
SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKeyCreatedBy) SetInWorkspace ¶
func (a *APIKeyCreatedBy) SetInWorkspace(inWorkspace bool)
SetInWorkspace sets the InWorkspace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKeyCreatedBy) SetName ¶
func (a *APIKeyCreatedBy) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKeyCreatedBy) SetRole ¶
func (a *APIKeyCreatedBy) SetRole(role *APIKeyCreatedByRole)
SetRole sets the Role field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKeyCreatedBy) String ¶
func (a *APIKeyCreatedBy) String() string
func (*APIKeyCreatedBy) UnmarshalJSON ¶
func (a *APIKeyCreatedBy) UnmarshalJSON(data []byte) error
type APIKeyCreatedByRole ¶
type APIKeyCreatedByRole string
The creator's role in this workspace now. Null once they have left, or when the caller cannot read the team.
const ( APIKeyCreatedByRoleOwner APIKeyCreatedByRole = "owner" APIKeyCreatedByRoleAdmin APIKeyCreatedByRole = "admin" APIKeyCreatedByRoleMember APIKeyCreatedByRole = "member" )
func NewAPIKeyCreatedByRoleFromString ¶
func NewAPIKeyCreatedByRoleFromString(s string) (APIKeyCreatedByRole, error)
func (APIKeyCreatedByRole) Ptr ¶
func (a APIKeyCreatedByRole) Ptr() *APIKeyCreatedByRole
type APIKeyDisabledBy ¶
type APIKeyDisabledBy struct {
Name string `json:"name" url:"name"`
// contains filtered or unexported fields
}
Who disabled the key. Null when it is enabled, or was disabled before this was recorded.
func (*APIKeyDisabledBy) GetExtraProperties ¶
func (a *APIKeyDisabledBy) GetExtraProperties() map[string]interface{}
func (*APIKeyDisabledBy) GetName ¶
func (a *APIKeyDisabledBy) GetName() string
func (*APIKeyDisabledBy) MarshalJSON ¶
func (a *APIKeyDisabledBy) MarshalJSON() ([]byte, error)
func (*APIKeyDisabledBy) SetName ¶
func (a *APIKeyDisabledBy) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*APIKeyDisabledBy) String ¶
func (a *APIKeyDisabledBy) String() string
func (*APIKeyDisabledBy) UnmarshalJSON ¶
func (a *APIKeyDisabledBy) UnmarshalJSON(data []byte) error
type BadRequestError ¶
type BadRequestError struct {
*core.APIError
Body *ErrorResponse
}
Validation error
func (*BadRequestError) GetBody ¶
func (b *BadRequestError) GetBody() *ErrorResponse
func (*BadRequestError) MarshalJSON ¶
func (b *BadRequestError) MarshalJSON() ([]byte, error)
func (*BadRequestError) UnmarshalJSON ¶
func (b *BadRequestError) UnmarshalJSON(data []byte) error
func (*BadRequestError) Unwrap ¶
func (b *BadRequestError) Unwrap() error
type BalanceDepletedData ¶
type BalanceDepletedData struct {
Balance int `json:"balance" url:"balance"`
BalanceFormatted string `json:"balanceFormatted" url:"balanceFormatted"`
TriggeredByJobID string `json:"triggeredByJobId" url:"triggeredByJobId"`
TriggeredByJobType string `json:"triggeredByJobType" url:"triggeredByJobType"`
// contains filtered or unexported fields
}
func (*BalanceDepletedData) GetBalance ¶
func (b *BalanceDepletedData) GetBalance() int
func (*BalanceDepletedData) GetBalanceFormatted ¶
func (b *BalanceDepletedData) GetBalanceFormatted() string
func (*BalanceDepletedData) GetExtraProperties ¶
func (b *BalanceDepletedData) GetExtraProperties() map[string]interface{}
func (*BalanceDepletedData) GetTriggeredByJobID ¶
func (b *BalanceDepletedData) GetTriggeredByJobID() string
func (*BalanceDepletedData) GetTriggeredByJobType ¶
func (b *BalanceDepletedData) GetTriggeredByJobType() string
func (*BalanceDepletedData) MarshalJSON ¶
func (b *BalanceDepletedData) MarshalJSON() ([]byte, error)
func (*BalanceDepletedData) SetBalance ¶
func (b *BalanceDepletedData) SetBalance(balance int)
SetBalance sets the Balance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedData) SetBalanceFormatted ¶
func (b *BalanceDepletedData) SetBalanceFormatted(balanceFormatted string)
SetBalanceFormatted sets the BalanceFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedData) SetTriggeredByJobID ¶
func (b *BalanceDepletedData) SetTriggeredByJobID(triggeredByJobID string)
SetTriggeredByJobID sets the TriggeredByJobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedData) SetTriggeredByJobType ¶
func (b *BalanceDepletedData) SetTriggeredByJobType(triggeredByJobType string)
SetTriggeredByJobType sets the TriggeredByJobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedData) String ¶
func (b *BalanceDepletedData) String() string
func (*BalanceDepletedData) UnmarshalJSON ¶
func (b *BalanceDepletedData) UnmarshalJSON(data []byte) error
type BalanceDepletedWebhookEvent ¶
type BalanceDepletedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version BalanceDepletedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *BalanceDepletedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*BalanceDepletedWebhookEvent) GetData ¶
func (b *BalanceDepletedWebhookEvent) GetData() *BalanceDepletedData
func (*BalanceDepletedWebhookEvent) GetDeliveryID ¶
func (b *BalanceDepletedWebhookEvent) GetDeliveryID() string
func (*BalanceDepletedWebhookEvent) GetExtraProperties ¶
func (b *BalanceDepletedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*BalanceDepletedWebhookEvent) GetOrgID ¶
func (b *BalanceDepletedWebhookEvent) GetOrgID() string
func (*BalanceDepletedWebhookEvent) GetTimestamp ¶
func (b *BalanceDepletedWebhookEvent) GetTimestamp() int
func (*BalanceDepletedWebhookEvent) GetVersion ¶
func (b *BalanceDepletedWebhookEvent) GetVersion() BalanceDepletedWebhookEventVersion
func (*BalanceDepletedWebhookEvent) MarshalJSON ¶
func (b *BalanceDepletedWebhookEvent) MarshalJSON() ([]byte, error)
func (*BalanceDepletedWebhookEvent) SetData ¶
func (b *BalanceDepletedWebhookEvent) SetData(data *BalanceDepletedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedWebhookEvent) SetDeliveryID ¶
func (b *BalanceDepletedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedWebhookEvent) SetOrgID ¶
func (b *BalanceDepletedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedWebhookEvent) SetTimestamp ¶
func (b *BalanceDepletedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedWebhookEvent) SetVersion ¶
func (b *BalanceDepletedWebhookEvent) SetVersion(version BalanceDepletedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceDepletedWebhookEvent) String ¶
func (b *BalanceDepletedWebhookEvent) String() string
func (*BalanceDepletedWebhookEvent) UnmarshalJSON ¶
func (b *BalanceDepletedWebhookEvent) UnmarshalJSON(data []byte) error
type BalanceDepletedWebhookEventVersion ¶
type BalanceDepletedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
BalanceDepletedWebhookEventVersionV1 BalanceDepletedWebhookEventVersion = "1"
)
func NewBalanceDepletedWebhookEventVersionFromString ¶
func NewBalanceDepletedWebhookEventVersionFromString(s string) (BalanceDepletedWebhookEventVersion, error)
func (BalanceDepletedWebhookEventVersion) Ptr ¶
func (b BalanceDepletedWebhookEventVersion) Ptr() *BalanceDepletedWebhookEventVersion
type BalanceLowData ¶
type BalanceLowData struct {
Balance int `json:"balance" url:"balance"`
BalanceFormatted string `json:"balanceFormatted" url:"balanceFormatted"`
Threshold int `json:"threshold" url:"threshold"`
ThresholdFormatted string `json:"thresholdFormatted" url:"thresholdFormatted"`
TriggeredByJobID string `json:"triggeredByJobId" url:"triggeredByJobId"`
TriggeredByJobType string `json:"triggeredByJobType" url:"triggeredByJobType"`
// contains filtered or unexported fields
}
func (*BalanceLowData) GetBalance ¶
func (b *BalanceLowData) GetBalance() int
func (*BalanceLowData) GetBalanceFormatted ¶
func (b *BalanceLowData) GetBalanceFormatted() string
func (*BalanceLowData) GetExtraProperties ¶
func (b *BalanceLowData) GetExtraProperties() map[string]interface{}
func (*BalanceLowData) GetThreshold ¶
func (b *BalanceLowData) GetThreshold() int
func (*BalanceLowData) GetThresholdFormatted ¶
func (b *BalanceLowData) GetThresholdFormatted() string
func (*BalanceLowData) GetTriggeredByJobID ¶
func (b *BalanceLowData) GetTriggeredByJobID() string
func (*BalanceLowData) GetTriggeredByJobType ¶
func (b *BalanceLowData) GetTriggeredByJobType() string
func (*BalanceLowData) MarshalJSON ¶
func (b *BalanceLowData) MarshalJSON() ([]byte, error)
func (*BalanceLowData) SetBalance ¶
func (b *BalanceLowData) SetBalance(balance int)
SetBalance sets the Balance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) SetBalanceFormatted ¶
func (b *BalanceLowData) SetBalanceFormatted(balanceFormatted string)
SetBalanceFormatted sets the BalanceFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) SetThreshold ¶
func (b *BalanceLowData) SetThreshold(threshold int)
SetThreshold sets the Threshold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) SetThresholdFormatted ¶
func (b *BalanceLowData) SetThresholdFormatted(thresholdFormatted string)
SetThresholdFormatted sets the ThresholdFormatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) SetTriggeredByJobID ¶
func (b *BalanceLowData) SetTriggeredByJobID(triggeredByJobID string)
SetTriggeredByJobID sets the TriggeredByJobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) SetTriggeredByJobType ¶
func (b *BalanceLowData) SetTriggeredByJobType(triggeredByJobType string)
SetTriggeredByJobType sets the TriggeredByJobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowData) String ¶
func (b *BalanceLowData) String() string
func (*BalanceLowData) UnmarshalJSON ¶
func (b *BalanceLowData) UnmarshalJSON(data []byte) error
type BalanceLowWebhookEvent ¶
type BalanceLowWebhookEvent struct {
// Envelope version. A new version is a new shape
Version BalanceLowWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *BalanceLowData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*BalanceLowWebhookEvent) GetData ¶
func (b *BalanceLowWebhookEvent) GetData() *BalanceLowData
func (*BalanceLowWebhookEvent) GetDeliveryID ¶
func (b *BalanceLowWebhookEvent) GetDeliveryID() string
func (*BalanceLowWebhookEvent) GetExtraProperties ¶
func (b *BalanceLowWebhookEvent) GetExtraProperties() map[string]interface{}
func (*BalanceLowWebhookEvent) GetOrgID ¶
func (b *BalanceLowWebhookEvent) GetOrgID() string
func (*BalanceLowWebhookEvent) GetTimestamp ¶
func (b *BalanceLowWebhookEvent) GetTimestamp() int
func (*BalanceLowWebhookEvent) GetVersion ¶
func (b *BalanceLowWebhookEvent) GetVersion() BalanceLowWebhookEventVersion
func (*BalanceLowWebhookEvent) MarshalJSON ¶
func (b *BalanceLowWebhookEvent) MarshalJSON() ([]byte, error)
func (*BalanceLowWebhookEvent) SetData ¶
func (b *BalanceLowWebhookEvent) SetData(data *BalanceLowData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowWebhookEvent) SetDeliveryID ¶
func (b *BalanceLowWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowWebhookEvent) SetOrgID ¶
func (b *BalanceLowWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowWebhookEvent) SetTimestamp ¶
func (b *BalanceLowWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowWebhookEvent) SetVersion ¶
func (b *BalanceLowWebhookEvent) SetVersion(version BalanceLowWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalanceLowWebhookEvent) String ¶
func (b *BalanceLowWebhookEvent) String() string
func (*BalanceLowWebhookEvent) UnmarshalJSON ¶
func (b *BalanceLowWebhookEvent) UnmarshalJSON(data []byte) error
type BalanceLowWebhookEventVersion ¶
type BalanceLowWebhookEventVersion string
Envelope version. A new version is a new shape
const (
BalanceLowWebhookEventVersionV1 BalanceLowWebhookEventVersion = "1"
)
func NewBalanceLowWebhookEventVersionFromString ¶
func NewBalanceLowWebhookEventVersionFromString(s string) (BalanceLowWebhookEventVersion, error)
func (BalanceLowWebhookEventVersion) Ptr ¶
func (b BalanceLowWebhookEventVersion) Ptr() *BalanceLowWebhookEventVersion
type CallbackStatus ¶
type CallbackStatus struct {
// Delivery state of the per-job completion callback.
Status CallbackStatusStatus `json:"status" url:"status"`
// contains filtered or unexported fields
}
Per-job callback delivery status, populated by GET /jobs/:id when a callback.url was set at submit (else null/absent). Deliberately carries ONLY the status — the callback url and any custom headers are secret and are never returned by any response.
func (*CallbackStatus) GetExtraProperties ¶
func (c *CallbackStatus) GetExtraProperties() map[string]interface{}
func (*CallbackStatus) GetStatus ¶
func (c *CallbackStatus) GetStatus() CallbackStatusStatus
func (*CallbackStatus) MarshalJSON ¶
func (c *CallbackStatus) MarshalJSON() ([]byte, error)
func (*CallbackStatus) SetStatus ¶
func (c *CallbackStatus) SetStatus(status CallbackStatusStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CallbackStatus) String ¶
func (c *CallbackStatus) String() string
func (*CallbackStatus) UnmarshalJSON ¶
func (c *CallbackStatus) UnmarshalJSON(data []byte) error
type CallbackStatusStatus ¶
type CallbackStatusStatus string
Delivery state of the per-job completion callback.
const ( CallbackStatusStatusPending CallbackStatusStatus = "pending" CallbackStatusStatusDelivered CallbackStatusStatus = "delivered" CallbackStatusStatusFailed CallbackStatusStatus = "failed" )
func NewCallbackStatusStatusFromString ¶
func NewCallbackStatusStatusFromString(s string) (CallbackStatusStatus, error)
func (CallbackStatusStatus) Ptr ¶
func (c CallbackStatusStatus) Ptr() *CallbackStatusStatus
type CancelJobRequest ¶
type CancelJobRequest struct {
// Job ID to cancel
ID string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*CancelJobRequest) SetID ¶
func (c *CancelJobRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type CancelJobResponse ¶
type CancelJobResponse struct {
Data *CancelJobResponseData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*CancelJobResponse) GetData ¶
func (c *CancelJobResponse) GetData() *CancelJobResponseData
func (*CancelJobResponse) GetExtraProperties ¶
func (c *CancelJobResponse) GetExtraProperties() map[string]interface{}
func (*CancelJobResponse) MarshalJSON ¶
func (c *CancelJobResponse) MarshalJSON() ([]byte, error)
func (*CancelJobResponse) SetData ¶
func (c *CancelJobResponse) SetData(data *CancelJobResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponse) String ¶
func (c *CancelJobResponse) String() string
func (*CancelJobResponse) UnmarshalJSON ¶
func (c *CancelJobResponse) UnmarshalJSON(data []byte) error
type CancelJobResponseData ¶
type CancelJobResponseData struct {
ID string `json:"id" url:"id"`
Status CancelJobResponseDataStatus `json:"status" url:"status"`
// contains filtered or unexported fields
}
func (*CancelJobResponseData) GetExtraProperties ¶
func (c *CancelJobResponseData) GetExtraProperties() map[string]interface{}
func (*CancelJobResponseData) GetID ¶
func (c *CancelJobResponseData) GetID() string
func (*CancelJobResponseData) GetStatus ¶
func (c *CancelJobResponseData) GetStatus() CancelJobResponseDataStatus
func (*CancelJobResponseData) MarshalJSON ¶
func (c *CancelJobResponseData) MarshalJSON() ([]byte, error)
func (*CancelJobResponseData) SetID ¶
func (c *CancelJobResponseData) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponseData) SetStatus ¶
func (c *CancelJobResponseData) SetStatus(status CancelJobResponseDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponseData) String ¶
func (c *CancelJobResponseData) String() string
func (*CancelJobResponseData) UnmarshalJSON ¶
func (c *CancelJobResponseData) UnmarshalJSON(data []byte) error
type CancelJobResponseDataStatus ¶
type CancelJobResponseDataStatus string
const (
CancelJobResponseDataStatusCancelled CancelJobResponseDataStatus = "cancelled"
)
func NewCancelJobResponseDataStatusFromString ¶
func NewCancelJobResponseDataStatusFromString(s string) (CancelJobResponseDataStatus, error)
func (CancelJobResponseDataStatus) Ptr ¶
func (c CancelJobResponseDataStatus) Ptr() *CancelJobResponseDataStatus
type CaptionBurnParams ¶
type CaptionBurnParams struct {
// Spoken language for auto-transcription as an ISO-639-1 code (e.g. en, es, ja), or 'auto' to detect. Ignored when a subtitle file is provided.
Language *CaptionBurnParamsLanguage `json:"language,omitempty" url:"language,omitempty"`
// Font family, or a CSS fallback stack. Any Google Fonts family works by name. Bundled and instant: Inter, Bebas Neue, Anton, Montserrat, Poppins, Roboto, Oswald. A stack falls through in CSS order, so "Lato, Inter, sans-serif" tries each in turn.
Font *string `json:"font,omitempty" url:"font,omitempty"`
// Deprecated alias for `font`. Use `font`.
FontFamily *string `json:"fontFamily,omitempty" url:"fontFamily,omitempty"`
// Font size in pixels
FontSize *int `json:"fontSize,omitempty" url:"fontSize,omitempty"`
// Text color, web hex (#RRGGBB)
FontColor *string `json:"fontColor,omitempty" url:"fontColor,omitempty"`
// Bold text
Bold *bool `json:"bold,omitempty" url:"bold,omitempty"`
// Italic text
Italic *bool `json:"italic,omitempty" url:"italic,omitempty"`
// Outline color, web hex
OutlineColor *string `json:"outlineColor,omitempty" url:"outlineColor,omitempty"`
// Outline thickness in pixels
OutlineWidth *float64 `json:"outlineWidth,omitempty" url:"outlineWidth,omitempty"`
// Drop shadow depth in pixels
Shadow *float64 `json:"shadow,omitempty" url:"shadow,omitempty"`
// Draw a background box behind captions
BoxEnabled *bool `json:"boxEnabled,omitempty" url:"boxEnabled,omitempty"`
// Background box color, web hex
BoxColor *string `json:"boxColor,omitempty" url:"boxColor,omitempty"`
// Background box opacity (0-1)
BoxOpacity *float64 `json:"boxOpacity,omitempty" url:"boxOpacity,omitempty"`
// Vertical position
Position *CaptionBurnParamsPosition `json:"position,omitempty" url:"position,omitempty"`
// Horizontal alignment
Alignment *CaptionBurnParamsAlignment `json:"alignment,omitempty" url:"alignment,omitempty"`
// Vertical margin in pixels
MarginV *int `json:"marginV,omitempty" url:"marginV,omitempty"`
// Horizontal margin in pixels
MarginH *int `json:"marginH,omitempty" url:"marginH,omitempty"`
// Max characters per line (auto-transcribe path)
MaxCharsPerLine *int `json:"maxCharsPerLine,omitempty" url:"maxCharsPerLine,omitempty"`
// contains filtered or unexported fields
}
Params of the caption.burn job.
func (*CaptionBurnParams) GetAlignment ¶
func (c *CaptionBurnParams) GetAlignment() *CaptionBurnParamsAlignment
func (*CaptionBurnParams) GetBold ¶
func (c *CaptionBurnParams) GetBold() *bool
func (*CaptionBurnParams) GetBoxColor ¶
func (c *CaptionBurnParams) GetBoxColor() *string
func (*CaptionBurnParams) GetBoxEnabled ¶
func (c *CaptionBurnParams) GetBoxEnabled() *bool
func (*CaptionBurnParams) GetBoxOpacity ¶
func (c *CaptionBurnParams) GetBoxOpacity() *float64
func (*CaptionBurnParams) GetExtraProperties ¶
func (c *CaptionBurnParams) GetExtraProperties() map[string]interface{}
func (*CaptionBurnParams) GetFont ¶
func (c *CaptionBurnParams) GetFont() *string
func (*CaptionBurnParams) GetFontColor ¶
func (c *CaptionBurnParams) GetFontColor() *string
func (*CaptionBurnParams) GetFontFamily ¶
func (c *CaptionBurnParams) GetFontFamily() *string
func (*CaptionBurnParams) GetFontSize ¶
func (c *CaptionBurnParams) GetFontSize() *int
func (*CaptionBurnParams) GetItalic ¶
func (c *CaptionBurnParams) GetItalic() *bool
func (*CaptionBurnParams) GetLanguage ¶
func (c *CaptionBurnParams) GetLanguage() *CaptionBurnParamsLanguage
func (*CaptionBurnParams) GetMarginH ¶
func (c *CaptionBurnParams) GetMarginH() *int
func (*CaptionBurnParams) GetMarginV ¶
func (c *CaptionBurnParams) GetMarginV() *int
func (*CaptionBurnParams) GetMaxCharsPerLine ¶
func (c *CaptionBurnParams) GetMaxCharsPerLine() *int
func (*CaptionBurnParams) GetOutlineColor ¶
func (c *CaptionBurnParams) GetOutlineColor() *string
func (*CaptionBurnParams) GetOutlineWidth ¶
func (c *CaptionBurnParams) GetOutlineWidth() *float64
func (*CaptionBurnParams) GetPosition ¶
func (c *CaptionBurnParams) GetPosition() *CaptionBurnParamsPosition
func (*CaptionBurnParams) GetShadow ¶
func (c *CaptionBurnParams) GetShadow() *float64
func (*CaptionBurnParams) MarshalJSON ¶
func (c *CaptionBurnParams) MarshalJSON() ([]byte, error)
func (*CaptionBurnParams) SetAlignment ¶
func (c *CaptionBurnParams) SetAlignment(alignment *CaptionBurnParamsAlignment)
SetAlignment sets the Alignment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetBold ¶
func (c *CaptionBurnParams) SetBold(bold *bool)
SetBold sets the Bold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetBoxColor ¶
func (c *CaptionBurnParams) SetBoxColor(boxColor *string)
SetBoxColor sets the BoxColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetBoxEnabled ¶
func (c *CaptionBurnParams) SetBoxEnabled(boxEnabled *bool)
SetBoxEnabled sets the BoxEnabled field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetBoxOpacity ¶
func (c *CaptionBurnParams) SetBoxOpacity(boxOpacity *float64)
SetBoxOpacity sets the BoxOpacity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetFont ¶
func (c *CaptionBurnParams) SetFont(font *string)
SetFont sets the Font field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetFontColor ¶
func (c *CaptionBurnParams) SetFontColor(fontColor *string)
SetFontColor sets the FontColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetFontFamily ¶
func (c *CaptionBurnParams) SetFontFamily(fontFamily *string)
SetFontFamily sets the FontFamily field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetFontSize ¶
func (c *CaptionBurnParams) SetFontSize(fontSize *int)
SetFontSize sets the FontSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetItalic ¶
func (c *CaptionBurnParams) SetItalic(italic *bool)
SetItalic sets the Italic field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetLanguage ¶
func (c *CaptionBurnParams) SetLanguage(language *CaptionBurnParamsLanguage)
SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetMarginH ¶
func (c *CaptionBurnParams) SetMarginH(marginH *int)
SetMarginH sets the MarginH field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetMarginV ¶
func (c *CaptionBurnParams) SetMarginV(marginV *int)
SetMarginV sets the MarginV field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetMaxCharsPerLine ¶
func (c *CaptionBurnParams) SetMaxCharsPerLine(maxCharsPerLine *int)
SetMaxCharsPerLine sets the MaxCharsPerLine field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetOutlineColor ¶
func (c *CaptionBurnParams) SetOutlineColor(outlineColor *string)
SetOutlineColor sets the OutlineColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetOutlineWidth ¶
func (c *CaptionBurnParams) SetOutlineWidth(outlineWidth *float64)
SetOutlineWidth sets the OutlineWidth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetPosition ¶
func (c *CaptionBurnParams) SetPosition(position *CaptionBurnParamsPosition)
SetPosition sets the Position field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) SetShadow ¶
func (c *CaptionBurnParams) SetShadow(shadow *float64)
SetShadow sets the Shadow field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionBurnParams) String ¶
func (c *CaptionBurnParams) String() string
func (*CaptionBurnParams) UnmarshalJSON ¶
func (c *CaptionBurnParams) UnmarshalJSON(data []byte) error
type CaptionBurnParamsAlignment ¶
type CaptionBurnParamsAlignment string
Horizontal alignment
const ( CaptionBurnParamsAlignmentLeft CaptionBurnParamsAlignment = "left" CaptionBurnParamsAlignmentCenter CaptionBurnParamsAlignment = "center" CaptionBurnParamsAlignmentRight CaptionBurnParamsAlignment = "right" )
func NewCaptionBurnParamsAlignmentFromString ¶
func NewCaptionBurnParamsAlignmentFromString(s string) (CaptionBurnParamsAlignment, error)
func (CaptionBurnParamsAlignment) Ptr ¶
func (c CaptionBurnParamsAlignment) Ptr() *CaptionBurnParamsAlignment
type CaptionBurnParamsLanguage ¶
type CaptionBurnParamsLanguage string
Spoken language for auto-transcription as an ISO-639-1 code (e.g. en, es, ja), or 'auto' to detect. Ignored when a subtitle file is provided.
const ( CaptionBurnParamsLanguageAuto CaptionBurnParamsLanguage = "auto" CaptionBurnParamsLanguageEn CaptionBurnParamsLanguage = "en" CaptionBurnParamsLanguageZh CaptionBurnParamsLanguage = "zh" CaptionBurnParamsLanguageDe CaptionBurnParamsLanguage = "de" CaptionBurnParamsLanguageEs CaptionBurnParamsLanguage = "es" CaptionBurnParamsLanguageRu CaptionBurnParamsLanguage = "ru" CaptionBurnParamsLanguageKo CaptionBurnParamsLanguage = "ko" CaptionBurnParamsLanguageFr CaptionBurnParamsLanguage = "fr" CaptionBurnParamsLanguageJa CaptionBurnParamsLanguage = "ja" CaptionBurnParamsLanguagePt CaptionBurnParamsLanguage = "pt" CaptionBurnParamsLanguageTr CaptionBurnParamsLanguage = "tr" CaptionBurnParamsLanguagePl CaptionBurnParamsLanguage = "pl" CaptionBurnParamsLanguageCa CaptionBurnParamsLanguage = "ca" CaptionBurnParamsLanguageNl CaptionBurnParamsLanguage = "nl" CaptionBurnParamsLanguageAr CaptionBurnParamsLanguage = "ar" CaptionBurnParamsLanguageSv CaptionBurnParamsLanguage = "sv" CaptionBurnParamsLanguageIt CaptionBurnParamsLanguage = "it" CaptionBurnParamsLanguageID CaptionBurnParamsLanguage = "id" CaptionBurnParamsLanguageHi CaptionBurnParamsLanguage = "hi" CaptionBurnParamsLanguageFi CaptionBurnParamsLanguage = "fi" CaptionBurnParamsLanguageVi CaptionBurnParamsLanguage = "vi" CaptionBurnParamsLanguageHe CaptionBurnParamsLanguage = "he" CaptionBurnParamsLanguageUk CaptionBurnParamsLanguage = "uk" CaptionBurnParamsLanguageEl CaptionBurnParamsLanguage = "el" CaptionBurnParamsLanguageMs CaptionBurnParamsLanguage = "ms" CaptionBurnParamsLanguageCs CaptionBurnParamsLanguage = "cs" CaptionBurnParamsLanguageRo CaptionBurnParamsLanguage = "ro" CaptionBurnParamsLanguageDa CaptionBurnParamsLanguage = "da" CaptionBurnParamsLanguageHu CaptionBurnParamsLanguage = "hu" CaptionBurnParamsLanguageTa CaptionBurnParamsLanguage = "ta" CaptionBurnParamsLanguageNo CaptionBurnParamsLanguage = "no" CaptionBurnParamsLanguageTh CaptionBurnParamsLanguage = "th" CaptionBurnParamsLanguageUr CaptionBurnParamsLanguage = "ur" CaptionBurnParamsLanguageHr CaptionBurnParamsLanguage = "hr" CaptionBurnParamsLanguageBg CaptionBurnParamsLanguage = "bg" CaptionBurnParamsLanguageLt CaptionBurnParamsLanguage = "lt" CaptionBurnParamsLanguageLa CaptionBurnParamsLanguage = "la" CaptionBurnParamsLanguageMi CaptionBurnParamsLanguage = "mi" CaptionBurnParamsLanguageMl CaptionBurnParamsLanguage = "ml" CaptionBurnParamsLanguageCy CaptionBurnParamsLanguage = "cy" CaptionBurnParamsLanguageSk CaptionBurnParamsLanguage = "sk" CaptionBurnParamsLanguageTe CaptionBurnParamsLanguage = "te" CaptionBurnParamsLanguageFa CaptionBurnParamsLanguage = "fa" CaptionBurnParamsLanguageLv CaptionBurnParamsLanguage = "lv" CaptionBurnParamsLanguageBn CaptionBurnParamsLanguage = "bn" CaptionBurnParamsLanguageSr CaptionBurnParamsLanguage = "sr" CaptionBurnParamsLanguageAz CaptionBurnParamsLanguage = "az" CaptionBurnParamsLanguageSl CaptionBurnParamsLanguage = "sl" CaptionBurnParamsLanguageKn CaptionBurnParamsLanguage = "kn" CaptionBurnParamsLanguageEt CaptionBurnParamsLanguage = "et" CaptionBurnParamsLanguageMk CaptionBurnParamsLanguage = "mk" CaptionBurnParamsLanguageBr CaptionBurnParamsLanguage = "br" CaptionBurnParamsLanguageEu CaptionBurnParamsLanguage = "eu" CaptionBurnParamsLanguageIs CaptionBurnParamsLanguage = "is" CaptionBurnParamsLanguageHy CaptionBurnParamsLanguage = "hy" CaptionBurnParamsLanguageNe CaptionBurnParamsLanguage = "ne" CaptionBurnParamsLanguageMn CaptionBurnParamsLanguage = "mn" CaptionBurnParamsLanguageBs CaptionBurnParamsLanguage = "bs" CaptionBurnParamsLanguageKk CaptionBurnParamsLanguage = "kk" CaptionBurnParamsLanguageSq CaptionBurnParamsLanguage = "sq" CaptionBurnParamsLanguageSw CaptionBurnParamsLanguage = "sw" CaptionBurnParamsLanguageGl CaptionBurnParamsLanguage = "gl" CaptionBurnParamsLanguageMr CaptionBurnParamsLanguage = "mr" CaptionBurnParamsLanguagePa CaptionBurnParamsLanguage = "pa" CaptionBurnParamsLanguageSi CaptionBurnParamsLanguage = "si" CaptionBurnParamsLanguageKm CaptionBurnParamsLanguage = "km" CaptionBurnParamsLanguageSn CaptionBurnParamsLanguage = "sn" CaptionBurnParamsLanguageYo CaptionBurnParamsLanguage = "yo" CaptionBurnParamsLanguageSo CaptionBurnParamsLanguage = "so" CaptionBurnParamsLanguageAf CaptionBurnParamsLanguage = "af" CaptionBurnParamsLanguageOc CaptionBurnParamsLanguage = "oc" CaptionBurnParamsLanguageKa CaptionBurnParamsLanguage = "ka" CaptionBurnParamsLanguageBe CaptionBurnParamsLanguage = "be" CaptionBurnParamsLanguageTg CaptionBurnParamsLanguage = "tg" CaptionBurnParamsLanguageSd CaptionBurnParamsLanguage = "sd" CaptionBurnParamsLanguageGu CaptionBurnParamsLanguage = "gu" CaptionBurnParamsLanguageAm CaptionBurnParamsLanguage = "am" CaptionBurnParamsLanguageYi CaptionBurnParamsLanguage = "yi" CaptionBurnParamsLanguageLo CaptionBurnParamsLanguage = "lo" CaptionBurnParamsLanguageUz CaptionBurnParamsLanguage = "uz" CaptionBurnParamsLanguageFo CaptionBurnParamsLanguage = "fo" CaptionBurnParamsLanguageHt CaptionBurnParamsLanguage = "ht" CaptionBurnParamsLanguagePs CaptionBurnParamsLanguage = "ps" CaptionBurnParamsLanguageTk CaptionBurnParamsLanguage = "tk" CaptionBurnParamsLanguageNn CaptionBurnParamsLanguage = "nn" CaptionBurnParamsLanguageMt CaptionBurnParamsLanguage = "mt" CaptionBurnParamsLanguageSa CaptionBurnParamsLanguage = "sa" CaptionBurnParamsLanguageLb CaptionBurnParamsLanguage = "lb" CaptionBurnParamsLanguageMy CaptionBurnParamsLanguage = "my" CaptionBurnParamsLanguageBo CaptionBurnParamsLanguage = "bo" CaptionBurnParamsLanguageTl CaptionBurnParamsLanguage = "tl" CaptionBurnParamsLanguageMg CaptionBurnParamsLanguage = "mg" CaptionBurnParamsLanguageAs CaptionBurnParamsLanguage = "as" CaptionBurnParamsLanguageTt CaptionBurnParamsLanguage = "tt" CaptionBurnParamsLanguageHaw CaptionBurnParamsLanguage = "haw" CaptionBurnParamsLanguageLn CaptionBurnParamsLanguage = "ln" CaptionBurnParamsLanguageHa CaptionBurnParamsLanguage = "ha" CaptionBurnParamsLanguageBa CaptionBurnParamsLanguage = "ba" CaptionBurnParamsLanguageJw CaptionBurnParamsLanguage = "jw" CaptionBurnParamsLanguageSu CaptionBurnParamsLanguage = "su" CaptionBurnParamsLanguageYue CaptionBurnParamsLanguage = "yue" )
func NewCaptionBurnParamsLanguageFromString ¶
func NewCaptionBurnParamsLanguageFromString(s string) (CaptionBurnParamsLanguage, error)
func (CaptionBurnParamsLanguage) Ptr ¶
func (c CaptionBurnParamsLanguage) Ptr() *CaptionBurnParamsLanguage
type CaptionBurnParamsPosition ¶
type CaptionBurnParamsPosition string
Vertical position
const ( CaptionBurnParamsPositionBottom CaptionBurnParamsPosition = "bottom" CaptionBurnParamsPositionCenter CaptionBurnParamsPosition = "center" CaptionBurnParamsPositionTop CaptionBurnParamsPosition = "top" )
func NewCaptionBurnParamsPositionFromString ¶
func NewCaptionBurnParamsPositionFromString(s string) (CaptionBurnParamsPosition, error)
func (CaptionBurnParamsPosition) Ptr ¶
func (c CaptionBurnParamsPosition) Ptr() *CaptionBurnParamsPosition
type CaptionsAnimateParams ¶
type CaptionsAnimateParams struct {
// Built-in caption style preset
Preset *CaptionsAnimateParamsPreset `json:"preset,omitempty" url:"preset,omitempty"`
// Language hint. Supported: en.
Language *CaptionsAnimateParamsLanguage `json:"language,omitempty" url:"language,omitempty"`
// Speed-vs-accuracy tradeoff. fast=base.en (~3× faster). balanced=small.en (default). accurate=large-v3-turbo (~3× slower, ~3-4% WER).
Mode *CaptionsAnimateParamsMode `json:"mode,omitempty" url:"mode,omitempty"`
// Style overrides layered on top of `preset`. Any field you set wins; everything you omit keeps the preset's value.
Style *CaptionsAnimateParamsStyle `json:"style,omitempty" url:"style,omitempty"`
CaptionData *bool `json:"captionData,omitempty" url:"captionData,omitempty"`
AutoEmphasis *bool `json:"autoEmphasis,omitempty" url:"autoEmphasis,omitempty"`
TranslateTo *CaptionsAnimateParamsTranslateTo `json:"translateTo,omitempty" url:"translateTo,omitempty"`
// contains filtered or unexported fields
}
Params of the captions.animate job.
func (*CaptionsAnimateParams) GetAutoEmphasis ¶
func (c *CaptionsAnimateParams) GetAutoEmphasis() *bool
func (*CaptionsAnimateParams) GetCaptionData ¶
func (c *CaptionsAnimateParams) GetCaptionData() *bool
func (*CaptionsAnimateParams) GetExtraProperties ¶
func (c *CaptionsAnimateParams) GetExtraProperties() map[string]interface{}
func (*CaptionsAnimateParams) GetLanguage ¶
func (c *CaptionsAnimateParams) GetLanguage() *CaptionsAnimateParamsLanguage
func (*CaptionsAnimateParams) GetMode ¶
func (c *CaptionsAnimateParams) GetMode() *CaptionsAnimateParamsMode
func (*CaptionsAnimateParams) GetPreset ¶
func (c *CaptionsAnimateParams) GetPreset() *CaptionsAnimateParamsPreset
func (*CaptionsAnimateParams) GetStyle ¶
func (c *CaptionsAnimateParams) GetStyle() *CaptionsAnimateParamsStyle
func (*CaptionsAnimateParams) GetTranslateTo ¶
func (c *CaptionsAnimateParams) GetTranslateTo() *CaptionsAnimateParamsTranslateTo
func (*CaptionsAnimateParams) MarshalJSON ¶
func (c *CaptionsAnimateParams) MarshalJSON() ([]byte, error)
func (*CaptionsAnimateParams) SetAutoEmphasis ¶
func (c *CaptionsAnimateParams) SetAutoEmphasis(autoEmphasis *bool)
SetAutoEmphasis sets the AutoEmphasis field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetCaptionData ¶
func (c *CaptionsAnimateParams) SetCaptionData(captionData *bool)
SetCaptionData sets the CaptionData field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetLanguage ¶
func (c *CaptionsAnimateParams) SetLanguage(language *CaptionsAnimateParamsLanguage)
SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetMode ¶
func (c *CaptionsAnimateParams) SetMode(mode *CaptionsAnimateParamsMode)
SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetPreset ¶
func (c *CaptionsAnimateParams) SetPreset(preset *CaptionsAnimateParamsPreset)
SetPreset sets the Preset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetStyle ¶
func (c *CaptionsAnimateParams) SetStyle(style *CaptionsAnimateParamsStyle)
SetStyle sets the Style field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) SetTranslateTo ¶
func (c *CaptionsAnimateParams) SetTranslateTo(translateTo *CaptionsAnimateParamsTranslateTo)
SetTranslateTo sets the TranslateTo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParams) String ¶
func (c *CaptionsAnimateParams) String() string
func (*CaptionsAnimateParams) UnmarshalJSON ¶
func (c *CaptionsAnimateParams) UnmarshalJSON(data []byte) error
type CaptionsAnimateParamsLanguage ¶
type CaptionsAnimateParamsLanguage string
Language hint. Supported: en.
const (
CaptionsAnimateParamsLanguageEn CaptionsAnimateParamsLanguage = "en"
)
func NewCaptionsAnimateParamsLanguageFromString ¶
func NewCaptionsAnimateParamsLanguageFromString(s string) (CaptionsAnimateParamsLanguage, error)
func (CaptionsAnimateParamsLanguage) Ptr ¶
func (c CaptionsAnimateParamsLanguage) Ptr() *CaptionsAnimateParamsLanguage
type CaptionsAnimateParamsMode ¶
type CaptionsAnimateParamsMode string
Speed-vs-accuracy tradeoff. fast=base.en (~3× faster). balanced=small.en (default). accurate=large-v3-turbo (~3× slower, ~3-4% WER).
const ( CaptionsAnimateParamsModeFast CaptionsAnimateParamsMode = "fast" CaptionsAnimateParamsModeBalanced CaptionsAnimateParamsMode = "balanced" CaptionsAnimateParamsModeAccurate CaptionsAnimateParamsMode = "accurate" )
func NewCaptionsAnimateParamsModeFromString ¶
func NewCaptionsAnimateParamsModeFromString(s string) (CaptionsAnimateParamsMode, error)
func (CaptionsAnimateParamsMode) Ptr ¶
func (c CaptionsAnimateParamsMode) Ptr() *CaptionsAnimateParamsMode
type CaptionsAnimateParamsPreset ¶
type CaptionsAnimateParamsPreset string
Built-in caption style preset
const ( CaptionsAnimateParamsPresetHormozi CaptionsAnimateParamsPreset = "hormozi" CaptionsAnimateParamsPresetMrbeast CaptionsAnimateParamsPreset = "mrbeast" CaptionsAnimateParamsPresetTiktok CaptionsAnimateParamsPreset = "tiktok" CaptionsAnimateParamsPresetPill CaptionsAnimateParamsPreset = "pill" CaptionsAnimateParamsPresetKaraoke CaptionsAnimateParamsPreset = "karaoke" CaptionsAnimateParamsPresetWordPop CaptionsAnimateParamsPreset = "word-pop" CaptionsAnimateParamsPresetMinimal CaptionsAnimateParamsPreset = "minimal" CaptionsAnimateParamsPresetSubtitleBlock CaptionsAnimateParamsPreset = "subtitle-block" CaptionsAnimateParamsPresetNeon CaptionsAnimateParamsPreset = "neon" CaptionsAnimateParamsPresetGold CaptionsAnimateParamsPreset = "gold" CaptionsAnimateParamsPresetReveal CaptionsAnimateParamsPreset = "reveal" )
func NewCaptionsAnimateParamsPresetFromString ¶
func NewCaptionsAnimateParamsPresetFromString(s string) (CaptionsAnimateParamsPreset, error)
func (CaptionsAnimateParamsPreset) Ptr ¶
func (c CaptionsAnimateParamsPreset) Ptr() *CaptionsAnimateParamsPreset
type CaptionsAnimateParamsStyle ¶
type CaptionsAnimateParamsStyle struct {
// Font family, or a CSS fallback stack. Any Google Fonts family works by name. Bundled and instant: Inter, Bebas Neue, Anton, Montserrat, Poppins, Roboto, Oswald. A stack falls through in CSS order, so "Lato, Inter, sans-serif" tries each in turn. Supplying the `font` job input renders in that file instead.
Font *string `json:"font,omitempty" url:"font,omitempty"`
FontSize *int `json:"fontSize,omitempty" url:"fontSize,omitempty"`
Case *CaptionsAnimateParamsStyleCase `json:"case,omitempty" url:"case,omitempty"`
Fill *string `json:"fill,omitempty" url:"fill,omitempty"`
Stroke *CaptionsAnimateParamsStyleStroke `json:"stroke,omitempty" url:"stroke,omitempty"`
Shadow *float64 `json:"shadow,omitempty" url:"shadow,omitempty"`
Bold *bool `json:"bold,omitempty" url:"bold,omitempty"`
MarginV *int `json:"marginV,omitempty" url:"marginV,omitempty"`
Highlight *CaptionsAnimateParamsStyleHighlight `json:"highlight,omitempty" url:"highlight,omitempty"`
Punctuation *CaptionsAnimateParamsStylePunctuation `json:"punctuation,omitempty" url:"punctuation,omitempty"`
Position *CaptionsAnimateParamsStylePosition `json:"position,omitempty" url:"position,omitempty"`
Emphasis *CaptionsAnimateParamsStyleEmphasis `json:"emphasis,omitempty" url:"emphasis,omitempty"`
Entrance *CaptionsAnimateParamsStyleEntrance `json:"entrance,omitempty" url:"entrance,omitempty"`
Layout *CaptionsAnimateParamsStyleLayout `json:"layout,omitempty" url:"layout,omitempty"`
// contains filtered or unexported fields
}
Style overrides layered on top of `preset`. Any field you set wins; everything you omit keeps the preset's value.
func (*CaptionsAnimateParamsStyle) GetBold ¶
func (c *CaptionsAnimateParamsStyle) GetBold() *bool
func (*CaptionsAnimateParamsStyle) GetCase ¶
func (c *CaptionsAnimateParamsStyle) GetCase() *CaptionsAnimateParamsStyleCase
func (*CaptionsAnimateParamsStyle) GetEmphasis ¶
func (c *CaptionsAnimateParamsStyle) GetEmphasis() *CaptionsAnimateParamsStyleEmphasis
func (*CaptionsAnimateParamsStyle) GetEntrance ¶
func (c *CaptionsAnimateParamsStyle) GetEntrance() *CaptionsAnimateParamsStyleEntrance
func (*CaptionsAnimateParamsStyle) GetExtraProperties ¶
func (c *CaptionsAnimateParamsStyle) GetExtraProperties() map[string]interface{}
func (*CaptionsAnimateParamsStyle) GetFill ¶
func (c *CaptionsAnimateParamsStyle) GetFill() *string
func (*CaptionsAnimateParamsStyle) GetFont ¶
func (c *CaptionsAnimateParamsStyle) GetFont() *string
func (*CaptionsAnimateParamsStyle) GetFontSize ¶
func (c *CaptionsAnimateParamsStyle) GetFontSize() *int
func (*CaptionsAnimateParamsStyle) GetHighlight ¶
func (c *CaptionsAnimateParamsStyle) GetHighlight() *CaptionsAnimateParamsStyleHighlight
func (*CaptionsAnimateParamsStyle) GetLayout ¶
func (c *CaptionsAnimateParamsStyle) GetLayout() *CaptionsAnimateParamsStyleLayout
func (*CaptionsAnimateParamsStyle) GetMarginV ¶
func (c *CaptionsAnimateParamsStyle) GetMarginV() *int
func (*CaptionsAnimateParamsStyle) GetPosition ¶
func (c *CaptionsAnimateParamsStyle) GetPosition() *CaptionsAnimateParamsStylePosition
func (*CaptionsAnimateParamsStyle) GetPunctuation ¶
func (c *CaptionsAnimateParamsStyle) GetPunctuation() *CaptionsAnimateParamsStylePunctuation
func (*CaptionsAnimateParamsStyle) GetShadow ¶
func (c *CaptionsAnimateParamsStyle) GetShadow() *float64
func (*CaptionsAnimateParamsStyle) GetStroke ¶
func (c *CaptionsAnimateParamsStyle) GetStroke() *CaptionsAnimateParamsStyleStroke
func (*CaptionsAnimateParamsStyle) MarshalJSON ¶
func (c *CaptionsAnimateParamsStyle) MarshalJSON() ([]byte, error)
func (*CaptionsAnimateParamsStyle) SetBold ¶
func (c *CaptionsAnimateParamsStyle) SetBold(bold *bool)
SetBold sets the Bold field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetCase ¶
func (c *CaptionsAnimateParamsStyle) SetCase(case_ *CaptionsAnimateParamsStyleCase)
SetCase sets the Case field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetEmphasis ¶
func (c *CaptionsAnimateParamsStyle) SetEmphasis(emphasis *CaptionsAnimateParamsStyleEmphasis)
SetEmphasis sets the Emphasis field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetEntrance ¶
func (c *CaptionsAnimateParamsStyle) SetEntrance(entrance *CaptionsAnimateParamsStyleEntrance)
SetEntrance sets the Entrance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetFill ¶
func (c *CaptionsAnimateParamsStyle) SetFill(fill *string)
SetFill sets the Fill field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetFont ¶
func (c *CaptionsAnimateParamsStyle) SetFont(font *string)
SetFont sets the Font field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetFontSize ¶
func (c *CaptionsAnimateParamsStyle) SetFontSize(fontSize *int)
SetFontSize sets the FontSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetHighlight ¶
func (c *CaptionsAnimateParamsStyle) SetHighlight(highlight *CaptionsAnimateParamsStyleHighlight)
SetHighlight sets the Highlight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetLayout ¶
func (c *CaptionsAnimateParamsStyle) SetLayout(layout *CaptionsAnimateParamsStyleLayout)
SetLayout sets the Layout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetMarginV ¶
func (c *CaptionsAnimateParamsStyle) SetMarginV(marginV *int)
SetMarginV sets the MarginV field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetPosition ¶
func (c *CaptionsAnimateParamsStyle) SetPosition(position *CaptionsAnimateParamsStylePosition)
SetPosition sets the Position field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetPunctuation ¶
func (c *CaptionsAnimateParamsStyle) SetPunctuation(punctuation *CaptionsAnimateParamsStylePunctuation)
SetPunctuation sets the Punctuation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetShadow ¶
func (c *CaptionsAnimateParamsStyle) SetShadow(shadow *float64)
SetShadow sets the Shadow field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) SetStroke ¶
func (c *CaptionsAnimateParamsStyle) SetStroke(stroke *CaptionsAnimateParamsStyleStroke)
SetStroke sets the Stroke field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyle) String ¶
func (c *CaptionsAnimateParamsStyle) String() string
func (*CaptionsAnimateParamsStyle) UnmarshalJSON ¶
func (c *CaptionsAnimateParamsStyle) UnmarshalJSON(data []byte) error
type CaptionsAnimateParamsStyleCase ¶
type CaptionsAnimateParamsStyleCase string
const ( CaptionsAnimateParamsStyleCaseUpper CaptionsAnimateParamsStyleCase = "upper" CaptionsAnimateParamsStyleCaseNormal CaptionsAnimateParamsStyleCase = "normal" )
func NewCaptionsAnimateParamsStyleCaseFromString ¶
func NewCaptionsAnimateParamsStyleCaseFromString(s string) (CaptionsAnimateParamsStyleCase, error)
func (CaptionsAnimateParamsStyleCase) Ptr ¶
func (c CaptionsAnimateParamsStyleCase) Ptr() *CaptionsAnimateParamsStyleCase
type CaptionsAnimateParamsStyleEmphasis ¶
type CaptionsAnimateParamsStyleEmphasis struct {
Color string `json:"color" url:"color"`
// contains filtered or unexported fields
}
func (*CaptionsAnimateParamsStyleEmphasis) GetColor ¶
func (c *CaptionsAnimateParamsStyleEmphasis) GetColor() string
func (*CaptionsAnimateParamsStyleEmphasis) GetExtraProperties ¶
func (c *CaptionsAnimateParamsStyleEmphasis) GetExtraProperties() map[string]interface{}
func (*CaptionsAnimateParamsStyleEmphasis) MarshalJSON ¶
func (c *CaptionsAnimateParamsStyleEmphasis) MarshalJSON() ([]byte, error)
func (*CaptionsAnimateParamsStyleEmphasis) SetColor ¶
func (c *CaptionsAnimateParamsStyleEmphasis) SetColor(color string)
SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleEmphasis) String ¶
func (c *CaptionsAnimateParamsStyleEmphasis) String() string
func (*CaptionsAnimateParamsStyleEmphasis) UnmarshalJSON ¶
func (c *CaptionsAnimateParamsStyleEmphasis) UnmarshalJSON(data []byte) error
type CaptionsAnimateParamsStyleEntrance ¶
type CaptionsAnimateParamsStyleEntrance string
const ( CaptionsAnimateParamsStyleEntranceFade CaptionsAnimateParamsStyleEntrance = "fade" CaptionsAnimateParamsStyleEntrancePop CaptionsAnimateParamsStyleEntrance = "pop" CaptionsAnimateParamsStyleEntranceBounce CaptionsAnimateParamsStyleEntrance = "bounce" )
func NewCaptionsAnimateParamsStyleEntranceFromString ¶
func NewCaptionsAnimateParamsStyleEntranceFromString(s string) (CaptionsAnimateParamsStyleEntrance, error)
func (CaptionsAnimateParamsStyleEntrance) Ptr ¶
func (c CaptionsAnimateParamsStyleEntrance) Ptr() *CaptionsAnimateParamsStyleEntrance
type CaptionsAnimateParamsStyleHighlight ¶
type CaptionsAnimateParamsStyleHighlight struct {
Mode *CaptionsAnimateParamsStyleHighlightMode `json:"mode,omitempty" url:"mode,omitempty"`
Color *string `json:"color,omitempty" url:"color,omitempty"`
TextColor *string `json:"textColor,omitempty" url:"textColor,omitempty"`
Scale *float64 `json:"scale,omitempty" url:"scale,omitempty"`
// contains filtered or unexported fields
}
func (*CaptionsAnimateParamsStyleHighlight) GetColor ¶
func (c *CaptionsAnimateParamsStyleHighlight) GetColor() *string
func (*CaptionsAnimateParamsStyleHighlight) GetExtraProperties ¶
func (c *CaptionsAnimateParamsStyleHighlight) GetExtraProperties() map[string]interface{}
func (*CaptionsAnimateParamsStyleHighlight) GetMode ¶
func (c *CaptionsAnimateParamsStyleHighlight) GetMode() *CaptionsAnimateParamsStyleHighlightMode
func (*CaptionsAnimateParamsStyleHighlight) GetScale ¶
func (c *CaptionsAnimateParamsStyleHighlight) GetScale() *float64
func (*CaptionsAnimateParamsStyleHighlight) GetTextColor ¶
func (c *CaptionsAnimateParamsStyleHighlight) GetTextColor() *string
func (*CaptionsAnimateParamsStyleHighlight) MarshalJSON ¶
func (c *CaptionsAnimateParamsStyleHighlight) MarshalJSON() ([]byte, error)
func (*CaptionsAnimateParamsStyleHighlight) SetColor ¶
func (c *CaptionsAnimateParamsStyleHighlight) SetColor(color *string)
SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleHighlight) SetMode ¶
func (c *CaptionsAnimateParamsStyleHighlight) SetMode(mode *CaptionsAnimateParamsStyleHighlightMode)
SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleHighlight) SetScale ¶
func (c *CaptionsAnimateParamsStyleHighlight) SetScale(scale *float64)
SetScale sets the Scale field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleHighlight) SetTextColor ¶
func (c *CaptionsAnimateParamsStyleHighlight) SetTextColor(textColor *string)
SetTextColor sets the TextColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleHighlight) String ¶
func (c *CaptionsAnimateParamsStyleHighlight) String() string
func (*CaptionsAnimateParamsStyleHighlight) UnmarshalJSON ¶
func (c *CaptionsAnimateParamsStyleHighlight) UnmarshalJSON(data []byte) error
type CaptionsAnimateParamsStyleHighlightMode ¶
type CaptionsAnimateParamsStyleHighlightMode string
const ( CaptionsAnimateParamsStyleHighlightModeColor CaptionsAnimateParamsStyleHighlightMode = "color" CaptionsAnimateParamsStyleHighlightModeBox CaptionsAnimateParamsStyleHighlightMode = "box" )
func NewCaptionsAnimateParamsStyleHighlightModeFromString ¶
func NewCaptionsAnimateParamsStyleHighlightModeFromString(s string) (CaptionsAnimateParamsStyleHighlightMode, error)
type CaptionsAnimateParamsStyleLayout ¶
type CaptionsAnimateParamsStyleLayout string
const ( CaptionsAnimateParamsStyleLayoutWord CaptionsAnimateParamsStyleLayout = "word" CaptionsAnimateParamsStyleLayoutPhrase CaptionsAnimateParamsStyleLayout = "phrase" )
func NewCaptionsAnimateParamsStyleLayoutFromString ¶
func NewCaptionsAnimateParamsStyleLayoutFromString(s string) (CaptionsAnimateParamsStyleLayout, error)
func (CaptionsAnimateParamsStyleLayout) Ptr ¶
func (c CaptionsAnimateParamsStyleLayout) Ptr() *CaptionsAnimateParamsStyleLayout
type CaptionsAnimateParamsStylePosition ¶
type CaptionsAnimateParamsStylePosition string
const ( CaptionsAnimateParamsStylePositionTop CaptionsAnimateParamsStylePosition = "top" CaptionsAnimateParamsStylePositionCenter CaptionsAnimateParamsStylePosition = "center" CaptionsAnimateParamsStylePositionBottom CaptionsAnimateParamsStylePosition = "bottom" )
func NewCaptionsAnimateParamsStylePositionFromString ¶
func NewCaptionsAnimateParamsStylePositionFromString(s string) (CaptionsAnimateParamsStylePosition, error)
func (CaptionsAnimateParamsStylePosition) Ptr ¶
func (c CaptionsAnimateParamsStylePosition) Ptr() *CaptionsAnimateParamsStylePosition
type CaptionsAnimateParamsStylePunctuation ¶
type CaptionsAnimateParamsStylePunctuation string
const ( CaptionsAnimateParamsStylePunctuationStrip CaptionsAnimateParamsStylePunctuation = "strip" CaptionsAnimateParamsStylePunctuationEmphatic CaptionsAnimateParamsStylePunctuation = "emphatic" CaptionsAnimateParamsStylePunctuationKeep CaptionsAnimateParamsStylePunctuation = "keep" )
func NewCaptionsAnimateParamsStylePunctuationFromString ¶
func NewCaptionsAnimateParamsStylePunctuationFromString(s string) (CaptionsAnimateParamsStylePunctuation, error)
type CaptionsAnimateParamsStyleStroke ¶
type CaptionsAnimateParamsStyleStroke struct {
Color string `json:"color" url:"color"`
Width float64 `json:"width" url:"width"`
// contains filtered or unexported fields
}
func (*CaptionsAnimateParamsStyleStroke) GetColor ¶
func (c *CaptionsAnimateParamsStyleStroke) GetColor() string
func (*CaptionsAnimateParamsStyleStroke) GetExtraProperties ¶
func (c *CaptionsAnimateParamsStyleStroke) GetExtraProperties() map[string]interface{}
func (*CaptionsAnimateParamsStyleStroke) GetWidth ¶
func (c *CaptionsAnimateParamsStyleStroke) GetWidth() float64
func (*CaptionsAnimateParamsStyleStroke) MarshalJSON ¶
func (c *CaptionsAnimateParamsStyleStroke) MarshalJSON() ([]byte, error)
func (*CaptionsAnimateParamsStyleStroke) SetColor ¶
func (c *CaptionsAnimateParamsStyleStroke) SetColor(color string)
SetColor sets the Color field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleStroke) SetWidth ¶
func (c *CaptionsAnimateParamsStyleStroke) SetWidth(width float64)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CaptionsAnimateParamsStyleStroke) String ¶
func (c *CaptionsAnimateParamsStyleStroke) String() string
func (*CaptionsAnimateParamsStyleStroke) UnmarshalJSON ¶
func (c *CaptionsAnimateParamsStyleStroke) UnmarshalJSON(data []byte) error
type CaptionsAnimateParamsTranslateTo ¶
type CaptionsAnimateParamsTranslateTo string
const ( CaptionsAnimateParamsTranslateToEs CaptionsAnimateParamsTranslateTo = "es" CaptionsAnimateParamsTranslateToFr CaptionsAnimateParamsTranslateTo = "fr" CaptionsAnimateParamsTranslateToDe CaptionsAnimateParamsTranslateTo = "de" CaptionsAnimateParamsTranslateToPt CaptionsAnimateParamsTranslateTo = "pt" CaptionsAnimateParamsTranslateToIt CaptionsAnimateParamsTranslateTo = "it" CaptionsAnimateParamsTranslateToNl CaptionsAnimateParamsTranslateTo = "nl" )
func NewCaptionsAnimateParamsTranslateToFromString ¶
func NewCaptionsAnimateParamsTranslateToFromString(s string) (CaptionsAnimateParamsTranslateTo, error)
func (CaptionsAnimateParamsTranslateTo) Ptr ¶
func (c CaptionsAnimateParamsTranslateTo) Ptr() *CaptionsAnimateParamsTranslateTo
type CompressTargetParams ¶
type CompressTargetParams struct {
// Delivery posture: "web" (small, modern, sRGB, stripped) or "archive" (lossless, preserve everything). Omit for raw defaults.
For *CompressTargetParamsFor `json:"for,omitempty" url:"for,omitempty"`
// Target quality/size: "visually-lossless" | "balanced" | "efficient", a 1-100 quality number, or { quality } | { maxBytes } | { maxSize } | { bitrate }.
Target *CompressTargetParamsTarget `json:"target,omitempty" url:"target,omitempty"`
// Decode reach the output must guarantee: "modern" (~90%, best efficiency), "broad" (~99%, default), "legacy" (~100%, oldest decoders).
Compatibility *CompressTargetParamsCompatibility `json:"compatibility,omitempty" url:"compatibility,omitempty"`
// Output codec, or 'auto' to pick the best one allowed by compatibility.
Codec *CompressTargetParamsCodec `json:"codec,omitempty" url:"codec,omitempty"`
// Cap the longest edge — a pixel value or a rung like "1080p". null = no cap.
MaxResolution *CompressTargetParamsMaxResolution `json:"maxResolution,omitempty" url:"maxResolution,omitempty"`
// Preserve the source gamut, or convert to sRGB for web display.
Colorspace *CompressTargetParamsColorspace `json:"colorspace,omitempty" url:"colorspace,omitempty"`
// Alpha: "preserve", "flatten" (onto white), or a "#RRGGBB" fill color.
Alpha *CompressTargetParamsAlpha `json:"alpha,omitempty" url:"alpha,omitempty"`
// Metadata: "all" (keep everything), "colorOnly" (strip EXIF/GPS; ICC preservation is best-effort), "none" (strip all).
Metadata *CompressTargetParamsMetadata `json:"metadata,omitempty" url:"metadata,omitempty"`
// Encode effort — trades speed for compression.
Effort *CompressTargetParamsEffort `json:"effort,omitempty" url:"effort,omitempty"`
// Re-encode even if the input already meets the target.
ForceReencode *bool `json:"forceReencode,omitempty" url:"forceReencode,omitempty"`
// Return a predicted result (size, quality, cost) without encoding.
DryRun *bool `json:"dryRun,omitempty" url:"dryRun,omitempty"`
// Video stream handling: whether soft subtitle tracks survive the encode, and which audio tracks are kept.
Video *CompressTargetParamsVideo `json:"video,omitempty" url:"video,omitempty"`
// Audio handling: an optional integrated-loudness target, and whether to keep or downmix the channel layout.
Audio *CompressTargetParamsAudio `json:"audio,omitempty" url:"audio,omitempty"`
// Expert overrides for the quality search: which metric verifies the result, and a hard quality floor it must never fall below.
Tuning *CompressTargetParamsTuning `json:"tuning,omitempty" url:"tuning,omitempty"`
// Max execution time in seconds (defaults to your plan's max job timeout).
Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
// contains filtered or unexported fields
}
Params of the compress.target job.
func (*CompressTargetParams) GetAlpha ¶
func (c *CompressTargetParams) GetAlpha() *CompressTargetParamsAlpha
func (*CompressTargetParams) GetAudio ¶
func (c *CompressTargetParams) GetAudio() *CompressTargetParamsAudio
func (*CompressTargetParams) GetCodec ¶
func (c *CompressTargetParams) GetCodec() *CompressTargetParamsCodec
func (*CompressTargetParams) GetColorspace ¶
func (c *CompressTargetParams) GetColorspace() *CompressTargetParamsColorspace
func (*CompressTargetParams) GetCompatibility ¶
func (c *CompressTargetParams) GetCompatibility() *CompressTargetParamsCompatibility
func (*CompressTargetParams) GetDryRun ¶
func (c *CompressTargetParams) GetDryRun() *bool
func (*CompressTargetParams) GetEffort ¶
func (c *CompressTargetParams) GetEffort() *CompressTargetParamsEffort
func (*CompressTargetParams) GetExtraProperties ¶
func (c *CompressTargetParams) GetExtraProperties() map[string]interface{}
func (*CompressTargetParams) GetFor ¶
func (c *CompressTargetParams) GetFor() *CompressTargetParamsFor
func (*CompressTargetParams) GetForceReencode ¶
func (c *CompressTargetParams) GetForceReencode() *bool
func (*CompressTargetParams) GetMaxResolution ¶
func (c *CompressTargetParams) GetMaxResolution() *CompressTargetParamsMaxResolution
func (*CompressTargetParams) GetMetadata ¶
func (c *CompressTargetParams) GetMetadata() *CompressTargetParamsMetadata
func (*CompressTargetParams) GetTarget ¶
func (c *CompressTargetParams) GetTarget() *CompressTargetParamsTarget
func (*CompressTargetParams) GetTimeout ¶
func (c *CompressTargetParams) GetTimeout() *int
func (*CompressTargetParams) GetTuning ¶
func (c *CompressTargetParams) GetTuning() *CompressTargetParamsTuning
func (*CompressTargetParams) GetVideo ¶
func (c *CompressTargetParams) GetVideo() *CompressTargetParamsVideo
func (*CompressTargetParams) MarshalJSON ¶
func (c *CompressTargetParams) MarshalJSON() ([]byte, error)
func (*CompressTargetParams) SetAlpha ¶
func (c *CompressTargetParams) SetAlpha(alpha *CompressTargetParamsAlpha)
SetAlpha sets the Alpha field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetAudio ¶
func (c *CompressTargetParams) SetAudio(audio *CompressTargetParamsAudio)
SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetCodec ¶
func (c *CompressTargetParams) SetCodec(codec *CompressTargetParamsCodec)
SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetColorspace ¶
func (c *CompressTargetParams) SetColorspace(colorspace *CompressTargetParamsColorspace)
SetColorspace sets the Colorspace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetCompatibility ¶
func (c *CompressTargetParams) SetCompatibility(compatibility *CompressTargetParamsCompatibility)
SetCompatibility sets the Compatibility field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetDryRun ¶
func (c *CompressTargetParams) SetDryRun(dryRun *bool)
SetDryRun sets the DryRun field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetEffort ¶
func (c *CompressTargetParams) SetEffort(effort *CompressTargetParamsEffort)
SetEffort sets the Effort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetFor ¶
func (c *CompressTargetParams) SetFor(for_ *CompressTargetParamsFor)
SetFor sets the For field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetForceReencode ¶
func (c *CompressTargetParams) SetForceReencode(forceReencode *bool)
SetForceReencode sets the ForceReencode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetMaxResolution ¶
func (c *CompressTargetParams) SetMaxResolution(maxResolution *CompressTargetParamsMaxResolution)
SetMaxResolution sets the MaxResolution field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetMetadata ¶
func (c *CompressTargetParams) SetMetadata(metadata *CompressTargetParamsMetadata)
SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetTarget ¶
func (c *CompressTargetParams) SetTarget(target *CompressTargetParamsTarget)
SetTarget sets the Target field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetTimeout ¶
func (c *CompressTargetParams) SetTimeout(timeout *int)
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetTuning ¶
func (c *CompressTargetParams) SetTuning(tuning *CompressTargetParamsTuning)
SetTuning sets the Tuning field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) SetVideo ¶
func (c *CompressTargetParams) SetVideo(video *CompressTargetParamsVideo)
SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParams) String ¶
func (c *CompressTargetParams) String() string
func (*CompressTargetParams) UnmarshalJSON ¶
func (c *CompressTargetParams) UnmarshalJSON(data []byte) error
type CompressTargetParamsAlpha ¶
type CompressTargetParamsAlpha struct {
CompressTargetParamsAlphaZero CompressTargetParamsAlphaZero
String string
// contains filtered or unexported fields
}
Alpha: "preserve", "flatten" (onto white), or a "#RRGGBB" fill color.
func (*CompressTargetParamsAlpha) Accept ¶
func (c *CompressTargetParamsAlpha) Accept(visitor CompressTargetParamsAlphaVisitor) error
func (*CompressTargetParamsAlpha) GetCompressTargetParamsAlphaZero ¶
func (c *CompressTargetParamsAlpha) GetCompressTargetParamsAlphaZero() CompressTargetParamsAlphaZero
func (*CompressTargetParamsAlpha) GetString ¶
func (c *CompressTargetParamsAlpha) GetString() string
func (CompressTargetParamsAlpha) MarshalJSON ¶
func (c CompressTargetParamsAlpha) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsAlpha) UnmarshalJSON ¶
func (c *CompressTargetParamsAlpha) UnmarshalJSON(data []byte) error
type CompressTargetParamsAlphaVisitor ¶
type CompressTargetParamsAlphaVisitor interface {
VisitCompressTargetParamsAlphaZero(CompressTargetParamsAlphaZero) error
VisitString(string) error
}
type CompressTargetParamsAlphaZero ¶
type CompressTargetParamsAlphaZero string
const ( CompressTargetParamsAlphaZeroPreserve CompressTargetParamsAlphaZero = "preserve" CompressTargetParamsAlphaZeroFlatten CompressTargetParamsAlphaZero = "flatten" )
func NewCompressTargetParamsAlphaZeroFromString ¶
func NewCompressTargetParamsAlphaZeroFromString(s string) (CompressTargetParamsAlphaZero, error)
func (CompressTargetParamsAlphaZero) Ptr ¶
func (c CompressTargetParamsAlphaZero) Ptr() *CompressTargetParamsAlphaZero
type CompressTargetParamsAudio ¶
type CompressTargetParamsAudio struct {
// Normalize to this integrated LUFS target (e.g. -14). null = off.
LoudnessLufs *float64 `json:"loudnessLufs,omitempty" url:"loudnessLufs,omitempty"`
// Keep the source channel layout, or downmix.
Channels *CompressTargetParamsAudioChannels `json:"channels,omitempty" url:"channels,omitempty"`
// contains filtered or unexported fields
}
Audio handling: an optional integrated-loudness target, and whether to keep or downmix the channel layout.
func (*CompressTargetParamsAudio) GetChannels ¶
func (c *CompressTargetParamsAudio) GetChannels() *CompressTargetParamsAudioChannels
func (*CompressTargetParamsAudio) GetExtraProperties ¶
func (c *CompressTargetParamsAudio) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsAudio) GetLoudnessLufs ¶
func (c *CompressTargetParamsAudio) GetLoudnessLufs() *float64
func (*CompressTargetParamsAudio) MarshalJSON ¶
func (c *CompressTargetParamsAudio) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsAudio) SetChannels ¶
func (c *CompressTargetParamsAudio) SetChannels(channels *CompressTargetParamsAudioChannels)
SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsAudio) SetLoudnessLufs ¶
func (c *CompressTargetParamsAudio) SetLoudnessLufs(loudnessLufs *float64)
SetLoudnessLufs sets the LoudnessLufs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsAudio) String ¶
func (c *CompressTargetParamsAudio) String() string
func (*CompressTargetParamsAudio) UnmarshalJSON ¶
func (c *CompressTargetParamsAudio) UnmarshalJSON(data []byte) error
type CompressTargetParamsAudioChannels ¶
type CompressTargetParamsAudioChannels string
Keep the source channel layout, or downmix.
const ( CompressTargetParamsAudioChannelsPreserve CompressTargetParamsAudioChannels = "preserve" CompressTargetParamsAudioChannelsMono CompressTargetParamsAudioChannels = "mono" CompressTargetParamsAudioChannelsStereo CompressTargetParamsAudioChannels = "stereo" )
func NewCompressTargetParamsAudioChannelsFromString ¶
func NewCompressTargetParamsAudioChannelsFromString(s string) (CompressTargetParamsAudioChannels, error)
func (CompressTargetParamsAudioChannels) Ptr ¶
func (c CompressTargetParamsAudioChannels) Ptr() *CompressTargetParamsAudioChannels
type CompressTargetParamsCodec ¶
type CompressTargetParamsCodec string
Output codec, or 'auto' to pick the best one allowed by compatibility.
const ( CompressTargetParamsCodecAuto CompressTargetParamsCodec = "auto" CompressTargetParamsCodecAv1 CompressTargetParamsCodec = "av1" CompressTargetParamsCodecHevc CompressTargetParamsCodec = "hevc" CompressTargetParamsCodecH264 CompressTargetParamsCodec = "h264" CompressTargetParamsCodecVp9 CompressTargetParamsCodec = "vp9" CompressTargetParamsCodecAvif CompressTargetParamsCodec = "avif" CompressTargetParamsCodecJxl CompressTargetParamsCodec = "jxl" CompressTargetParamsCodecJpegli CompressTargetParamsCodec = "jpegli" CompressTargetParamsCodecWebp CompressTargetParamsCodec = "webp" CompressTargetParamsCodecPng CompressTargetParamsCodec = "png" CompressTargetParamsCodecOpus CompressTargetParamsCodec = "opus" CompressTargetParamsCodecAac CompressTargetParamsCodec = "aac" CompressTargetParamsCodecMp3 CompressTargetParamsCodec = "mp3" CompressTargetParamsCodecFlac CompressTargetParamsCodec = "flac" CompressTargetParamsCodecAlac CompressTargetParamsCodec = "alac" )
func NewCompressTargetParamsCodecFromString ¶
func NewCompressTargetParamsCodecFromString(s string) (CompressTargetParamsCodec, error)
func (CompressTargetParamsCodec) Ptr ¶
func (c CompressTargetParamsCodec) Ptr() *CompressTargetParamsCodec
type CompressTargetParamsColorspace ¶
type CompressTargetParamsColorspace string
Preserve the source gamut, or convert to sRGB for web display.
const ( CompressTargetParamsColorspacePreserve CompressTargetParamsColorspace = "preserve" CompressTargetParamsColorspaceSrgb CompressTargetParamsColorspace = "srgb" )
func NewCompressTargetParamsColorspaceFromString ¶
func NewCompressTargetParamsColorspaceFromString(s string) (CompressTargetParamsColorspace, error)
func (CompressTargetParamsColorspace) Ptr ¶
func (c CompressTargetParamsColorspace) Ptr() *CompressTargetParamsColorspace
type CompressTargetParamsCompatibility ¶
type CompressTargetParamsCompatibility string
Decode reach the output must guarantee: "modern" (~90%, best efficiency), "broad" (~99%, default), "legacy" (~100%, oldest decoders).
const ( CompressTargetParamsCompatibilityModern CompressTargetParamsCompatibility = "modern" CompressTargetParamsCompatibilityBroad CompressTargetParamsCompatibility = "broad" CompressTargetParamsCompatibilityLegacy CompressTargetParamsCompatibility = "legacy" )
func NewCompressTargetParamsCompatibilityFromString ¶
func NewCompressTargetParamsCompatibilityFromString(s string) (CompressTargetParamsCompatibility, error)
func (CompressTargetParamsCompatibility) Ptr ¶
func (c CompressTargetParamsCompatibility) Ptr() *CompressTargetParamsCompatibility
type CompressTargetParamsEffort ¶
type CompressTargetParamsEffort string
Encode effort — trades speed for compression.
const ( CompressTargetParamsEffortFast CompressTargetParamsEffort = "fast" CompressTargetParamsEffortBalanced CompressTargetParamsEffort = "balanced" CompressTargetParamsEffortThorough CompressTargetParamsEffort = "thorough" )
func NewCompressTargetParamsEffortFromString ¶
func NewCompressTargetParamsEffortFromString(s string) (CompressTargetParamsEffort, error)
func (CompressTargetParamsEffort) Ptr ¶
func (c CompressTargetParamsEffort) Ptr() *CompressTargetParamsEffort
type CompressTargetParamsFor ¶
type CompressTargetParamsFor string
Delivery posture: "web" (small, modern, sRGB, stripped) or "archive" (lossless, preserve everything). Omit for raw defaults.
const ( CompressTargetParamsForWeb CompressTargetParamsFor = "web" CompressTargetParamsForArchive CompressTargetParamsFor = "archive" )
func NewCompressTargetParamsForFromString ¶
func NewCompressTargetParamsForFromString(s string) (CompressTargetParamsFor, error)
func (CompressTargetParamsFor) Ptr ¶
func (c CompressTargetParamsFor) Ptr() *CompressTargetParamsFor
type CompressTargetParamsMaxResolution ¶
type CompressTargetParamsMaxResolution struct {
Integer int
CompressTargetParamsMaxResolutionOne CompressTargetParamsMaxResolutionOne
// contains filtered or unexported fields
}
func (*CompressTargetParamsMaxResolution) Accept ¶
func (c *CompressTargetParamsMaxResolution) Accept(visitor CompressTargetParamsMaxResolutionVisitor) error
func (*CompressTargetParamsMaxResolution) GetCompressTargetParamsMaxResolutionOne ¶
func (c *CompressTargetParamsMaxResolution) GetCompressTargetParamsMaxResolutionOne() CompressTargetParamsMaxResolutionOne
func (*CompressTargetParamsMaxResolution) GetInteger ¶
func (c *CompressTargetParamsMaxResolution) GetInteger() int
func (CompressTargetParamsMaxResolution) MarshalJSON ¶
func (c CompressTargetParamsMaxResolution) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsMaxResolution) UnmarshalJSON ¶
func (c *CompressTargetParamsMaxResolution) UnmarshalJSON(data []byte) error
type CompressTargetParamsMaxResolutionOne ¶
type CompressTargetParamsMaxResolutionOne string
const ( CompressTargetParamsMaxResolutionOneFourThousandThreeHundredTwentyP CompressTargetParamsMaxResolutionOne = "4320p" CompressTargetParamsMaxResolutionOneTwoThousandOneHundredSixtyP CompressTargetParamsMaxResolutionOne = "2160p" CompressTargetParamsMaxResolutionOneOneThousandFourHundredFortyP CompressTargetParamsMaxResolutionOne = "1440p" CompressTargetParamsMaxResolutionOneOneThousandEightyP CompressTargetParamsMaxResolutionOne = "1080p" CompressTargetParamsMaxResolutionOneSevenHundredTwentyP CompressTargetParamsMaxResolutionOne = "720p" CompressTargetParamsMaxResolutionOneFourHundredEightyP CompressTargetParamsMaxResolutionOne = "480p" CompressTargetParamsMaxResolutionOneThreeHundredSixtyP CompressTargetParamsMaxResolutionOne = "360p" )
func NewCompressTargetParamsMaxResolutionOneFromString ¶
func NewCompressTargetParamsMaxResolutionOneFromString(s string) (CompressTargetParamsMaxResolutionOne, error)
type CompressTargetParamsMaxResolutionVisitor ¶
type CompressTargetParamsMaxResolutionVisitor interface {
VisitInteger(int) error
VisitCompressTargetParamsMaxResolutionOne(CompressTargetParamsMaxResolutionOne) error
}
type CompressTargetParamsMetadata ¶
type CompressTargetParamsMetadata string
Metadata: "all" (keep everything), "colorOnly" (strip EXIF/GPS; ICC preservation is best-effort), "none" (strip all).
const ( CompressTargetParamsMetadataAll CompressTargetParamsMetadata = "all" CompressTargetParamsMetadataColorOnly CompressTargetParamsMetadata = "colorOnly" CompressTargetParamsMetadataNone CompressTargetParamsMetadata = "none" )
func NewCompressTargetParamsMetadataFromString ¶
func NewCompressTargetParamsMetadataFromString(s string) (CompressTargetParamsMetadata, error)
func (CompressTargetParamsMetadata) Ptr ¶
func (c CompressTargetParamsMetadata) Ptr() *CompressTargetParamsMetadata
type CompressTargetParamsTarget ¶
type CompressTargetParamsTarget struct {
CompressTargetParamsTargetZero CompressTargetParamsTargetZero
Integer int
CompressTargetParamsTargetQuality *CompressTargetParamsTargetQuality
CompressTargetParamsTargetMaxBytes *CompressTargetParamsTargetMaxBytes
CompressTargetParamsTargetMaxSize *CompressTargetParamsTargetMaxSize
CompressTargetParamsTargetBitrate *CompressTargetParamsTargetBitrate
// contains filtered or unexported fields
}
Target quality/size: "visually-lossless" | "balanced" | "efficient", a 1-100 quality number, or { quality } | { maxBytes } | { maxSize } | { bitrate }.
func (*CompressTargetParamsTarget) Accept ¶
func (c *CompressTargetParamsTarget) Accept(visitor CompressTargetParamsTargetVisitor) error
func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetBitrate ¶
func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetBitrate() *CompressTargetParamsTargetBitrate
func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxBytes ¶
func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxBytes() *CompressTargetParamsTargetMaxBytes
func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxSize ¶
func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetMaxSize() *CompressTargetParamsTargetMaxSize
func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetQuality ¶
func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetQuality() *CompressTargetParamsTargetQuality
func (*CompressTargetParamsTarget) GetCompressTargetParamsTargetZero ¶
func (c *CompressTargetParamsTarget) GetCompressTargetParamsTargetZero() CompressTargetParamsTargetZero
func (*CompressTargetParamsTarget) GetInteger ¶
func (c *CompressTargetParamsTarget) GetInteger() int
func (CompressTargetParamsTarget) MarshalJSON ¶
func (c CompressTargetParamsTarget) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTarget) UnmarshalJSON ¶
func (c *CompressTargetParamsTarget) UnmarshalJSON(data []byte) error
type CompressTargetParamsTargetBitrate ¶
type CompressTargetParamsTargetBitrate struct {
Bitrate int `json:"bitrate" url:"bitrate"`
// contains filtered or unexported fields
}
func (*CompressTargetParamsTargetBitrate) GetBitrate ¶
func (c *CompressTargetParamsTargetBitrate) GetBitrate() int
func (*CompressTargetParamsTargetBitrate) GetExtraProperties ¶
func (c *CompressTargetParamsTargetBitrate) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsTargetBitrate) MarshalJSON ¶
func (c *CompressTargetParamsTargetBitrate) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTargetBitrate) SetBitrate ¶
func (c *CompressTargetParamsTargetBitrate) SetBitrate(bitrate int)
SetBitrate sets the Bitrate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTargetBitrate) String ¶
func (c *CompressTargetParamsTargetBitrate) String() string
func (*CompressTargetParamsTargetBitrate) UnmarshalJSON ¶
func (c *CompressTargetParamsTargetBitrate) UnmarshalJSON(data []byte) error
type CompressTargetParamsTargetMaxBytes ¶
type CompressTargetParamsTargetMaxBytes struct {
MaxBytes int `json:"maxBytes" url:"maxBytes"`
// contains filtered or unexported fields
}
func (*CompressTargetParamsTargetMaxBytes) GetExtraProperties ¶
func (c *CompressTargetParamsTargetMaxBytes) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsTargetMaxBytes) GetMaxBytes ¶
func (c *CompressTargetParamsTargetMaxBytes) GetMaxBytes() int
func (*CompressTargetParamsTargetMaxBytes) MarshalJSON ¶
func (c *CompressTargetParamsTargetMaxBytes) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTargetMaxBytes) SetMaxBytes ¶
func (c *CompressTargetParamsTargetMaxBytes) SetMaxBytes(maxBytes int)
SetMaxBytes sets the MaxBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTargetMaxBytes) String ¶
func (c *CompressTargetParamsTargetMaxBytes) String() string
func (*CompressTargetParamsTargetMaxBytes) UnmarshalJSON ¶
func (c *CompressTargetParamsTargetMaxBytes) UnmarshalJSON(data []byte) error
type CompressTargetParamsTargetMaxSize ¶
type CompressTargetParamsTargetMaxSize struct {
MaxSize string `json:"maxSize" url:"maxSize"`
// contains filtered or unexported fields
}
func (*CompressTargetParamsTargetMaxSize) GetExtraProperties ¶
func (c *CompressTargetParamsTargetMaxSize) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsTargetMaxSize) GetMaxSize ¶
func (c *CompressTargetParamsTargetMaxSize) GetMaxSize() string
func (*CompressTargetParamsTargetMaxSize) MarshalJSON ¶
func (c *CompressTargetParamsTargetMaxSize) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTargetMaxSize) SetMaxSize ¶
func (c *CompressTargetParamsTargetMaxSize) SetMaxSize(maxSize string)
SetMaxSize sets the MaxSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTargetMaxSize) String ¶
func (c *CompressTargetParamsTargetMaxSize) String() string
func (*CompressTargetParamsTargetMaxSize) UnmarshalJSON ¶
func (c *CompressTargetParamsTargetMaxSize) UnmarshalJSON(data []byte) error
type CompressTargetParamsTargetQuality ¶
type CompressTargetParamsTargetQuality struct {
Quality int `json:"quality" url:"quality"`
// contains filtered or unexported fields
}
func (*CompressTargetParamsTargetQuality) GetExtraProperties ¶
func (c *CompressTargetParamsTargetQuality) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsTargetQuality) GetQuality ¶
func (c *CompressTargetParamsTargetQuality) GetQuality() int
func (*CompressTargetParamsTargetQuality) MarshalJSON ¶
func (c *CompressTargetParamsTargetQuality) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTargetQuality) SetQuality ¶
func (c *CompressTargetParamsTargetQuality) SetQuality(quality int)
SetQuality sets the Quality field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTargetQuality) String ¶
func (c *CompressTargetParamsTargetQuality) String() string
func (*CompressTargetParamsTargetQuality) UnmarshalJSON ¶
func (c *CompressTargetParamsTargetQuality) UnmarshalJSON(data []byte) error
type CompressTargetParamsTargetVisitor ¶
type CompressTargetParamsTargetVisitor interface {
VisitCompressTargetParamsTargetZero(CompressTargetParamsTargetZero) error
VisitInteger(int) error
VisitCompressTargetParamsTargetQuality(*CompressTargetParamsTargetQuality) error
VisitCompressTargetParamsTargetMaxBytes(*CompressTargetParamsTargetMaxBytes) error
VisitCompressTargetParamsTargetMaxSize(*CompressTargetParamsTargetMaxSize) error
VisitCompressTargetParamsTargetBitrate(*CompressTargetParamsTargetBitrate) error
}
type CompressTargetParamsTargetZero ¶
type CompressTargetParamsTargetZero string
const ( CompressTargetParamsTargetZeroVisuallyLossless CompressTargetParamsTargetZero = "visually-lossless" CompressTargetParamsTargetZeroBalanced CompressTargetParamsTargetZero = "balanced" CompressTargetParamsTargetZeroEfficient CompressTargetParamsTargetZero = "efficient" )
func NewCompressTargetParamsTargetZeroFromString ¶
func NewCompressTargetParamsTargetZeroFromString(s string) (CompressTargetParamsTargetZero, error)
func (CompressTargetParamsTargetZero) Ptr ¶
func (c CompressTargetParamsTargetZero) Ptr() *CompressTargetParamsTargetZero
type CompressTargetParamsTuning ¶
type CompressTargetParamsTuning struct {
// Override the verification oracle. 'auto' picks per medium.
Metric *CompressTargetParamsTuningMetric `json:"metric,omitempty" url:"metric,omitempty"`
// Hard minimum quality the output must never drop below.
Floor *float64 `json:"floor,omitempty" url:"floor,omitempty"`
// contains filtered or unexported fields
}
Expert overrides for the quality search: which metric verifies the result, and a hard quality floor it must never fall below.
func (*CompressTargetParamsTuning) GetExtraProperties ¶
func (c *CompressTargetParamsTuning) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsTuning) GetFloor ¶
func (c *CompressTargetParamsTuning) GetFloor() *float64
func (*CompressTargetParamsTuning) GetMetric ¶
func (c *CompressTargetParamsTuning) GetMetric() *CompressTargetParamsTuningMetric
func (*CompressTargetParamsTuning) MarshalJSON ¶
func (c *CompressTargetParamsTuning) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsTuning) SetFloor ¶
func (c *CompressTargetParamsTuning) SetFloor(floor *float64)
SetFloor sets the Floor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTuning) SetMetric ¶
func (c *CompressTargetParamsTuning) SetMetric(metric *CompressTargetParamsTuningMetric)
SetMetric sets the Metric field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsTuning) String ¶
func (c *CompressTargetParamsTuning) String() string
func (*CompressTargetParamsTuning) UnmarshalJSON ¶
func (c *CompressTargetParamsTuning) UnmarshalJSON(data []byte) error
type CompressTargetParamsTuningMetric ¶
type CompressTargetParamsTuningMetric string
Override the verification oracle. 'auto' picks per medium.
const ( CompressTargetParamsTuningMetricAuto CompressTargetParamsTuningMetric = "auto" CompressTargetParamsTuningMetricSsimulacra2 CompressTargetParamsTuningMetric = "ssimulacra2" CompressTargetParamsTuningMetricVmaf CompressTargetParamsTuningMetric = "vmaf" )
func NewCompressTargetParamsTuningMetricFromString ¶
func NewCompressTargetParamsTuningMetricFromString(s string) (CompressTargetParamsTuningMetric, error)
func (CompressTargetParamsTuningMetric) Ptr ¶
func (c CompressTargetParamsTuningMetric) Ptr() *CompressTargetParamsTuningMetric
type CompressTargetParamsVideo ¶
type CompressTargetParamsVideo struct {
// Soft subtitle tracks: "strip" (default) or "preserve" (best-effort copy; fails if the output container cannot hold the codec).
Subtitles *CompressTargetParamsVideoSubtitles `json:"subtitles,omitempty" url:"subtitles,omitempty"`
// Keep all audio tracks, only the primary, or drop audio entirely.
AudioTracks *CompressTargetParamsVideoAudioTracks `json:"audioTracks,omitempty" url:"audioTracks,omitempty"`
// contains filtered or unexported fields
}
Video stream handling: whether soft subtitle tracks survive the encode, and which audio tracks are kept.
func (*CompressTargetParamsVideo) GetAudioTracks ¶
func (c *CompressTargetParamsVideo) GetAudioTracks() *CompressTargetParamsVideoAudioTracks
func (*CompressTargetParamsVideo) GetExtraProperties ¶
func (c *CompressTargetParamsVideo) GetExtraProperties() map[string]interface{}
func (*CompressTargetParamsVideo) GetSubtitles ¶
func (c *CompressTargetParamsVideo) GetSubtitles() *CompressTargetParamsVideoSubtitles
func (*CompressTargetParamsVideo) MarshalJSON ¶
func (c *CompressTargetParamsVideo) MarshalJSON() ([]byte, error)
func (*CompressTargetParamsVideo) SetAudioTracks ¶
func (c *CompressTargetParamsVideo) SetAudioTracks(audioTracks *CompressTargetParamsVideoAudioTracks)
SetAudioTracks sets the AudioTracks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsVideo) SetSubtitles ¶
func (c *CompressTargetParamsVideo) SetSubtitles(subtitles *CompressTargetParamsVideoSubtitles)
SetSubtitles sets the Subtitles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CompressTargetParamsVideo) String ¶
func (c *CompressTargetParamsVideo) String() string
func (*CompressTargetParamsVideo) UnmarshalJSON ¶
func (c *CompressTargetParamsVideo) UnmarshalJSON(data []byte) error
type CompressTargetParamsVideoAudioTracks ¶
type CompressTargetParamsVideoAudioTracks string
Keep all audio tracks, only the primary, or drop audio entirely.
const ( CompressTargetParamsVideoAudioTracksAll CompressTargetParamsVideoAudioTracks = "all" CompressTargetParamsVideoAudioTracksPrimary CompressTargetParamsVideoAudioTracks = "primary" CompressTargetParamsVideoAudioTracksNone CompressTargetParamsVideoAudioTracks = "none" )
func NewCompressTargetParamsVideoAudioTracksFromString ¶
func NewCompressTargetParamsVideoAudioTracksFromString(s string) (CompressTargetParamsVideoAudioTracks, error)
type CompressTargetParamsVideoSubtitles ¶
type CompressTargetParamsVideoSubtitles string
Soft subtitle tracks: "strip" (default) or "preserve" (best-effort copy; fails if the output container cannot hold the codec).
const ( CompressTargetParamsVideoSubtitlesPreserve CompressTargetParamsVideoSubtitles = "preserve" CompressTargetParamsVideoSubtitlesStrip CompressTargetParamsVideoSubtitles = "strip" )
func NewCompressTargetParamsVideoSubtitlesFromString ¶
func NewCompressTargetParamsVideoSubtitlesFromString(s string) (CompressTargetParamsVideoSubtitles, error)
func (CompressTargetParamsVideoSubtitles) Ptr ¶
func (c CompressTargetParamsVideoSubtitles) Ptr() *CompressTargetParamsVideoSubtitles
type ConflictError ¶
type ConflictError struct {
*core.APIError
Body *ErrorResponse
}
The idempotency key is already bound to another request, or to a job that failed with a retryable error. `error.details.jobId` names that job.
func (*ConflictError) GetBody ¶
func (c *ConflictError) GetBody() *ErrorResponse
func (*ConflictError) MarshalJSON ¶
func (c *ConflictError) MarshalJSON() ([]byte, error)
func (*ConflictError) UnmarshalJSON ¶
func (c *ConflictError) UnmarshalJSON(data []byte) error
func (*ConflictError) Unwrap ¶
func (c *ConflictError) Unwrap() error
type ConnectorField ¶
type ConnectorField struct {
// Unique within this job type. Use as the form field key: `name` repeats when a discriminated union gives one field several shapes.
Key string `json:"key" url:"key"`
// Param key to submit under. Not unique, see `key`.
Name string `json:"name" url:"name"`
Label string `json:"label" url:"label"`
Type ConnectorFieldType `json:"type" url:"type"`
Required bool `json:"required" url:"required"`
Nullable *bool `json:"nullable,omitempty" url:"nullable,omitempty"`
Default any `json:"default,omitempty" url:"default,omitempty"`
Options []*ConnectorFieldOptionsItem `json:"options,omitempty" url:"options,omitempty"`
Min *float64 `json:"min,omitempty" url:"min,omitempty"`
Max *float64 `json:"max,omitempty" url:"max,omitempty"`
MinLength *int `json:"minLength,omitempty" url:"minLength,omitempty"`
MaxLength *int `json:"maxLength,omitempty" url:"maxLength,omitempty"`
Description *string `json:"description,omitempty" url:"description,omitempty"`
// Example value, for placeholder text
Example any `json:"example,omitempty" url:"example,omitempty"`
// Render position; fields are already returned in this order
Order *int `json:"order,omitempty" url:"order,omitempty"`
// Render behind an Options or Advanced disclosure
Advanced *bool `json:"advanced,omitempty" url:"advanced,omitempty"`
// Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.
ShowWhen *ConnectorFieldShowWhen `json:"showWhen,omitempty" url:"showWhen,omitempty"`
// contains filtered or unexported fields
}
func (*ConnectorField) GetAdvanced ¶
func (c *ConnectorField) GetAdvanced() *bool
func (*ConnectorField) GetDefault ¶
func (c *ConnectorField) GetDefault() any
func (*ConnectorField) GetDescription ¶
func (c *ConnectorField) GetDescription() *string
func (*ConnectorField) GetExample ¶
func (c *ConnectorField) GetExample() any
func (*ConnectorField) GetExtraProperties ¶
func (c *ConnectorField) GetExtraProperties() map[string]interface{}
func (*ConnectorField) GetKey ¶
func (c *ConnectorField) GetKey() string
func (*ConnectorField) GetLabel ¶
func (c *ConnectorField) GetLabel() string
func (*ConnectorField) GetMax ¶
func (c *ConnectorField) GetMax() *float64
func (*ConnectorField) GetMaxLength ¶
func (c *ConnectorField) GetMaxLength() *int
func (*ConnectorField) GetMin ¶
func (c *ConnectorField) GetMin() *float64
func (*ConnectorField) GetMinLength ¶
func (c *ConnectorField) GetMinLength() *int
func (*ConnectorField) GetName ¶
func (c *ConnectorField) GetName() string
func (*ConnectorField) GetNullable ¶
func (c *ConnectorField) GetNullable() *bool
func (*ConnectorField) GetOptions ¶
func (c *ConnectorField) GetOptions() []*ConnectorFieldOptionsItem
func (*ConnectorField) GetOrder ¶
func (c *ConnectorField) GetOrder() *int
func (*ConnectorField) GetRequired ¶
func (c *ConnectorField) GetRequired() bool
func (*ConnectorField) GetShowWhen ¶
func (c *ConnectorField) GetShowWhen() *ConnectorFieldShowWhen
func (*ConnectorField) GetType ¶
func (c *ConnectorField) GetType() ConnectorFieldType
func (*ConnectorField) MarshalJSON ¶
func (c *ConnectorField) MarshalJSON() ([]byte, error)
func (*ConnectorField) SetAdvanced ¶
func (c *ConnectorField) SetAdvanced(advanced *bool)
SetAdvanced sets the Advanced field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetDefault ¶
func (c *ConnectorField) SetDefault(default_ any)
SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetDescription ¶
func (c *ConnectorField) SetDescription(description *string)
SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetExample ¶
func (c *ConnectorField) SetExample(example any)
SetExample sets the Example field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetKey ¶
func (c *ConnectorField) SetKey(key string)
SetKey sets the Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetLabel ¶
func (c *ConnectorField) SetLabel(label string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetMax ¶
func (c *ConnectorField) SetMax(max *float64)
SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetMaxLength ¶
func (c *ConnectorField) SetMaxLength(maxLength *int)
SetMaxLength sets the MaxLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetMin ¶
func (c *ConnectorField) SetMin(min *float64)
SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetMinLength ¶
func (c *ConnectorField) SetMinLength(minLength *int)
SetMinLength sets the MinLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetName ¶
func (c *ConnectorField) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetNullable ¶
func (c *ConnectorField) SetNullable(nullable *bool)
SetNullable sets the Nullable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetOptions ¶
func (c *ConnectorField) SetOptions(options []*ConnectorFieldOptionsItem)
SetOptions sets the Options field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetOrder ¶
func (c *ConnectorField) SetOrder(order *int)
SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetRequired ¶
func (c *ConnectorField) SetRequired(required bool)
SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetShowWhen ¶
func (c *ConnectorField) SetShowWhen(showWhen *ConnectorFieldShowWhen)
SetShowWhen sets the ShowWhen field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) SetType ¶
func (c *ConnectorField) SetType(type_ ConnectorFieldType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorField) String ¶
func (c *ConnectorField) String() string
func (*ConnectorField) UnmarshalJSON ¶
func (c *ConnectorField) UnmarshalJSON(data []byte) error
type ConnectorFieldOptionsItem ¶
type ConnectorFieldOptionsItem struct {
Label string `json:"label" url:"label"`
Value string `json:"value" url:"value"`
// contains filtered or unexported fields
}
func (*ConnectorFieldOptionsItem) GetExtraProperties ¶
func (c *ConnectorFieldOptionsItem) GetExtraProperties() map[string]interface{}
func (*ConnectorFieldOptionsItem) GetLabel ¶
func (c *ConnectorFieldOptionsItem) GetLabel() string
func (*ConnectorFieldOptionsItem) GetValue ¶
func (c *ConnectorFieldOptionsItem) GetValue() string
func (*ConnectorFieldOptionsItem) MarshalJSON ¶
func (c *ConnectorFieldOptionsItem) MarshalJSON() ([]byte, error)
func (*ConnectorFieldOptionsItem) SetLabel ¶
func (c *ConnectorFieldOptionsItem) SetLabel(label string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorFieldOptionsItem) SetValue ¶
func (c *ConnectorFieldOptionsItem) SetValue(value string)
SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorFieldOptionsItem) String ¶
func (c *ConnectorFieldOptionsItem) String() string
func (*ConnectorFieldOptionsItem) UnmarshalJSON ¶
func (c *ConnectorFieldOptionsItem) UnmarshalJSON(data []byte) error
type ConnectorFieldShowWhen ¶
type ConnectorFieldShowWhen struct {
// Name of the discriminator field this visibility depends on
Field string `json:"field" url:"field"`
// Shown when the discriminator holds one of these
Equals []string `json:"equals" url:"equals"`
// contains filtered or unexported fields
}
Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.
func (*ConnectorFieldShowWhen) GetEquals ¶
func (c *ConnectorFieldShowWhen) GetEquals() []string
func (*ConnectorFieldShowWhen) GetExtraProperties ¶
func (c *ConnectorFieldShowWhen) GetExtraProperties() map[string]interface{}
func (*ConnectorFieldShowWhen) GetField ¶
func (c *ConnectorFieldShowWhen) GetField() string
func (*ConnectorFieldShowWhen) MarshalJSON ¶
func (c *ConnectorFieldShowWhen) MarshalJSON() ([]byte, error)
func (*ConnectorFieldShowWhen) SetEquals ¶
func (c *ConnectorFieldShowWhen) SetEquals(equals []string)
SetEquals sets the Equals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorFieldShowWhen) SetField ¶
func (c *ConnectorFieldShowWhen) SetField(field string)
SetField sets the Field field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorFieldShowWhen) String ¶
func (c *ConnectorFieldShowWhen) String() string
func (*ConnectorFieldShowWhen) UnmarshalJSON ¶
func (c *ConnectorFieldShowWhen) UnmarshalJSON(data []byte) error
type ConnectorFieldType ¶
type ConnectorFieldType string
const ( ConnectorFieldTypeString ConnectorFieldType = "string" ConnectorFieldTypeNumber ConnectorFieldType = "number" ConnectorFieldTypeBoolean ConnectorFieldType = "boolean" ConnectorFieldTypeOptions ConnectorFieldType = "options" ConnectorFieldTypeJSON ConnectorFieldType = "json" )
func NewConnectorFieldTypeFromString ¶
func NewConnectorFieldTypeFromString(s string) (ConnectorFieldType, error)
func (ConnectorFieldType) Ptr ¶
func (c ConnectorFieldType) Ptr() *ConnectorFieldType
type ConnectorInput ¶
type ConnectorInput struct {
// Unique within this job type. Use as the form field key: `name` repeats when a discriminated union gives one field several shapes.
Key string `json:"key" url:"key"`
// Param key to submit under. Not unique, see `key`.
Name string `json:"name" url:"name"`
Label string `json:"label" url:"label"`
Type ConnectorFieldType `json:"type" url:"type"`
Required bool `json:"required" url:"required"`
Nullable *bool `json:"nullable,omitempty" url:"nullable,omitempty"`
Default any `json:"default,omitempty" url:"default,omitempty"`
Options []*ConnectorFieldOptionsItem `json:"options,omitempty" url:"options,omitempty"`
Min *float64 `json:"min,omitempty" url:"min,omitempty"`
Max *float64 `json:"max,omitempty" url:"max,omitempty"`
MinLength *int `json:"minLength,omitempty" url:"minLength,omitempty"`
MaxLength *int `json:"maxLength,omitempty" url:"maxLength,omitempty"`
Description *string `json:"description,omitempty" url:"description,omitempty"`
// Example value, for placeholder text
Example any `json:"example,omitempty" url:"example,omitempty"`
// Render position; fields are already returned in this order
Order *int `json:"order,omitempty" url:"order,omitempty"`
// Render behind an Options or Advanced disclosure
Advanced *bool `json:"advanced,omitempty" url:"advanced,omitempty"`
// Present only on a field from one branch of a union. A field with no showWhen is always shown. The same name can appear several times with different conditions when branches declare different bounds.
ShowWhen *ConnectorFieldShowWhen `json:"showWhen,omitempty" url:"showWhen,omitempty"`
// The value is a URL pointing at a file. A connector can offer a file picker and upload the result, instead of asking for a pasted link.
URL *bool `json:"url,omitempty" url:"url,omitempty"`
// Takes a list of values rather than one.
Multiple *bool `json:"multiple,omitempty" url:"multiple,omitempty"`
// contains filtered or unexported fields
}
func (*ConnectorInput) GetAdvanced ¶
func (c *ConnectorInput) GetAdvanced() *bool
func (*ConnectorInput) GetDefault ¶
func (c *ConnectorInput) GetDefault() any
func (*ConnectorInput) GetDescription ¶
func (c *ConnectorInput) GetDescription() *string
func (*ConnectorInput) GetExample ¶
func (c *ConnectorInput) GetExample() any
func (*ConnectorInput) GetExtraProperties ¶
func (c *ConnectorInput) GetExtraProperties() map[string]interface{}
func (*ConnectorInput) GetKey ¶
func (c *ConnectorInput) GetKey() string
func (*ConnectorInput) GetLabel ¶
func (c *ConnectorInput) GetLabel() string
func (*ConnectorInput) GetMax ¶
func (c *ConnectorInput) GetMax() *float64
func (*ConnectorInput) GetMaxLength ¶
func (c *ConnectorInput) GetMaxLength() *int
func (*ConnectorInput) GetMin ¶
func (c *ConnectorInput) GetMin() *float64
func (*ConnectorInput) GetMinLength ¶
func (c *ConnectorInput) GetMinLength() *int
func (*ConnectorInput) GetMultiple ¶
func (c *ConnectorInput) GetMultiple() *bool
func (*ConnectorInput) GetName ¶
func (c *ConnectorInput) GetName() string
func (*ConnectorInput) GetNullable ¶
func (c *ConnectorInput) GetNullable() *bool
func (*ConnectorInput) GetOptions ¶
func (c *ConnectorInput) GetOptions() []*ConnectorFieldOptionsItem
func (*ConnectorInput) GetOrder ¶
func (c *ConnectorInput) GetOrder() *int
func (*ConnectorInput) GetRequired ¶
func (c *ConnectorInput) GetRequired() bool
func (*ConnectorInput) GetShowWhen ¶
func (c *ConnectorInput) GetShowWhen() *ConnectorFieldShowWhen
func (*ConnectorInput) GetType ¶
func (c *ConnectorInput) GetType() ConnectorFieldType
func (*ConnectorInput) GetURL ¶
func (c *ConnectorInput) GetURL() *bool
func (*ConnectorInput) MarshalJSON ¶
func (c *ConnectorInput) MarshalJSON() ([]byte, error)
func (*ConnectorInput) SetAdvanced ¶
func (c *ConnectorInput) SetAdvanced(advanced *bool)
SetAdvanced sets the Advanced field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetDefault ¶
func (c *ConnectorInput) SetDefault(default_ any)
SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetDescription ¶
func (c *ConnectorInput) SetDescription(description *string)
SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetExample ¶
func (c *ConnectorInput) SetExample(example any)
SetExample sets the Example field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetKey ¶
func (c *ConnectorInput) SetKey(key string)
SetKey sets the Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetLabel ¶
func (c *ConnectorInput) SetLabel(label string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetMax ¶
func (c *ConnectorInput) SetMax(max *float64)
SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetMaxLength ¶
func (c *ConnectorInput) SetMaxLength(maxLength *int)
SetMaxLength sets the MaxLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetMin ¶
func (c *ConnectorInput) SetMin(min *float64)
SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetMinLength ¶
func (c *ConnectorInput) SetMinLength(minLength *int)
SetMinLength sets the MinLength field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetMultiple ¶
func (c *ConnectorInput) SetMultiple(multiple *bool)
SetMultiple sets the Multiple field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetName ¶
func (c *ConnectorInput) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetNullable ¶
func (c *ConnectorInput) SetNullable(nullable *bool)
SetNullable sets the Nullable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetOptions ¶
func (c *ConnectorInput) SetOptions(options []*ConnectorFieldOptionsItem)
SetOptions sets the Options field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetOrder ¶
func (c *ConnectorInput) SetOrder(order *int)
SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetRequired ¶
func (c *ConnectorInput) SetRequired(required bool)
SetRequired sets the Required field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetShowWhen ¶
func (c *ConnectorInput) SetShowWhen(showWhen *ConnectorFieldShowWhen)
SetShowWhen sets the ShowWhen field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetType ¶
func (c *ConnectorInput) SetType(type_ ConnectorFieldType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) SetURL ¶
func (c *ConnectorInput) SetURL(url *bool)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ConnectorInput) String ¶
func (c *ConnectorInput) String() string
func (*ConnectorInput) UnmarshalJSON ¶
func (c *ConnectorInput) UnmarshalJSON(data []byte) error
type CreateProCheckoutResponse ¶
type CreateProCheckoutResponse struct {
Data *CreateProCheckoutResponseData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*CreateProCheckoutResponse) GetData ¶
func (c *CreateProCheckoutResponse) GetData() *CreateProCheckoutResponseData
func (*CreateProCheckoutResponse) GetExtraProperties ¶
func (c *CreateProCheckoutResponse) GetExtraProperties() map[string]interface{}
func (*CreateProCheckoutResponse) MarshalJSON ¶
func (c *CreateProCheckoutResponse) MarshalJSON() ([]byte, error)
func (*CreateProCheckoutResponse) SetData ¶
func (c *CreateProCheckoutResponse) SetData(data *CreateProCheckoutResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CreateProCheckoutResponse) String ¶
func (c *CreateProCheckoutResponse) String() string
func (*CreateProCheckoutResponse) UnmarshalJSON ¶
func (c *CreateProCheckoutResponse) UnmarshalJSON(data []byte) error
type CreateProCheckoutResponseData ¶
type CreateProCheckoutResponseData struct {
CheckoutURL string `json:"checkoutUrl" url:"checkoutUrl"`
CheckoutID string `json:"checkoutId" url:"checkoutId"`
// contains filtered or unexported fields
}
func (*CreateProCheckoutResponseData) GetCheckoutID ¶
func (c *CreateProCheckoutResponseData) GetCheckoutID() string
func (*CreateProCheckoutResponseData) GetCheckoutURL ¶
func (c *CreateProCheckoutResponseData) GetCheckoutURL() string
func (*CreateProCheckoutResponseData) GetExtraProperties ¶
func (c *CreateProCheckoutResponseData) GetExtraProperties() map[string]interface{}
func (*CreateProCheckoutResponseData) MarshalJSON ¶
func (c *CreateProCheckoutResponseData) MarshalJSON() ([]byte, error)
func (*CreateProCheckoutResponseData) SetCheckoutID ¶
func (c *CreateProCheckoutResponseData) SetCheckoutID(checkoutID string)
SetCheckoutID sets the CheckoutID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CreateProCheckoutResponseData) SetCheckoutURL ¶
func (c *CreateProCheckoutResponseData) SetCheckoutURL(checkoutURL string)
SetCheckoutURL sets the CheckoutURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CreateProCheckoutResponseData) String ¶
func (c *CreateProCheckoutResponseData) String() string
func (*CreateProCheckoutResponseData) UnmarshalJSON ¶
func (c *CreateProCheckoutResponseData) UnmarshalJSON(data []byte) error
type ErrorResponse ¶
type ErrorResponse struct {
Error *ErrorResponseError `json:"error" url:"error"`
// contains filtered or unexported fields
}
func (*ErrorResponse) GetError ¶
func (e *ErrorResponse) GetError() *ErrorResponseError
func (*ErrorResponse) GetExtraProperties ¶
func (e *ErrorResponse) GetExtraProperties() map[string]interface{}
func (*ErrorResponse) MarshalJSON ¶
func (e *ErrorResponse) MarshalJSON() ([]byte, error)
func (*ErrorResponse) SetError ¶
func (e *ErrorResponse) SetError(error_ *ErrorResponseError)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ErrorResponse) String ¶
func (e *ErrorResponse) String() string
func (*ErrorResponse) UnmarshalJSON ¶
func (e *ErrorResponse) UnmarshalJSON(data []byte) error
type ErrorResponseError ¶
type ErrorResponseError struct {
// Machine-readable error code
Code string `json:"code" url:"code"`
// Human-readable error message
Message string `json:"message" url:"message"`
// More about the error when there is more to say. A refusal lists its problems here as `{ path, message, upgradeTo? }`, where `upgradeTo` names the cheapest plan that runs it (null when only an enterprise plan does).
Details any `json:"details,omitempty" url:"details,omitempty"`
// contains filtered or unexported fields
}
func (*ErrorResponseError) GetCode ¶
func (e *ErrorResponseError) GetCode() string
func (*ErrorResponseError) GetDetails ¶
func (e *ErrorResponseError) GetDetails() any
func (*ErrorResponseError) GetExtraProperties ¶
func (e *ErrorResponseError) GetExtraProperties() map[string]interface{}
func (*ErrorResponseError) GetMessage ¶
func (e *ErrorResponseError) GetMessage() string
func (*ErrorResponseError) MarshalJSON ¶
func (e *ErrorResponseError) MarshalJSON() ([]byte, error)
func (*ErrorResponseError) SetCode ¶
func (e *ErrorResponseError) SetCode(code string)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ErrorResponseError) SetDetails ¶
func (e *ErrorResponseError) SetDetails(details any)
SetDetails sets the Details field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ErrorResponseError) SetMessage ¶
func (e *ErrorResponseError) SetMessage(message string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ErrorResponseError) String ¶
func (e *ErrorResponseError) String() string
func (*ErrorResponseError) UnmarshalJSON ¶
func (e *ErrorResponseError) UnmarshalJSON(data []byte) error
type FfmpegParams ¶
type FfmpegParams struct {
// FFmpeg command string, such as "ffmpeg -i input.mp4 output.mp4". The leading "ffmpeg" is optional.
Command string `json:"command" url:"command"`
// Max execution time in seconds (defaults to your plan's max job timeout)
Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
// Hardware target: auto (detect from command), cpu, or gpu (NVENC, Pro and Studio plans)
Compute *FfmpegParamsCompute `json:"compute,omitempty" url:"compute,omitempty"`
// contains filtered or unexported fields
}
Params of the ffmpeg job.
func (*FfmpegParams) GetCommand ¶
func (f *FfmpegParams) GetCommand() string
func (*FfmpegParams) GetCompute ¶
func (f *FfmpegParams) GetCompute() *FfmpegParamsCompute
func (*FfmpegParams) GetExtraProperties ¶
func (f *FfmpegParams) GetExtraProperties() map[string]interface{}
func (*FfmpegParams) GetTimeout ¶
func (f *FfmpegParams) GetTimeout() *int
func (*FfmpegParams) MarshalJSON ¶
func (f *FfmpegParams) MarshalJSON() ([]byte, error)
func (*FfmpegParams) SetCommand ¶
func (f *FfmpegParams) SetCommand(command string)
SetCommand sets the Command field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfmpegParams) SetCompute ¶
func (f *FfmpegParams) SetCompute(compute *FfmpegParamsCompute)
SetCompute sets the Compute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfmpegParams) SetTimeout ¶
func (f *FfmpegParams) SetTimeout(timeout *int)
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfmpegParams) String ¶
func (f *FfmpegParams) String() string
func (*FfmpegParams) UnmarshalJSON ¶
func (f *FfmpegParams) UnmarshalJSON(data []byte) error
type FfmpegParamsCompute ¶
type FfmpegParamsCompute string
Hardware target: auto (detect from command), cpu, or gpu (NVENC, Pro and Studio plans)
const ( FfmpegParamsComputeAuto FfmpegParamsCompute = "auto" FfmpegParamsComputeCPU FfmpegParamsCompute = "cpu" FfmpegParamsComputeGpu FfmpegParamsCompute = "gpu" )
func NewFfmpegParamsComputeFromString ¶
func NewFfmpegParamsComputeFromString(s string) (FfmpegParamsCompute, error)
func (FfmpegParamsCompute) Ptr ¶
func (f FfmpegParamsCompute) Ptr() *FfmpegParamsCompute
type FfprobeAudioStream ¶
type FfprobeAudioStream struct {
Codec *string `json:"codec,omitempty" url:"codec,omitempty"`
Profile *string `json:"profile,omitempty" url:"profile,omitempty"`
Channels *int `json:"channels,omitempty" url:"channels,omitempty"`
// Null even when channels is set: some containers (wav) never store it
ChannelLayout *string `json:"channelLayout,omitempty" url:"channelLayout,omitempty"`
SampleRate *int `json:"sampleRate,omitempty" url:"sampleRate,omitempty"`
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
Language *string `json:"language,omitempty" url:"language,omitempty"`
// contains filtered or unexported fields
}
func (*FfprobeAudioStream) GetBitrateBps ¶
func (f *FfprobeAudioStream) GetBitrateBps() *int
func (*FfprobeAudioStream) GetChannelLayout ¶
func (f *FfprobeAudioStream) GetChannelLayout() *string
func (*FfprobeAudioStream) GetChannels ¶
func (f *FfprobeAudioStream) GetChannels() *int
func (*FfprobeAudioStream) GetCodec ¶
func (f *FfprobeAudioStream) GetCodec() *string
func (*FfprobeAudioStream) GetExtraProperties ¶
func (f *FfprobeAudioStream) GetExtraProperties() map[string]interface{}
func (*FfprobeAudioStream) GetLanguage ¶
func (f *FfprobeAudioStream) GetLanguage() *string
func (*FfprobeAudioStream) GetProfile ¶
func (f *FfprobeAudioStream) GetProfile() *string
func (*FfprobeAudioStream) GetSampleRate ¶
func (f *FfprobeAudioStream) GetSampleRate() *int
func (*FfprobeAudioStream) MarshalJSON ¶
func (f *FfprobeAudioStream) MarshalJSON() ([]byte, error)
func (*FfprobeAudioStream) SetBitrateBps ¶
func (f *FfprobeAudioStream) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetChannelLayout ¶
func (f *FfprobeAudioStream) SetChannelLayout(channelLayout *string)
SetChannelLayout sets the ChannelLayout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetChannels ¶
func (f *FfprobeAudioStream) SetChannels(channels *int)
SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetCodec ¶
func (f *FfprobeAudioStream) SetCodec(codec *string)
SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetLanguage ¶
func (f *FfprobeAudioStream) SetLanguage(language *string)
SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetProfile ¶
func (f *FfprobeAudioStream) SetProfile(profile *string)
SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) SetSampleRate ¶
func (f *FfprobeAudioStream) SetSampleRate(sampleRate *int)
SetSampleRate sets the SampleRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioStream) String ¶
func (f *FfprobeAudioStream) String() string
func (*FfprobeAudioStream) UnmarshalJSON ¶
func (f *FfprobeAudioStream) UnmarshalJSON(data []byte) error
type FfprobeAudioSummary ¶
type FfprobeAudioSummary struct {
// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
Container *string `json:"container,omitempty" url:"container,omitempty"`
FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
// Duration in seconds
DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
SizeBytes *int `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
// Container bitrate; null when the container omits it
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
StartTimeSec *float64 `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
// Container-level tags, {} when none
Tags map[string]string `json:"tags" url:"tags"`
Audio *FfprobeAudioStream `json:"audio" url:"audio"`
// contains filtered or unexported fields
}
func (*FfprobeAudioSummary) GetAudio ¶
func (f *FfprobeAudioSummary) GetAudio() *FfprobeAudioStream
func (*FfprobeAudioSummary) GetBitrateBps ¶
func (f *FfprobeAudioSummary) GetBitrateBps() *int
func (*FfprobeAudioSummary) GetContainer ¶
func (f *FfprobeAudioSummary) GetContainer() *string
func (*FfprobeAudioSummary) GetDurationSec ¶
func (f *FfprobeAudioSummary) GetDurationSec() *float64
func (*FfprobeAudioSummary) GetExtraProperties ¶
func (f *FfprobeAudioSummary) GetExtraProperties() map[string]interface{}
func (*FfprobeAudioSummary) GetFormatLongName ¶
func (f *FfprobeAudioSummary) GetFormatLongName() *string
func (*FfprobeAudioSummary) GetSizeBytes ¶
func (f *FfprobeAudioSummary) GetSizeBytes() *int
func (*FfprobeAudioSummary) GetStartTimeSec ¶
func (f *FfprobeAudioSummary) GetStartTimeSec() *float64
func (*FfprobeAudioSummary) GetStreamCounts ¶
func (f *FfprobeAudioSummary) GetStreamCounts() *FfprobeStreamCounts
func (*FfprobeAudioSummary) GetTags ¶
func (f *FfprobeAudioSummary) GetTags() map[string]string
func (*FfprobeAudioSummary) MarshalJSON ¶
func (f *FfprobeAudioSummary) MarshalJSON() ([]byte, error)
func (*FfprobeAudioSummary) SetAudio ¶
func (f *FfprobeAudioSummary) SetAudio(audio *FfprobeAudioStream)
SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetBitrateBps ¶
func (f *FfprobeAudioSummary) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetContainer ¶
func (f *FfprobeAudioSummary) SetContainer(container *string)
SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetDurationSec ¶
func (f *FfprobeAudioSummary) SetDurationSec(durationSec *float64)
SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetFormatLongName ¶
func (f *FfprobeAudioSummary) SetFormatLongName(formatLongName *string)
SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetSizeBytes ¶
func (f *FfprobeAudioSummary) SetSizeBytes(sizeBytes *int)
SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetStartTimeSec ¶
func (f *FfprobeAudioSummary) SetStartTimeSec(startTimeSec *float64)
SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetStreamCounts ¶
func (f *FfprobeAudioSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) SetTags ¶
func (f *FfprobeAudioSummary) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeAudioSummary) String ¶
func (f *FfprobeAudioSummary) String() string
func (*FfprobeAudioSummary) UnmarshalJSON ¶
func (f *FfprobeAudioSummary) UnmarshalJSON(data []byte) error
type FfprobeChapter ¶
type FfprobeChapter struct {
ID *int `json:"id,omitempty" url:"id,omitempty"`
StartTime *string `json:"start_time,omitempty" url:"start_time,omitempty"`
EndTime *string `json:"end_time,omitempty" url:"end_time,omitempty"`
Tags map[string]string `json:"tags,omitempty" url:"tags,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeChapter) GetEndTime ¶
func (f *FfprobeChapter) GetEndTime() *string
func (*FfprobeChapter) GetExtraProperties ¶
func (f *FfprobeChapter) GetExtraProperties() map[string]interface{}
func (*FfprobeChapter) GetID ¶
func (f *FfprobeChapter) GetID() *int
func (*FfprobeChapter) GetStartTime ¶
func (f *FfprobeChapter) GetStartTime() *string
func (*FfprobeChapter) GetTags ¶
func (f *FfprobeChapter) GetTags() map[string]string
func (*FfprobeChapter) MarshalJSON ¶
func (f *FfprobeChapter) MarshalJSON() ([]byte, error)
func (*FfprobeChapter) SetEndTime ¶
func (f *FfprobeChapter) SetEndTime(endTime *string)
SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeChapter) SetID ¶
func (f *FfprobeChapter) SetID(id *int)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeChapter) SetStartTime ¶
func (f *FfprobeChapter) SetStartTime(startTime *string)
SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeChapter) SetTags ¶
func (f *FfprobeChapter) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeChapter) String ¶
func (f *FfprobeChapter) String() string
func (*FfprobeChapter) UnmarshalJSON ¶
func (f *FfprobeChapter) UnmarshalJSON(data []byte) error
type FfprobeFormat ¶
type FfprobeFormat struct {
// The probed source URL
Filename *string `json:"filename,omitempty" url:"filename,omitempty"`
FormatName *string `json:"format_name,omitempty" url:"format_name,omitempty"`
FormatLongName *string `json:"format_long_name,omitempty" url:"format_long_name,omitempty"`
NbStreams *int `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`
NbPrograms *int `json:"nb_programs,omitempty" url:"nb_programs,omitempty"`
StartTime *string `json:"start_time,omitempty" url:"start_time,omitempty"`
Duration *string `json:"duration,omitempty" url:"duration,omitempty"`
Size *string `json:"size,omitempty" url:"size,omitempty"`
BitRate *string `json:"bit_rate,omitempty" url:"bit_rate,omitempty"`
ProbeScore *int `json:"probe_score,omitempty" url:"probe_score,omitempty"`
Tags map[string]string `json:"tags,omitempty" url:"tags,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeFormat) GetBitRate ¶
func (f *FfprobeFormat) GetBitRate() *string
func (*FfprobeFormat) GetDuration ¶
func (f *FfprobeFormat) GetDuration() *string
func (*FfprobeFormat) GetExtraProperties ¶
func (f *FfprobeFormat) GetExtraProperties() map[string]interface{}
func (*FfprobeFormat) GetFilename ¶
func (f *FfprobeFormat) GetFilename() *string
func (*FfprobeFormat) GetFormatLongName ¶
func (f *FfprobeFormat) GetFormatLongName() *string
func (*FfprobeFormat) GetFormatName ¶
func (f *FfprobeFormat) GetFormatName() *string
func (*FfprobeFormat) GetNbPrograms ¶
func (f *FfprobeFormat) GetNbPrograms() *int
func (*FfprobeFormat) GetNbStreams ¶
func (f *FfprobeFormat) GetNbStreams() *int
func (*FfprobeFormat) GetProbeScore ¶
func (f *FfprobeFormat) GetProbeScore() *int
func (*FfprobeFormat) GetSize ¶
func (f *FfprobeFormat) GetSize() *string
func (*FfprobeFormat) GetStartTime ¶
func (f *FfprobeFormat) GetStartTime() *string
func (*FfprobeFormat) GetTags ¶
func (f *FfprobeFormat) GetTags() map[string]string
func (*FfprobeFormat) MarshalJSON ¶
func (f *FfprobeFormat) MarshalJSON() ([]byte, error)
func (*FfprobeFormat) SetBitRate ¶
func (f *FfprobeFormat) SetBitRate(bitRate *string)
SetBitRate sets the BitRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetDuration ¶
func (f *FfprobeFormat) SetDuration(duration *string)
SetDuration sets the Duration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetFilename ¶
func (f *FfprobeFormat) SetFilename(filename *string)
SetFilename sets the Filename field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetFormatLongName ¶
func (f *FfprobeFormat) SetFormatLongName(formatLongName *string)
SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetFormatName ¶
func (f *FfprobeFormat) SetFormatName(formatName *string)
SetFormatName sets the FormatName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetNbPrograms ¶
func (f *FfprobeFormat) SetNbPrograms(nbPrograms *int)
SetNbPrograms sets the NbPrograms field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetNbStreams ¶
func (f *FfprobeFormat) SetNbStreams(nbStreams *int)
SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetProbeScore ¶
func (f *FfprobeFormat) SetProbeScore(probeScore *int)
SetProbeScore sets the ProbeScore field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetSize ¶
func (f *FfprobeFormat) SetSize(size *string)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetStartTime ¶
func (f *FfprobeFormat) SetStartTime(startTime *string)
SetStartTime sets the StartTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) SetTags ¶
func (f *FfprobeFormat) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFormat) String ¶
func (f *FfprobeFormat) String() string
func (*FfprobeFormat) UnmarshalJSON ¶
func (f *FfprobeFormat) UnmarshalJSON(data []byte) error
type FfprobeFrame ¶
type FfprobeFrame struct {
MediaType *string `json:"media_type,omitempty" url:"media_type,omitempty"`
StreamIndex *int `json:"stream_index,omitempty" url:"stream_index,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeFrame) GetExtraProperties ¶
func (f *FfprobeFrame) GetExtraProperties() map[string]interface{}
func (*FfprobeFrame) GetMediaType ¶
func (f *FfprobeFrame) GetMediaType() *string
func (*FfprobeFrame) GetStreamIndex ¶
func (f *FfprobeFrame) GetStreamIndex() *int
func (*FfprobeFrame) MarshalJSON ¶
func (f *FfprobeFrame) MarshalJSON() ([]byte, error)
func (*FfprobeFrame) SetMediaType ¶
func (f *FfprobeFrame) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFrame) SetStreamIndex ¶
func (f *FfprobeFrame) SetStreamIndex(streamIndex *int)
SetStreamIndex sets the StreamIndex field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeFrame) String ¶
func (f *FfprobeFrame) String() string
func (*FfprobeFrame) UnmarshalJSON ¶
func (f *FfprobeFrame) UnmarshalJSON(data []byte) error
type FfprobeImageStream ¶
type FfprobeImageStream struct {
Codec *string `json:"codec,omitempty" url:"codec,omitempty"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
Height *int `json:"height,omitempty" url:"height,omitempty"`
PixelFormat *string `json:"pixelFormat,omitempty" url:"pixelFormat,omitempty"`
BitDepth *int `json:"bitDepth,omitempty" url:"bitDepth,omitempty"`
// contains filtered or unexported fields
}
func (*FfprobeImageStream) GetBitDepth ¶
func (f *FfprobeImageStream) GetBitDepth() *int
func (*FfprobeImageStream) GetCodec ¶
func (f *FfprobeImageStream) GetCodec() *string
func (*FfprobeImageStream) GetExtraProperties ¶
func (f *FfprobeImageStream) GetExtraProperties() map[string]interface{}
func (*FfprobeImageStream) GetHeight ¶
func (f *FfprobeImageStream) GetHeight() *int
func (*FfprobeImageStream) GetPixelFormat ¶
func (f *FfprobeImageStream) GetPixelFormat() *string
func (*FfprobeImageStream) GetWidth ¶
func (f *FfprobeImageStream) GetWidth() *int
func (*FfprobeImageStream) MarshalJSON ¶
func (f *FfprobeImageStream) MarshalJSON() ([]byte, error)
func (*FfprobeImageStream) SetBitDepth ¶
func (f *FfprobeImageStream) SetBitDepth(bitDepth *int)
SetBitDepth sets the BitDepth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageStream) SetCodec ¶
func (f *FfprobeImageStream) SetCodec(codec *string)
SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageStream) SetHeight ¶
func (f *FfprobeImageStream) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageStream) SetPixelFormat ¶
func (f *FfprobeImageStream) SetPixelFormat(pixelFormat *string)
SetPixelFormat sets the PixelFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageStream) SetWidth ¶
func (f *FfprobeImageStream) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageStream) String ¶
func (f *FfprobeImageStream) String() string
func (*FfprobeImageStream) UnmarshalJSON ¶
func (f *FfprobeImageStream) UnmarshalJSON(data []byte) error
type FfprobeImageSummary ¶
type FfprobeImageSummary struct {
// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
Container *string `json:"container,omitempty" url:"container,omitempty"`
FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
// Duration in seconds
DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
SizeBytes *int `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
// Container bitrate; null when the container omits it
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
StartTimeSec *float64 `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
// Container-level tags, {} when none
Tags map[string]string `json:"tags" url:"tags"`
Image *FfprobeImageStream `json:"image" url:"image"`
// contains filtered or unexported fields
}
func (*FfprobeImageSummary) GetBitrateBps ¶
func (f *FfprobeImageSummary) GetBitrateBps() *int
func (*FfprobeImageSummary) GetContainer ¶
func (f *FfprobeImageSummary) GetContainer() *string
func (*FfprobeImageSummary) GetDurationSec ¶
func (f *FfprobeImageSummary) GetDurationSec() *float64
func (*FfprobeImageSummary) GetExtraProperties ¶
func (f *FfprobeImageSummary) GetExtraProperties() map[string]interface{}
func (*FfprobeImageSummary) GetFormatLongName ¶
func (f *FfprobeImageSummary) GetFormatLongName() *string
func (*FfprobeImageSummary) GetImage ¶
func (f *FfprobeImageSummary) GetImage() *FfprobeImageStream
func (*FfprobeImageSummary) GetSizeBytes ¶
func (f *FfprobeImageSummary) GetSizeBytes() *int
func (*FfprobeImageSummary) GetStartTimeSec ¶
func (f *FfprobeImageSummary) GetStartTimeSec() *float64
func (*FfprobeImageSummary) GetStreamCounts ¶
func (f *FfprobeImageSummary) GetStreamCounts() *FfprobeStreamCounts
func (*FfprobeImageSummary) GetTags ¶
func (f *FfprobeImageSummary) GetTags() map[string]string
func (*FfprobeImageSummary) MarshalJSON ¶
func (f *FfprobeImageSummary) MarshalJSON() ([]byte, error)
func (*FfprobeImageSummary) SetBitrateBps ¶
func (f *FfprobeImageSummary) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetContainer ¶
func (f *FfprobeImageSummary) SetContainer(container *string)
SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetDurationSec ¶
func (f *FfprobeImageSummary) SetDurationSec(durationSec *float64)
SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetFormatLongName ¶
func (f *FfprobeImageSummary) SetFormatLongName(formatLongName *string)
SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetImage ¶
func (f *FfprobeImageSummary) SetImage(image *FfprobeImageStream)
SetImage sets the Image field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetSizeBytes ¶
func (f *FfprobeImageSummary) SetSizeBytes(sizeBytes *int)
SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetStartTimeSec ¶
func (f *FfprobeImageSummary) SetStartTimeSec(startTimeSec *float64)
SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetStreamCounts ¶
func (f *FfprobeImageSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) SetTags ¶
func (f *FfprobeImageSummary) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeImageSummary) String ¶
func (f *FfprobeImageSummary) String() string
func (*FfprobeImageSummary) UnmarshalJSON ¶
func (f *FfprobeImageSummary) UnmarshalJSON(data []byte) error
type FfprobeOtherSummary ¶
type FfprobeOtherSummary struct {
// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
Container *string `json:"container,omitempty" url:"container,omitempty"`
FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
// Duration in seconds
DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
SizeBytes *int `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
// Container bitrate; null when the container omits it
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
StartTimeSec *float64 `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
// Container-level tags, {} when none
Tags map[string]string `json:"tags" url:"tags"`
// contains filtered or unexported fields
}
func (*FfprobeOtherSummary) GetBitrateBps ¶
func (f *FfprobeOtherSummary) GetBitrateBps() *int
func (*FfprobeOtherSummary) GetContainer ¶
func (f *FfprobeOtherSummary) GetContainer() *string
func (*FfprobeOtherSummary) GetDurationSec ¶
func (f *FfprobeOtherSummary) GetDurationSec() *float64
func (*FfprobeOtherSummary) GetExtraProperties ¶
func (f *FfprobeOtherSummary) GetExtraProperties() map[string]interface{}
func (*FfprobeOtherSummary) GetFormatLongName ¶
func (f *FfprobeOtherSummary) GetFormatLongName() *string
func (*FfprobeOtherSummary) GetSizeBytes ¶
func (f *FfprobeOtherSummary) GetSizeBytes() *int
func (*FfprobeOtherSummary) GetStartTimeSec ¶
func (f *FfprobeOtherSummary) GetStartTimeSec() *float64
func (*FfprobeOtherSummary) GetStreamCounts ¶
func (f *FfprobeOtherSummary) GetStreamCounts() *FfprobeStreamCounts
func (*FfprobeOtherSummary) GetTags ¶
func (f *FfprobeOtherSummary) GetTags() map[string]string
func (*FfprobeOtherSummary) MarshalJSON ¶
func (f *FfprobeOtherSummary) MarshalJSON() ([]byte, error)
func (*FfprobeOtherSummary) SetBitrateBps ¶
func (f *FfprobeOtherSummary) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetContainer ¶
func (f *FfprobeOtherSummary) SetContainer(container *string)
SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetDurationSec ¶
func (f *FfprobeOtherSummary) SetDurationSec(durationSec *float64)
SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetFormatLongName ¶
func (f *FfprobeOtherSummary) SetFormatLongName(formatLongName *string)
SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetSizeBytes ¶
func (f *FfprobeOtherSummary) SetSizeBytes(sizeBytes *int)
SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetStartTimeSec ¶
func (f *FfprobeOtherSummary) SetStartTimeSec(startTimeSec *float64)
SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetStreamCounts ¶
func (f *FfprobeOtherSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) SetTags ¶
func (f *FfprobeOtherSummary) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeOtherSummary) String ¶
func (f *FfprobeOtherSummary) String() string
func (*FfprobeOtherSummary) UnmarshalJSON ¶
func (f *FfprobeOtherSummary) UnmarshalJSON(data []byte) error
type FfprobePacket ¶
type FfprobePacket struct {
CodecType *string `json:"codec_type,omitempty" url:"codec_type,omitempty"`
StreamIndex *int `json:"stream_index,omitempty" url:"stream_index,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobePacket) GetCodecType ¶
func (f *FfprobePacket) GetCodecType() *string
func (*FfprobePacket) GetExtraProperties ¶
func (f *FfprobePacket) GetExtraProperties() map[string]interface{}
func (*FfprobePacket) GetStreamIndex ¶
func (f *FfprobePacket) GetStreamIndex() *int
func (*FfprobePacket) MarshalJSON ¶
func (f *FfprobePacket) MarshalJSON() ([]byte, error)
func (*FfprobePacket) SetCodecType ¶
func (f *FfprobePacket) SetCodecType(codecType *string)
SetCodecType sets the CodecType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobePacket) SetStreamIndex ¶
func (f *FfprobePacket) SetStreamIndex(streamIndex *int)
SetStreamIndex sets the StreamIndex field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobePacket) String ¶
func (f *FfprobePacket) String() string
func (*FfprobePacket) UnmarshalJSON ¶
func (f *FfprobePacket) UnmarshalJSON(data []byte) error
type FfprobeParams ¶
type FfprobeParams struct {
// A raw ffprobe command, run essentially as written. Minimal form is just the input media URL. Sensible defaults (JSON output, format, streams, chapters) are auto-filled only for flags you did not specify. The "ffprobe" prefix is optional.
Command string `json:"command" url:"command"`
// Max execution time in seconds (defaults to your plan's max job timeout)
Timeout *int `json:"timeout,omitempty" url:"timeout,omitempty"`
// contains filtered or unexported fields
}
Params of the ffprobe job.
func (*FfprobeParams) GetCommand ¶
func (f *FfprobeParams) GetCommand() string
func (*FfprobeParams) GetExtraProperties ¶
func (f *FfprobeParams) GetExtraProperties() map[string]interface{}
func (*FfprobeParams) GetTimeout ¶
func (f *FfprobeParams) GetTimeout() *int
func (*FfprobeParams) MarshalJSON ¶
func (f *FfprobeParams) MarshalJSON() ([]byte, error)
func (*FfprobeParams) SetCommand ¶
func (f *FfprobeParams) SetCommand(command string)
SetCommand sets the Command field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeParams) SetTimeout ¶
func (f *FfprobeParams) SetTimeout(timeout *int)
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeParams) String ¶
func (f *FfprobeParams) String() string
func (*FfprobeParams) UnmarshalJSON ¶
func (f *FfprobeParams) UnmarshalJSON(data []byte) error
type FfprobeProgram ¶
type FfprobeProgram struct {
ProgramID *int `json:"program_id,omitempty" url:"program_id,omitempty"`
NbStreams *int `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`
Streams []*FfprobeStream `json:"streams,omitempty" url:"streams,omitempty"`
Tags map[string]string `json:"tags,omitempty" url:"tags,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeProgram) GetExtraProperties ¶
func (f *FfprobeProgram) GetExtraProperties() map[string]interface{}
func (*FfprobeProgram) GetNbStreams ¶
func (f *FfprobeProgram) GetNbStreams() *int
func (*FfprobeProgram) GetProgramID ¶
func (f *FfprobeProgram) GetProgramID() *int
func (*FfprobeProgram) GetStreams ¶
func (f *FfprobeProgram) GetStreams() []*FfprobeStream
func (*FfprobeProgram) GetTags ¶
func (f *FfprobeProgram) GetTags() map[string]string
func (*FfprobeProgram) MarshalJSON ¶
func (f *FfprobeProgram) MarshalJSON() ([]byte, error)
func (*FfprobeProgram) SetNbStreams ¶
func (f *FfprobeProgram) SetNbStreams(nbStreams *int)
SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeProgram) SetProgramID ¶
func (f *FfprobeProgram) SetProgramID(programID *int)
SetProgramID sets the ProgramID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeProgram) SetStreams ¶
func (f *FfprobeProgram) SetStreams(streams []*FfprobeStream)
SetStreams sets the Streams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeProgram) SetTags ¶
func (f *FfprobeProgram) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeProgram) String ¶
func (f *FfprobeProgram) String() string
func (*FfprobeProgram) UnmarshalJSON ¶
func (f *FfprobeProgram) UnmarshalJSON(data []byte) error
type FfprobeResult ¶
type FfprobeResult struct {
Summary *FfprobeSummary `json:"summary,omitempty" url:"summary,omitempty"`
Format *FfprobeFormat `json:"format,omitempty" url:"format,omitempty"`
Streams []*FfprobeStream `json:"streams,omitempty" url:"streams,omitempty"`
Chapters []*FfprobeChapter `json:"chapters,omitempty" url:"chapters,omitempty"`
// -show_programs (MPEG-TS)
Programs []*FfprobeProgram `json:"programs,omitempty" url:"programs,omitempty"`
// -show_stream_groups
StreamGroups []*FfprobeStreamGroup `json:"stream_groups,omitempty" url:"stream_groups,omitempty"`
// -show_frames, inline when small
Frames []*FfprobeFrame `json:"frames,omitempty" url:"frames,omitempty"`
// -show_packets, inline when small
Packets []*FfprobePacket `json:"packets,omitempty" url:"packets,omitempty"`
// ffprobe's text output, verbatim, when the command chose a writer other than JSON
Stdout *string `json:"stdout,omitempty" url:"stdout,omitempty"`
Warnings []*FfprobeWarning `json:"warnings,omitempty" url:"warnings,omitempty"`
// ffprobe diagnostics, when non-empty
Stderr *string `json:"stderr,omitempty" url:"stderr,omitempty"`
// The complete report, when a frame or packet dump was too big to inline
ReportURL *string `json:"reportUrl,omitempty" url:"reportUrl,omitempty"`
// contains filtered or unexported fields
}
`output.data` of a complete ffprobe job. Every section is present only when the run produced it.
func (*FfprobeResult) GetChapters ¶
func (f *FfprobeResult) GetChapters() []*FfprobeChapter
func (*FfprobeResult) GetExtraProperties ¶
func (f *FfprobeResult) GetExtraProperties() map[string]interface{}
func (*FfprobeResult) GetFormat ¶
func (f *FfprobeResult) GetFormat() *FfprobeFormat
func (*FfprobeResult) GetFrames ¶
func (f *FfprobeResult) GetFrames() []*FfprobeFrame
func (*FfprobeResult) GetPackets ¶
func (f *FfprobeResult) GetPackets() []*FfprobePacket
func (*FfprobeResult) GetPrograms ¶
func (f *FfprobeResult) GetPrograms() []*FfprobeProgram
func (*FfprobeResult) GetReportURL ¶
func (f *FfprobeResult) GetReportURL() *string
func (*FfprobeResult) GetStderr ¶
func (f *FfprobeResult) GetStderr() *string
func (*FfprobeResult) GetStdout ¶
func (f *FfprobeResult) GetStdout() *string
func (*FfprobeResult) GetStreamGroups ¶
func (f *FfprobeResult) GetStreamGroups() []*FfprobeStreamGroup
func (*FfprobeResult) GetStreams ¶
func (f *FfprobeResult) GetStreams() []*FfprobeStream
func (*FfprobeResult) GetSummary ¶
func (f *FfprobeResult) GetSummary() *FfprobeSummary
func (*FfprobeResult) GetWarnings ¶
func (f *FfprobeResult) GetWarnings() []*FfprobeWarning
func (*FfprobeResult) MarshalJSON ¶
func (f *FfprobeResult) MarshalJSON() ([]byte, error)
func (*FfprobeResult) SetChapters ¶
func (f *FfprobeResult) SetChapters(chapters []*FfprobeChapter)
SetChapters sets the Chapters field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetFormat ¶
func (f *FfprobeResult) SetFormat(format *FfprobeFormat)
SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetFrames ¶
func (f *FfprobeResult) SetFrames(frames []*FfprobeFrame)
SetFrames sets the Frames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetPackets ¶
func (f *FfprobeResult) SetPackets(packets []*FfprobePacket)
SetPackets sets the Packets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetPrograms ¶
func (f *FfprobeResult) SetPrograms(programs []*FfprobeProgram)
SetPrograms sets the Programs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetReportURL ¶
func (f *FfprobeResult) SetReportURL(reportURL *string)
SetReportURL sets the ReportURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetStderr ¶
func (f *FfprobeResult) SetStderr(stderr *string)
SetStderr sets the Stderr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetStdout ¶
func (f *FfprobeResult) SetStdout(stdout *string)
SetStdout sets the Stdout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetStreamGroups ¶
func (f *FfprobeResult) SetStreamGroups(streamGroups []*FfprobeStreamGroup)
SetStreamGroups sets the StreamGroups field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetStreams ¶
func (f *FfprobeResult) SetStreams(streams []*FfprobeStream)
SetStreams sets the Streams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetSummary ¶
func (f *FfprobeResult) SetSummary(summary *FfprobeSummary)
SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) SetWarnings ¶
func (f *FfprobeResult) SetWarnings(warnings []*FfprobeWarning)
SetWarnings sets the Warnings field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeResult) String ¶
func (f *FfprobeResult) String() string
func (*FfprobeResult) UnmarshalJSON ¶
func (f *FfprobeResult) UnmarshalJSON(data []byte) error
type FfprobeStream ¶
type FfprobeStream struct {
Index int `json:"index" url:"index"`
CodecType *FfprobeStreamCodecType `json:"codec_type,omitempty" url:"codec_type,omitempty"`
CodecName *string `json:"codec_name,omitempty" url:"codec_name,omitempty"`
CodecLongName *string `json:"codec_long_name,omitempty" url:"codec_long_name,omitempty"`
Profile *string `json:"profile,omitempty" url:"profile,omitempty"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
Height *int `json:"height,omitempty" url:"height,omitempty"`
CodedWidth *int `json:"coded_width,omitempty" url:"coded_width,omitempty"`
CodedHeight *int `json:"coded_height,omitempty" url:"coded_height,omitempty"`
SampleAspectRatio *string `json:"sample_aspect_ratio,omitempty" url:"sample_aspect_ratio,omitempty"`
DisplayAspectRatio *string `json:"display_aspect_ratio,omitempty" url:"display_aspect_ratio,omitempty"`
PixFmt *string `json:"pix_fmt,omitempty" url:"pix_fmt,omitempty"`
FieldOrder *string `json:"field_order,omitempty" url:"field_order,omitempty"`
RFrameRate *string `json:"r_frame_rate,omitempty" url:"r_frame_rate,omitempty"`
AvgFrameRate *string `json:"avg_frame_rate,omitempty" url:"avg_frame_rate,omitempty"`
SampleFmt *string `json:"sample_fmt,omitempty" url:"sample_fmt,omitempty"`
SampleRate *string `json:"sample_rate,omitempty" url:"sample_rate,omitempty"`
Channels *int `json:"channels,omitempty" url:"channels,omitempty"`
ChannelLayout *string `json:"channel_layout,omitempty" url:"channel_layout,omitempty"`
BitRate *string `json:"bit_rate,omitempty" url:"bit_rate,omitempty"`
Duration *string `json:"duration,omitempty" url:"duration,omitempty"`
NbFrames *string `json:"nb_frames,omitempty" url:"nb_frames,omitempty"`
NbReadFrames *string `json:"nb_read_frames,omitempty" url:"nb_read_frames,omitempty"`
Disposition map[string]float64 `json:"disposition,omitempty" url:"disposition,omitempty"`
Tags map[string]string `json:"tags,omitempty" url:"tags,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeStream) GetAvgFrameRate ¶
func (f *FfprobeStream) GetAvgFrameRate() *string
func (*FfprobeStream) GetBitRate ¶
func (f *FfprobeStream) GetBitRate() *string
func (*FfprobeStream) GetChannelLayout ¶
func (f *FfprobeStream) GetChannelLayout() *string
func (*FfprobeStream) GetChannels ¶
func (f *FfprobeStream) GetChannels() *int
func (*FfprobeStream) GetCodecLongName ¶
func (f *FfprobeStream) GetCodecLongName() *string
func (*FfprobeStream) GetCodecName ¶
func (f *FfprobeStream) GetCodecName() *string
func (*FfprobeStream) GetCodecType ¶
func (f *FfprobeStream) GetCodecType() *FfprobeStreamCodecType
func (*FfprobeStream) GetCodedHeight ¶
func (f *FfprobeStream) GetCodedHeight() *int
func (*FfprobeStream) GetCodedWidth ¶
func (f *FfprobeStream) GetCodedWidth() *int
func (*FfprobeStream) GetDisplayAspectRatio ¶
func (f *FfprobeStream) GetDisplayAspectRatio() *string
func (*FfprobeStream) GetDisposition ¶
func (f *FfprobeStream) GetDisposition() map[string]float64
func (*FfprobeStream) GetDuration ¶
func (f *FfprobeStream) GetDuration() *string
func (*FfprobeStream) GetExtraProperties ¶
func (f *FfprobeStream) GetExtraProperties() map[string]interface{}
func (*FfprobeStream) GetFieldOrder ¶
func (f *FfprobeStream) GetFieldOrder() *string
func (*FfprobeStream) GetHeight ¶
func (f *FfprobeStream) GetHeight() *int
func (*FfprobeStream) GetIndex ¶
func (f *FfprobeStream) GetIndex() int
func (*FfprobeStream) GetNbFrames ¶
func (f *FfprobeStream) GetNbFrames() *string
func (*FfprobeStream) GetNbReadFrames ¶
func (f *FfprobeStream) GetNbReadFrames() *string
func (*FfprobeStream) GetPixFmt ¶
func (f *FfprobeStream) GetPixFmt() *string
func (*FfprobeStream) GetProfile ¶
func (f *FfprobeStream) GetProfile() *string
func (*FfprobeStream) GetRFrameRate ¶
func (f *FfprobeStream) GetRFrameRate() *string
func (*FfprobeStream) GetSampleAspectRatio ¶
func (f *FfprobeStream) GetSampleAspectRatio() *string
func (*FfprobeStream) GetSampleFmt ¶
func (f *FfprobeStream) GetSampleFmt() *string
func (*FfprobeStream) GetSampleRate ¶
func (f *FfprobeStream) GetSampleRate() *string
func (*FfprobeStream) GetTags ¶
func (f *FfprobeStream) GetTags() map[string]string
func (*FfprobeStream) GetWidth ¶
func (f *FfprobeStream) GetWidth() *int
func (*FfprobeStream) MarshalJSON ¶
func (f *FfprobeStream) MarshalJSON() ([]byte, error)
func (*FfprobeStream) SetAvgFrameRate ¶
func (f *FfprobeStream) SetAvgFrameRate(avgFrameRate *string)
SetAvgFrameRate sets the AvgFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetBitRate ¶
func (f *FfprobeStream) SetBitRate(bitRate *string)
SetBitRate sets the BitRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetChannelLayout ¶
func (f *FfprobeStream) SetChannelLayout(channelLayout *string)
SetChannelLayout sets the ChannelLayout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetChannels ¶
func (f *FfprobeStream) SetChannels(channels *int)
SetChannels sets the Channels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetCodecLongName ¶
func (f *FfprobeStream) SetCodecLongName(codecLongName *string)
SetCodecLongName sets the CodecLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetCodecName ¶
func (f *FfprobeStream) SetCodecName(codecName *string)
SetCodecName sets the CodecName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetCodecType ¶
func (f *FfprobeStream) SetCodecType(codecType *FfprobeStreamCodecType)
SetCodecType sets the CodecType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetCodedHeight ¶
func (f *FfprobeStream) SetCodedHeight(codedHeight *int)
SetCodedHeight sets the CodedHeight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetCodedWidth ¶
func (f *FfprobeStream) SetCodedWidth(codedWidth *int)
SetCodedWidth sets the CodedWidth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetDisplayAspectRatio ¶
func (f *FfprobeStream) SetDisplayAspectRatio(displayAspectRatio *string)
SetDisplayAspectRatio sets the DisplayAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetDisposition ¶
func (f *FfprobeStream) SetDisposition(disposition map[string]float64)
SetDisposition sets the Disposition field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetDuration ¶
func (f *FfprobeStream) SetDuration(duration *string)
SetDuration sets the Duration field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetFieldOrder ¶
func (f *FfprobeStream) SetFieldOrder(fieldOrder *string)
SetFieldOrder sets the FieldOrder field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetHeight ¶
func (f *FfprobeStream) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetIndex ¶
func (f *FfprobeStream) SetIndex(index int)
SetIndex sets the Index field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetNbFrames ¶
func (f *FfprobeStream) SetNbFrames(nbFrames *string)
SetNbFrames sets the NbFrames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetNbReadFrames ¶
func (f *FfprobeStream) SetNbReadFrames(nbReadFrames *string)
SetNbReadFrames sets the NbReadFrames field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetPixFmt ¶
func (f *FfprobeStream) SetPixFmt(pixFmt *string)
SetPixFmt sets the PixFmt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetProfile ¶
func (f *FfprobeStream) SetProfile(profile *string)
SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetRFrameRate ¶
func (f *FfprobeStream) SetRFrameRate(rFrameRate *string)
SetRFrameRate sets the RFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetSampleAspectRatio ¶
func (f *FfprobeStream) SetSampleAspectRatio(sampleAspectRatio *string)
SetSampleAspectRatio sets the SampleAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetSampleFmt ¶
func (f *FfprobeStream) SetSampleFmt(sampleFmt *string)
SetSampleFmt sets the SampleFmt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetSampleRate ¶
func (f *FfprobeStream) SetSampleRate(sampleRate *string)
SetSampleRate sets the SampleRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetTags ¶
func (f *FfprobeStream) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) SetWidth ¶
func (f *FfprobeStream) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStream) String ¶
func (f *FfprobeStream) String() string
func (*FfprobeStream) UnmarshalJSON ¶
func (f *FfprobeStream) UnmarshalJSON(data []byte) error
type FfprobeStreamCodecType ¶
type FfprobeStreamCodecType string
const ( FfprobeStreamCodecTypeVideo FfprobeStreamCodecType = "video" FfprobeStreamCodecTypeAudio FfprobeStreamCodecType = "audio" FfprobeStreamCodecTypeSubtitle FfprobeStreamCodecType = "subtitle" FfprobeStreamCodecTypeData FfprobeStreamCodecType = "data" FfprobeStreamCodecTypeAttachment FfprobeStreamCodecType = "attachment" )
func NewFfprobeStreamCodecTypeFromString ¶
func NewFfprobeStreamCodecTypeFromString(s string) (FfprobeStreamCodecType, error)
func (FfprobeStreamCodecType) Ptr ¶
func (f FfprobeStreamCodecType) Ptr() *FfprobeStreamCodecType
type FfprobeStreamCounts ¶
type FfprobeStreamCounts struct {
Video int `json:"video" url:"video"`
Audio int `json:"audio" url:"audio"`
Subtitle int `json:"subtitle" url:"subtitle"`
Data int `json:"data" url:"data"`
Attachment int `json:"attachment" url:"attachment"`
// contains filtered or unexported fields
}
func (*FfprobeStreamCounts) GetAttachment ¶
func (f *FfprobeStreamCounts) GetAttachment() int
func (*FfprobeStreamCounts) GetAudio ¶
func (f *FfprobeStreamCounts) GetAudio() int
func (*FfprobeStreamCounts) GetData ¶
func (f *FfprobeStreamCounts) GetData() int
func (*FfprobeStreamCounts) GetExtraProperties ¶
func (f *FfprobeStreamCounts) GetExtraProperties() map[string]interface{}
func (*FfprobeStreamCounts) GetSubtitle ¶
func (f *FfprobeStreamCounts) GetSubtitle() int
func (*FfprobeStreamCounts) GetVideo ¶
func (f *FfprobeStreamCounts) GetVideo() int
func (*FfprobeStreamCounts) MarshalJSON ¶
func (f *FfprobeStreamCounts) MarshalJSON() ([]byte, error)
func (*FfprobeStreamCounts) SetAttachment ¶
func (f *FfprobeStreamCounts) SetAttachment(attachment int)
SetAttachment sets the Attachment field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamCounts) SetAudio ¶
func (f *FfprobeStreamCounts) SetAudio(audio int)
SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamCounts) SetData ¶
func (f *FfprobeStreamCounts) SetData(data int)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamCounts) SetSubtitle ¶
func (f *FfprobeStreamCounts) SetSubtitle(subtitle int)
SetSubtitle sets the Subtitle field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamCounts) SetVideo ¶
func (f *FfprobeStreamCounts) SetVideo(video int)
SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamCounts) String ¶
func (f *FfprobeStreamCounts) String() string
func (*FfprobeStreamCounts) UnmarshalJSON ¶
func (f *FfprobeStreamCounts) UnmarshalJSON(data []byte) error
type FfprobeStreamGroup ¶
type FfprobeStreamGroup struct {
Index *int `json:"index,omitempty" url:"index,omitempty"`
Type *string `json:"type,omitempty" url:"type,omitempty"`
NbStreams *int `json:"nb_streams,omitempty" url:"nb_streams,omitempty"`
ExtraProperties map[string]interface{} `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*FfprobeStreamGroup) GetExtraProperties ¶
func (f *FfprobeStreamGroup) GetExtraProperties() map[string]interface{}
func (*FfprobeStreamGroup) GetIndex ¶
func (f *FfprobeStreamGroup) GetIndex() *int
func (*FfprobeStreamGroup) GetNbStreams ¶
func (f *FfprobeStreamGroup) GetNbStreams() *int
func (*FfprobeStreamGroup) GetType ¶
func (f *FfprobeStreamGroup) GetType() *string
func (*FfprobeStreamGroup) MarshalJSON ¶
func (f *FfprobeStreamGroup) MarshalJSON() ([]byte, error)
func (*FfprobeStreamGroup) SetIndex ¶
func (f *FfprobeStreamGroup) SetIndex(index *int)
SetIndex sets the Index field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamGroup) SetNbStreams ¶
func (f *FfprobeStreamGroup) SetNbStreams(nbStreams *int)
SetNbStreams sets the NbStreams field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamGroup) SetType ¶
func (f *FfprobeStreamGroup) SetType(type_ *string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeStreamGroup) String ¶
func (f *FfprobeStreamGroup) String() string
func (*FfprobeStreamGroup) UnmarshalJSON ¶
func (f *FfprobeStreamGroup) UnmarshalJSON(data []byte) error
type FfprobeSummary ¶
type FfprobeSummary struct {
Kind string
Video *FfprobeVideoSummary
Audio *FfprobeAudioSummary
Image *FfprobeImageSummary
Other *FfprobeOtherSummary
// contains filtered or unexported fields
}
Normalized summary, present when the report is JSON with format and streams. Narrow on `kind` before reading `video`, `audio` or `image`.
func (*FfprobeSummary) Accept ¶
func (f *FfprobeSummary) Accept(visitor FfprobeSummaryVisitor) error
func (*FfprobeSummary) GetAudio ¶
func (f *FfprobeSummary) GetAudio() *FfprobeAudioSummary
func (*FfprobeSummary) GetImage ¶
func (f *FfprobeSummary) GetImage() *FfprobeImageSummary
func (*FfprobeSummary) GetKind ¶
func (f *FfprobeSummary) GetKind() string
func (*FfprobeSummary) GetOther ¶
func (f *FfprobeSummary) GetOther() *FfprobeOtherSummary
func (*FfprobeSummary) GetVideo ¶
func (f *FfprobeSummary) GetVideo() *FfprobeVideoSummary
func (FfprobeSummary) MarshalJSON ¶
func (f FfprobeSummary) MarshalJSON() ([]byte, error)
func (*FfprobeSummary) UnmarshalJSON ¶
func (f *FfprobeSummary) UnmarshalJSON(data []byte) error
type FfprobeSummaryVisitor ¶
type FfprobeSummaryVisitor interface {
VisitVideo(*FfprobeVideoSummary) error
VisitAudio(*FfprobeAudioSummary) error
VisitImage(*FfprobeImageSummary) error
VisitOther(*FfprobeOtherSummary) error
}
type FfprobeVideoStream ¶
type FfprobeVideoStream struct {
Codec *string `json:"codec,omitempty" url:"codec,omitempty"`
Profile *string `json:"profile,omitempty" url:"profile,omitempty"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
Height *int `json:"height,omitempty" url:"height,omitempty"`
DisplayAspectRatio *string `json:"displayAspectRatio,omitempty" url:"displayAspectRatio,omitempty"`
PixelFormat *string `json:"pixelFormat,omitempty" url:"pixelFormat,omitempty"`
BitDepth *int `json:"bitDepth,omitempty" url:"bitDepth,omitempty"`
// avg_frame_rate as a number; null for a 0/0 rate
Fps *float64 `json:"fps,omitempty" url:"fps,omitempty"`
IsVariableFrameRate bool `json:"isVariableFrameRate" url:"isVariableFrameRate"`
Rotation float64 `json:"rotation" url:"rotation"`
// True for a PQ (smpte2084) or HLG (arib-std-b67) transfer
IsHdr bool `json:"isHdr" url:"isHdr"`
// Per-stream bitrate; null when the container omits it
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
Language *string `json:"language,omitempty" url:"language,omitempty"`
// contains filtered or unexported fields
}
func (*FfprobeVideoStream) GetBitDepth ¶
func (f *FfprobeVideoStream) GetBitDepth() *int
func (*FfprobeVideoStream) GetBitrateBps ¶
func (f *FfprobeVideoStream) GetBitrateBps() *int
func (*FfprobeVideoStream) GetCodec ¶
func (f *FfprobeVideoStream) GetCodec() *string
func (*FfprobeVideoStream) GetDisplayAspectRatio ¶
func (f *FfprobeVideoStream) GetDisplayAspectRatio() *string
func (*FfprobeVideoStream) GetExtraProperties ¶
func (f *FfprobeVideoStream) GetExtraProperties() map[string]interface{}
func (*FfprobeVideoStream) GetFps ¶
func (f *FfprobeVideoStream) GetFps() *float64
func (*FfprobeVideoStream) GetHeight ¶
func (f *FfprobeVideoStream) GetHeight() *int
func (*FfprobeVideoStream) GetIsHdr ¶
func (f *FfprobeVideoStream) GetIsHdr() bool
func (*FfprobeVideoStream) GetIsVariableFrameRate ¶
func (f *FfprobeVideoStream) GetIsVariableFrameRate() bool
func (*FfprobeVideoStream) GetLanguage ¶
func (f *FfprobeVideoStream) GetLanguage() *string
func (*FfprobeVideoStream) GetPixelFormat ¶
func (f *FfprobeVideoStream) GetPixelFormat() *string
func (*FfprobeVideoStream) GetProfile ¶
func (f *FfprobeVideoStream) GetProfile() *string
func (*FfprobeVideoStream) GetRotation ¶
func (f *FfprobeVideoStream) GetRotation() float64
func (*FfprobeVideoStream) GetWidth ¶
func (f *FfprobeVideoStream) GetWidth() *int
func (*FfprobeVideoStream) MarshalJSON ¶
func (f *FfprobeVideoStream) MarshalJSON() ([]byte, error)
func (*FfprobeVideoStream) SetBitDepth ¶
func (f *FfprobeVideoStream) SetBitDepth(bitDepth *int)
SetBitDepth sets the BitDepth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetBitrateBps ¶
func (f *FfprobeVideoStream) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetCodec ¶
func (f *FfprobeVideoStream) SetCodec(codec *string)
SetCodec sets the Codec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetDisplayAspectRatio ¶
func (f *FfprobeVideoStream) SetDisplayAspectRatio(displayAspectRatio *string)
SetDisplayAspectRatio sets the DisplayAspectRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetFps ¶
func (f *FfprobeVideoStream) SetFps(fps *float64)
SetFps sets the Fps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetHeight ¶
func (f *FfprobeVideoStream) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetIsHdr ¶
func (f *FfprobeVideoStream) SetIsHdr(isHdr bool)
SetIsHdr sets the IsHdr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetIsVariableFrameRate ¶
func (f *FfprobeVideoStream) SetIsVariableFrameRate(isVariableFrameRate bool)
SetIsVariableFrameRate sets the IsVariableFrameRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetLanguage ¶
func (f *FfprobeVideoStream) SetLanguage(language *string)
SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetPixelFormat ¶
func (f *FfprobeVideoStream) SetPixelFormat(pixelFormat *string)
SetPixelFormat sets the PixelFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetProfile ¶
func (f *FfprobeVideoStream) SetProfile(profile *string)
SetProfile sets the Profile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetRotation ¶
func (f *FfprobeVideoStream) SetRotation(rotation float64)
SetRotation sets the Rotation field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) SetWidth ¶
func (f *FfprobeVideoStream) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoStream) String ¶
func (f *FfprobeVideoStream) String() string
func (*FfprobeVideoStream) UnmarshalJSON ¶
func (f *FfprobeVideoStream) UnmarshalJSON(data []byte) error
type FfprobeVideoSummary ¶
type FfprobeVideoSummary struct {
// format_name, e.g. "mov,mp4,m4a,3gp,3g2,mj2"
Container *string `json:"container,omitempty" url:"container,omitempty"`
FormatLongName *string `json:"formatLongName,omitempty" url:"formatLongName,omitempty"`
// Duration in seconds
DurationSec *float64 `json:"durationSec,omitempty" url:"durationSec,omitempty"`
SizeBytes *int `json:"sizeBytes,omitempty" url:"sizeBytes,omitempty"`
// Container bitrate; null when the container omits it
BitrateBps *int `json:"bitrateBps,omitempty" url:"bitrateBps,omitempty"`
StartTimeSec *float64 `json:"startTimeSec,omitempty" url:"startTimeSec,omitempty"`
StreamCounts *FfprobeStreamCounts `json:"streamCounts" url:"streamCounts"`
// Container-level tags, {} when none
Tags map[string]string `json:"tags" url:"tags"`
Video *FfprobeVideoStream `json:"video" url:"video"`
Audio *FfprobeAudioStream `json:"audio,omitempty" url:"audio,omitempty"`
// contains filtered or unexported fields
}
func (*FfprobeVideoSummary) GetAudio ¶
func (f *FfprobeVideoSummary) GetAudio() *FfprobeAudioStream
func (*FfprobeVideoSummary) GetBitrateBps ¶
func (f *FfprobeVideoSummary) GetBitrateBps() *int
func (*FfprobeVideoSummary) GetContainer ¶
func (f *FfprobeVideoSummary) GetContainer() *string
func (*FfprobeVideoSummary) GetDurationSec ¶
func (f *FfprobeVideoSummary) GetDurationSec() *float64
func (*FfprobeVideoSummary) GetExtraProperties ¶
func (f *FfprobeVideoSummary) GetExtraProperties() map[string]interface{}
func (*FfprobeVideoSummary) GetFormatLongName ¶
func (f *FfprobeVideoSummary) GetFormatLongName() *string
func (*FfprobeVideoSummary) GetSizeBytes ¶
func (f *FfprobeVideoSummary) GetSizeBytes() *int
func (*FfprobeVideoSummary) GetStartTimeSec ¶
func (f *FfprobeVideoSummary) GetStartTimeSec() *float64
func (*FfprobeVideoSummary) GetStreamCounts ¶
func (f *FfprobeVideoSummary) GetStreamCounts() *FfprobeStreamCounts
func (*FfprobeVideoSummary) GetTags ¶
func (f *FfprobeVideoSummary) GetTags() map[string]string
func (*FfprobeVideoSummary) GetVideo ¶
func (f *FfprobeVideoSummary) GetVideo() *FfprobeVideoStream
func (*FfprobeVideoSummary) MarshalJSON ¶
func (f *FfprobeVideoSummary) MarshalJSON() ([]byte, error)
func (*FfprobeVideoSummary) SetAudio ¶
func (f *FfprobeVideoSummary) SetAudio(audio *FfprobeAudioStream)
SetAudio sets the Audio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetBitrateBps ¶
func (f *FfprobeVideoSummary) SetBitrateBps(bitrateBps *int)
SetBitrateBps sets the BitrateBps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetContainer ¶
func (f *FfprobeVideoSummary) SetContainer(container *string)
SetContainer sets the Container field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetDurationSec ¶
func (f *FfprobeVideoSummary) SetDurationSec(durationSec *float64)
SetDurationSec sets the DurationSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetFormatLongName ¶
func (f *FfprobeVideoSummary) SetFormatLongName(formatLongName *string)
SetFormatLongName sets the FormatLongName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetSizeBytes ¶
func (f *FfprobeVideoSummary) SetSizeBytes(sizeBytes *int)
SetSizeBytes sets the SizeBytes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetStartTimeSec ¶
func (f *FfprobeVideoSummary) SetStartTimeSec(startTimeSec *float64)
SetStartTimeSec sets the StartTimeSec field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetStreamCounts ¶
func (f *FfprobeVideoSummary) SetStreamCounts(streamCounts *FfprobeStreamCounts)
SetStreamCounts sets the StreamCounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetTags ¶
func (f *FfprobeVideoSummary) SetTags(tags map[string]string)
SetTags sets the Tags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) SetVideo ¶
func (f *FfprobeVideoSummary) SetVideo(video *FfprobeVideoStream)
SetVideo sets the Video field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeVideoSummary) String ¶
func (f *FfprobeVideoSummary) String() string
func (*FfprobeVideoSummary) UnmarshalJSON ¶
func (f *FfprobeVideoSummary) UnmarshalJSON(data []byte) error
type FfprobeWarning ¶
type FfprobeWarning struct {
Code string `json:"code" url:"code"`
Message string `json:"message" url:"message"`
// contains filtered or unexported fields
}
func (*FfprobeWarning) GetCode ¶
func (f *FfprobeWarning) GetCode() string
func (*FfprobeWarning) GetExtraProperties ¶
func (f *FfprobeWarning) GetExtraProperties() map[string]interface{}
func (*FfprobeWarning) GetMessage ¶
func (f *FfprobeWarning) GetMessage() string
func (*FfprobeWarning) MarshalJSON ¶
func (f *FfprobeWarning) MarshalJSON() ([]byte, error)
func (*FfprobeWarning) SetCode ¶
func (f *FfprobeWarning) SetCode(code string)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeWarning) SetMessage ¶
func (f *FfprobeWarning) SetMessage(message string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FfprobeWarning) String ¶
func (f *FfprobeWarning) String() string
func (*FfprobeWarning) UnmarshalJSON ¶
func (f *FfprobeWarning) UnmarshalJSON(data []byte) error
type FileParam ¶
FileParam is a file type suitable for multipart/form-data uploads.
func NewFileParam ¶
func NewFileParam( reader io.Reader, filename string, contentType string, opts ...FileParamOption, ) *FileParam
NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.
However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.
func (*FileParam) ContentType ¶
type FileParamOption ¶
type FileParamOption interface {
// contains filtered or unexported methods
}
FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.
type ForbiddenError ¶
type ForbiddenError struct {
*core.APIError
Body *ErrorResponse
}
Above your plan: the job type, GPU, the timeout, or a compose video's frame size or rate. `error.details[0].upgradeTo` names the plan that runs it.
func (*ForbiddenError) GetBody ¶
func (f *ForbiddenError) GetBody() *ErrorResponse
func (*ForbiddenError) MarshalJSON ¶
func (f *ForbiddenError) MarshalJSON() ([]byte, error)
func (*ForbiddenError) UnmarshalJSON ¶
func (f *ForbiddenError) UnmarshalJSON(data []byte) error
func (*ForbiddenError) Unwrap ¶
func (f *ForbiddenError) Unwrap() error
type GenModel ¶
type GenModel struct {
// Model identifier — pass as params.model
ID string `json:"id" url:"id"`
// Job types this model supports
Jobs []string `json:"jobs" url:"jobs"`
// Pricing/quality tier alias, or null for a model with no tier alias
Tier *GenModelTier `json:"tier,omitempty" url:"tier,omitempty"`
// True while this model is pulled from tier resolution pending a cost/quality re-evaluation. Still listed for transparency, but submitting it (even by exact id) is rejected.
UnderReview bool `json:"underReview" url:"underReview"`
// Relative price, cheapest ($) to priciest ($$$$). Not a dollar estimate.
PriceTier GenModelPriceTier `json:"priceTier" url:"priceTier"`
// Max reference images accepted (0 for generate-only models)
MaxRefImages int `json:"maxRefImages" url:"maxRefImages"`
// Denoising step range, or null when the model has a fixed step count
Steps *GenModelSteps `json:"steps,omitempty" url:"steps,omitempty"`
Supports *GenModelSupports `json:"supports" url:"supports"`
// Whether prompt enhancement defaults to on for this model
EnhanceDefault bool `json:"enhanceDefault" url:"enhanceDefault"`
// Model availability status
Status GenModelStatus `json:"status" url:"status"`
// contains filtered or unexported fields
}
func (*GenModel) GetEnhanceDefault ¶
func (*GenModel) GetExtraProperties ¶
func (*GenModel) GetMaxRefImages ¶
func (*GenModel) GetPriceTier ¶
func (g *GenModel) GetPriceTier() GenModelPriceTier
func (*GenModel) GetStatus ¶
func (g *GenModel) GetStatus() GenModelStatus
func (*GenModel) GetSteps ¶
func (g *GenModel) GetSteps() *GenModelSteps
func (*GenModel) GetSupports ¶
func (g *GenModel) GetSupports() *GenModelSupports
func (*GenModel) GetTier ¶
func (g *GenModel) GetTier() *GenModelTier
func (*GenModel) GetUnderReview ¶
func (*GenModel) MarshalJSON ¶
func (*GenModel) SetEnhanceDefault ¶
SetEnhanceDefault sets the EnhanceDefault field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetID ¶
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetJobs ¶
SetJobs sets the Jobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetMaxRefImages ¶
SetMaxRefImages sets the MaxRefImages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetPriceTier ¶
func (g *GenModel) SetPriceTier(priceTier GenModelPriceTier)
SetPriceTier sets the PriceTier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetStatus ¶
func (g *GenModel) SetStatus(status GenModelStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetSteps ¶
func (g *GenModel) SetSteps(steps *GenModelSteps)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetSupports ¶
func (g *GenModel) SetSupports(supports *GenModelSupports)
SetSupports sets the Supports field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetTier ¶
func (g *GenModel) SetTier(tier *GenModelTier)
SetTier sets the Tier field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) SetUnderReview ¶
SetUnderReview sets the UnderReview field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModel) UnmarshalJSON ¶
type GenModelPriceTier ¶
type GenModelPriceTier string
Relative price, cheapest ($) to priciest ($$$$). Not a dollar estimate.
const ( GenModelPriceTierLow GenModelPriceTier = "$" GenModelPriceTierMedium GenModelPriceTier = "$$" GenModelPriceTierHigh GenModelPriceTier = "$$$" GenModelPriceTierHighest GenModelPriceTier = "$$$$" )
func NewGenModelPriceTierFromString ¶
func NewGenModelPriceTierFromString(s string) (GenModelPriceTier, error)
func (GenModelPriceTier) Ptr ¶
func (g GenModelPriceTier) Ptr() *GenModelPriceTier
type GenModelStatus ¶
type GenModelStatus string
Model availability status
const (
GenModelStatusActive GenModelStatus = "active"
)
func NewGenModelStatusFromString ¶
func NewGenModelStatusFromString(s string) (GenModelStatus, error)
func (GenModelStatus) Ptr ¶
func (g GenModelStatus) Ptr() *GenModelStatus
type GenModelSteps ¶
type GenModelSteps struct {
Default int `json:"default" url:"default"`
Min int `json:"min" url:"min"`
Max int `json:"max" url:"max"`
// contains filtered or unexported fields
}
Denoising step range, or null when the model has a fixed step count
func (*GenModelSteps) GetDefault ¶
func (g *GenModelSteps) GetDefault() int
func (*GenModelSteps) GetExtraProperties ¶
func (g *GenModelSteps) GetExtraProperties() map[string]interface{}
func (*GenModelSteps) GetMax ¶
func (g *GenModelSteps) GetMax() int
func (*GenModelSteps) GetMin ¶
func (g *GenModelSteps) GetMin() int
func (*GenModelSteps) MarshalJSON ¶
func (g *GenModelSteps) MarshalJSON() ([]byte, error)
func (*GenModelSteps) SetDefault ¶
func (g *GenModelSteps) SetDefault(default_ int)
SetDefault sets the Default field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModelSteps) SetMax ¶
func (g *GenModelSteps) SetMax(max int)
SetMax sets the Max field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModelSteps) SetMin ¶
func (g *GenModelSteps) SetMin(min int)
SetMin sets the Min field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModelSteps) String ¶
func (g *GenModelSteps) String() string
func (*GenModelSteps) UnmarshalJSON ¶
func (g *GenModelSteps) UnmarshalJSON(data []byte) error
type GenModelSupports ¶
type GenModelSupports struct {
NegativePrompt bool `json:"negativePrompt" url:"negativePrompt"`
Guidance bool `json:"guidance" url:"guidance"`
// contains filtered or unexported fields
}
func (*GenModelSupports) GetExtraProperties ¶
func (g *GenModelSupports) GetExtraProperties() map[string]interface{}
func (*GenModelSupports) GetGuidance ¶
func (g *GenModelSupports) GetGuidance() bool
func (*GenModelSupports) GetNegativePrompt ¶
func (g *GenModelSupports) GetNegativePrompt() bool
func (*GenModelSupports) MarshalJSON ¶
func (g *GenModelSupports) MarshalJSON() ([]byte, error)
func (*GenModelSupports) SetGuidance ¶
func (g *GenModelSupports) SetGuidance(guidance bool)
SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModelSupports) SetNegativePrompt ¶
func (g *GenModelSupports) SetNegativePrompt(negativePrompt bool)
SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GenModelSupports) String ¶
func (g *GenModelSupports) String() string
func (*GenModelSupports) UnmarshalJSON ¶
func (g *GenModelSupports) UnmarshalJSON(data []byte) error
type GenModelTier ¶
type GenModelTier string
Pricing/quality tier alias, or null for a model with no tier alias
const ( GenModelTierEconomy GenModelTier = "economy" GenModelTierStandard GenModelTier = "standard" GenModelTierPremium GenModelTier = "premium" )
func NewGenModelTierFromString ¶
func NewGenModelTierFromString(s string) (GenModelTier, error)
func (GenModelTier) Ptr ¶
func (g GenModelTier) Ptr() *GenModelTier
type GetAccountCapabilitiesResponse ¶
type GetAccountCapabilitiesResponse struct {
Data *GetAccountCapabilitiesResponseData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*GetAccountCapabilitiesResponse) GetData ¶
func (g *GetAccountCapabilitiesResponse) GetData() *GetAccountCapabilitiesResponseData
func (*GetAccountCapabilitiesResponse) GetExtraProperties ¶
func (g *GetAccountCapabilitiesResponse) GetExtraProperties() map[string]interface{}
func (*GetAccountCapabilitiesResponse) MarshalJSON ¶
func (g *GetAccountCapabilitiesResponse) MarshalJSON() ([]byte, error)
func (*GetAccountCapabilitiesResponse) SetData ¶
func (g *GetAccountCapabilitiesResponse) SetData(data *GetAccountCapabilitiesResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponse) String ¶
func (g *GetAccountCapabilitiesResponse) String() string
func (*GetAccountCapabilitiesResponse) UnmarshalJSON ¶
func (g *GetAccountCapabilitiesResponse) UnmarshalJSON(data []byte) error
type GetAccountCapabilitiesResponseData ¶
type GetAccountCapabilitiesResponseData struct {
Plan *GetAccountCapabilitiesResponseDataPlan `json:"plan" url:"plan"`
Limits *GetAccountCapabilitiesResponseDataLimits `json:"limits" url:"limits"`
Features *GetAccountCapabilitiesResponseDataFeatures `json:"features" url:"features"`
// contains filtered or unexported fields
}
func (*GetAccountCapabilitiesResponseData) GetExtraProperties ¶
func (g *GetAccountCapabilitiesResponseData) GetExtraProperties() map[string]interface{}
func (*GetAccountCapabilitiesResponseData) GetFeatures ¶
func (g *GetAccountCapabilitiesResponseData) GetFeatures() *GetAccountCapabilitiesResponseDataFeatures
func (*GetAccountCapabilitiesResponseData) GetLimits ¶
func (g *GetAccountCapabilitiesResponseData) GetLimits() *GetAccountCapabilitiesResponseDataLimits
func (*GetAccountCapabilitiesResponseData) GetPlan ¶
func (g *GetAccountCapabilitiesResponseData) GetPlan() *GetAccountCapabilitiesResponseDataPlan
func (*GetAccountCapabilitiesResponseData) MarshalJSON ¶
func (g *GetAccountCapabilitiesResponseData) MarshalJSON() ([]byte, error)
func (*GetAccountCapabilitiesResponseData) SetFeatures ¶
func (g *GetAccountCapabilitiesResponseData) SetFeatures(features *GetAccountCapabilitiesResponseDataFeatures)
SetFeatures sets the Features field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseData) SetLimits ¶
func (g *GetAccountCapabilitiesResponseData) SetLimits(limits *GetAccountCapabilitiesResponseDataLimits)
SetLimits sets the Limits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseData) SetPlan ¶
func (g *GetAccountCapabilitiesResponseData) SetPlan(plan *GetAccountCapabilitiesResponseDataPlan)
SetPlan sets the Plan field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseData) String ¶
func (g *GetAccountCapabilitiesResponseData) String() string
func (*GetAccountCapabilitiesResponseData) UnmarshalJSON ¶
func (g *GetAccountCapabilitiesResponseData) UnmarshalJSON(data []byte) error
type GetAccountCapabilitiesResponseDataFeatures ¶
type GetAccountCapabilitiesResponseDataFeatures struct {
RawFfmpeg bool `json:"rawFfmpeg" url:"rawFfmpeg"`
Mcp bool `json:"mcp" url:"mcp"`
Webhooks bool `json:"webhooks" url:"webhooks"`
PriorityQueue bool `json:"priorityQueue" url:"priorityQueue"`
CustomRunners bool `json:"customRunners" url:"customRunners"`
Gpu bool `json:"gpu" url:"gpu"`
// Support replies the same business day
PrioritySupport bool `json:"prioritySupport" url:"prioritySupport"`
// GET /orgs/current/audit-log is available
AuditLog bool `json:"auditLog" url:"auditLog"`
// Outputs of 512 MiB or more stream into destination buckets while they upload
FastOutputDelivery bool `json:"fastOutputDelivery" url:"fastOutputDelivery"`
// contains filtered or unexported fields
}
func (*GetAccountCapabilitiesResponseDataFeatures) GetAuditLog ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetAuditLog() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetCustomRunners ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetCustomRunners() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetExtraProperties ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetExtraProperties() map[string]interface{}
func (*GetAccountCapabilitiesResponseDataFeatures) GetFastOutputDelivery ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetFastOutputDelivery() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetGpu ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetGpu() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetMcp ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetMcp() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetPriorityQueue ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetPriorityQueue() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetPrioritySupport ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetPrioritySupport() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetRawFfmpeg ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetRawFfmpeg() bool
func (*GetAccountCapabilitiesResponseDataFeatures) GetWebhooks ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) GetWebhooks() bool
func (*GetAccountCapabilitiesResponseDataFeatures) MarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) MarshalJSON() ([]byte, error)
func (*GetAccountCapabilitiesResponseDataFeatures) SetAuditLog ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetAuditLog(auditLog bool)
SetAuditLog sets the AuditLog field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetCustomRunners ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetCustomRunners(customRunners bool)
SetCustomRunners sets the CustomRunners field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetFastOutputDelivery ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetFastOutputDelivery(fastOutputDelivery bool)
SetFastOutputDelivery sets the FastOutputDelivery field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetGpu ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetGpu(gpu bool)
SetGpu sets the Gpu field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetMcp ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetMcp(mcp bool)
SetMcp sets the Mcp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetPriorityQueue ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetPriorityQueue(priorityQueue bool)
SetPriorityQueue sets the PriorityQueue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetPrioritySupport ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetPrioritySupport(prioritySupport bool)
SetPrioritySupport sets the PrioritySupport field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetRawFfmpeg ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetRawFfmpeg(rawFfmpeg bool)
SetRawFfmpeg sets the RawFfmpeg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) SetWebhooks ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) SetWebhooks(webhooks bool)
SetWebhooks sets the Webhooks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataFeatures) String ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) String() string
func (*GetAccountCapabilitiesResponseDataFeatures) UnmarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataFeatures) UnmarshalJSON(data []byte) error
type GetAccountCapabilitiesResponseDataLimits ¶
type GetAccountCapabilitiesResponseDataLimits struct {
ConcurrentJobs int `json:"concurrentJobs" url:"concurrentJobs"`
MaxQueuedJobs int `json:"maxQueuedJobs" url:"maxQueuedJobs"`
APIRequestsPerMinute int `json:"apiRequestsPerMinute" url:"apiRequestsPerMinute"`
// Seconds
MaxJobTimeout int `json:"maxJobTimeout" url:"maxJobTimeout"`
// Bytes, per input file, uploaded or fetched by URL
MaxInputFileSize int `json:"maxInputFileSize" url:"maxInputFileSize"`
// Deprecated: always equal to maxInputFileSize. Read maxInputFileSize.
MaxJobInputSize int `json:"maxJobInputSize" url:"maxJobInputSize"`
// Bytes
StorageQuota int `json:"storageQuota" url:"storageQuota"`
OutputRetentionDays int `json:"outputRetentionDays" url:"outputRetentionDays"`
MaxUploadSessionFiles int `json:"maxUploadSessionFiles" url:"maxUploadSessionFiles"`
// Members the organization may hold, pending invitations included
TeamMembers int `json:"teamMembers" url:"teamMembers"`
// Largest compose frame, in pixels (width times height)
ComposeMaxPixels int `json:"composeMaxPixels" url:"composeMaxPixels"`
// Highest compose frame rate
ComposeMaxFps int `json:"composeMaxFps" url:"composeMaxFps"`
// Largest compose frame with animated graphics, in pixels
ComposeAnimatedMaxPixels int `json:"composeAnimatedMaxPixels" url:"composeAnimatedMaxPixels"`
// Highest compose frame rate with animated graphics
ComposeAnimatedMaxFps int `json:"composeAnimatedMaxFps" url:"composeAnimatedMaxFps"`
// contains filtered or unexported fields
}
func (*GetAccountCapabilitiesResponseDataLimits) GetAPIRequestsPerMinute ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetAPIRequestsPerMinute() int
func (*GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxFps ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxFps() int
func (*GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxPixels ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeAnimatedMaxPixels() int
func (*GetAccountCapabilitiesResponseDataLimits) GetComposeMaxFps ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxFps() int
func (*GetAccountCapabilitiesResponseDataLimits) GetComposeMaxPixels ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetComposeMaxPixels() int
func (*GetAccountCapabilitiesResponseDataLimits) GetConcurrentJobs ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetConcurrentJobs() int
func (*GetAccountCapabilitiesResponseDataLimits) GetExtraProperties ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetExtraProperties() map[string]interface{}
func (*GetAccountCapabilitiesResponseDataLimits) GetMaxInputFileSize ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxInputFileSize() int
func (*GetAccountCapabilitiesResponseDataLimits) GetMaxJobInputSize ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobInputSize() int
func (*GetAccountCapabilitiesResponseDataLimits) GetMaxJobTimeout ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxJobTimeout() int
func (*GetAccountCapabilitiesResponseDataLimits) GetMaxQueuedJobs ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxQueuedJobs() int
func (*GetAccountCapabilitiesResponseDataLimits) GetMaxUploadSessionFiles ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetMaxUploadSessionFiles() int
func (*GetAccountCapabilitiesResponseDataLimits) GetOutputRetentionDays ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetOutputRetentionDays() int
func (*GetAccountCapabilitiesResponseDataLimits) GetStorageQuota ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetStorageQuota() int
func (*GetAccountCapabilitiesResponseDataLimits) GetTeamMembers ¶
func (g *GetAccountCapabilitiesResponseDataLimits) GetTeamMembers() int
func (*GetAccountCapabilitiesResponseDataLimits) MarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataLimits) MarshalJSON() ([]byte, error)
func (*GetAccountCapabilitiesResponseDataLimits) SetAPIRequestsPerMinute ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetAPIRequestsPerMinute(apiRequestsPerMinute int)
SetAPIRequestsPerMinute sets the APIRequestsPerMinute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxFps ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxFps(composeAnimatedMaxFps int)
SetComposeAnimatedMaxFps sets the ComposeAnimatedMaxFps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxPixels ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeAnimatedMaxPixels(composeAnimatedMaxPixels int)
SetComposeAnimatedMaxPixels sets the ComposeAnimatedMaxPixels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetComposeMaxFps ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxFps(composeMaxFps int)
SetComposeMaxFps sets the ComposeMaxFps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetComposeMaxPixels ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetComposeMaxPixels(composeMaxPixels int)
SetComposeMaxPixels sets the ComposeMaxPixels field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetConcurrentJobs ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetConcurrentJobs(concurrentJobs int)
SetConcurrentJobs sets the ConcurrentJobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetMaxInputFileSize ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxInputFileSize(maxInputFileSize int)
SetMaxInputFileSize sets the MaxInputFileSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetMaxJobInputSize ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobInputSize(maxJobInputSize int)
SetMaxJobInputSize sets the MaxJobInputSize field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetMaxJobTimeout ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxJobTimeout(maxJobTimeout int)
SetMaxJobTimeout sets the MaxJobTimeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetMaxQueuedJobs ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxQueuedJobs(maxQueuedJobs int)
SetMaxQueuedJobs sets the MaxQueuedJobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetMaxUploadSessionFiles ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetMaxUploadSessionFiles(maxUploadSessionFiles int)
SetMaxUploadSessionFiles sets the MaxUploadSessionFiles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetOutputRetentionDays ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetOutputRetentionDays(outputRetentionDays int)
SetOutputRetentionDays sets the OutputRetentionDays field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetStorageQuota ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetStorageQuota(storageQuota int)
SetStorageQuota sets the StorageQuota field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) SetTeamMembers ¶
func (g *GetAccountCapabilitiesResponseDataLimits) SetTeamMembers(teamMembers int)
SetTeamMembers sets the TeamMembers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataLimits) String ¶
func (g *GetAccountCapabilitiesResponseDataLimits) String() string
func (*GetAccountCapabilitiesResponseDataLimits) UnmarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataLimits) UnmarshalJSON(data []byte) error
type GetAccountCapabilitiesResponseDataPlan ¶
type GetAccountCapabilitiesResponseDataPlan struct {
// Plan slug: free, pro, studio
Slug string `json:"slug" url:"slug"`
// Display name
Name string `json:"name" url:"name"`
// contains filtered or unexported fields
}
func (*GetAccountCapabilitiesResponseDataPlan) GetExtraProperties ¶
func (g *GetAccountCapabilitiesResponseDataPlan) GetExtraProperties() map[string]interface{}
func (*GetAccountCapabilitiesResponseDataPlan) GetName ¶
func (g *GetAccountCapabilitiesResponseDataPlan) GetName() string
func (*GetAccountCapabilitiesResponseDataPlan) GetSlug ¶
func (g *GetAccountCapabilitiesResponseDataPlan) GetSlug() string
func (*GetAccountCapabilitiesResponseDataPlan) MarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataPlan) MarshalJSON() ([]byte, error)
func (*GetAccountCapabilitiesResponseDataPlan) SetName ¶
func (g *GetAccountCapabilitiesResponseDataPlan) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataPlan) SetSlug ¶
func (g *GetAccountCapabilitiesResponseDataPlan) SetSlug(slug string)
SetSlug sets the Slug field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetAccountCapabilitiesResponseDataPlan) String ¶
func (g *GetAccountCapabilitiesResponseDataPlan) String() string
func (*GetAccountCapabilitiesResponseDataPlan) UnmarshalJSON ¶
func (g *GetAccountCapabilitiesResponseDataPlan) UnmarshalJSON(data []byte) error
type GetJobRequest ¶
type GetJobRequest struct {
// Job ID (e.g., job_abc123)
ID string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*GetJobRequest) SetID ¶
func (g *GetJobRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type GetJobResponse ¶
type GetJobResponse struct {
Data *Job `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*GetJobResponse) GetData ¶
func (g *GetJobResponse) GetData() *Job
func (*GetJobResponse) GetExtraProperties ¶
func (g *GetJobResponse) GetExtraProperties() map[string]interface{}
func (*GetJobResponse) MarshalJSON ¶
func (g *GetJobResponse) MarshalJSON() ([]byte, error)
func (*GetJobResponse) SetData ¶
func (g *GetJobResponse) SetData(data *Job)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobResponse) String ¶
func (g *GetJobResponse) String() string
func (*GetJobResponse) UnmarshalJSON ¶
func (g *GetJobResponse) UnmarshalJSON(data []byte) error
type GetJobTypeSchemaRequest ¶
type GetJobTypeSchemaRequest struct {
// Job type identifier (e.g., ffmpeg)
Type string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*GetJobTypeSchemaRequest) SetType ¶
func (g *GetJobTypeSchemaRequest) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type GetJobTypeSchemaResponse ¶
type GetJobTypeSchemaResponse struct {
Data *GetJobTypeSchemaResponseData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*GetJobTypeSchemaResponse) GetData ¶
func (g *GetJobTypeSchemaResponse) GetData() *GetJobTypeSchemaResponseData
func (*GetJobTypeSchemaResponse) GetExtraProperties ¶
func (g *GetJobTypeSchemaResponse) GetExtraProperties() map[string]interface{}
func (*GetJobTypeSchemaResponse) MarshalJSON ¶
func (g *GetJobTypeSchemaResponse) MarshalJSON() ([]byte, error)
func (*GetJobTypeSchemaResponse) SetData ¶
func (g *GetJobTypeSchemaResponse) SetData(data *GetJobTypeSchemaResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponse) String ¶
func (g *GetJobTypeSchemaResponse) String() string
func (*GetJobTypeSchemaResponse) UnmarshalJSON ¶
func (g *GetJobTypeSchemaResponse) UnmarshalJSON(data []byte) error
type GetJobTypeSchemaResponseData ¶
type GetJobTypeSchemaResponseData struct {
Type string `json:"type" url:"type"`
Fields []*ConnectorField `json:"fields" url:"fields"`
// The media this job reads, described the same way as its params so a connector can render both with one renderer.
Inputs *GetJobTypeSchemaResponseDataInputs `json:"inputs" url:"inputs"`
JSONSchema any `json:"jsonSchema,omitempty" url:"jsonSchema,omitempty"`
// Field that selects the branch, when the params schema is a union. Absent for plain object schemas.
Discriminator *string `json:"discriminator,omitempty" url:"discriminator,omitempty"`
// contains filtered or unexported fields
}
func (*GetJobTypeSchemaResponseData) GetDiscriminator ¶
func (g *GetJobTypeSchemaResponseData) GetDiscriminator() *string
func (*GetJobTypeSchemaResponseData) GetExtraProperties ¶
func (g *GetJobTypeSchemaResponseData) GetExtraProperties() map[string]interface{}
func (*GetJobTypeSchemaResponseData) GetFields ¶
func (g *GetJobTypeSchemaResponseData) GetFields() []*ConnectorField
func (*GetJobTypeSchemaResponseData) GetInputs ¶
func (g *GetJobTypeSchemaResponseData) GetInputs() *GetJobTypeSchemaResponseDataInputs
func (*GetJobTypeSchemaResponseData) GetJSONSchema ¶
func (g *GetJobTypeSchemaResponseData) GetJSONSchema() any
func (*GetJobTypeSchemaResponseData) GetType ¶
func (g *GetJobTypeSchemaResponseData) GetType() string
func (*GetJobTypeSchemaResponseData) MarshalJSON ¶
func (g *GetJobTypeSchemaResponseData) MarshalJSON() ([]byte, error)
func (*GetJobTypeSchemaResponseData) SetDiscriminator ¶
func (g *GetJobTypeSchemaResponseData) SetDiscriminator(discriminator *string)
SetDiscriminator sets the Discriminator field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseData) SetFields ¶
func (g *GetJobTypeSchemaResponseData) SetFields(fields []*ConnectorField)
SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseData) SetInputs ¶
func (g *GetJobTypeSchemaResponseData) SetInputs(inputs *GetJobTypeSchemaResponseDataInputs)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseData) SetJSONSchema ¶
func (g *GetJobTypeSchemaResponseData) SetJSONSchema(jsonSchema any)
SetJSONSchema sets the JSONSchema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseData) SetType ¶
func (g *GetJobTypeSchemaResponseData) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseData) String ¶
func (g *GetJobTypeSchemaResponseData) String() string
func (*GetJobTypeSchemaResponseData) UnmarshalJSON ¶
func (g *GetJobTypeSchemaResponseData) UnmarshalJSON(data []byte) error
type GetJobTypeSchemaResponseDataInputs ¶
type GetJobTypeSchemaResponseDataInputs struct {
Fields []*ConnectorInput `json:"fields" url:"fields"`
// Any filename may be used as an input key, rather than a fixed set. True for ffmpeg and ffprobe, whose inputs become files in the working directory and are named by the command.
Variadic bool `json:"variadic" url:"variadic"`
// contains filtered or unexported fields
}
The media this job reads, described the same way as its params so a connector can render both with one renderer.
func (*GetJobTypeSchemaResponseDataInputs) GetExtraProperties ¶
func (g *GetJobTypeSchemaResponseDataInputs) GetExtraProperties() map[string]interface{}
func (*GetJobTypeSchemaResponseDataInputs) GetFields ¶
func (g *GetJobTypeSchemaResponseDataInputs) GetFields() []*ConnectorInput
func (*GetJobTypeSchemaResponseDataInputs) GetVariadic ¶
func (g *GetJobTypeSchemaResponseDataInputs) GetVariadic() bool
func (*GetJobTypeSchemaResponseDataInputs) MarshalJSON ¶
func (g *GetJobTypeSchemaResponseDataInputs) MarshalJSON() ([]byte, error)
func (*GetJobTypeSchemaResponseDataInputs) SetFields ¶
func (g *GetJobTypeSchemaResponseDataInputs) SetFields(fields []*ConnectorInput)
SetFields sets the Fields field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseDataInputs) SetVariadic ¶
func (g *GetJobTypeSchemaResponseDataInputs) SetVariadic(variadic bool)
SetVariadic sets the Variadic field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobTypeSchemaResponseDataInputs) String ¶
func (g *GetJobTypeSchemaResponseDataInputs) String() string
func (*GetJobTypeSchemaResponseDataInputs) UnmarshalJSON ¶
func (g *GetJobTypeSchemaResponseDataInputs) UnmarshalJSON(data []byte) error
type ImageEditParams ¶
type ImageEditParams struct {
Model string
Economy *ImageEditParamsEconomy
Standard *ImageEditParamsStandard
Premium *ImageEditParamsPremium
Flux2Klein4B *ImageEditParamsFlux2Klein4B
QwenImageEdit2511 *ImageEditParamsQwenImageEdit2511
QwenImageEdit2511Lightning *ImageEditParamsQwenImageEdit2511Lightning
// contains filtered or unexported fields
}
Params of the image.edit job.
func (*ImageEditParams) Accept ¶
func (i *ImageEditParams) Accept(visitor ImageEditParamsVisitor) error
func (*ImageEditParams) GetEconomy ¶
func (i *ImageEditParams) GetEconomy() *ImageEditParamsEconomy
func (*ImageEditParams) GetFlux2Klein4B ¶
func (i *ImageEditParams) GetFlux2Klein4B() *ImageEditParamsFlux2Klein4B
func (*ImageEditParams) GetModel ¶
func (i *ImageEditParams) GetModel() string
func (*ImageEditParams) GetPremium ¶
func (i *ImageEditParams) GetPremium() *ImageEditParamsPremium
func (*ImageEditParams) GetQwenImageEdit2511 ¶
func (i *ImageEditParams) GetQwenImageEdit2511() *ImageEditParamsQwenImageEdit2511
func (*ImageEditParams) GetQwenImageEdit2511Lightning ¶
func (i *ImageEditParams) GetQwenImageEdit2511Lightning() *ImageEditParamsQwenImageEdit2511Lightning
func (*ImageEditParams) GetStandard ¶
func (i *ImageEditParams) GetStandard() *ImageEditParamsStandard
func (ImageEditParams) MarshalJSON ¶
func (i ImageEditParams) MarshalJSON() ([]byte, error)
func (*ImageEditParams) UnmarshalJSON ¶
func (i *ImageEditParams) UnmarshalJSON(data []byte) error
type ImageEditParamsEconomy ¶
type ImageEditParamsEconomy struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsEconomy) GetEnhancePrompt ¶
func (i *ImageEditParamsEconomy) GetEnhancePrompt() *bool
func (*ImageEditParamsEconomy) GetExtraProperties ¶
func (i *ImageEditParamsEconomy) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsEconomy) GetHeight ¶
func (i *ImageEditParamsEconomy) GetHeight() *int
func (*ImageEditParamsEconomy) GetPrompt ¶
func (i *ImageEditParamsEconomy) GetPrompt() string
func (*ImageEditParamsEconomy) GetSeed ¶
func (i *ImageEditParamsEconomy) GetSeed() *int
func (*ImageEditParamsEconomy) GetWidth ¶
func (i *ImageEditParamsEconomy) GetWidth() *int
func (*ImageEditParamsEconomy) MarshalJSON ¶
func (i *ImageEditParamsEconomy) MarshalJSON() ([]byte, error)
func (*ImageEditParamsEconomy) SetEnhancePrompt ¶
func (i *ImageEditParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsEconomy) SetHeight ¶
func (i *ImageEditParamsEconomy) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsEconomy) SetPrompt ¶
func (i *ImageEditParamsEconomy) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsEconomy) SetSeed ¶
func (i *ImageEditParamsEconomy) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsEconomy) SetWidth ¶
func (i *ImageEditParamsEconomy) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsEconomy) String ¶
func (i *ImageEditParamsEconomy) String() string
func (*ImageEditParamsEconomy) UnmarshalJSON ¶
func (i *ImageEditParamsEconomy) UnmarshalJSON(data []byte) error
type ImageEditParamsFlux2Klein4B ¶
type ImageEditParamsFlux2Klein4B struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsFlux2Klein4B) GetEnhancePrompt ¶
func (i *ImageEditParamsFlux2Klein4B) GetEnhancePrompt() *bool
func (*ImageEditParamsFlux2Klein4B) GetExtraProperties ¶
func (i *ImageEditParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsFlux2Klein4B) GetHeight ¶
func (i *ImageEditParamsFlux2Klein4B) GetHeight() *int
func (*ImageEditParamsFlux2Klein4B) GetPrompt ¶
func (i *ImageEditParamsFlux2Klein4B) GetPrompt() string
func (*ImageEditParamsFlux2Klein4B) GetSeed ¶
func (i *ImageEditParamsFlux2Klein4B) GetSeed() *int
func (*ImageEditParamsFlux2Klein4B) GetWidth ¶
func (i *ImageEditParamsFlux2Klein4B) GetWidth() *int
func (*ImageEditParamsFlux2Klein4B) MarshalJSON ¶
func (i *ImageEditParamsFlux2Klein4B) MarshalJSON() ([]byte, error)
func (*ImageEditParamsFlux2Klein4B) SetEnhancePrompt ¶
func (i *ImageEditParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsFlux2Klein4B) SetHeight ¶
func (i *ImageEditParamsFlux2Klein4B) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsFlux2Klein4B) SetPrompt ¶
func (i *ImageEditParamsFlux2Klein4B) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsFlux2Klein4B) SetSeed ¶
func (i *ImageEditParamsFlux2Klein4B) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsFlux2Klein4B) SetWidth ¶
func (i *ImageEditParamsFlux2Klein4B) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsFlux2Klein4B) String ¶
func (i *ImageEditParamsFlux2Klein4B) String() string
func (*ImageEditParamsFlux2Klein4B) UnmarshalJSON ¶
func (i *ImageEditParamsFlux2Klein4B) UnmarshalJSON(data []byte) error
type ImageEditParamsPremium ¶
type ImageEditParamsPremium struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsPremium) GetEnhancePrompt ¶
func (i *ImageEditParamsPremium) GetEnhancePrompt() *bool
func (*ImageEditParamsPremium) GetExtraProperties ¶
func (i *ImageEditParamsPremium) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsPremium) GetHeight ¶
func (i *ImageEditParamsPremium) GetHeight() *int
func (*ImageEditParamsPremium) GetPrompt ¶
func (i *ImageEditParamsPremium) GetPrompt() string
func (*ImageEditParamsPremium) GetSeed ¶
func (i *ImageEditParamsPremium) GetSeed() *int
func (*ImageEditParamsPremium) GetWidth ¶
func (i *ImageEditParamsPremium) GetWidth() *int
func (*ImageEditParamsPremium) MarshalJSON ¶
func (i *ImageEditParamsPremium) MarshalJSON() ([]byte, error)
func (*ImageEditParamsPremium) SetEnhancePrompt ¶
func (i *ImageEditParamsPremium) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsPremium) SetHeight ¶
func (i *ImageEditParamsPremium) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsPremium) SetPrompt ¶
func (i *ImageEditParamsPremium) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsPremium) SetSeed ¶
func (i *ImageEditParamsPremium) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsPremium) SetWidth ¶
func (i *ImageEditParamsPremium) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsPremium) String ¶
func (i *ImageEditParamsPremium) String() string
func (*ImageEditParamsPremium) UnmarshalJSON ¶
func (i *ImageEditParamsPremium) UnmarshalJSON(data []byte) error
type ImageEditParamsQwenImageEdit2511 ¶
type ImageEditParamsQwenImageEdit2511 struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// What to keep out of the edited image.
NegativePrompt *string `json:"negativePrompt,omitempty" url:"negativePrompt,omitempty"`
// How strictly to follow the instruction. Higher is stricter.
Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsQwenImageEdit2511) GetEnhancePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) GetEnhancePrompt() *bool
func (*ImageEditParamsQwenImageEdit2511) GetExtraProperties ¶
func (i *ImageEditParamsQwenImageEdit2511) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsQwenImageEdit2511) GetGuidance ¶
func (i *ImageEditParamsQwenImageEdit2511) GetGuidance() *float64
func (*ImageEditParamsQwenImageEdit2511) GetHeight ¶
func (i *ImageEditParamsQwenImageEdit2511) GetHeight() *int
func (*ImageEditParamsQwenImageEdit2511) GetNegativePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) GetNegativePrompt() *string
func (*ImageEditParamsQwenImageEdit2511) GetPrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) GetPrompt() string
func (*ImageEditParamsQwenImageEdit2511) GetSeed ¶
func (i *ImageEditParamsQwenImageEdit2511) GetSeed() *int
func (*ImageEditParamsQwenImageEdit2511) GetSteps ¶
func (i *ImageEditParamsQwenImageEdit2511) GetSteps() *int
func (*ImageEditParamsQwenImageEdit2511) GetWidth ¶
func (i *ImageEditParamsQwenImageEdit2511) GetWidth() *int
func (*ImageEditParamsQwenImageEdit2511) MarshalJSON ¶
func (i *ImageEditParamsQwenImageEdit2511) MarshalJSON() ([]byte, error)
func (*ImageEditParamsQwenImageEdit2511) SetEnhancePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetGuidance ¶
func (i *ImageEditParamsQwenImageEdit2511) SetGuidance(guidance *float64)
SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetHeight ¶
func (i *ImageEditParamsQwenImageEdit2511) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetNegativePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) SetNegativePrompt(negativePrompt *string)
SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetPrompt ¶
func (i *ImageEditParamsQwenImageEdit2511) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetSeed ¶
func (i *ImageEditParamsQwenImageEdit2511) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetSteps ¶
func (i *ImageEditParamsQwenImageEdit2511) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) SetWidth ¶
func (i *ImageEditParamsQwenImageEdit2511) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511) String ¶
func (i *ImageEditParamsQwenImageEdit2511) String() string
func (*ImageEditParamsQwenImageEdit2511) UnmarshalJSON ¶
func (i *ImageEditParamsQwenImageEdit2511) UnmarshalJSON(data []byte) error
type ImageEditParamsQwenImageEdit2511Lightning ¶
type ImageEditParamsQwenImageEdit2511Lightning struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsQwenImageEdit2511Lightning) GetEnhancePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetEnhancePrompt() *bool
func (*ImageEditParamsQwenImageEdit2511Lightning) GetExtraProperties ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsQwenImageEdit2511Lightning) GetHeight ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetHeight() *int
func (*ImageEditParamsQwenImageEdit2511Lightning) GetPrompt ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetPrompt() string
func (*ImageEditParamsQwenImageEdit2511Lightning) GetSeed ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetSeed() *int
func (*ImageEditParamsQwenImageEdit2511Lightning) GetSteps ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetSteps() *int
func (*ImageEditParamsQwenImageEdit2511Lightning) GetWidth ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) GetWidth() *int
func (*ImageEditParamsQwenImageEdit2511Lightning) MarshalJSON ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) MarshalJSON() ([]byte, error)
func (*ImageEditParamsQwenImageEdit2511Lightning) SetEnhancePrompt ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) SetHeight ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) SetPrompt ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) SetSeed ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) SetSteps ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) SetWidth ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsQwenImageEdit2511Lightning) String ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) String() string
func (*ImageEditParamsQwenImageEdit2511Lightning) UnmarshalJSON ¶
func (i *ImageEditParamsQwenImageEdit2511Lightning) UnmarshalJSON(data []byte) error
type ImageEditParamsStandard ¶
type ImageEditParamsStandard struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageEditParamsStandard) GetEnhancePrompt ¶
func (i *ImageEditParamsStandard) GetEnhancePrompt() *bool
func (*ImageEditParamsStandard) GetExtraProperties ¶
func (i *ImageEditParamsStandard) GetExtraProperties() map[string]interface{}
func (*ImageEditParamsStandard) GetHeight ¶
func (i *ImageEditParamsStandard) GetHeight() *int
func (*ImageEditParamsStandard) GetPrompt ¶
func (i *ImageEditParamsStandard) GetPrompt() string
func (*ImageEditParamsStandard) GetSeed ¶
func (i *ImageEditParamsStandard) GetSeed() *int
func (*ImageEditParamsStandard) GetWidth ¶
func (i *ImageEditParamsStandard) GetWidth() *int
func (*ImageEditParamsStandard) MarshalJSON ¶
func (i *ImageEditParamsStandard) MarshalJSON() ([]byte, error)
func (*ImageEditParamsStandard) SetEnhancePrompt ¶
func (i *ImageEditParamsStandard) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsStandard) SetHeight ¶
func (i *ImageEditParamsStandard) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsStandard) SetPrompt ¶
func (i *ImageEditParamsStandard) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsStandard) SetSeed ¶
func (i *ImageEditParamsStandard) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsStandard) SetWidth ¶
func (i *ImageEditParamsStandard) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageEditParamsStandard) String ¶
func (i *ImageEditParamsStandard) String() string
func (*ImageEditParamsStandard) UnmarshalJSON ¶
func (i *ImageEditParamsStandard) UnmarshalJSON(data []byte) error
type ImageEditParamsVisitor ¶
type ImageEditParamsVisitor interface {
VisitEconomy(*ImageEditParamsEconomy) error
VisitStandard(*ImageEditParamsStandard) error
VisitPremium(*ImageEditParamsPremium) error
VisitFlux2Klein4B(*ImageEditParamsFlux2Klein4B) error
VisitQwenImageEdit2511(*ImageEditParamsQwenImageEdit2511) error
VisitQwenImageEdit2511Lightning(*ImageEditParamsQwenImageEdit2511Lightning) error
}
type ImageGenerateParams ¶
type ImageGenerateParams struct {
Model string
Economy *ImageGenerateParamsEconomy
Standard *ImageGenerateParamsStandard
Premium *ImageGenerateParamsPremium
Flux2Klein4B *ImageGenerateParamsFlux2Klein4B
ErnieImageTurbo *ImageGenerateParamsErnieImageTurbo
ZImageTurbo *ImageGenerateParamsZImageTurbo
QwenImage2512 *ImageGenerateParamsQwenImage2512
QwenImage2512Lightning *ImageGenerateParamsQwenImage2512Lightning
Flux2Dev *ImageGenerateParamsFlux2Dev
// contains filtered or unexported fields
}
Params of the image.generate job.
func (*ImageGenerateParams) Accept ¶
func (i *ImageGenerateParams) Accept(visitor ImageGenerateParamsVisitor) error
func (*ImageGenerateParams) GetEconomy ¶
func (i *ImageGenerateParams) GetEconomy() *ImageGenerateParamsEconomy
func (*ImageGenerateParams) GetErnieImageTurbo ¶
func (i *ImageGenerateParams) GetErnieImageTurbo() *ImageGenerateParamsErnieImageTurbo
func (*ImageGenerateParams) GetFlux2Dev ¶
func (i *ImageGenerateParams) GetFlux2Dev() *ImageGenerateParamsFlux2Dev
func (*ImageGenerateParams) GetFlux2Klein4B ¶
func (i *ImageGenerateParams) GetFlux2Klein4B() *ImageGenerateParamsFlux2Klein4B
func (*ImageGenerateParams) GetModel ¶
func (i *ImageGenerateParams) GetModel() string
func (*ImageGenerateParams) GetPremium ¶
func (i *ImageGenerateParams) GetPremium() *ImageGenerateParamsPremium
func (*ImageGenerateParams) GetQwenImage2512 ¶
func (i *ImageGenerateParams) GetQwenImage2512() *ImageGenerateParamsQwenImage2512
func (*ImageGenerateParams) GetQwenImage2512Lightning ¶
func (i *ImageGenerateParams) GetQwenImage2512Lightning() *ImageGenerateParamsQwenImage2512Lightning
func (*ImageGenerateParams) GetStandard ¶
func (i *ImageGenerateParams) GetStandard() *ImageGenerateParamsStandard
func (*ImageGenerateParams) GetZImageTurbo ¶
func (i *ImageGenerateParams) GetZImageTurbo() *ImageGenerateParamsZImageTurbo
func (ImageGenerateParams) MarshalJSON ¶
func (i ImageGenerateParams) MarshalJSON() ([]byte, error)
func (*ImageGenerateParams) UnmarshalJSON ¶
func (i *ImageGenerateParams) UnmarshalJSON(data []byte) error
type ImageGenerateParamsEconomy ¶
type ImageGenerateParamsEconomy struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsEconomy) GetEnhancePrompt ¶
func (i *ImageGenerateParamsEconomy) GetEnhancePrompt() *bool
func (*ImageGenerateParamsEconomy) GetExtraProperties ¶
func (i *ImageGenerateParamsEconomy) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsEconomy) GetHeight ¶
func (i *ImageGenerateParamsEconomy) GetHeight() *int
func (*ImageGenerateParamsEconomy) GetPrompt ¶
func (i *ImageGenerateParamsEconomy) GetPrompt() string
func (*ImageGenerateParamsEconomy) GetSeed ¶
func (i *ImageGenerateParamsEconomy) GetSeed() *int
func (*ImageGenerateParamsEconomy) GetWidth ¶
func (i *ImageGenerateParamsEconomy) GetWidth() *int
func (*ImageGenerateParamsEconomy) MarshalJSON ¶
func (i *ImageGenerateParamsEconomy) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsEconomy) SetEnhancePrompt ¶
func (i *ImageGenerateParamsEconomy) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsEconomy) SetHeight ¶
func (i *ImageGenerateParamsEconomy) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsEconomy) SetPrompt ¶
func (i *ImageGenerateParamsEconomy) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsEconomy) SetSeed ¶
func (i *ImageGenerateParamsEconomy) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsEconomy) SetWidth ¶
func (i *ImageGenerateParamsEconomy) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsEconomy) String ¶
func (i *ImageGenerateParamsEconomy) String() string
func (*ImageGenerateParamsEconomy) UnmarshalJSON ¶
func (i *ImageGenerateParamsEconomy) UnmarshalJSON(data []byte) error
type ImageGenerateParamsErnieImageTurbo ¶
type ImageGenerateParamsErnieImageTurbo struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsErnieImageTurbo) GetEnhancePrompt ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetEnhancePrompt() *bool
func (*ImageGenerateParamsErnieImageTurbo) GetExtraProperties ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsErnieImageTurbo) GetHeight ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetHeight() *int
func (*ImageGenerateParamsErnieImageTurbo) GetPrompt ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetPrompt() string
func (*ImageGenerateParamsErnieImageTurbo) GetSeed ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetSeed() *int
func (*ImageGenerateParamsErnieImageTurbo) GetWidth ¶
func (i *ImageGenerateParamsErnieImageTurbo) GetWidth() *int
func (*ImageGenerateParamsErnieImageTurbo) MarshalJSON ¶
func (i *ImageGenerateParamsErnieImageTurbo) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsErnieImageTurbo) SetEnhancePrompt ¶
func (i *ImageGenerateParamsErnieImageTurbo) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsErnieImageTurbo) SetHeight ¶
func (i *ImageGenerateParamsErnieImageTurbo) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsErnieImageTurbo) SetPrompt ¶
func (i *ImageGenerateParamsErnieImageTurbo) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsErnieImageTurbo) SetSeed ¶
func (i *ImageGenerateParamsErnieImageTurbo) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsErnieImageTurbo) SetWidth ¶
func (i *ImageGenerateParamsErnieImageTurbo) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsErnieImageTurbo) String ¶
func (i *ImageGenerateParamsErnieImageTurbo) String() string
func (*ImageGenerateParamsErnieImageTurbo) UnmarshalJSON ¶
func (i *ImageGenerateParamsErnieImageTurbo) UnmarshalJSON(data []byte) error
type ImageGenerateParamsFlux2Dev ¶
type ImageGenerateParamsFlux2Dev struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// How strictly to follow the prompt. Higher is stricter.
Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsFlux2Dev) GetEnhancePrompt ¶
func (i *ImageGenerateParamsFlux2Dev) GetEnhancePrompt() *bool
func (*ImageGenerateParamsFlux2Dev) GetExtraProperties ¶
func (i *ImageGenerateParamsFlux2Dev) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsFlux2Dev) GetGuidance ¶
func (i *ImageGenerateParamsFlux2Dev) GetGuidance() *float64
func (*ImageGenerateParamsFlux2Dev) GetHeight ¶
func (i *ImageGenerateParamsFlux2Dev) GetHeight() *int
func (*ImageGenerateParamsFlux2Dev) GetPrompt ¶
func (i *ImageGenerateParamsFlux2Dev) GetPrompt() string
func (*ImageGenerateParamsFlux2Dev) GetSeed ¶
func (i *ImageGenerateParamsFlux2Dev) GetSeed() *int
func (*ImageGenerateParamsFlux2Dev) GetSteps ¶
func (i *ImageGenerateParamsFlux2Dev) GetSteps() *int
func (*ImageGenerateParamsFlux2Dev) GetWidth ¶
func (i *ImageGenerateParamsFlux2Dev) GetWidth() *int
func (*ImageGenerateParamsFlux2Dev) MarshalJSON ¶
func (i *ImageGenerateParamsFlux2Dev) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsFlux2Dev) SetEnhancePrompt ¶
func (i *ImageGenerateParamsFlux2Dev) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetGuidance ¶
func (i *ImageGenerateParamsFlux2Dev) SetGuidance(guidance *float64)
SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetHeight ¶
func (i *ImageGenerateParamsFlux2Dev) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetPrompt ¶
func (i *ImageGenerateParamsFlux2Dev) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetSeed ¶
func (i *ImageGenerateParamsFlux2Dev) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetSteps ¶
func (i *ImageGenerateParamsFlux2Dev) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) SetWidth ¶
func (i *ImageGenerateParamsFlux2Dev) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Dev) String ¶
func (i *ImageGenerateParamsFlux2Dev) String() string
func (*ImageGenerateParamsFlux2Dev) UnmarshalJSON ¶
func (i *ImageGenerateParamsFlux2Dev) UnmarshalJSON(data []byte) error
type ImageGenerateParamsFlux2Klein4B ¶
type ImageGenerateParamsFlux2Klein4B struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsFlux2Klein4B) GetEnhancePrompt ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetEnhancePrompt() *bool
func (*ImageGenerateParamsFlux2Klein4B) GetExtraProperties ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsFlux2Klein4B) GetHeight ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetHeight() *int
func (*ImageGenerateParamsFlux2Klein4B) GetPrompt ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetPrompt() string
func (*ImageGenerateParamsFlux2Klein4B) GetSeed ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetSeed() *int
func (*ImageGenerateParamsFlux2Klein4B) GetWidth ¶
func (i *ImageGenerateParamsFlux2Klein4B) GetWidth() *int
func (*ImageGenerateParamsFlux2Klein4B) MarshalJSON ¶
func (i *ImageGenerateParamsFlux2Klein4B) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsFlux2Klein4B) SetEnhancePrompt ¶
func (i *ImageGenerateParamsFlux2Klein4B) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Klein4B) SetHeight ¶
func (i *ImageGenerateParamsFlux2Klein4B) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Klein4B) SetPrompt ¶
func (i *ImageGenerateParamsFlux2Klein4B) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Klein4B) SetSeed ¶
func (i *ImageGenerateParamsFlux2Klein4B) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Klein4B) SetWidth ¶
func (i *ImageGenerateParamsFlux2Klein4B) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsFlux2Klein4B) String ¶
func (i *ImageGenerateParamsFlux2Klein4B) String() string
func (*ImageGenerateParamsFlux2Klein4B) UnmarshalJSON ¶
func (i *ImageGenerateParamsFlux2Klein4B) UnmarshalJSON(data []byte) error
type ImageGenerateParamsPremium ¶
type ImageGenerateParamsPremium struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsPremium) GetEnhancePrompt ¶
func (i *ImageGenerateParamsPremium) GetEnhancePrompt() *bool
func (*ImageGenerateParamsPremium) GetExtraProperties ¶
func (i *ImageGenerateParamsPremium) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsPremium) GetHeight ¶
func (i *ImageGenerateParamsPremium) GetHeight() *int
func (*ImageGenerateParamsPremium) GetPrompt ¶
func (i *ImageGenerateParamsPremium) GetPrompt() string
func (*ImageGenerateParamsPremium) GetSeed ¶
func (i *ImageGenerateParamsPremium) GetSeed() *int
func (*ImageGenerateParamsPremium) GetWidth ¶
func (i *ImageGenerateParamsPremium) GetWidth() *int
func (*ImageGenerateParamsPremium) MarshalJSON ¶
func (i *ImageGenerateParamsPremium) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsPremium) SetEnhancePrompt ¶
func (i *ImageGenerateParamsPremium) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsPremium) SetHeight ¶
func (i *ImageGenerateParamsPremium) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsPremium) SetPrompt ¶
func (i *ImageGenerateParamsPremium) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsPremium) SetSeed ¶
func (i *ImageGenerateParamsPremium) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsPremium) SetWidth ¶
func (i *ImageGenerateParamsPremium) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsPremium) String ¶
func (i *ImageGenerateParamsPremium) String() string
func (*ImageGenerateParamsPremium) UnmarshalJSON ¶
func (i *ImageGenerateParamsPremium) UnmarshalJSON(data []byte) error
type ImageGenerateParamsQwenImage2512 ¶
type ImageGenerateParamsQwenImage2512 struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// What to keep out of the image.
NegativePrompt *string `json:"negativePrompt,omitempty" url:"negativePrompt,omitempty"`
// How strictly to follow the prompt. Higher is stricter.
Guidance *float64 `json:"guidance,omitempty" url:"guidance,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsQwenImage2512) GetEnhancePrompt ¶
func (i *ImageGenerateParamsQwenImage2512) GetEnhancePrompt() *bool
func (*ImageGenerateParamsQwenImage2512) GetExtraProperties ¶
func (i *ImageGenerateParamsQwenImage2512) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsQwenImage2512) GetGuidance ¶
func (i *ImageGenerateParamsQwenImage2512) GetGuidance() *float64
func (*ImageGenerateParamsQwenImage2512) GetHeight ¶
func (i *ImageGenerateParamsQwenImage2512) GetHeight() *int
func (*ImageGenerateParamsQwenImage2512) GetNegativePrompt ¶
func (i *ImageGenerateParamsQwenImage2512) GetNegativePrompt() *string
func (*ImageGenerateParamsQwenImage2512) GetPrompt ¶
func (i *ImageGenerateParamsQwenImage2512) GetPrompt() string
func (*ImageGenerateParamsQwenImage2512) GetSeed ¶
func (i *ImageGenerateParamsQwenImage2512) GetSeed() *int
func (*ImageGenerateParamsQwenImage2512) GetSteps ¶
func (i *ImageGenerateParamsQwenImage2512) GetSteps() *int
func (*ImageGenerateParamsQwenImage2512) GetWidth ¶
func (i *ImageGenerateParamsQwenImage2512) GetWidth() *int
func (*ImageGenerateParamsQwenImage2512) MarshalJSON ¶
func (i *ImageGenerateParamsQwenImage2512) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsQwenImage2512) SetEnhancePrompt ¶
func (i *ImageGenerateParamsQwenImage2512) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetGuidance ¶
func (i *ImageGenerateParamsQwenImage2512) SetGuidance(guidance *float64)
SetGuidance sets the Guidance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetHeight ¶
func (i *ImageGenerateParamsQwenImage2512) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetNegativePrompt ¶
func (i *ImageGenerateParamsQwenImage2512) SetNegativePrompt(negativePrompt *string)
SetNegativePrompt sets the NegativePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetPrompt ¶
func (i *ImageGenerateParamsQwenImage2512) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetSeed ¶
func (i *ImageGenerateParamsQwenImage2512) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetSteps ¶
func (i *ImageGenerateParamsQwenImage2512) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) SetWidth ¶
func (i *ImageGenerateParamsQwenImage2512) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512) String ¶
func (i *ImageGenerateParamsQwenImage2512) String() string
func (*ImageGenerateParamsQwenImage2512) UnmarshalJSON ¶
func (i *ImageGenerateParamsQwenImage2512) UnmarshalJSON(data []byte) error
type ImageGenerateParamsQwenImage2512Lightning ¶
type ImageGenerateParamsQwenImage2512Lightning struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsQwenImage2512Lightning) GetEnhancePrompt ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetEnhancePrompt() *bool
func (*ImageGenerateParamsQwenImage2512Lightning) GetExtraProperties ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsQwenImage2512Lightning) GetHeight ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetHeight() *int
func (*ImageGenerateParamsQwenImage2512Lightning) GetPrompt ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetPrompt() string
func (*ImageGenerateParamsQwenImage2512Lightning) GetSeed ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetSeed() *int
func (*ImageGenerateParamsQwenImage2512Lightning) GetSteps ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetSteps() *int
func (*ImageGenerateParamsQwenImage2512Lightning) GetWidth ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) GetWidth() *int
func (*ImageGenerateParamsQwenImage2512Lightning) MarshalJSON ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsQwenImage2512Lightning) SetEnhancePrompt ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) SetHeight ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) SetPrompt ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) SetSeed ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) SetSteps ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) SetWidth ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsQwenImage2512Lightning) String ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) String() string
func (*ImageGenerateParamsQwenImage2512Lightning) UnmarshalJSON ¶
func (i *ImageGenerateParamsQwenImage2512Lightning) UnmarshalJSON(data []byte) error
type ImageGenerateParamsStandard ¶
type ImageGenerateParamsStandard struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsStandard) GetEnhancePrompt ¶
func (i *ImageGenerateParamsStandard) GetEnhancePrompt() *bool
func (*ImageGenerateParamsStandard) GetExtraProperties ¶
func (i *ImageGenerateParamsStandard) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsStandard) GetHeight ¶
func (i *ImageGenerateParamsStandard) GetHeight() *int
func (*ImageGenerateParamsStandard) GetPrompt ¶
func (i *ImageGenerateParamsStandard) GetPrompt() string
func (*ImageGenerateParamsStandard) GetSeed ¶
func (i *ImageGenerateParamsStandard) GetSeed() *int
func (*ImageGenerateParamsStandard) GetWidth ¶
func (i *ImageGenerateParamsStandard) GetWidth() *int
func (*ImageGenerateParamsStandard) MarshalJSON ¶
func (i *ImageGenerateParamsStandard) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsStandard) SetEnhancePrompt ¶
func (i *ImageGenerateParamsStandard) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsStandard) SetHeight ¶
func (i *ImageGenerateParamsStandard) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsStandard) SetPrompt ¶
func (i *ImageGenerateParamsStandard) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsStandard) SetSeed ¶
func (i *ImageGenerateParamsStandard) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsStandard) SetWidth ¶
func (i *ImageGenerateParamsStandard) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsStandard) String ¶
func (i *ImageGenerateParamsStandard) String() string
func (*ImageGenerateParamsStandard) UnmarshalJSON ¶
func (i *ImageGenerateParamsStandard) UnmarshalJSON(data []byte) error
type ImageGenerateParamsVisitor ¶
type ImageGenerateParamsVisitor interface {
VisitEconomy(*ImageGenerateParamsEconomy) error
VisitStandard(*ImageGenerateParamsStandard) error
VisitPremium(*ImageGenerateParamsPremium) error
VisitFlux2Klein4B(*ImageGenerateParamsFlux2Klein4B) error
VisitErnieImageTurbo(*ImageGenerateParamsErnieImageTurbo) error
VisitZImageTurbo(*ImageGenerateParamsZImageTurbo) error
VisitQwenImage2512(*ImageGenerateParamsQwenImage2512) error
VisitQwenImage2512Lightning(*ImageGenerateParamsQwenImage2512Lightning) error
VisitFlux2Dev(*ImageGenerateParamsFlux2Dev) error
}
type ImageGenerateParamsZImageTurbo ¶
type ImageGenerateParamsZImageTurbo struct {
// What you want. For image.edit, describe the change to make. Plain language, no special syntax.
Prompt string `json:"prompt" url:"prompt"`
// Requested output width in pixels. Snapped to what the model can render.
Width *int `json:"width,omitempty" url:"width,omitempty"`
// Requested output height in pixels. Snapped to what the model can render.
Height *int `json:"height,omitempty" url:"height,omitempty"`
// Fixed seed for a reproducible result. The seed used is echoed back.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Rewrite the prompt for the model before generating. Defaults per model; omit to keep the model's default.
EnhancePrompt *bool `json:"enhancePrompt,omitempty" url:"enhancePrompt,omitempty"`
// Denoise steps. More steps means more detail and more time.
Steps *int `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*ImageGenerateParamsZImageTurbo) GetEnhancePrompt ¶
func (i *ImageGenerateParamsZImageTurbo) GetEnhancePrompt() *bool
func (*ImageGenerateParamsZImageTurbo) GetExtraProperties ¶
func (i *ImageGenerateParamsZImageTurbo) GetExtraProperties() map[string]interface{}
func (*ImageGenerateParamsZImageTurbo) GetHeight ¶
func (i *ImageGenerateParamsZImageTurbo) GetHeight() *int
func (*ImageGenerateParamsZImageTurbo) GetPrompt ¶
func (i *ImageGenerateParamsZImageTurbo) GetPrompt() string
func (*ImageGenerateParamsZImageTurbo) GetSeed ¶
func (i *ImageGenerateParamsZImageTurbo) GetSeed() *int
func (*ImageGenerateParamsZImageTurbo) GetSteps ¶
func (i *ImageGenerateParamsZImageTurbo) GetSteps() *int
func (*ImageGenerateParamsZImageTurbo) GetWidth ¶
func (i *ImageGenerateParamsZImageTurbo) GetWidth() *int
func (*ImageGenerateParamsZImageTurbo) MarshalJSON ¶
func (i *ImageGenerateParamsZImageTurbo) MarshalJSON() ([]byte, error)
func (*ImageGenerateParamsZImageTurbo) SetEnhancePrompt ¶
func (i *ImageGenerateParamsZImageTurbo) SetEnhancePrompt(enhancePrompt *bool)
SetEnhancePrompt sets the EnhancePrompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) SetHeight ¶
func (i *ImageGenerateParamsZImageTurbo) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) SetPrompt ¶
func (i *ImageGenerateParamsZImageTurbo) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) SetSeed ¶
func (i *ImageGenerateParamsZImageTurbo) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) SetSteps ¶
func (i *ImageGenerateParamsZImageTurbo) SetSteps(steps *int)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) SetWidth ¶
func (i *ImageGenerateParamsZImageTurbo) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageGenerateParamsZImageTurbo) String ¶
func (i *ImageGenerateParamsZImageTurbo) String() string
func (*ImageGenerateParamsZImageTurbo) UnmarshalJSON ¶
func (i *ImageGenerateParamsZImageTurbo) UnmarshalJSON(data []byte) error
type ImageUpscaleParams ¶
type ImageUpscaleParams struct {
// Which restoration model to run. seedvr2-3b is the default and the one most people prefer; seedvr2-7b is the larger checkpoint, offered as an option rather than an upgrade.
Model *ImageUpscaleParamsModel `json:"model,omitempty" url:"model,omitempty"`
// How large the output should be. Defaults to twice the source. Default: {"mode":"factor","factor":2}.
Sizing *ImageUpscaleParamsSizing `json:"sizing,omitempty" url:"sizing,omitempty"`
// Artifact reduction, 0 to 1. Higher is smoother and reconstructs less. 0.1 to 0.3 is the useful band.
InputNoise *float64 `json:"inputNoise,omitempty" url:"inputNoise,omitempty"`
// Shrink the source before upscaling, 0.25 to 1. Below 1 gives the model less to preserve and more to rebuild. Lower it for a clean uncompressed source; leave it at 1 for anything saved as a JPEG, where the rebuild follows the compression artifacts instead of the subject.
InputScale *float64 `json:"inputScale,omitempty" url:"inputScale,omitempty"`
// Softens excessive detail, 0 to 1. Reach for it when a result looks overcooked rather than soft. 0.05 to 0.15 is the useful band. Defaults to off.
LatentNoise *float64 `json:"latentNoise,omitempty" url:"latentNoise,omitempty"`
// How colour is matched back to the source. lab is the default and the most faithful. The others exist for sources where it shifts colour.
ColorCorrection *ImageUpscaleParamsColorCorrection `json:"colorCorrection,omitempty" url:"colorCorrection,omitempty"`
// Fixed at 42 unless you set one. This model reconstructs detail rather than copying it, so a different seed is a different plausible result. Change it to reroll, keep it to reproduce.
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// Run the model repeatedly, each pass covering an equal share of the total scale factor. Leave it unset and the number of passes follows the factor, keeping every step near a doubling, which is where this model does its best work. Set it explicitly to override. Costs one full render per pass.
Passes *int `json:"passes,omitempty" url:"passes,omitempty"`
// contains filtered or unexported fields
}
Params of the image.upscale job.
func (*ImageUpscaleParams) GetColorCorrection ¶
func (i *ImageUpscaleParams) GetColorCorrection() *ImageUpscaleParamsColorCorrection
func (*ImageUpscaleParams) GetExtraProperties ¶
func (i *ImageUpscaleParams) GetExtraProperties() map[string]interface{}
func (*ImageUpscaleParams) GetInputNoise ¶
func (i *ImageUpscaleParams) GetInputNoise() *float64
func (*ImageUpscaleParams) GetInputScale ¶
func (i *ImageUpscaleParams) GetInputScale() *float64
func (*ImageUpscaleParams) GetLatentNoise ¶
func (i *ImageUpscaleParams) GetLatentNoise() *float64
func (*ImageUpscaleParams) GetModel ¶
func (i *ImageUpscaleParams) GetModel() *ImageUpscaleParamsModel
func (*ImageUpscaleParams) GetPasses ¶
func (i *ImageUpscaleParams) GetPasses() *int
func (*ImageUpscaleParams) GetSeed ¶
func (i *ImageUpscaleParams) GetSeed() *int
func (*ImageUpscaleParams) GetSizing ¶
func (i *ImageUpscaleParams) GetSizing() *ImageUpscaleParamsSizing
func (*ImageUpscaleParams) MarshalJSON ¶
func (i *ImageUpscaleParams) MarshalJSON() ([]byte, error)
func (*ImageUpscaleParams) SetColorCorrection ¶
func (i *ImageUpscaleParams) SetColorCorrection(colorCorrection *ImageUpscaleParamsColorCorrection)
SetColorCorrection sets the ColorCorrection field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetInputNoise ¶
func (i *ImageUpscaleParams) SetInputNoise(inputNoise *float64)
SetInputNoise sets the InputNoise field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetInputScale ¶
func (i *ImageUpscaleParams) SetInputScale(inputScale *float64)
SetInputScale sets the InputScale field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetLatentNoise ¶
func (i *ImageUpscaleParams) SetLatentNoise(latentNoise *float64)
SetLatentNoise sets the LatentNoise field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetModel ¶
func (i *ImageUpscaleParams) SetModel(model *ImageUpscaleParamsModel)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetPasses ¶
func (i *ImageUpscaleParams) SetPasses(passes *int)
SetPasses sets the Passes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetSeed ¶
func (i *ImageUpscaleParams) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) SetSizing ¶
func (i *ImageUpscaleParams) SetSizing(sizing *ImageUpscaleParamsSizing)
SetSizing sets the Sizing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParams) String ¶
func (i *ImageUpscaleParams) String() string
func (*ImageUpscaleParams) UnmarshalJSON ¶
func (i *ImageUpscaleParams) UnmarshalJSON(data []byte) error
type ImageUpscaleParamsColorCorrection ¶
type ImageUpscaleParamsColorCorrection string
How colour is matched back to the source. lab is the default and the most faithful. The others exist for sources where it shifts colour.
const ( ImageUpscaleParamsColorCorrectionLab ImageUpscaleParamsColorCorrection = "lab" ImageUpscaleParamsColorCorrectionWavelet ImageUpscaleParamsColorCorrection = "wavelet" ImageUpscaleParamsColorCorrectionWaveletAdaptive ImageUpscaleParamsColorCorrection = "wavelet_adaptive" ImageUpscaleParamsColorCorrectionHsv ImageUpscaleParamsColorCorrection = "hsv" ImageUpscaleParamsColorCorrectionAdain ImageUpscaleParamsColorCorrection = "adain" ImageUpscaleParamsColorCorrectionNone ImageUpscaleParamsColorCorrection = "none" )
func NewImageUpscaleParamsColorCorrectionFromString ¶
func NewImageUpscaleParamsColorCorrectionFromString(s string) (ImageUpscaleParamsColorCorrection, error)
func (ImageUpscaleParamsColorCorrection) Ptr ¶
func (i ImageUpscaleParamsColorCorrection) Ptr() *ImageUpscaleParamsColorCorrection
type ImageUpscaleParamsModel ¶
type ImageUpscaleParamsModel string
Which restoration model to run. seedvr2-3b is the default and the one most people prefer; seedvr2-7b is the larger checkpoint, offered as an option rather than an upgrade.
const ( ImageUpscaleParamsModelSeedvr23B ImageUpscaleParamsModel = "seedvr2-3b" ImageUpscaleParamsModelSeedvr27B ImageUpscaleParamsModel = "seedvr2-7b" )
func NewImageUpscaleParamsModelFromString ¶
func NewImageUpscaleParamsModelFromString(s string) (ImageUpscaleParamsModel, error)
func (ImageUpscaleParamsModel) Ptr ¶
func (i ImageUpscaleParamsModel) Ptr() *ImageUpscaleParamsModel
type ImageUpscaleParamsSizing ¶
type ImageUpscaleParamsSizing struct {
Mode string
Factor *ImageUpscaleParamsSizingFactor
Height *ImageUpscaleParamsSizingHeight
// contains filtered or unexported fields
}
How large the output should be. Defaults to twice the source. Default: {"mode":"factor","factor":2}.
func (*ImageUpscaleParamsSizing) Accept ¶
func (i *ImageUpscaleParamsSizing) Accept(visitor ImageUpscaleParamsSizingVisitor) error
func (*ImageUpscaleParamsSizing) GetFactor ¶
func (i *ImageUpscaleParamsSizing) GetFactor() *ImageUpscaleParamsSizingFactor
func (*ImageUpscaleParamsSizing) GetHeight ¶
func (i *ImageUpscaleParamsSizing) GetHeight() *ImageUpscaleParamsSizingHeight
func (*ImageUpscaleParamsSizing) GetMode ¶
func (i *ImageUpscaleParamsSizing) GetMode() string
func (ImageUpscaleParamsSizing) MarshalJSON ¶
func (i ImageUpscaleParamsSizing) MarshalJSON() ([]byte, error)
func (*ImageUpscaleParamsSizing) UnmarshalJSON ¶
func (i *ImageUpscaleParamsSizing) UnmarshalJSON(data []byte) error
type ImageUpscaleParamsSizingFactor ¶
type ImageUpscaleParamsSizingFactor struct {
// How many times larger to make the image, for example 2 or 4.
Factor float64 `json:"factor" url:"factor"`
// contains filtered or unexported fields
}
func (*ImageUpscaleParamsSizingFactor) GetExtraProperties ¶
func (i *ImageUpscaleParamsSizingFactor) GetExtraProperties() map[string]interface{}
func (*ImageUpscaleParamsSizingFactor) GetFactor ¶
func (i *ImageUpscaleParamsSizingFactor) GetFactor() float64
func (*ImageUpscaleParamsSizingFactor) MarshalJSON ¶
func (i *ImageUpscaleParamsSizingFactor) MarshalJSON() ([]byte, error)
func (*ImageUpscaleParamsSizingFactor) SetFactor ¶
func (i *ImageUpscaleParamsSizingFactor) SetFactor(factor float64)
SetFactor sets the Factor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParamsSizingFactor) String ¶
func (i *ImageUpscaleParamsSizingFactor) String() string
func (*ImageUpscaleParamsSizingFactor) UnmarshalJSON ¶
func (i *ImageUpscaleParamsSizingFactor) UnmarshalJSON(data []byte) error
type ImageUpscaleParamsSizingHeight ¶
type ImageUpscaleParamsSizingHeight struct {
// Target output height in pixels. Width follows the source aspect ratio.
Height int `json:"height" url:"height"`
// contains filtered or unexported fields
}
func (*ImageUpscaleParamsSizingHeight) GetExtraProperties ¶
func (i *ImageUpscaleParamsSizingHeight) GetExtraProperties() map[string]interface{}
func (*ImageUpscaleParamsSizingHeight) GetHeight ¶
func (i *ImageUpscaleParamsSizingHeight) GetHeight() int
func (*ImageUpscaleParamsSizingHeight) MarshalJSON ¶
func (i *ImageUpscaleParamsSizingHeight) MarshalJSON() ([]byte, error)
func (*ImageUpscaleParamsSizingHeight) SetHeight ¶
func (i *ImageUpscaleParamsSizingHeight) SetHeight(height int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ImageUpscaleParamsSizingHeight) String ¶
func (i *ImageUpscaleParamsSizingHeight) String() string
func (*ImageUpscaleParamsSizingHeight) UnmarshalJSON ¶
func (i *ImageUpscaleParamsSizingHeight) UnmarshalJSON(data []byte) error
type ImageUpscaleParamsSizingVisitor ¶
type ImageUpscaleParamsSizingVisitor interface {
VisitFactor(*ImageUpscaleParamsSizingFactor) error
VisitHeight(*ImageUpscaleParamsSizingHeight) error
}
type InternalServerError ¶
type InternalServerError struct {
*core.APIError
Body *ErrorResponse
}
Plan not configured or checkout creation failed
func (*InternalServerError) GetBody ¶
func (i *InternalServerError) GetBody() *ErrorResponse
func (*InternalServerError) MarshalJSON ¶
func (i *InternalServerError) MarshalJSON() ([]byte, error)
func (*InternalServerError) UnmarshalJSON ¶
func (i *InternalServerError) UnmarshalJSON(data []byte) error
func (*InternalServerError) Unwrap ¶
func (i *InternalServerError) Unwrap() error
type Job ¶
type Job struct {
Status string
Waiting *JobWaiting
Dispatched *JobDispatched
Running *JobRunning
Complete *JobComplete
Failed *JobFailed
Cancelled *JobCancelled
// contains filtered or unexported fields
}
func (*Job) Accept ¶
func (j *Job) Accept(visitor JobVisitor) error
func (*Job) GetCancelled ¶
func (j *Job) GetCancelled() *JobCancelled
func (*Job) GetComplete ¶
func (j *Job) GetComplete() *JobComplete
func (*Job) GetDispatched ¶
func (j *Job) GetDispatched() *JobDispatched
func (*Job) GetRunning ¶
func (j *Job) GetRunning() *JobRunning
func (*Job) GetWaiting ¶
func (j *Job) GetWaiting() *JobWaiting
func (Job) MarshalJSON ¶
func (*Job) UnmarshalJSON ¶
type JobCancelled ¶
type JobCancelled struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobCancelledOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
// contains filtered or unexported fields
}
func (*JobCancelled) GetCallback ¶
func (j *JobCancelled) GetCallback() *CallbackStatus
func (*JobCancelled) GetClient ¶
func (j *JobCancelled) GetClient() *string
func (*JobCancelled) GetCompletedAt ¶
func (j *JobCancelled) GetCompletedAt() *int
func (*JobCancelled) GetCost ¶
func (j *JobCancelled) GetCost() *JobCost
func (*JobCancelled) GetCreatedAt ¶
func (j *JobCancelled) GetCreatedAt() int
func (*JobCancelled) GetDeliveries ¶
func (j *JobCancelled) GetDeliveries() []*JobDelivery
func (*JobCancelled) GetDispatchedAt ¶
func (j *JobCancelled) GetDispatchedAt() *int
func (*JobCancelled) GetExtraProperties ¶
func (j *JobCancelled) GetExtraProperties() map[string]interface{}
func (*JobCancelled) GetID ¶
func (j *JobCancelled) GetID() string
func (*JobCancelled) GetIdempotencyKey ¶
func (j *JobCancelled) GetIdempotencyKey() *string
func (*JobCancelled) GetInputs ¶
func (j *JobCancelled) GetInputs() map[string]any
func (*JobCancelled) GetLabel ¶
func (j *JobCancelled) GetLabel() *string
func (*JobCancelled) GetLogsAvailable ¶
func (j *JobCancelled) GetLogsAvailable() bool
func (*JobCancelled) GetMediaType ¶
func (j *JobCancelled) GetMediaType() *string
func (*JobCancelled) GetMetricsAvailable ¶
func (j *JobCancelled) GetMetricsAvailable() *bool
func (*JobCancelled) GetModel ¶
func (j *JobCancelled) GetModel() *string
func (*JobCancelled) GetOrgID ¶
func (j *JobCancelled) GetOrgID() string
func (*JobCancelled) GetOutputCategory ¶
func (j *JobCancelled) GetOutputCategory() JobCancelledOutputCategory
func (*JobCancelled) GetParams ¶
func (j *JobCancelled) GetParams() map[string]any
func (*JobCancelled) GetRegion ¶
func (j *JobCancelled) GetRegion() *string
func (*JobCancelled) GetResourcesAvailable ¶
func (j *JobCancelled) GetResourcesAvailable() bool
func (*JobCancelled) GetRetentionExpiresAt ¶
func (j *JobCancelled) GetRetentionExpiresAt() *int
func (*JobCancelled) GetRetryCount ¶
func (j *JobCancelled) GetRetryCount() int
func (*JobCancelled) GetSettledAt ¶
func (j *JobCancelled) GetSettledAt() *int
func (*JobCancelled) GetSource ¶
func (j *JobCancelled) GetSource() string
func (*JobCancelled) GetStartedAt ¶
func (j *JobCancelled) GetStartedAt() *int
func (*JobCancelled) GetSteps ¶
func (j *JobCancelled) GetSteps() []*JobStep
func (*JobCancelled) GetTerminal ¶
func (j *JobCancelled) GetTerminal() bool
func (*JobCancelled) GetTimeoutMs ¶
func (j *JobCancelled) GetTimeoutMs() *int
func (*JobCancelled) GetType ¶
func (j *JobCancelled) GetType() string
func (*JobCancelled) GetWebURL ¶
func (j *JobCancelled) GetWebURL() string
func (*JobCancelled) MarshalJSON ¶
func (j *JobCancelled) MarshalJSON() ([]byte, error)
func (*JobCancelled) SetCallback ¶
func (j *JobCancelled) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetClient ¶
func (j *JobCancelled) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetCompletedAt ¶
func (j *JobCancelled) SetCompletedAt(completedAt *int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetCost ¶
func (j *JobCancelled) SetCost(cost *JobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetCreatedAt ¶
func (j *JobCancelled) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetDeliveries ¶
func (j *JobCancelled) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetDispatchedAt ¶
func (j *JobCancelled) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetID ¶
func (j *JobCancelled) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetIdempotencyKey ¶
func (j *JobCancelled) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetInputs ¶
func (j *JobCancelled) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetLabel ¶
func (j *JobCancelled) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetLogsAvailable ¶
func (j *JobCancelled) SetLogsAvailable(logsAvailable bool)
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetMediaType ¶
func (j *JobCancelled) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetMetricsAvailable ¶
func (j *JobCancelled) SetMetricsAvailable(metricsAvailable *bool)
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetModel ¶
func (j *JobCancelled) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetOrgID ¶
func (j *JobCancelled) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetOutputCategory ¶
func (j *JobCancelled) SetOutputCategory(outputCategory JobCancelledOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetParams ¶
func (j *JobCancelled) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetRegion ¶
func (j *JobCancelled) SetRegion(region *string)
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetResourcesAvailable ¶
func (j *JobCancelled) SetResourcesAvailable(resourcesAvailable bool)
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetRetentionExpiresAt ¶
func (j *JobCancelled) SetRetentionExpiresAt(retentionExpiresAt *int)
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetRetryCount ¶
func (j *JobCancelled) SetRetryCount(retryCount int)
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetSettledAt ¶
func (j *JobCancelled) SetSettledAt(settledAt *int)
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetSource ¶
func (j *JobCancelled) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetStartedAt ¶
func (j *JobCancelled) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetSteps ¶
func (j *JobCancelled) SetSteps(steps []*JobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetTerminal ¶
func (j *JobCancelled) SetTerminal(terminal bool)
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetTimeoutMs ¶
func (j *JobCancelled) SetTimeoutMs(timeoutMs *int)
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetType ¶
func (j *JobCancelled) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) SetWebURL ¶
func (j *JobCancelled) SetWebURL(webURL string)
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelled) String ¶
func (j *JobCancelled) String() string
func (*JobCancelled) UnmarshalJSON ¶
func (j *JobCancelled) UnmarshalJSON(data []byte) error
type JobCancelledData ¶
type JobCancelledData struct {
JobID string `json:"jobId" url:"jobId"`
JobType string `json:"jobType" url:"jobType"`
Status JobCancelledDataStatus `json:"status" url:"status"`
Timing *JobCancelledDataTiming `json:"timing" url:"timing"`
// contains filtered or unexported fields
}
func (*JobCancelledData) GetExtraProperties ¶
func (j *JobCancelledData) GetExtraProperties() map[string]interface{}
func (*JobCancelledData) GetJobID ¶
func (j *JobCancelledData) GetJobID() string
func (*JobCancelledData) GetJobType ¶
func (j *JobCancelledData) GetJobType() string
func (*JobCancelledData) GetStatus ¶
func (j *JobCancelledData) GetStatus() JobCancelledDataStatus
func (*JobCancelledData) GetTiming ¶
func (j *JobCancelledData) GetTiming() *JobCancelledDataTiming
func (*JobCancelledData) MarshalJSON ¶
func (j *JobCancelledData) MarshalJSON() ([]byte, error)
func (*JobCancelledData) SetJobID ¶
func (j *JobCancelledData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledData) SetJobType ¶
func (j *JobCancelledData) SetJobType(jobType string)
SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledData) SetStatus ¶
func (j *JobCancelledData) SetStatus(status JobCancelledDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledData) SetTiming ¶
func (j *JobCancelledData) SetTiming(timing *JobCancelledDataTiming)
SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledData) String ¶
func (j *JobCancelledData) String() string
func (*JobCancelledData) UnmarshalJSON ¶
func (j *JobCancelledData) UnmarshalJSON(data []byte) error
type JobCancelledDataStatus ¶
type JobCancelledDataStatus string
const (
JobCancelledDataStatusCancelled JobCancelledDataStatus = "cancelled"
)
func NewJobCancelledDataStatusFromString ¶
func NewJobCancelledDataStatusFromString(s string) (JobCancelledDataStatus, error)
func (JobCancelledDataStatus) Ptr ¶
func (j JobCancelledDataStatus) Ptr() *JobCancelledDataStatus
type JobCancelledDataTiming ¶
type JobCancelledDataTiming struct {
CreatedAt int `json:"createdAt" url:"createdAt"`
CancelledAt int `json:"cancelledAt" url:"cancelledAt"`
// contains filtered or unexported fields
}
func (*JobCancelledDataTiming) GetCancelledAt ¶
func (j *JobCancelledDataTiming) GetCancelledAt() int
func (*JobCancelledDataTiming) GetCreatedAt ¶
func (j *JobCancelledDataTiming) GetCreatedAt() int
func (*JobCancelledDataTiming) GetExtraProperties ¶
func (j *JobCancelledDataTiming) GetExtraProperties() map[string]interface{}
func (*JobCancelledDataTiming) MarshalJSON ¶
func (j *JobCancelledDataTiming) MarshalJSON() ([]byte, error)
func (*JobCancelledDataTiming) SetCancelledAt ¶
func (j *JobCancelledDataTiming) SetCancelledAt(cancelledAt int)
SetCancelledAt sets the CancelledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledDataTiming) SetCreatedAt ¶
func (j *JobCancelledDataTiming) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledDataTiming) String ¶
func (j *JobCancelledDataTiming) String() string
func (*JobCancelledDataTiming) UnmarshalJSON ¶
func (j *JobCancelledDataTiming) UnmarshalJSON(data []byte) error
type JobCancelledOutputCategory ¶
type JobCancelledOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobCancelledOutputCategoryVideo JobCancelledOutputCategory = "video" JobCancelledOutputCategoryImage JobCancelledOutputCategory = "image" JobCancelledOutputCategoryAudio JobCancelledOutputCategory = "audio" JobCancelledOutputCategoryJSON JobCancelledOutputCategory = "json" JobCancelledOutputCategoryCaptions JobCancelledOutputCategory = "captions" JobCancelledOutputCategoryRaw JobCancelledOutputCategory = "raw" )
func NewJobCancelledOutputCategoryFromString ¶
func NewJobCancelledOutputCategoryFromString(s string) (JobCancelledOutputCategory, error)
func (JobCancelledOutputCategory) Ptr ¶
func (j JobCancelledOutputCategory) Ptr() *JobCancelledOutputCategory
type JobCancelledWebhookEvent ¶
type JobCancelledWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobCancelledWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobCancelledData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobCancelledWebhookEvent) GetData ¶
func (j *JobCancelledWebhookEvent) GetData() *JobCancelledData
func (*JobCancelledWebhookEvent) GetDeliveryID ¶
func (j *JobCancelledWebhookEvent) GetDeliveryID() string
func (*JobCancelledWebhookEvent) GetExtraProperties ¶
func (j *JobCancelledWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobCancelledWebhookEvent) GetOrgID ¶
func (j *JobCancelledWebhookEvent) GetOrgID() string
func (*JobCancelledWebhookEvent) GetTimestamp ¶
func (j *JobCancelledWebhookEvent) GetTimestamp() int
func (*JobCancelledWebhookEvent) GetVersion ¶
func (j *JobCancelledWebhookEvent) GetVersion() JobCancelledWebhookEventVersion
func (*JobCancelledWebhookEvent) MarshalJSON ¶
func (j *JobCancelledWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobCancelledWebhookEvent) SetData ¶
func (j *JobCancelledWebhookEvent) SetData(data *JobCancelledData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledWebhookEvent) SetDeliveryID ¶
func (j *JobCancelledWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledWebhookEvent) SetOrgID ¶
func (j *JobCancelledWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledWebhookEvent) SetTimestamp ¶
func (j *JobCancelledWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledWebhookEvent) SetVersion ¶
func (j *JobCancelledWebhookEvent) SetVersion(version JobCancelledWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCancelledWebhookEvent) String ¶
func (j *JobCancelledWebhookEvent) String() string
func (*JobCancelledWebhookEvent) UnmarshalJSON ¶
func (j *JobCancelledWebhookEvent) UnmarshalJSON(data []byte) error
type JobCancelledWebhookEventVersion ¶
type JobCancelledWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobCancelledWebhookEventVersionV1 JobCancelledWebhookEventVersion = "1"
)
func NewJobCancelledWebhookEventVersionFromString ¶
func NewJobCancelledWebhookEventVersionFromString(s string) (JobCancelledWebhookEventVersion, error)
func (JobCancelledWebhookEventVersion) Ptr ¶
func (j JobCancelledWebhookEventVersion) Ptr() *JobCancelledWebhookEventVersion
type JobComplete ¶
type JobComplete struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobCompleteOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
Output *JobOutput `json:"output" url:"output"`
// contains filtered or unexported fields
}
func (*JobComplete) GetCallback ¶
func (j *JobComplete) GetCallback() *CallbackStatus
func (*JobComplete) GetClient ¶
func (j *JobComplete) GetClient() *string
func (*JobComplete) GetCompletedAt ¶
func (j *JobComplete) GetCompletedAt() *int
func (*JobComplete) GetCost ¶
func (j *JobComplete) GetCost() *JobCost
func (*JobComplete) GetCreatedAt ¶
func (j *JobComplete) GetCreatedAt() int
func (*JobComplete) GetDeliveries ¶
func (j *JobComplete) GetDeliveries() []*JobDelivery
func (*JobComplete) GetDispatchedAt ¶
func (j *JobComplete) GetDispatchedAt() *int
func (*JobComplete) GetExtraProperties ¶
func (j *JobComplete) GetExtraProperties() map[string]interface{}
func (*JobComplete) GetID ¶
func (j *JobComplete) GetID() string
func (*JobComplete) GetIdempotencyKey ¶
func (j *JobComplete) GetIdempotencyKey() *string
func (*JobComplete) GetInputs ¶
func (j *JobComplete) GetInputs() map[string]any
func (*JobComplete) GetLabel ¶
func (j *JobComplete) GetLabel() *string
func (*JobComplete) GetLogsAvailable ¶
func (j *JobComplete) GetLogsAvailable() bool
func (*JobComplete) GetMediaType ¶
func (j *JobComplete) GetMediaType() *string
func (*JobComplete) GetMetricsAvailable ¶
func (j *JobComplete) GetMetricsAvailable() *bool
func (*JobComplete) GetModel ¶
func (j *JobComplete) GetModel() *string
func (*JobComplete) GetOrgID ¶
func (j *JobComplete) GetOrgID() string
func (*JobComplete) GetOutput ¶
func (j *JobComplete) GetOutput() *JobOutput
func (*JobComplete) GetOutputCategory ¶
func (j *JobComplete) GetOutputCategory() JobCompleteOutputCategory
func (*JobComplete) GetParams ¶
func (j *JobComplete) GetParams() map[string]any
func (*JobComplete) GetRegion ¶
func (j *JobComplete) GetRegion() *string
func (*JobComplete) GetResourcesAvailable ¶
func (j *JobComplete) GetResourcesAvailable() bool
func (*JobComplete) GetRetentionExpiresAt ¶
func (j *JobComplete) GetRetentionExpiresAt() *int
func (*JobComplete) GetRetryCount ¶
func (j *JobComplete) GetRetryCount() int
func (*JobComplete) GetSettledAt ¶
func (j *JobComplete) GetSettledAt() *int
func (*JobComplete) GetSource ¶
func (j *JobComplete) GetSource() string
func (*JobComplete) GetStartedAt ¶
func (j *JobComplete) GetStartedAt() *int
func (*JobComplete) GetSteps ¶
func (j *JobComplete) GetSteps() []*JobStep
func (*JobComplete) GetTerminal ¶
func (j *JobComplete) GetTerminal() bool
func (*JobComplete) GetTimeoutMs ¶
func (j *JobComplete) GetTimeoutMs() *int
func (*JobComplete) GetType ¶
func (j *JobComplete) GetType() string
func (*JobComplete) GetWebURL ¶
func (j *JobComplete) GetWebURL() string
func (*JobComplete) MarshalJSON ¶
func (j *JobComplete) MarshalJSON() ([]byte, error)
func (*JobComplete) SetCallback ¶
func (j *JobComplete) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetClient ¶
func (j *JobComplete) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetCompletedAt ¶
func (j *JobComplete) SetCompletedAt(completedAt *int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetCost ¶
func (j *JobComplete) SetCost(cost *JobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetCreatedAt ¶
func (j *JobComplete) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetDeliveries ¶
func (j *JobComplete) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetDispatchedAt ¶
func (j *JobComplete) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetID ¶
func (j *JobComplete) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetIdempotencyKey ¶
func (j *JobComplete) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetInputs ¶
func (j *JobComplete) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetLabel ¶
func (j *JobComplete) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetLogsAvailable ¶
func (j *JobComplete) SetLogsAvailable(logsAvailable bool)
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetMediaType ¶
func (j *JobComplete) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetMetricsAvailable ¶
func (j *JobComplete) SetMetricsAvailable(metricsAvailable *bool)
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetModel ¶
func (j *JobComplete) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetOrgID ¶
func (j *JobComplete) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetOutput ¶
func (j *JobComplete) SetOutput(output *JobOutput)
SetOutput sets the Output field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetOutputCategory ¶
func (j *JobComplete) SetOutputCategory(outputCategory JobCompleteOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetParams ¶
func (j *JobComplete) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetRegion ¶
func (j *JobComplete) SetRegion(region *string)
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetResourcesAvailable ¶
func (j *JobComplete) SetResourcesAvailable(resourcesAvailable bool)
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetRetentionExpiresAt ¶
func (j *JobComplete) SetRetentionExpiresAt(retentionExpiresAt *int)
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetRetryCount ¶
func (j *JobComplete) SetRetryCount(retryCount int)
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetSettledAt ¶
func (j *JobComplete) SetSettledAt(settledAt *int)
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetSource ¶
func (j *JobComplete) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetStartedAt ¶
func (j *JobComplete) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetSteps ¶
func (j *JobComplete) SetSteps(steps []*JobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetTerminal ¶
func (j *JobComplete) SetTerminal(terminal bool)
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetTimeoutMs ¶
func (j *JobComplete) SetTimeoutMs(timeoutMs *int)
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetType ¶
func (j *JobComplete) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) SetWebURL ¶
func (j *JobComplete) SetWebURL(webURL string)
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobComplete) String ¶
func (j *JobComplete) String() string
func (*JobComplete) UnmarshalJSON ¶
func (j *JobComplete) UnmarshalJSON(data []byte) error
type JobCompleteOutputCategory ¶
type JobCompleteOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobCompleteOutputCategoryVideo JobCompleteOutputCategory = "video" JobCompleteOutputCategoryImage JobCompleteOutputCategory = "image" JobCompleteOutputCategoryAudio JobCompleteOutputCategory = "audio" JobCompleteOutputCategoryJSON JobCompleteOutputCategory = "json" JobCompleteOutputCategoryCaptions JobCompleteOutputCategory = "captions" JobCompleteOutputCategoryRaw JobCompleteOutputCategory = "raw" )
func NewJobCompleteOutputCategoryFromString ¶
func NewJobCompleteOutputCategoryFromString(s string) (JobCompleteOutputCategory, error)
func (JobCompleteOutputCategory) Ptr ¶
func (j JobCompleteOutputCategory) Ptr() *JobCompleteOutputCategory
type JobCompletedData ¶
type JobCompletedData struct {
JobID string `json:"jobId" url:"jobId"`
JobType string `json:"jobType" url:"jobType"`
Status JobCompletedDataStatus `json:"status" url:"status"`
Output *JobOutput `json:"output" url:"output"`
Cost *WebhookJobCost `json:"cost,omitempty" url:"cost,omitempty"`
Timing *JobCompletedDataTiming `json:"timing" url:"timing"`
Steps []*WebhookJobStep `json:"steps,omitempty" url:"steps,omitempty"`
OutputCategory *string `json:"outputCategory,omitempty" url:"outputCategory,omitempty"`
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// contains filtered or unexported fields
}
func (*JobCompletedData) GetCost ¶
func (j *JobCompletedData) GetCost() *WebhookJobCost
func (*JobCompletedData) GetExtraProperties ¶
func (j *JobCompletedData) GetExtraProperties() map[string]interface{}
func (*JobCompletedData) GetJobID ¶
func (j *JobCompletedData) GetJobID() string
func (*JobCompletedData) GetJobType ¶
func (j *JobCompletedData) GetJobType() string
func (*JobCompletedData) GetMediaType ¶
func (j *JobCompletedData) GetMediaType() *string
func (*JobCompletedData) GetOutput ¶
func (j *JobCompletedData) GetOutput() *JobOutput
func (*JobCompletedData) GetOutputCategory ¶
func (j *JobCompletedData) GetOutputCategory() *string
func (*JobCompletedData) GetStatus ¶
func (j *JobCompletedData) GetStatus() JobCompletedDataStatus
func (*JobCompletedData) GetSteps ¶
func (j *JobCompletedData) GetSteps() []*WebhookJobStep
func (*JobCompletedData) GetTiming ¶
func (j *JobCompletedData) GetTiming() *JobCompletedDataTiming
func (*JobCompletedData) MarshalJSON ¶
func (j *JobCompletedData) MarshalJSON() ([]byte, error)
func (*JobCompletedData) SetCost ¶
func (j *JobCompletedData) SetCost(cost *WebhookJobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetJobID ¶
func (j *JobCompletedData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetJobType ¶
func (j *JobCompletedData) SetJobType(jobType string)
SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetMediaType ¶
func (j *JobCompletedData) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetOutput ¶
func (j *JobCompletedData) SetOutput(output *JobOutput)
SetOutput sets the Output field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetOutputCategory ¶
func (j *JobCompletedData) SetOutputCategory(outputCategory *string)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetStatus ¶
func (j *JobCompletedData) SetStatus(status JobCompletedDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetSteps ¶
func (j *JobCompletedData) SetSteps(steps []*WebhookJobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) SetTiming ¶
func (j *JobCompletedData) SetTiming(timing *JobCompletedDataTiming)
SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedData) String ¶
func (j *JobCompletedData) String() string
func (*JobCompletedData) UnmarshalJSON ¶
func (j *JobCompletedData) UnmarshalJSON(data []byte) error
type JobCompletedDataStatus ¶
type JobCompletedDataStatus string
const (
JobCompletedDataStatusComplete JobCompletedDataStatus = "complete"
)
func NewJobCompletedDataStatusFromString ¶
func NewJobCompletedDataStatusFromString(s string) (JobCompletedDataStatus, error)
func (JobCompletedDataStatus) Ptr ¶
func (j JobCompletedDataStatus) Ptr() *JobCompletedDataStatus
type JobCompletedDataTiming ¶
type JobCompletedDataTiming struct {
CreatedAt int `json:"createdAt" url:"createdAt"`
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
CompletedAt int `json:"completedAt" url:"completedAt"`
// contains filtered or unexported fields
}
func (*JobCompletedDataTiming) GetCompletedAt ¶
func (j *JobCompletedDataTiming) GetCompletedAt() int
func (*JobCompletedDataTiming) GetCreatedAt ¶
func (j *JobCompletedDataTiming) GetCreatedAt() int
func (*JobCompletedDataTiming) GetDispatchedAt ¶
func (j *JobCompletedDataTiming) GetDispatchedAt() *int
func (*JobCompletedDataTiming) GetExtraProperties ¶
func (j *JobCompletedDataTiming) GetExtraProperties() map[string]interface{}
func (*JobCompletedDataTiming) GetStartedAt ¶
func (j *JobCompletedDataTiming) GetStartedAt() *int
func (*JobCompletedDataTiming) MarshalJSON ¶
func (j *JobCompletedDataTiming) MarshalJSON() ([]byte, error)
func (*JobCompletedDataTiming) SetCompletedAt ¶
func (j *JobCompletedDataTiming) SetCompletedAt(completedAt int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedDataTiming) SetCreatedAt ¶
func (j *JobCompletedDataTiming) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedDataTiming) SetDispatchedAt ¶
func (j *JobCompletedDataTiming) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedDataTiming) SetStartedAt ¶
func (j *JobCompletedDataTiming) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedDataTiming) String ¶
func (j *JobCompletedDataTiming) String() string
func (*JobCompletedDataTiming) UnmarshalJSON ¶
func (j *JobCompletedDataTiming) UnmarshalJSON(data []byte) error
type JobCompletedOnSubmit ¶
type JobCompletedOnSubmit struct {
// Job ID
ID string `json:"id" url:"id"`
// Completed synchronously
Status JobCompletedOnSubmitStatus `json:"status" url:"status"`
// Data URL of the result
URL *string `json:"url,omitempty" url:"url,omitempty"`
// contains filtered or unexported fields
}
func (*JobCompletedOnSubmit) GetExtraProperties ¶
func (j *JobCompletedOnSubmit) GetExtraProperties() map[string]interface{}
func (*JobCompletedOnSubmit) GetID ¶
func (j *JobCompletedOnSubmit) GetID() string
func (*JobCompletedOnSubmit) GetStatus ¶
func (j *JobCompletedOnSubmit) GetStatus() JobCompletedOnSubmitStatus
func (*JobCompletedOnSubmit) GetURL ¶
func (j *JobCompletedOnSubmit) GetURL() *string
func (*JobCompletedOnSubmit) MarshalJSON ¶
func (j *JobCompletedOnSubmit) MarshalJSON() ([]byte, error)
func (*JobCompletedOnSubmit) SetID ¶
func (j *JobCompletedOnSubmit) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedOnSubmit) SetStatus ¶
func (j *JobCompletedOnSubmit) SetStatus(status JobCompletedOnSubmitStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedOnSubmit) SetURL ¶
func (j *JobCompletedOnSubmit) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedOnSubmit) String ¶
func (j *JobCompletedOnSubmit) String() string
func (*JobCompletedOnSubmit) UnmarshalJSON ¶
func (j *JobCompletedOnSubmit) UnmarshalJSON(data []byte) error
type JobCompletedOnSubmitStatus ¶
type JobCompletedOnSubmitStatus string
Completed synchronously
const (
JobCompletedOnSubmitStatusComplete JobCompletedOnSubmitStatus = "complete"
)
func NewJobCompletedOnSubmitStatusFromString ¶
func NewJobCompletedOnSubmitStatusFromString(s string) (JobCompletedOnSubmitStatus, error)
func (JobCompletedOnSubmitStatus) Ptr ¶
func (j JobCompletedOnSubmitStatus) Ptr() *JobCompletedOnSubmitStatus
type JobCompletedWebhookEvent ¶
type JobCompletedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobCompletedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobCompletedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobCompletedWebhookEvent) GetData ¶
func (j *JobCompletedWebhookEvent) GetData() *JobCompletedData
func (*JobCompletedWebhookEvent) GetDeliveryID ¶
func (j *JobCompletedWebhookEvent) GetDeliveryID() string
func (*JobCompletedWebhookEvent) GetExtraProperties ¶
func (j *JobCompletedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobCompletedWebhookEvent) GetOrgID ¶
func (j *JobCompletedWebhookEvent) GetOrgID() string
func (*JobCompletedWebhookEvent) GetTimestamp ¶
func (j *JobCompletedWebhookEvent) GetTimestamp() int
func (*JobCompletedWebhookEvent) GetVersion ¶
func (j *JobCompletedWebhookEvent) GetVersion() JobCompletedWebhookEventVersion
func (*JobCompletedWebhookEvent) MarshalJSON ¶
func (j *JobCompletedWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobCompletedWebhookEvent) SetData ¶
func (j *JobCompletedWebhookEvent) SetData(data *JobCompletedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedWebhookEvent) SetDeliveryID ¶
func (j *JobCompletedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedWebhookEvent) SetOrgID ¶
func (j *JobCompletedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedWebhookEvent) SetTimestamp ¶
func (j *JobCompletedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedWebhookEvent) SetVersion ¶
func (j *JobCompletedWebhookEvent) SetVersion(version JobCompletedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCompletedWebhookEvent) String ¶
func (j *JobCompletedWebhookEvent) String() string
func (*JobCompletedWebhookEvent) UnmarshalJSON ¶
func (j *JobCompletedWebhookEvent) UnmarshalJSON(data []byte) error
type JobCompletedWebhookEventVersion ¶
type JobCompletedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobCompletedWebhookEventVersionV1 JobCompletedWebhookEventVersion = "1"
)
func NewJobCompletedWebhookEventVersionFromString ¶
func NewJobCompletedWebhookEventVersionFromString(s string) (JobCompletedWebhookEventVersion, error)
func (JobCompletedWebhookEventVersion) Ptr ¶
func (j JobCompletedWebhookEventVersion) Ptr() *JobCompletedWebhookEventVersion
type JobCost ¶
type JobCost struct {
// Amount charged in nanodollars (integer minor units; 1 USD = 1,000,000,000). Use `formatted` for display.
Amount int `json:"amount" url:"amount"`
// ISO-4217 currency code
Currency JobCostCurrency `json:"currency" url:"currency"`
// Amount formatted as dollars (e.g. "$0.50")
Formatted string `json:"formatted" url:"formatted"`
// contains filtered or unexported fields
}
Amount charged, or null when not yet billed
func (*JobCost) GetCurrency ¶
func (j *JobCost) GetCurrency() JobCostCurrency
func (*JobCost) GetExtraProperties ¶
func (*JobCost) GetFormatted ¶
func (*JobCost) MarshalJSON ¶
func (*JobCost) SetAmount ¶
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCost) SetCurrency ¶
func (j *JobCost) SetCurrency(currency JobCostCurrency)
SetCurrency sets the Currency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCost) SetFormatted ¶
SetFormatted sets the Formatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCost) UnmarshalJSON ¶
type JobCostCurrency ¶
type JobCostCurrency string
ISO-4217 currency code
const (
JobCostCurrencyUsd JobCostCurrency = "USD"
)
func NewJobCostCurrencyFromString ¶
func NewJobCostCurrencyFromString(s string) (JobCostCurrency, error)
func (JobCostCurrency) Ptr ¶
func (j JobCostCurrency) Ptr() *JobCostCurrency
type JobCreated ¶
type JobCreated struct {
// Job ID
ID string `json:"id" url:"id"`
// Initial status
Status JobCreatedStatus `json:"status" url:"status"`
// contains filtered or unexported fields
}
func (*JobCreated) GetExtraProperties ¶
func (j *JobCreated) GetExtraProperties() map[string]interface{}
func (*JobCreated) GetID ¶
func (j *JobCreated) GetID() string
func (*JobCreated) GetStatus ¶
func (j *JobCreated) GetStatus() JobCreatedStatus
func (*JobCreated) MarshalJSON ¶
func (j *JobCreated) MarshalJSON() ([]byte, error)
func (*JobCreated) SetID ¶
func (j *JobCreated) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreated) SetStatus ¶
func (j *JobCreated) SetStatus(status JobCreatedStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreated) String ¶
func (j *JobCreated) String() string
func (*JobCreated) UnmarshalJSON ¶
func (j *JobCreated) UnmarshalJSON(data []byte) error
type JobCreatedData ¶
type JobCreatedData struct {
JobID string `json:"jobId" url:"jobId"`
JobType string `json:"jobType" url:"jobType"`
Status JobCreatedDataStatus `json:"status" url:"status"`
Timing *JobCreatedDataTiming `json:"timing" url:"timing"`
// contains filtered or unexported fields
}
func (*JobCreatedData) GetExtraProperties ¶
func (j *JobCreatedData) GetExtraProperties() map[string]interface{}
func (*JobCreatedData) GetJobID ¶
func (j *JobCreatedData) GetJobID() string
func (*JobCreatedData) GetJobType ¶
func (j *JobCreatedData) GetJobType() string
func (*JobCreatedData) GetStatus ¶
func (j *JobCreatedData) GetStatus() JobCreatedDataStatus
func (*JobCreatedData) GetTiming ¶
func (j *JobCreatedData) GetTiming() *JobCreatedDataTiming
func (*JobCreatedData) MarshalJSON ¶
func (j *JobCreatedData) MarshalJSON() ([]byte, error)
func (*JobCreatedData) SetJobID ¶
func (j *JobCreatedData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedData) SetJobType ¶
func (j *JobCreatedData) SetJobType(jobType string)
SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedData) SetStatus ¶
func (j *JobCreatedData) SetStatus(status JobCreatedDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedData) SetTiming ¶
func (j *JobCreatedData) SetTiming(timing *JobCreatedDataTiming)
SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedData) String ¶
func (j *JobCreatedData) String() string
func (*JobCreatedData) UnmarshalJSON ¶
func (j *JobCreatedData) UnmarshalJSON(data []byte) error
type JobCreatedDataStatus ¶
type JobCreatedDataStatus string
const (
JobCreatedDataStatusWaiting JobCreatedDataStatus = "waiting"
)
func NewJobCreatedDataStatusFromString ¶
func NewJobCreatedDataStatusFromString(s string) (JobCreatedDataStatus, error)
func (JobCreatedDataStatus) Ptr ¶
func (j JobCreatedDataStatus) Ptr() *JobCreatedDataStatus
type JobCreatedDataTiming ¶
type JobCreatedDataTiming struct {
CreatedAt int `json:"createdAt" url:"createdAt"`
// contains filtered or unexported fields
}
func (*JobCreatedDataTiming) GetCreatedAt ¶
func (j *JobCreatedDataTiming) GetCreatedAt() int
func (*JobCreatedDataTiming) GetExtraProperties ¶
func (j *JobCreatedDataTiming) GetExtraProperties() map[string]interface{}
func (*JobCreatedDataTiming) MarshalJSON ¶
func (j *JobCreatedDataTiming) MarshalJSON() ([]byte, error)
func (*JobCreatedDataTiming) SetCreatedAt ¶
func (j *JobCreatedDataTiming) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedDataTiming) String ¶
func (j *JobCreatedDataTiming) String() string
func (*JobCreatedDataTiming) UnmarshalJSON ¶
func (j *JobCreatedDataTiming) UnmarshalJSON(data []byte) error
type JobCreatedStatus ¶
type JobCreatedStatus string
Initial status
const (
JobCreatedStatusWaiting JobCreatedStatus = "waiting"
)
func NewJobCreatedStatusFromString ¶
func NewJobCreatedStatusFromString(s string) (JobCreatedStatus, error)
func (JobCreatedStatus) Ptr ¶
func (j JobCreatedStatus) Ptr() *JobCreatedStatus
type JobCreatedWebhookEvent ¶
type JobCreatedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobCreatedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobCreatedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobCreatedWebhookEvent) GetData ¶
func (j *JobCreatedWebhookEvent) GetData() *JobCreatedData
func (*JobCreatedWebhookEvent) GetDeliveryID ¶
func (j *JobCreatedWebhookEvent) GetDeliveryID() string
func (*JobCreatedWebhookEvent) GetExtraProperties ¶
func (j *JobCreatedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobCreatedWebhookEvent) GetOrgID ¶
func (j *JobCreatedWebhookEvent) GetOrgID() string
func (*JobCreatedWebhookEvent) GetTimestamp ¶
func (j *JobCreatedWebhookEvent) GetTimestamp() int
func (*JobCreatedWebhookEvent) GetVersion ¶
func (j *JobCreatedWebhookEvent) GetVersion() JobCreatedWebhookEventVersion
func (*JobCreatedWebhookEvent) MarshalJSON ¶
func (j *JobCreatedWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobCreatedWebhookEvent) SetData ¶
func (j *JobCreatedWebhookEvent) SetData(data *JobCreatedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedWebhookEvent) SetDeliveryID ¶
func (j *JobCreatedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedWebhookEvent) SetOrgID ¶
func (j *JobCreatedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedWebhookEvent) SetTimestamp ¶
func (j *JobCreatedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedWebhookEvent) SetVersion ¶
func (j *JobCreatedWebhookEvent) SetVersion(version JobCreatedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedWebhookEvent) String ¶
func (j *JobCreatedWebhookEvent) String() string
func (*JobCreatedWebhookEvent) UnmarshalJSON ¶
func (j *JobCreatedWebhookEvent) UnmarshalJSON(data []byte) error
type JobCreatedWebhookEventVersion ¶
type JobCreatedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobCreatedWebhookEventVersionV1 JobCreatedWebhookEventVersion = "1"
)
func NewJobCreatedWebhookEventVersionFromString ¶
func NewJobCreatedWebhookEventVersionFromString(s string) (JobCreatedWebhookEventVersion, error)
func (JobCreatedWebhookEventVersion) Ptr ¶
func (j JobCreatedWebhookEventVersion) Ptr() *JobCreatedWebhookEventVersion
type JobDeliveriesSettledData ¶
type JobDeliveriesSettledData struct {
JobID string `json:"jobId" url:"jobId"`
Deliveries []*SettledDelivery `json:"deliveries" url:"deliveries"`
// contains filtered or unexported fields
}
func (*JobDeliveriesSettledData) GetDeliveries ¶
func (j *JobDeliveriesSettledData) GetDeliveries() []*SettledDelivery
func (*JobDeliveriesSettledData) GetExtraProperties ¶
func (j *JobDeliveriesSettledData) GetExtraProperties() map[string]interface{}
func (*JobDeliveriesSettledData) GetJobID ¶
func (j *JobDeliveriesSettledData) GetJobID() string
func (*JobDeliveriesSettledData) MarshalJSON ¶
func (j *JobDeliveriesSettledData) MarshalJSON() ([]byte, error)
func (*JobDeliveriesSettledData) SetDeliveries ¶
func (j *JobDeliveriesSettledData) SetDeliveries(deliveries []*SettledDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledData) SetJobID ¶
func (j *JobDeliveriesSettledData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledData) String ¶
func (j *JobDeliveriesSettledData) String() string
func (*JobDeliveriesSettledData) UnmarshalJSON ¶
func (j *JobDeliveriesSettledData) UnmarshalJSON(data []byte) error
type JobDeliveriesSettledWebhookEvent ¶
type JobDeliveriesSettledWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobDeliveriesSettledWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobDeliveriesSettledData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobDeliveriesSettledWebhookEvent) GetData ¶
func (j *JobDeliveriesSettledWebhookEvent) GetData() *JobDeliveriesSettledData
func (*JobDeliveriesSettledWebhookEvent) GetDeliveryID ¶
func (j *JobDeliveriesSettledWebhookEvent) GetDeliveryID() string
func (*JobDeliveriesSettledWebhookEvent) GetExtraProperties ¶
func (j *JobDeliveriesSettledWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobDeliveriesSettledWebhookEvent) GetOrgID ¶
func (j *JobDeliveriesSettledWebhookEvent) GetOrgID() string
func (*JobDeliveriesSettledWebhookEvent) GetTimestamp ¶
func (j *JobDeliveriesSettledWebhookEvent) GetTimestamp() int
func (*JobDeliveriesSettledWebhookEvent) GetVersion ¶
func (j *JobDeliveriesSettledWebhookEvent) GetVersion() JobDeliveriesSettledWebhookEventVersion
func (*JobDeliveriesSettledWebhookEvent) MarshalJSON ¶
func (j *JobDeliveriesSettledWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobDeliveriesSettledWebhookEvent) SetData ¶
func (j *JobDeliveriesSettledWebhookEvent) SetData(data *JobDeliveriesSettledData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledWebhookEvent) SetDeliveryID ¶
func (j *JobDeliveriesSettledWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledWebhookEvent) SetOrgID ¶
func (j *JobDeliveriesSettledWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledWebhookEvent) SetTimestamp ¶
func (j *JobDeliveriesSettledWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledWebhookEvent) SetVersion ¶
func (j *JobDeliveriesSettledWebhookEvent) SetVersion(version JobDeliveriesSettledWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveriesSettledWebhookEvent) String ¶
func (j *JobDeliveriesSettledWebhookEvent) String() string
func (*JobDeliveriesSettledWebhookEvent) UnmarshalJSON ¶
func (j *JobDeliveriesSettledWebhookEvent) UnmarshalJSON(data []byte) error
type JobDeliveriesSettledWebhookEventVersion ¶
type JobDeliveriesSettledWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobDeliveriesSettledWebhookEventVersionV1 JobDeliveriesSettledWebhookEventVersion = "1"
)
func NewJobDeliveriesSettledWebhookEventVersionFromString ¶
func NewJobDeliveriesSettledWebhookEventVersionFromString(s string) (JobDeliveriesSettledWebhookEventVersion, error)
type JobDelivery ¶
type JobDelivery struct {
// The storage connection id
StorageID string `json:"storageId" url:"storageId"`
Status JobDeliveryStatus `json:"status" url:"status"`
// Object key in the bucket, rendered from the template. A multi-file output is a folder, and its path ends in /
Path *string `json:"path,omitempty" url:"path,omitempty"`
// Where to fetch it: the public base URL when set, else our files route. Absent for a folder
URL *string `json:"url,omitempty" url:"url,omitempty"`
Reason *JobDeliveryReason `json:"reason,omitempty" url:"reason,omitempty"`
// The name was taken, so the job's tail was appended to free it
Renamed *bool `json:"renamed,omitempty" url:"renamed,omitempty"`
// contains filtered or unexported fields
}
func (*JobDelivery) GetExtraProperties ¶
func (j *JobDelivery) GetExtraProperties() map[string]interface{}
func (*JobDelivery) GetPath ¶
func (j *JobDelivery) GetPath() *string
func (*JobDelivery) GetReason ¶
func (j *JobDelivery) GetReason() *JobDeliveryReason
func (*JobDelivery) GetRenamed ¶
func (j *JobDelivery) GetRenamed() *bool
func (*JobDelivery) GetStatus ¶
func (j *JobDelivery) GetStatus() JobDeliveryStatus
func (*JobDelivery) GetStorageID ¶
func (j *JobDelivery) GetStorageID() string
func (*JobDelivery) GetURL ¶
func (j *JobDelivery) GetURL() *string
func (*JobDelivery) MarshalJSON ¶
func (j *JobDelivery) MarshalJSON() ([]byte, error)
func (*JobDelivery) SetPath ¶
func (j *JobDelivery) SetPath(path *string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) SetReason ¶
func (j *JobDelivery) SetReason(reason *JobDeliveryReason)
SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) SetRenamed ¶
func (j *JobDelivery) SetRenamed(renamed *bool)
SetRenamed sets the Renamed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) SetStatus ¶
func (j *JobDelivery) SetStatus(status JobDeliveryStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) SetStorageID ¶
func (j *JobDelivery) SetStorageID(storageID string)
SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) SetURL ¶
func (j *JobDelivery) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDelivery) String ¶
func (j *JobDelivery) String() string
func (*JobDelivery) UnmarshalJSON ¶
func (j *JobDelivery) UnmarshalJSON(data []byte) error
type JobDeliveryFailedData ¶
type JobDeliveryFailedData struct {
JobID string `json:"jobId" url:"jobId"`
StorageID string `json:"storageId" url:"storageId"`
Status JobDeliveryFailedDataStatus `json:"status" url:"status"`
Reason string `json:"reason" url:"reason"`
// contains filtered or unexported fields
}
func (*JobDeliveryFailedData) GetExtraProperties ¶
func (j *JobDeliveryFailedData) GetExtraProperties() map[string]interface{}
func (*JobDeliveryFailedData) GetJobID ¶
func (j *JobDeliveryFailedData) GetJobID() string
func (*JobDeliveryFailedData) GetReason ¶
func (j *JobDeliveryFailedData) GetReason() string
func (*JobDeliveryFailedData) GetStatus ¶
func (j *JobDeliveryFailedData) GetStatus() JobDeliveryFailedDataStatus
func (*JobDeliveryFailedData) GetStorageID ¶
func (j *JobDeliveryFailedData) GetStorageID() string
func (*JobDeliveryFailedData) MarshalJSON ¶
func (j *JobDeliveryFailedData) MarshalJSON() ([]byte, error)
func (*JobDeliveryFailedData) SetJobID ¶
func (j *JobDeliveryFailedData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedData) SetReason ¶
func (j *JobDeliveryFailedData) SetReason(reason string)
SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedData) SetStatus ¶
func (j *JobDeliveryFailedData) SetStatus(status JobDeliveryFailedDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedData) SetStorageID ¶
func (j *JobDeliveryFailedData) SetStorageID(storageID string)
SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedData) String ¶
func (j *JobDeliveryFailedData) String() string
func (*JobDeliveryFailedData) UnmarshalJSON ¶
func (j *JobDeliveryFailedData) UnmarshalJSON(data []byte) error
type JobDeliveryFailedDataStatus ¶
type JobDeliveryFailedDataStatus string
const (
JobDeliveryFailedDataStatusFailed JobDeliveryFailedDataStatus = "failed"
)
func NewJobDeliveryFailedDataStatusFromString ¶
func NewJobDeliveryFailedDataStatusFromString(s string) (JobDeliveryFailedDataStatus, error)
func (JobDeliveryFailedDataStatus) Ptr ¶
func (j JobDeliveryFailedDataStatus) Ptr() *JobDeliveryFailedDataStatus
type JobDeliveryFailedWebhookEvent ¶
type JobDeliveryFailedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobDeliveryFailedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobDeliveryFailedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobDeliveryFailedWebhookEvent) GetData ¶
func (j *JobDeliveryFailedWebhookEvent) GetData() *JobDeliveryFailedData
func (*JobDeliveryFailedWebhookEvent) GetDeliveryID ¶
func (j *JobDeliveryFailedWebhookEvent) GetDeliveryID() string
func (*JobDeliveryFailedWebhookEvent) GetExtraProperties ¶
func (j *JobDeliveryFailedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobDeliveryFailedWebhookEvent) GetOrgID ¶
func (j *JobDeliveryFailedWebhookEvent) GetOrgID() string
func (*JobDeliveryFailedWebhookEvent) GetTimestamp ¶
func (j *JobDeliveryFailedWebhookEvent) GetTimestamp() int
func (*JobDeliveryFailedWebhookEvent) GetVersion ¶
func (j *JobDeliveryFailedWebhookEvent) GetVersion() JobDeliveryFailedWebhookEventVersion
func (*JobDeliveryFailedWebhookEvent) MarshalJSON ¶
func (j *JobDeliveryFailedWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobDeliveryFailedWebhookEvent) SetData ¶
func (j *JobDeliveryFailedWebhookEvent) SetData(data *JobDeliveryFailedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedWebhookEvent) SetDeliveryID ¶
func (j *JobDeliveryFailedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedWebhookEvent) SetOrgID ¶
func (j *JobDeliveryFailedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedWebhookEvent) SetTimestamp ¶
func (j *JobDeliveryFailedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedWebhookEvent) SetVersion ¶
func (j *JobDeliveryFailedWebhookEvent) SetVersion(version JobDeliveryFailedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliveryFailedWebhookEvent) String ¶
func (j *JobDeliveryFailedWebhookEvent) String() string
func (*JobDeliveryFailedWebhookEvent) UnmarshalJSON ¶
func (j *JobDeliveryFailedWebhookEvent) UnmarshalJSON(data []byte) error
type JobDeliveryFailedWebhookEventVersion ¶
type JobDeliveryFailedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobDeliveryFailedWebhookEventVersionV1 JobDeliveryFailedWebhookEventVersion = "1"
)
func NewJobDeliveryFailedWebhookEventVersionFromString ¶
func NewJobDeliveryFailedWebhookEventVersionFromString(s string) (JobDeliveryFailedWebhookEventVersion, error)
type JobDeliveryReason ¶
type JobDeliveryReason string
const ( JobDeliveryReasonDestinationDenied JobDeliveryReason = "destination_denied" JobDeliveryReasonSignatureMismatch JobDeliveryReason = "signature_mismatch" JobDeliveryReasonBucketNotFound JobDeliveryReason = "bucket_not_found" JobDeliveryReasonObjectTooLarge JobDeliveryReason = "object_too_large" JobDeliveryReasonAlreadyExists JobDeliveryReason = "already_exists" JobDeliveryReasonNotDeliverable JobDeliveryReason = "not_deliverable" )
func NewJobDeliveryReasonFromString ¶
func NewJobDeliveryReasonFromString(s string) (JobDeliveryReason, error)
func (JobDeliveryReason) Ptr ¶
func (j JobDeliveryReason) Ptr() *JobDeliveryReason
type JobDeliveryStatus ¶
type JobDeliveryStatus string
const ( JobDeliveryStatusPending JobDeliveryStatus = "pending" JobDeliveryStatusDelivered JobDeliveryStatus = "delivered" JobDeliveryStatusFailed JobDeliveryStatus = "failed" )
func NewJobDeliveryStatusFromString ¶
func NewJobDeliveryStatusFromString(s string) (JobDeliveryStatus, error)
func (JobDeliveryStatus) Ptr ¶
func (j JobDeliveryStatus) Ptr() *JobDeliveryStatus
type JobDeliverySucceededData ¶
type JobDeliverySucceededData struct {
JobID string `json:"jobId" url:"jobId"`
StorageID string `json:"storageId" url:"storageId"`
Status JobDeliverySucceededDataStatus `json:"status" url:"status"`
Path string `json:"path" url:"path"`
URL *string `json:"url,omitempty" url:"url,omitempty"`
// contains filtered or unexported fields
}
func (*JobDeliverySucceededData) GetExtraProperties ¶
func (j *JobDeliverySucceededData) GetExtraProperties() map[string]interface{}
func (*JobDeliverySucceededData) GetJobID ¶
func (j *JobDeliverySucceededData) GetJobID() string
func (*JobDeliverySucceededData) GetPath ¶
func (j *JobDeliverySucceededData) GetPath() string
func (*JobDeliverySucceededData) GetStatus ¶
func (j *JobDeliverySucceededData) GetStatus() JobDeliverySucceededDataStatus
func (*JobDeliverySucceededData) GetStorageID ¶
func (j *JobDeliverySucceededData) GetStorageID() string
func (*JobDeliverySucceededData) GetURL ¶
func (j *JobDeliverySucceededData) GetURL() *string
func (*JobDeliverySucceededData) MarshalJSON ¶
func (j *JobDeliverySucceededData) MarshalJSON() ([]byte, error)
func (*JobDeliverySucceededData) SetJobID ¶
func (j *JobDeliverySucceededData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededData) SetPath ¶
func (j *JobDeliverySucceededData) SetPath(path string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededData) SetStatus ¶
func (j *JobDeliverySucceededData) SetStatus(status JobDeliverySucceededDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededData) SetStorageID ¶
func (j *JobDeliverySucceededData) SetStorageID(storageID string)
SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededData) SetURL ¶
func (j *JobDeliverySucceededData) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededData) String ¶
func (j *JobDeliverySucceededData) String() string
func (*JobDeliverySucceededData) UnmarshalJSON ¶
func (j *JobDeliverySucceededData) UnmarshalJSON(data []byte) error
type JobDeliverySucceededDataStatus ¶
type JobDeliverySucceededDataStatus string
const (
JobDeliverySucceededDataStatusDelivered JobDeliverySucceededDataStatus = "delivered"
)
func NewJobDeliverySucceededDataStatusFromString ¶
func NewJobDeliverySucceededDataStatusFromString(s string) (JobDeliverySucceededDataStatus, error)
func (JobDeliverySucceededDataStatus) Ptr ¶
func (j JobDeliverySucceededDataStatus) Ptr() *JobDeliverySucceededDataStatus
type JobDeliverySucceededWebhookEvent ¶
type JobDeliverySucceededWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobDeliverySucceededWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobDeliverySucceededData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobDeliverySucceededWebhookEvent) GetData ¶
func (j *JobDeliverySucceededWebhookEvent) GetData() *JobDeliverySucceededData
func (*JobDeliverySucceededWebhookEvent) GetDeliveryID ¶
func (j *JobDeliverySucceededWebhookEvent) GetDeliveryID() string
func (*JobDeliverySucceededWebhookEvent) GetExtraProperties ¶
func (j *JobDeliverySucceededWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobDeliverySucceededWebhookEvent) GetOrgID ¶
func (j *JobDeliverySucceededWebhookEvent) GetOrgID() string
func (*JobDeliverySucceededWebhookEvent) GetTimestamp ¶
func (j *JobDeliverySucceededWebhookEvent) GetTimestamp() int
func (*JobDeliverySucceededWebhookEvent) GetVersion ¶
func (j *JobDeliverySucceededWebhookEvent) GetVersion() JobDeliverySucceededWebhookEventVersion
func (*JobDeliverySucceededWebhookEvent) MarshalJSON ¶
func (j *JobDeliverySucceededWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobDeliverySucceededWebhookEvent) SetData ¶
func (j *JobDeliverySucceededWebhookEvent) SetData(data *JobDeliverySucceededData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededWebhookEvent) SetDeliveryID ¶
func (j *JobDeliverySucceededWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededWebhookEvent) SetOrgID ¶
func (j *JobDeliverySucceededWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededWebhookEvent) SetTimestamp ¶
func (j *JobDeliverySucceededWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededWebhookEvent) SetVersion ¶
func (j *JobDeliverySucceededWebhookEvent) SetVersion(version JobDeliverySucceededWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDeliverySucceededWebhookEvent) String ¶
func (j *JobDeliverySucceededWebhookEvent) String() string
func (*JobDeliverySucceededWebhookEvent) UnmarshalJSON ¶
func (j *JobDeliverySucceededWebhookEvent) UnmarshalJSON(data []byte) error
type JobDeliverySucceededWebhookEventVersion ¶
type JobDeliverySucceededWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobDeliverySucceededWebhookEventVersionV1 JobDeliverySucceededWebhookEventVersion = "1"
)
func NewJobDeliverySucceededWebhookEventVersionFromString ¶
func NewJobDeliverySucceededWebhookEventVersionFromString(s string) (JobDeliverySucceededWebhookEventVersion, error)
type JobDispatched ¶
type JobDispatched struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobDispatchedOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
// Completion fraction 0..1, or null when it cannot be determined
Progress *float64 `json:"progress,omitempty" url:"progress,omitempty"`
// Estimated seconds remaining, or null
Eta *float64 `json:"eta,omitempty" url:"eta,omitempty"`
// Live boot detail while a worker container starts
BootState *JobDispatchedBootState `json:"bootState,omitempty" url:"bootState,omitempty"`
// contains filtered or unexported fields
}
func (*JobDispatched) GetBootState ¶
func (j *JobDispatched) GetBootState() *JobDispatchedBootState
func (*JobDispatched) GetCallback ¶
func (j *JobDispatched) GetCallback() *CallbackStatus
func (*JobDispatched) GetClient ¶
func (j *JobDispatched) GetClient() *string
func (*JobDispatched) GetCompletedAt ¶
func (j *JobDispatched) GetCompletedAt() *int
func (*JobDispatched) GetCost ¶
func (j *JobDispatched) GetCost() *JobCost
func (*JobDispatched) GetCreatedAt ¶
func (j *JobDispatched) GetCreatedAt() int
func (*JobDispatched) GetDeliveries ¶
func (j *JobDispatched) GetDeliveries() []*JobDelivery
func (*JobDispatched) GetDispatchedAt ¶
func (j *JobDispatched) GetDispatchedAt() *int
func (*JobDispatched) GetEta ¶
func (j *JobDispatched) GetEta() *float64
func (*JobDispatched) GetExtraProperties ¶
func (j *JobDispatched) GetExtraProperties() map[string]interface{}
func (*JobDispatched) GetID ¶
func (j *JobDispatched) GetID() string
func (*JobDispatched) GetIdempotencyKey ¶
func (j *JobDispatched) GetIdempotencyKey() *string
func (*JobDispatched) GetInputs ¶
func (j *JobDispatched) GetInputs() map[string]any
func (*JobDispatched) GetLabel ¶
func (j *JobDispatched) GetLabel() *string
func (*JobDispatched) GetLogsAvailable ¶
func (j *JobDispatched) GetLogsAvailable() bool
func (*JobDispatched) GetMediaType ¶
func (j *JobDispatched) GetMediaType() *string
func (*JobDispatched) GetMetricsAvailable ¶
func (j *JobDispatched) GetMetricsAvailable() *bool
func (*JobDispatched) GetModel ¶
func (j *JobDispatched) GetModel() *string
func (*JobDispatched) GetOrgID ¶
func (j *JobDispatched) GetOrgID() string
func (*JobDispatched) GetOutputCategory ¶
func (j *JobDispatched) GetOutputCategory() JobDispatchedOutputCategory
func (*JobDispatched) GetParams ¶
func (j *JobDispatched) GetParams() map[string]any
func (*JobDispatched) GetProgress ¶
func (j *JobDispatched) GetProgress() *float64
func (*JobDispatched) GetRegion ¶
func (j *JobDispatched) GetRegion() *string
func (*JobDispatched) GetResourcesAvailable ¶
func (j *JobDispatched) GetResourcesAvailable() bool
func (*JobDispatched) GetRetentionExpiresAt ¶
func (j *JobDispatched) GetRetentionExpiresAt() *int
func (*JobDispatched) GetRetryCount ¶
func (j *JobDispatched) GetRetryCount() int
func (*JobDispatched) GetSettledAt ¶
func (j *JobDispatched) GetSettledAt() *int
func (*JobDispatched) GetSource ¶
func (j *JobDispatched) GetSource() string
func (*JobDispatched) GetStartedAt ¶
func (j *JobDispatched) GetStartedAt() *int
func (*JobDispatched) GetSteps ¶
func (j *JobDispatched) GetSteps() []*JobStep
func (*JobDispatched) GetTerminal ¶
func (j *JobDispatched) GetTerminal() bool
func (*JobDispatched) GetTimeoutMs ¶
func (j *JobDispatched) GetTimeoutMs() *int
func (*JobDispatched) GetType ¶
func (j *JobDispatched) GetType() string
func (*JobDispatched) GetWebURL ¶
func (j *JobDispatched) GetWebURL() string
func (*JobDispatched) MarshalJSON ¶
func (j *JobDispatched) MarshalJSON() ([]byte, error)
func (*JobDispatched) SetBootState ¶
func (j *JobDispatched) SetBootState(bootState *JobDispatchedBootState)
SetBootState sets the BootState field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetCallback ¶
func (j *JobDispatched) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetClient ¶
func (j *JobDispatched) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetCompletedAt ¶
func (j *JobDispatched) SetCompletedAt(completedAt *int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetCost ¶
func (j *JobDispatched) SetCost(cost *JobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetCreatedAt ¶
func (j *JobDispatched) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetDeliveries ¶
func (j *JobDispatched) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetDispatchedAt ¶
func (j *JobDispatched) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetEta ¶
func (j *JobDispatched) SetEta(eta *float64)
SetEta sets the Eta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetID ¶
func (j *JobDispatched) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetIdempotencyKey ¶
func (j *JobDispatched) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetInputs ¶
func (j *JobDispatched) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetLabel ¶
func (j *JobDispatched) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetLogsAvailable ¶
func (j *JobDispatched) SetLogsAvailable(logsAvailable bool)
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetMediaType ¶
func (j *JobDispatched) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetMetricsAvailable ¶
func (j *JobDispatched) SetMetricsAvailable(metricsAvailable *bool)
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetModel ¶
func (j *JobDispatched) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetOrgID ¶
func (j *JobDispatched) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetOutputCategory ¶
func (j *JobDispatched) SetOutputCategory(outputCategory JobDispatchedOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetParams ¶
func (j *JobDispatched) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetProgress ¶
func (j *JobDispatched) SetProgress(progress *float64)
SetProgress sets the Progress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetRegion ¶
func (j *JobDispatched) SetRegion(region *string)
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetResourcesAvailable ¶
func (j *JobDispatched) SetResourcesAvailable(resourcesAvailable bool)
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetRetentionExpiresAt ¶
func (j *JobDispatched) SetRetentionExpiresAt(retentionExpiresAt *int)
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetRetryCount ¶
func (j *JobDispatched) SetRetryCount(retryCount int)
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetSettledAt ¶
func (j *JobDispatched) SetSettledAt(settledAt *int)
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetSource ¶
func (j *JobDispatched) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetStartedAt ¶
func (j *JobDispatched) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetSteps ¶
func (j *JobDispatched) SetSteps(steps []*JobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetTerminal ¶
func (j *JobDispatched) SetTerminal(terminal bool)
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetTimeoutMs ¶
func (j *JobDispatched) SetTimeoutMs(timeoutMs *int)
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetType ¶
func (j *JobDispatched) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) SetWebURL ¶
func (j *JobDispatched) SetWebURL(webURL string)
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatched) String ¶
func (j *JobDispatched) String() string
func (*JobDispatched) UnmarshalJSON ¶
func (j *JobDispatched) UnmarshalJSON(data []byte) error
type JobDispatchedBootState ¶
type JobDispatchedBootState struct {
// Boot phase: scheduling | queued | pulling-image | booting | restoring
Phase string `json:"phase" url:"phase"`
// Human-readable line, e.g. "waiting for GPU capacity"
Detail string `json:"detail" url:"detail"`
// Milliseconds since dispatch
ElapsedMs int `json:"elapsedMs" url:"elapsedMs"`
// Typical cold-start duration for this workload, or null when unknown
TypicalMs *int `json:"typicalMs,omitempty" url:"typicalMs,omitempty"`
// Whole-job remaining estimate (boot + generation), in milliseconds, or null when unknown
EtaMs *int `json:"etaMs,omitempty" url:"etaMs,omitempty"`
// contains filtered or unexported fields
}
Live boot detail while a worker container starts
func (*JobDispatchedBootState) GetDetail ¶
func (j *JobDispatchedBootState) GetDetail() string
func (*JobDispatchedBootState) GetElapsedMs ¶
func (j *JobDispatchedBootState) GetElapsedMs() int
func (*JobDispatchedBootState) GetEtaMs ¶
func (j *JobDispatchedBootState) GetEtaMs() *int
func (*JobDispatchedBootState) GetExtraProperties ¶
func (j *JobDispatchedBootState) GetExtraProperties() map[string]interface{}
func (*JobDispatchedBootState) GetPhase ¶
func (j *JobDispatchedBootState) GetPhase() string
func (*JobDispatchedBootState) GetTypicalMs ¶
func (j *JobDispatchedBootState) GetTypicalMs() *int
func (*JobDispatchedBootState) MarshalJSON ¶
func (j *JobDispatchedBootState) MarshalJSON() ([]byte, error)
func (*JobDispatchedBootState) SetDetail ¶
func (j *JobDispatchedBootState) SetDetail(detail string)
SetDetail sets the Detail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatchedBootState) SetElapsedMs ¶
func (j *JobDispatchedBootState) SetElapsedMs(elapsedMs int)
SetElapsedMs sets the ElapsedMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatchedBootState) SetEtaMs ¶
func (j *JobDispatchedBootState) SetEtaMs(etaMs *int)
SetEtaMs sets the EtaMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatchedBootState) SetPhase ¶
func (j *JobDispatchedBootState) SetPhase(phase string)
SetPhase sets the Phase field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatchedBootState) SetTypicalMs ¶
func (j *JobDispatchedBootState) SetTypicalMs(typicalMs *int)
SetTypicalMs sets the TypicalMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobDispatchedBootState) String ¶
func (j *JobDispatchedBootState) String() string
func (*JobDispatchedBootState) UnmarshalJSON ¶
func (j *JobDispatchedBootState) UnmarshalJSON(data []byte) error
type JobDispatchedOutputCategory ¶
type JobDispatchedOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobDispatchedOutputCategoryVideo JobDispatchedOutputCategory = "video" JobDispatchedOutputCategoryImage JobDispatchedOutputCategory = "image" JobDispatchedOutputCategoryAudio JobDispatchedOutputCategory = "audio" JobDispatchedOutputCategoryJSON JobDispatchedOutputCategory = "json" JobDispatchedOutputCategoryCaptions JobDispatchedOutputCategory = "captions" JobDispatchedOutputCategoryRaw JobDispatchedOutputCategory = "raw" )
func NewJobDispatchedOutputCategoryFromString ¶
func NewJobDispatchedOutputCategoryFromString(s string) (JobDispatchedOutputCategory, error)
func (JobDispatchedOutputCategory) Ptr ¶
func (j JobDispatchedOutputCategory) Ptr() *JobDispatchedOutputCategory
type JobError ¶
type JobError struct {
// Machine-readable error code
Code string `json:"code" url:"code"`
// Human-readable error message
Message string `json:"message" url:"message"`
// Real provider stderr tail (e.g. ffmpeg), or null
Detail *string `json:"detail,omitempty" url:"detail,omitempty"`
// True when retrying the same job may succeed
Retryable bool `json:"retryable" url:"retryable"`
// Which phase the job failed in, when known
FailedPhase *JobErrorFailedPhase `json:"failedPhase,omitempty" url:"failedPhase,omitempty"`
// contains filtered or unexported fields
}
func (*JobError) GetExtraProperties ¶
func (*JobError) GetFailedPhase ¶
func (j *JobError) GetFailedPhase() *JobErrorFailedPhase
func (*JobError) GetMessage ¶
func (*JobError) GetRetryable ¶
func (*JobError) MarshalJSON ¶
func (*JobError) SetCode ¶
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobError) SetDetail ¶
SetDetail sets the Detail field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobError) SetFailedPhase ¶
func (j *JobError) SetFailedPhase(failedPhase *JobErrorFailedPhase)
SetFailedPhase sets the FailedPhase field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobError) SetMessage ¶
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobError) SetRetryable ¶
SetRetryable sets the Retryable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobError) UnmarshalJSON ¶
type JobErrorFailedPhase ¶
type JobErrorFailedPhase string
Which phase the job failed in, when known
const ( JobErrorFailedPhasePreparing JobErrorFailedPhase = "preparing" JobErrorFailedPhaseProcessing JobErrorFailedPhase = "processing" JobErrorFailedPhaseFinalizing JobErrorFailedPhase = "finalizing" )
func NewJobErrorFailedPhaseFromString ¶
func NewJobErrorFailedPhaseFromString(s string) (JobErrorFailedPhase, error)
func (JobErrorFailedPhase) Ptr ¶
func (j JobErrorFailedPhase) Ptr() *JobErrorFailedPhase
type JobFailed ¶
type JobFailed struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobFailedOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
Error *JobError `json:"error" url:"error"`
// contains filtered or unexported fields
}
func (*JobFailed) GetCallback ¶
func (j *JobFailed) GetCallback() *CallbackStatus
func (*JobFailed) GetCompletedAt ¶
func (*JobFailed) GetCreatedAt ¶
func (*JobFailed) GetDeliveries ¶
func (j *JobFailed) GetDeliveries() []*JobDelivery
func (*JobFailed) GetDispatchedAt ¶
func (*JobFailed) GetExtraProperties ¶
func (*JobFailed) GetIdempotencyKey ¶
func (*JobFailed) GetLogsAvailable ¶
func (*JobFailed) GetMediaType ¶
func (*JobFailed) GetMetricsAvailable ¶
func (*JobFailed) GetOutputCategory ¶
func (j *JobFailed) GetOutputCategory() JobFailedOutputCategory
func (*JobFailed) GetResourcesAvailable ¶
func (*JobFailed) GetRetentionExpiresAt ¶
func (*JobFailed) GetRetryCount ¶
func (*JobFailed) GetSettledAt ¶
func (*JobFailed) GetStartedAt ¶
func (*JobFailed) GetTerminal ¶
func (*JobFailed) GetTimeoutMs ¶
func (*JobFailed) MarshalJSON ¶
func (*JobFailed) SetCallback ¶
func (j *JobFailed) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetClient ¶
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetCompletedAt ¶
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetCost ¶
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetDeliveries ¶
func (j *JobFailed) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetDispatchedAt ¶
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetError ¶
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetID ¶
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetIdempotencyKey ¶
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetInputs ¶
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetLabel ¶
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetLogsAvailable ¶
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetMediaType ¶
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetMetricsAvailable ¶
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetModel ¶
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetOrgID ¶
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetOutputCategory ¶
func (j *JobFailed) SetOutputCategory(outputCategory JobFailedOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetParams ¶
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetRegion ¶
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetResourcesAvailable ¶
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetRetentionExpiresAt ¶
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetRetryCount ¶
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetSettledAt ¶
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetSource ¶
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetStartedAt ¶
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetSteps ¶
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetTerminal ¶
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetTimeoutMs ¶
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetType ¶
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) SetWebURL ¶
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailed) UnmarshalJSON ¶
type JobFailedData ¶
type JobFailedData struct {
JobID string `json:"jobId" url:"jobId"`
JobType string `json:"jobType" url:"jobType"`
Status JobFailedDataStatus `json:"status" url:"status"`
Error *JobError `json:"error" url:"error"`
Timing *JobFailedDataTiming `json:"timing" url:"timing"`
Steps []*WebhookJobStep `json:"steps,omitempty" url:"steps,omitempty"`
// contains filtered or unexported fields
}
func (*JobFailedData) GetError ¶
func (j *JobFailedData) GetError() *JobError
func (*JobFailedData) GetExtraProperties ¶
func (j *JobFailedData) GetExtraProperties() map[string]interface{}
func (*JobFailedData) GetJobID ¶
func (j *JobFailedData) GetJobID() string
func (*JobFailedData) GetJobType ¶
func (j *JobFailedData) GetJobType() string
func (*JobFailedData) GetStatus ¶
func (j *JobFailedData) GetStatus() JobFailedDataStatus
func (*JobFailedData) GetSteps ¶
func (j *JobFailedData) GetSteps() []*WebhookJobStep
func (*JobFailedData) GetTiming ¶
func (j *JobFailedData) GetTiming() *JobFailedDataTiming
func (*JobFailedData) MarshalJSON ¶
func (j *JobFailedData) MarshalJSON() ([]byte, error)
func (*JobFailedData) SetError ¶
func (j *JobFailedData) SetError(error_ *JobError)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) SetJobID ¶
func (j *JobFailedData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) SetJobType ¶
func (j *JobFailedData) SetJobType(jobType string)
SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) SetStatus ¶
func (j *JobFailedData) SetStatus(status JobFailedDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) SetSteps ¶
func (j *JobFailedData) SetSteps(steps []*WebhookJobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) SetTiming ¶
func (j *JobFailedData) SetTiming(timing *JobFailedDataTiming)
SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedData) String ¶
func (j *JobFailedData) String() string
func (*JobFailedData) UnmarshalJSON ¶
func (j *JobFailedData) UnmarshalJSON(data []byte) error
type JobFailedDataStatus ¶
type JobFailedDataStatus string
const (
JobFailedDataStatusFailed JobFailedDataStatus = "failed"
)
func NewJobFailedDataStatusFromString ¶
func NewJobFailedDataStatusFromString(s string) (JobFailedDataStatus, error)
func (JobFailedDataStatus) Ptr ¶
func (j JobFailedDataStatus) Ptr() *JobFailedDataStatus
type JobFailedDataTiming ¶
type JobFailedDataTiming struct {
CreatedAt int `json:"createdAt" url:"createdAt"`
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
FailedAt int `json:"failedAt" url:"failedAt"`
// contains filtered or unexported fields
}
func (*JobFailedDataTiming) GetCreatedAt ¶
func (j *JobFailedDataTiming) GetCreatedAt() int
func (*JobFailedDataTiming) GetDispatchedAt ¶
func (j *JobFailedDataTiming) GetDispatchedAt() *int
func (*JobFailedDataTiming) GetExtraProperties ¶
func (j *JobFailedDataTiming) GetExtraProperties() map[string]interface{}
func (*JobFailedDataTiming) GetFailedAt ¶
func (j *JobFailedDataTiming) GetFailedAt() int
func (*JobFailedDataTiming) GetStartedAt ¶
func (j *JobFailedDataTiming) GetStartedAt() *int
func (*JobFailedDataTiming) MarshalJSON ¶
func (j *JobFailedDataTiming) MarshalJSON() ([]byte, error)
func (*JobFailedDataTiming) SetCreatedAt ¶
func (j *JobFailedDataTiming) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedDataTiming) SetDispatchedAt ¶
func (j *JobFailedDataTiming) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedDataTiming) SetFailedAt ¶
func (j *JobFailedDataTiming) SetFailedAt(failedAt int)
SetFailedAt sets the FailedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedDataTiming) SetStartedAt ¶
func (j *JobFailedDataTiming) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedDataTiming) String ¶
func (j *JobFailedDataTiming) String() string
func (*JobFailedDataTiming) UnmarshalJSON ¶
func (j *JobFailedDataTiming) UnmarshalJSON(data []byte) error
type JobFailedOutputCategory ¶
type JobFailedOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobFailedOutputCategoryVideo JobFailedOutputCategory = "video" JobFailedOutputCategoryImage JobFailedOutputCategory = "image" JobFailedOutputCategoryAudio JobFailedOutputCategory = "audio" JobFailedOutputCategoryJSON JobFailedOutputCategory = "json" JobFailedOutputCategoryCaptions JobFailedOutputCategory = "captions" JobFailedOutputCategoryRaw JobFailedOutputCategory = "raw" )
func NewJobFailedOutputCategoryFromString ¶
func NewJobFailedOutputCategoryFromString(s string) (JobFailedOutputCategory, error)
func (JobFailedOutputCategory) Ptr ¶
func (j JobFailedOutputCategory) Ptr() *JobFailedOutputCategory
type JobFailedWebhookEvent ¶
type JobFailedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobFailedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobFailedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobFailedWebhookEvent) GetData ¶
func (j *JobFailedWebhookEvent) GetData() *JobFailedData
func (*JobFailedWebhookEvent) GetDeliveryID ¶
func (j *JobFailedWebhookEvent) GetDeliveryID() string
func (*JobFailedWebhookEvent) GetExtraProperties ¶
func (j *JobFailedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobFailedWebhookEvent) GetOrgID ¶
func (j *JobFailedWebhookEvent) GetOrgID() string
func (*JobFailedWebhookEvent) GetTimestamp ¶
func (j *JobFailedWebhookEvent) GetTimestamp() int
func (*JobFailedWebhookEvent) GetVersion ¶
func (j *JobFailedWebhookEvent) GetVersion() JobFailedWebhookEventVersion
func (*JobFailedWebhookEvent) MarshalJSON ¶
func (j *JobFailedWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobFailedWebhookEvent) SetData ¶
func (j *JobFailedWebhookEvent) SetData(data *JobFailedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedWebhookEvent) SetDeliveryID ¶
func (j *JobFailedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedWebhookEvent) SetOrgID ¶
func (j *JobFailedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedWebhookEvent) SetTimestamp ¶
func (j *JobFailedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedWebhookEvent) SetVersion ¶
func (j *JobFailedWebhookEvent) SetVersion(version JobFailedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobFailedWebhookEvent) String ¶
func (j *JobFailedWebhookEvent) String() string
func (*JobFailedWebhookEvent) UnmarshalJSON ¶
func (j *JobFailedWebhookEvent) UnmarshalJSON(data []byte) error
type JobFailedWebhookEventVersion ¶
type JobFailedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobFailedWebhookEventVersionV1 JobFailedWebhookEventVersion = "1"
)
func NewJobFailedWebhookEventVersionFromString ¶
func NewJobFailedWebhookEventVersionFromString(s string) (JobFailedWebhookEventVersion, error)
func (JobFailedWebhookEventVersion) Ptr ¶
func (j JobFailedWebhookEventVersion) Ptr() *JobFailedWebhookEventVersion
type JobOutput ¶
type JobOutput struct {
// Job-type-specific computed result (probe result, detections, transcript). Shape varies per job type. Null when the job produced no structured data. For an ffprobe job it is an FfprobeResult (#/components/schemas/FfprobeResult).
Data any `json:"data,omitempty" url:"data,omitempty"`
// Convenience shortcut to the single headline result: the one output file, or the stream manifest (.m3u8/.mpd). Read `file.url` directly when you expect one output. Always one of `files`. Null for pure file sets and data-only jobs (which have no single headline).
File *JobOutputFile `json:"file,omitempty" url:"file,omitempty"`
// Every file the job produced, the complete list. Use this when a job can output many files (image sequence, HLS segments, resolution ladder). Empty for data-only jobs.
Files []*OutputFile `json:"files" url:"files"`
// Unix ms when the file URLs expire. Present iff `files` is non-empty.
ExpiresAt *int `json:"expiresAt,omitempty" url:"expiresAt,omitempty"`
// contains filtered or unexported fields
}
Job output. Present only when status is complete.
func (*JobOutput) GetExpiresAt ¶
func (*JobOutput) GetExtraProperties ¶
func (*JobOutput) GetFile ¶
func (j *JobOutput) GetFile() *JobOutputFile
func (*JobOutput) GetFiles ¶
func (j *JobOutput) GetFiles() []*OutputFile
func (*JobOutput) MarshalJSON ¶
func (*JobOutput) SetData ¶
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutput) SetExpiresAt ¶
SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutput) SetFile ¶
func (j *JobOutput) SetFile(file *JobOutputFile)
SetFile sets the File field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutput) SetFiles ¶
func (j *JobOutput) SetFiles(files []*OutputFile)
SetFiles sets the Files field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutput) UnmarshalJSON ¶
type JobOutputFile ¶
type JobOutputFile struct {
// Ready-to-fetch, time-limited URL for this file
URL string `json:"url" url:"url"`
// File path within the job output (relative). For an ffmpeg job, the name the command wrote.
Path string `json:"path" url:"path"`
Type OutputFileType `json:"type" url:"type"`
// File size in bytes
Size int `json:"size" url:"size"`
// SHA-256 of the file's bytes, 64 lowercase hex characters. Compare it with your own digest of a download or a delivered copy. Null on jobs completed before 2026-10 (single files) or 2026-10-22 (multi-file outputs).
Sha256 *string `json:"sha256,omitempty" url:"sha256,omitempty"`
// Optional per-file media metadata, when known
Meta *JobOutputFileMeta `json:"meta,omitempty" url:"meta,omitempty"`
// contains filtered or unexported fields
}
Convenience shortcut to the single headline result: the one output file, or the stream manifest (.m3u8/.mpd). Read `file.url` directly when you expect one output. Always one of `files`. Null for pure file sets and data-only jobs (which have no single headline).
func (*JobOutputFile) GetExtraProperties ¶
func (j *JobOutputFile) GetExtraProperties() map[string]interface{}
func (*JobOutputFile) GetMeta ¶
func (j *JobOutputFile) GetMeta() *JobOutputFileMeta
func (*JobOutputFile) GetPath ¶
func (j *JobOutputFile) GetPath() string
func (*JobOutputFile) GetSha256 ¶
func (j *JobOutputFile) GetSha256() *string
func (*JobOutputFile) GetSize ¶
func (j *JobOutputFile) GetSize() int
func (*JobOutputFile) GetType ¶
func (j *JobOutputFile) GetType() OutputFileType
func (*JobOutputFile) GetURL ¶
func (j *JobOutputFile) GetURL() string
func (*JobOutputFile) MarshalJSON ¶
func (j *JobOutputFile) MarshalJSON() ([]byte, error)
func (*JobOutputFile) SetMeta ¶
func (j *JobOutputFile) SetMeta(meta *JobOutputFileMeta)
SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) SetPath ¶
func (j *JobOutputFile) SetPath(path string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) SetSha256 ¶
func (j *JobOutputFile) SetSha256(sha256 *string)
SetSha256 sets the Sha256 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) SetSize ¶
func (j *JobOutputFile) SetSize(size int)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) SetType ¶
func (j *JobOutputFile) SetType(type_ OutputFileType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) SetURL ¶
func (j *JobOutputFile) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFile) String ¶
func (j *JobOutputFile) String() string
func (*JobOutputFile) UnmarshalJSON ¶
func (j *JobOutputFile) UnmarshalJSON(data []byte) error
type JobOutputFileMeta ¶
type JobOutputFileMeta struct {
// Container/codec format (from extension)
Format *string `json:"format,omitempty" url:"format,omitempty"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
Height *int `json:"height,omitempty" url:"height,omitempty"`
DurationMs *int `json:"durationMs,omitempty" url:"durationMs,omitempty"`
// Seed used, for reproducible generation
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// contains filtered or unexported fields
}
Optional per-file media metadata, when known
func (*JobOutputFileMeta) GetDurationMs ¶
func (j *JobOutputFileMeta) GetDurationMs() *int
func (*JobOutputFileMeta) GetExtraProperties ¶
func (j *JobOutputFileMeta) GetExtraProperties() map[string]interface{}
func (*JobOutputFileMeta) GetFormat ¶
func (j *JobOutputFileMeta) GetFormat() *string
func (*JobOutputFileMeta) GetHeight ¶
func (j *JobOutputFileMeta) GetHeight() *int
func (*JobOutputFileMeta) GetSeed ¶
func (j *JobOutputFileMeta) GetSeed() *int
func (*JobOutputFileMeta) GetWidth ¶
func (j *JobOutputFileMeta) GetWidth() *int
func (*JobOutputFileMeta) MarshalJSON ¶
func (j *JobOutputFileMeta) MarshalJSON() ([]byte, error)
func (*JobOutputFileMeta) SetDurationMs ¶
func (j *JobOutputFileMeta) SetDurationMs(durationMs *int)
SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFileMeta) SetFormat ¶
func (j *JobOutputFileMeta) SetFormat(format *string)
SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFileMeta) SetHeight ¶
func (j *JobOutputFileMeta) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFileMeta) SetSeed ¶
func (j *JobOutputFileMeta) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFileMeta) SetWidth ¶
func (j *JobOutputFileMeta) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobOutputFileMeta) String ¶
func (j *JobOutputFileMeta) String() string
func (*JobOutputFileMeta) UnmarshalJSON ¶
func (j *JobOutputFileMeta) UnmarshalJSON(data []byte) error
type JobReplayed ¶
type JobReplayed struct {
// Job ID of the earlier submit
ID string `json:"id" url:"id"`
// That job's current status: any of waiting, dispatched, running, complete, failed, cancelled
Status string `json:"status" url:"status"`
// This submit replayed an earlier one instead of creating a job
Idempotent bool `json:"idempotent" url:"idempotent"`
// contains filtered or unexported fields
}
func (*JobReplayed) GetExtraProperties ¶
func (j *JobReplayed) GetExtraProperties() map[string]interface{}
func (*JobReplayed) GetID ¶
func (j *JobReplayed) GetID() string
func (*JobReplayed) GetIdempotent ¶
func (j *JobReplayed) GetIdempotent() bool
func (*JobReplayed) GetStatus ¶
func (j *JobReplayed) GetStatus() string
func (*JobReplayed) MarshalJSON ¶
func (j *JobReplayed) MarshalJSON() ([]byte, error)
func (*JobReplayed) SetID ¶
func (j *JobReplayed) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobReplayed) SetIdempotent ¶
func (j *JobReplayed) SetIdempotent(idempotent bool)
SetIdempotent sets the Idempotent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobReplayed) SetStatus ¶
func (j *JobReplayed) SetStatus(status string)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobReplayed) String ¶
func (j *JobReplayed) String() string
func (*JobReplayed) UnmarshalJSON ¶
func (j *JobReplayed) UnmarshalJSON(data []byte) error
type JobRunning ¶
type JobRunning struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobRunningOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
// Completion fraction 0..1, or null when it cannot be determined
Progress *float64 `json:"progress,omitempty" url:"progress,omitempty"`
// Estimated seconds remaining, or null
Eta *float64 `json:"eta,omitempty" url:"eta,omitempty"`
// contains filtered or unexported fields
}
func (*JobRunning) GetCallback ¶
func (j *JobRunning) GetCallback() *CallbackStatus
func (*JobRunning) GetClient ¶
func (j *JobRunning) GetClient() *string
func (*JobRunning) GetCompletedAt ¶
func (j *JobRunning) GetCompletedAt() *int
func (*JobRunning) GetCost ¶
func (j *JobRunning) GetCost() *JobCost
func (*JobRunning) GetCreatedAt ¶
func (j *JobRunning) GetCreatedAt() int
func (*JobRunning) GetDeliveries ¶
func (j *JobRunning) GetDeliveries() []*JobDelivery
func (*JobRunning) GetDispatchedAt ¶
func (j *JobRunning) GetDispatchedAt() *int
func (*JobRunning) GetEta ¶
func (j *JobRunning) GetEta() *float64
func (*JobRunning) GetExtraProperties ¶
func (j *JobRunning) GetExtraProperties() map[string]interface{}
func (*JobRunning) GetID ¶
func (j *JobRunning) GetID() string
func (*JobRunning) GetIdempotencyKey ¶
func (j *JobRunning) GetIdempotencyKey() *string
func (*JobRunning) GetInputs ¶
func (j *JobRunning) GetInputs() map[string]any
func (*JobRunning) GetLabel ¶
func (j *JobRunning) GetLabel() *string
func (*JobRunning) GetLogsAvailable ¶
func (j *JobRunning) GetLogsAvailable() bool
func (*JobRunning) GetMediaType ¶
func (j *JobRunning) GetMediaType() *string
func (*JobRunning) GetMetricsAvailable ¶
func (j *JobRunning) GetMetricsAvailable() *bool
func (*JobRunning) GetModel ¶
func (j *JobRunning) GetModel() *string
func (*JobRunning) GetOrgID ¶
func (j *JobRunning) GetOrgID() string
func (*JobRunning) GetOutputCategory ¶
func (j *JobRunning) GetOutputCategory() JobRunningOutputCategory
func (*JobRunning) GetParams ¶
func (j *JobRunning) GetParams() map[string]any
func (*JobRunning) GetProgress ¶
func (j *JobRunning) GetProgress() *float64
func (*JobRunning) GetRegion ¶
func (j *JobRunning) GetRegion() *string
func (*JobRunning) GetResourcesAvailable ¶
func (j *JobRunning) GetResourcesAvailable() bool
func (*JobRunning) GetRetentionExpiresAt ¶
func (j *JobRunning) GetRetentionExpiresAt() *int
func (*JobRunning) GetRetryCount ¶
func (j *JobRunning) GetRetryCount() int
func (*JobRunning) GetSettledAt ¶
func (j *JobRunning) GetSettledAt() *int
func (*JobRunning) GetSource ¶
func (j *JobRunning) GetSource() string
func (*JobRunning) GetStartedAt ¶
func (j *JobRunning) GetStartedAt() *int
func (*JobRunning) GetSteps ¶
func (j *JobRunning) GetSteps() []*JobStep
func (*JobRunning) GetTerminal ¶
func (j *JobRunning) GetTerminal() bool
func (*JobRunning) GetTimeoutMs ¶
func (j *JobRunning) GetTimeoutMs() *int
func (*JobRunning) GetType ¶
func (j *JobRunning) GetType() string
func (*JobRunning) GetWebURL ¶
func (j *JobRunning) GetWebURL() string
func (*JobRunning) MarshalJSON ¶
func (j *JobRunning) MarshalJSON() ([]byte, error)
func (*JobRunning) SetCallback ¶
func (j *JobRunning) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetClient ¶
func (j *JobRunning) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetCompletedAt ¶
func (j *JobRunning) SetCompletedAt(completedAt *int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetCost ¶
func (j *JobRunning) SetCost(cost *JobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetCreatedAt ¶
func (j *JobRunning) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetDeliveries ¶
func (j *JobRunning) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetDispatchedAt ¶
func (j *JobRunning) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetEta ¶
func (j *JobRunning) SetEta(eta *float64)
SetEta sets the Eta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetID ¶
func (j *JobRunning) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetIdempotencyKey ¶
func (j *JobRunning) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetInputs ¶
func (j *JobRunning) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetLabel ¶
func (j *JobRunning) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetLogsAvailable ¶
func (j *JobRunning) SetLogsAvailable(logsAvailable bool)
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetMediaType ¶
func (j *JobRunning) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetMetricsAvailable ¶
func (j *JobRunning) SetMetricsAvailable(metricsAvailable *bool)
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetModel ¶
func (j *JobRunning) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetOrgID ¶
func (j *JobRunning) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetOutputCategory ¶
func (j *JobRunning) SetOutputCategory(outputCategory JobRunningOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetParams ¶
func (j *JobRunning) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetProgress ¶
func (j *JobRunning) SetProgress(progress *float64)
SetProgress sets the Progress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetRegion ¶
func (j *JobRunning) SetRegion(region *string)
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetResourcesAvailable ¶
func (j *JobRunning) SetResourcesAvailable(resourcesAvailable bool)
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetRetentionExpiresAt ¶
func (j *JobRunning) SetRetentionExpiresAt(retentionExpiresAt *int)
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetRetryCount ¶
func (j *JobRunning) SetRetryCount(retryCount int)
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetSettledAt ¶
func (j *JobRunning) SetSettledAt(settledAt *int)
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetSource ¶
func (j *JobRunning) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetStartedAt ¶
func (j *JobRunning) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetSteps ¶
func (j *JobRunning) SetSteps(steps []*JobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetTerminal ¶
func (j *JobRunning) SetTerminal(terminal bool)
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetTimeoutMs ¶
func (j *JobRunning) SetTimeoutMs(timeoutMs *int)
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetType ¶
func (j *JobRunning) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) SetWebURL ¶
func (j *JobRunning) SetWebURL(webURL string)
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobRunning) String ¶
func (j *JobRunning) String() string
func (*JobRunning) UnmarshalJSON ¶
func (j *JobRunning) UnmarshalJSON(data []byte) error
type JobRunningOutputCategory ¶
type JobRunningOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobRunningOutputCategoryVideo JobRunningOutputCategory = "video" JobRunningOutputCategoryImage JobRunningOutputCategory = "image" JobRunningOutputCategoryAudio JobRunningOutputCategory = "audio" JobRunningOutputCategoryJSON JobRunningOutputCategory = "json" JobRunningOutputCategoryCaptions JobRunningOutputCategory = "captions" JobRunningOutputCategoryRaw JobRunningOutputCategory = "raw" )
func NewJobRunningOutputCategoryFromString ¶
func NewJobRunningOutputCategoryFromString(s string) (JobRunningOutputCategory, error)
func (JobRunningOutputCategory) Ptr ¶
func (j JobRunningOutputCategory) Ptr() *JobRunningOutputCategory
type JobStartedData ¶
type JobStartedData struct {
JobID string `json:"jobId" url:"jobId"`
JobType string `json:"jobType" url:"jobType"`
Status JobStartedDataStatus `json:"status" url:"status"`
Timing *JobStartedDataTiming `json:"timing" url:"timing"`
// contains filtered or unexported fields
}
func (*JobStartedData) GetExtraProperties ¶
func (j *JobStartedData) GetExtraProperties() map[string]interface{}
func (*JobStartedData) GetJobID ¶
func (j *JobStartedData) GetJobID() string
func (*JobStartedData) GetJobType ¶
func (j *JobStartedData) GetJobType() string
func (*JobStartedData) GetStatus ¶
func (j *JobStartedData) GetStatus() JobStartedDataStatus
func (*JobStartedData) GetTiming ¶
func (j *JobStartedData) GetTiming() *JobStartedDataTiming
func (*JobStartedData) MarshalJSON ¶
func (j *JobStartedData) MarshalJSON() ([]byte, error)
func (*JobStartedData) SetJobID ¶
func (j *JobStartedData) SetJobID(jobID string)
SetJobID sets the JobID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedData) SetJobType ¶
func (j *JobStartedData) SetJobType(jobType string)
SetJobType sets the JobType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedData) SetStatus ¶
func (j *JobStartedData) SetStatus(status JobStartedDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedData) SetTiming ¶
func (j *JobStartedData) SetTiming(timing *JobStartedDataTiming)
SetTiming sets the Timing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedData) String ¶
func (j *JobStartedData) String() string
func (*JobStartedData) UnmarshalJSON ¶
func (j *JobStartedData) UnmarshalJSON(data []byte) error
type JobStartedDataStatus ¶
type JobStartedDataStatus string
const (
JobStartedDataStatusRunning JobStartedDataStatus = "running"
)
func NewJobStartedDataStatusFromString ¶
func NewJobStartedDataStatusFromString(s string) (JobStartedDataStatus, error)
func (JobStartedDataStatus) Ptr ¶
func (j JobStartedDataStatus) Ptr() *JobStartedDataStatus
type JobStartedDataTiming ¶
type JobStartedDataTiming struct {
CreatedAt int `json:"createdAt" url:"createdAt"`
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
StartedAt int `json:"startedAt" url:"startedAt"`
// contains filtered or unexported fields
}
func (*JobStartedDataTiming) GetCreatedAt ¶
func (j *JobStartedDataTiming) GetCreatedAt() int
func (*JobStartedDataTiming) GetDispatchedAt ¶
func (j *JobStartedDataTiming) GetDispatchedAt() *int
func (*JobStartedDataTiming) GetExtraProperties ¶
func (j *JobStartedDataTiming) GetExtraProperties() map[string]interface{}
func (*JobStartedDataTiming) GetStartedAt ¶
func (j *JobStartedDataTiming) GetStartedAt() int
func (*JobStartedDataTiming) MarshalJSON ¶
func (j *JobStartedDataTiming) MarshalJSON() ([]byte, error)
func (*JobStartedDataTiming) SetCreatedAt ¶
func (j *JobStartedDataTiming) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedDataTiming) SetDispatchedAt ¶
func (j *JobStartedDataTiming) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedDataTiming) SetStartedAt ¶
func (j *JobStartedDataTiming) SetStartedAt(startedAt int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedDataTiming) String ¶
func (j *JobStartedDataTiming) String() string
func (*JobStartedDataTiming) UnmarshalJSON ¶
func (j *JobStartedDataTiming) UnmarshalJSON(data []byte) error
type JobStartedWebhookEvent ¶
type JobStartedWebhookEvent struct {
// Envelope version. A new version is a new shape
Version JobStartedWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *JobStartedData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*JobStartedWebhookEvent) GetData ¶
func (j *JobStartedWebhookEvent) GetData() *JobStartedData
func (*JobStartedWebhookEvent) GetDeliveryID ¶
func (j *JobStartedWebhookEvent) GetDeliveryID() string
func (*JobStartedWebhookEvent) GetExtraProperties ¶
func (j *JobStartedWebhookEvent) GetExtraProperties() map[string]interface{}
func (*JobStartedWebhookEvent) GetOrgID ¶
func (j *JobStartedWebhookEvent) GetOrgID() string
func (*JobStartedWebhookEvent) GetTimestamp ¶
func (j *JobStartedWebhookEvent) GetTimestamp() int
func (*JobStartedWebhookEvent) GetVersion ¶
func (j *JobStartedWebhookEvent) GetVersion() JobStartedWebhookEventVersion
func (*JobStartedWebhookEvent) MarshalJSON ¶
func (j *JobStartedWebhookEvent) MarshalJSON() ([]byte, error)
func (*JobStartedWebhookEvent) SetData ¶
func (j *JobStartedWebhookEvent) SetData(data *JobStartedData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedWebhookEvent) SetDeliveryID ¶
func (j *JobStartedWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedWebhookEvent) SetOrgID ¶
func (j *JobStartedWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedWebhookEvent) SetTimestamp ¶
func (j *JobStartedWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedWebhookEvent) SetVersion ¶
func (j *JobStartedWebhookEvent) SetVersion(version JobStartedWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStartedWebhookEvent) String ¶
func (j *JobStartedWebhookEvent) String() string
func (*JobStartedWebhookEvent) UnmarshalJSON ¶
func (j *JobStartedWebhookEvent) UnmarshalJSON(data []byte) error
type JobStartedWebhookEventVersion ¶
type JobStartedWebhookEventVersion string
Envelope version. A new version is a new shape
const (
JobStartedWebhookEventVersionV1 JobStartedWebhookEventVersion = "1"
)
func NewJobStartedWebhookEventVersionFromString ¶
func NewJobStartedWebhookEventVersionFromString(s string) (JobStartedWebhookEventVersion, error)
func (JobStartedWebhookEventVersion) Ptr ¶
func (j JobStartedWebhookEventVersion) Ptr() *JobStartedWebhookEventVersion
type JobStep ¶
type JobStep struct {
ID string `json:"id" url:"id"`
Name string `json:"name" url:"name"`
// pending | running | complete | skipped | error
Status string `json:"status" url:"status"`
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
DurationMs *int `json:"durationMs,omitempty" url:"durationMs,omitempty"`
Meta map[string]any `json:"meta,omitempty" url:"meta,omitempty"`
Error *string `json:"error,omitempty" url:"error,omitempty"`
// contains filtered or unexported fields
}
func (*JobStep) GetCompletedAt ¶
func (*JobStep) GetDurationMs ¶
func (*JobStep) GetExtraProperties ¶
func (*JobStep) GetStartedAt ¶
func (*JobStep) MarshalJSON ¶
func (*JobStep) SetCompletedAt ¶
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetDurationMs ¶
SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetError ¶
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetID ¶
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetMeta ¶
SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetName ¶
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetStartedAt ¶
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) SetStatus ¶
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobStep) UnmarshalJSON ¶
type JobType ¶
type JobType struct {
// Job type identifier (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// Category tag
Tag string `json:"tag" url:"tag"`
// Short description
Summary string `json:"summary" url:"summary"`
// Accepted media types
AcceptsMedia []string `json:"acceptsMedia" url:"acceptsMedia"`
// What this job type is typically used for
UseCases []string `json:"useCases" url:"useCases"`
// Job types whose output commonly feeds this one, or vice versa
ChainsWith []string `json:"chainsWith" url:"chainsWith"`
// contains filtered or unexported fields
}
func (*JobType) GetAcceptsMedia ¶
func (*JobType) GetChainsWith ¶
func (*JobType) GetExtraProperties ¶
func (*JobType) GetSummary ¶
func (*JobType) GetUseCases ¶
func (*JobType) MarshalJSON ¶
func (*JobType) SetAcceptsMedia ¶
SetAcceptsMedia sets the AcceptsMedia field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) SetChainsWith ¶
SetChainsWith sets the ChainsWith field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) SetSummary ¶
SetSummary sets the Summary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) SetTag ¶
SetTag sets the Tag field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) SetType ¶
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) SetUseCases ¶
SetUseCases sets the UseCases field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobType) UnmarshalJSON ¶
type JobVisitor ¶
type JobVisitor interface {
VisitWaiting(*JobWaiting) error
VisitDispatched(*JobDispatched) error
VisitRunning(*JobRunning) error
VisitComplete(*JobComplete) error
VisitFailed(*JobFailed) error
VisitCancelled(*JobCancelled) error
}
type JobWaiting ¶
type JobWaiting struct {
// Job ID (e.g. job_abc123)
ID string `json:"id" url:"id"`
// Organization ID
OrgID string `json:"orgId" url:"orgId"`
// Job type (e.g. ffmpeg)
Type string `json:"type" url:"type"`
// How the job was created (api | dashboard | mcp ...)
Source string `json:"source" url:"source"`
// Originating client (sdk | cli | mcp | n8n | ...), or null
Client *string `json:"client,omitempty" url:"client,omitempty"`
// Number of retry attempts
RetryCount int `json:"retryCount" url:"retryCount"`
// Caller-supplied idempotency key, or null
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// Caller-chosen name for the job, or null
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Detected media type (video | image | audio), or null
MediaType *string `json:"mediaType,omitempty" url:"mediaType,omitempty"`
// Input file references
Inputs map[string]any `json:"inputs" url:"inputs"`
// Job parameters
Params map[string]any `json:"params" url:"params"`
Cost *JobCost `json:"cost,omitempty" url:"cost,omitempty"`
// Output category. Clients should tolerate unknown future values.
OutputCategory JobWaitingOutputCategory `json:"outputCategory" url:"outputCategory"`
// Execution steps
Steps []*JobStep `json:"steps" url:"steps"`
// Whether execution logs are stored
LogsAvailable bool `json:"logsAvailable" url:"logsAvailable"`
// Whether the resource-utilization series is stored
ResourcesAvailable bool `json:"resourcesAvailable" url:"resourcesAvailable"`
// @deprecated renamed to resourcesAvailable; kept until the next major
MetricsAvailable *bool `json:"metricsAvailable,omitempty" url:"metricsAvailable,omitempty"`
// Execution region (e.g. us-east-1), null until dispatched
Region *string `json:"region,omitempty" url:"region,omitempty"`
// How long this job is allowed to run, in milliseconds: the requested timeout clamped to the plan ceiling. Null until the job is dispatched. Clients waiting on a job should bound the wait by this rather than a fixed guess.
TimeoutMs *int `json:"timeoutMs,omitempty" url:"timeoutMs,omitempty"`
// Creation timestamp (Unix ms)
CreatedAt int `json:"createdAt" url:"createdAt"`
// Dispatch timestamp (Unix ms)
DispatchedAt *int `json:"dispatchedAt,omitempty" url:"dispatchedAt,omitempty"`
// Start timestamp (Unix ms)
StartedAt *int `json:"startedAt,omitempty" url:"startedAt,omitempty"`
// Completion timestamp (Unix ms)
CompletedAt *int `json:"completedAt,omitempty" url:"completedAt,omitempty"`
// CF Worker timestamp when terminal status written (Unix ms)
SettledAt *int `json:"settledAt,omitempty" url:"settledAt,omitempty"`
// Unix ms when the stored output files are deleted (completion + plan retention window). Null until the job completes with a stored output. Distinct from output.expiresAt, which is the short-lived download-URL expiry.
RetentionExpiresAt *int `json:"retentionExpiresAt,omitempty" url:"retentionExpiresAt,omitempty"`
// Dashboard URL for this job
WebURL string `json:"webUrl" url:"webUrl"`
// Resolved generation model id (image.generate / image.edit jobs only), else null
Model *string `json:"model,omitempty" url:"model,omitempty"`
// True once the job has ended (complete, failed or cancelled), false while it waits or runs. Stop waiting on this rather than on a list of statuses: it stays right when a status is added.
Terminal bool `json:"terminal" url:"terminal"`
Callback *CallbackStatus `json:"callback,omitempty" url:"callback,omitempty"`
// Where the output was or will be delivered, one entry per destination given at submit. Detail endpoint only; absent when the job had no destinations.
Deliveries []*JobDelivery `json:"deliveries,omitempty" url:"deliveries,omitempty"`
// contains filtered or unexported fields
}
func (*JobWaiting) GetCallback ¶
func (j *JobWaiting) GetCallback() *CallbackStatus
func (*JobWaiting) GetClient ¶
func (j *JobWaiting) GetClient() *string
func (*JobWaiting) GetCompletedAt ¶
func (j *JobWaiting) GetCompletedAt() *int
func (*JobWaiting) GetCost ¶
func (j *JobWaiting) GetCost() *JobCost
func (*JobWaiting) GetCreatedAt ¶
func (j *JobWaiting) GetCreatedAt() int
func (*JobWaiting) GetDeliveries ¶
func (j *JobWaiting) GetDeliveries() []*JobDelivery
func (*JobWaiting) GetDispatchedAt ¶
func (j *JobWaiting) GetDispatchedAt() *int
func (*JobWaiting) GetExtraProperties ¶
func (j *JobWaiting) GetExtraProperties() map[string]interface{}
func (*JobWaiting) GetID ¶
func (j *JobWaiting) GetID() string
func (*JobWaiting) GetIdempotencyKey ¶
func (j *JobWaiting) GetIdempotencyKey() *string
func (*JobWaiting) GetInputs ¶
func (j *JobWaiting) GetInputs() map[string]any
func (*JobWaiting) GetLabel ¶
func (j *JobWaiting) GetLabel() *string
func (*JobWaiting) GetLogsAvailable ¶
func (j *JobWaiting) GetLogsAvailable() bool
func (*JobWaiting) GetMediaType ¶
func (j *JobWaiting) GetMediaType() *string
func (*JobWaiting) GetMetricsAvailable ¶
func (j *JobWaiting) GetMetricsAvailable() *bool
func (*JobWaiting) GetModel ¶
func (j *JobWaiting) GetModel() *string
func (*JobWaiting) GetOrgID ¶
func (j *JobWaiting) GetOrgID() string
func (*JobWaiting) GetOutputCategory ¶
func (j *JobWaiting) GetOutputCategory() JobWaitingOutputCategory
func (*JobWaiting) GetParams ¶
func (j *JobWaiting) GetParams() map[string]any
func (*JobWaiting) GetRegion ¶
func (j *JobWaiting) GetRegion() *string
func (*JobWaiting) GetResourcesAvailable ¶
func (j *JobWaiting) GetResourcesAvailable() bool
func (*JobWaiting) GetRetentionExpiresAt ¶
func (j *JobWaiting) GetRetentionExpiresAt() *int
func (*JobWaiting) GetRetryCount ¶
func (j *JobWaiting) GetRetryCount() int
func (*JobWaiting) GetSettledAt ¶
func (j *JobWaiting) GetSettledAt() *int
func (*JobWaiting) GetSource ¶
func (j *JobWaiting) GetSource() string
func (*JobWaiting) GetStartedAt ¶
func (j *JobWaiting) GetStartedAt() *int
func (*JobWaiting) GetSteps ¶
func (j *JobWaiting) GetSteps() []*JobStep
func (*JobWaiting) GetTerminal ¶
func (j *JobWaiting) GetTerminal() bool
func (*JobWaiting) GetTimeoutMs ¶
func (j *JobWaiting) GetTimeoutMs() *int
func (*JobWaiting) GetType ¶
func (j *JobWaiting) GetType() string
func (*JobWaiting) GetWebURL ¶
func (j *JobWaiting) GetWebURL() string
func (*JobWaiting) MarshalJSON ¶
func (j *JobWaiting) MarshalJSON() ([]byte, error)
func (*JobWaiting) SetCallback ¶
func (j *JobWaiting) SetCallback(callback *CallbackStatus)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetClient ¶
func (j *JobWaiting) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetCompletedAt ¶
func (j *JobWaiting) SetCompletedAt(completedAt *int)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetCost ¶
func (j *JobWaiting) SetCost(cost *JobCost)
SetCost sets the Cost field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetCreatedAt ¶
func (j *JobWaiting) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetDeliveries ¶
func (j *JobWaiting) SetDeliveries(deliveries []*JobDelivery)
SetDeliveries sets the Deliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetDispatchedAt ¶
func (j *JobWaiting) SetDispatchedAt(dispatchedAt *int)
SetDispatchedAt sets the DispatchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetID ¶
func (j *JobWaiting) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetIdempotencyKey ¶
func (j *JobWaiting) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetInputs ¶
func (j *JobWaiting) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetLabel ¶
func (j *JobWaiting) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetLogsAvailable ¶
func (j *JobWaiting) SetLogsAvailable(logsAvailable bool)
SetLogsAvailable sets the LogsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetMediaType ¶
func (j *JobWaiting) SetMediaType(mediaType *string)
SetMediaType sets the MediaType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetMetricsAvailable ¶
func (j *JobWaiting) SetMetricsAvailable(metricsAvailable *bool)
SetMetricsAvailable sets the MetricsAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetModel ¶
func (j *JobWaiting) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetOrgID ¶
func (j *JobWaiting) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetOutputCategory ¶
func (j *JobWaiting) SetOutputCategory(outputCategory JobWaitingOutputCategory)
SetOutputCategory sets the OutputCategory field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetParams ¶
func (j *JobWaiting) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetRegion ¶
func (j *JobWaiting) SetRegion(region *string)
SetRegion sets the Region field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetResourcesAvailable ¶
func (j *JobWaiting) SetResourcesAvailable(resourcesAvailable bool)
SetResourcesAvailable sets the ResourcesAvailable field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetRetentionExpiresAt ¶
func (j *JobWaiting) SetRetentionExpiresAt(retentionExpiresAt *int)
SetRetentionExpiresAt sets the RetentionExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetRetryCount ¶
func (j *JobWaiting) SetRetryCount(retryCount int)
SetRetryCount sets the RetryCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetSettledAt ¶
func (j *JobWaiting) SetSettledAt(settledAt *int)
SetSettledAt sets the SettledAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetSource ¶
func (j *JobWaiting) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetStartedAt ¶
func (j *JobWaiting) SetStartedAt(startedAt *int)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetSteps ¶
func (j *JobWaiting) SetSteps(steps []*JobStep)
SetSteps sets the Steps field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetTerminal ¶
func (j *JobWaiting) SetTerminal(terminal bool)
SetTerminal sets the Terminal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetTimeoutMs ¶
func (j *JobWaiting) SetTimeoutMs(timeoutMs *int)
SetTimeoutMs sets the TimeoutMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetType ¶
func (j *JobWaiting) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) SetWebURL ¶
func (j *JobWaiting) SetWebURL(webURL string)
SetWebURL sets the WebURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobWaiting) String ¶
func (j *JobWaiting) String() string
func (*JobWaiting) UnmarshalJSON ¶
func (j *JobWaiting) UnmarshalJSON(data []byte) error
type JobWaitingOutputCategory ¶
type JobWaitingOutputCategory string
Output category. Clients should tolerate unknown future values.
const ( JobWaitingOutputCategoryVideo JobWaitingOutputCategory = "video" JobWaitingOutputCategoryImage JobWaitingOutputCategory = "image" JobWaitingOutputCategoryAudio JobWaitingOutputCategory = "audio" JobWaitingOutputCategoryJSON JobWaitingOutputCategory = "json" JobWaitingOutputCategoryCaptions JobWaitingOutputCategory = "captions" JobWaitingOutputCategoryRaw JobWaitingOutputCategory = "raw" )
func NewJobWaitingOutputCategoryFromString ¶
func NewJobWaitingOutputCategoryFromString(s string) (JobWaitingOutputCategory, error)
func (JobWaitingOutputCategory) Ptr ¶
func (j JobWaitingOutputCategory) Ptr() *JobWaitingOutputCategory
type ListJobTypesResponse ¶
type ListJobTypesResponse struct {
Data []*JobType `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*ListJobTypesResponse) GetData ¶
func (l *ListJobTypesResponse) GetData() []*JobType
func (*ListJobTypesResponse) GetExtraProperties ¶
func (l *ListJobTypesResponse) GetExtraProperties() map[string]interface{}
func (*ListJobTypesResponse) MarshalJSON ¶
func (l *ListJobTypesResponse) MarshalJSON() ([]byte, error)
func (*ListJobTypesResponse) SetData ¶
func (l *ListJobTypesResponse) SetData(data []*JobType)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobTypesResponse) String ¶
func (l *ListJobTypesResponse) String() string
func (*ListJobTypesResponse) UnmarshalJSON ¶
func (l *ListJobTypesResponse) UnmarshalJSON(data []byte) error
type ListJobsRequest ¶
type ListJobsRequest struct {
// Filter by job status
Status *ListJobsRequestStatus `json:"-" url:"status,omitempty"`
// Filter by job type (e.g., ffmpeg)
Type *string `json:"-" url:"type,omitempty"`
// Page size (default 50, max 100)
Limit *int `json:"-" url:"limit,omitempty"`
// Pagination offset (default 0)
Offset *int `json:"-" url:"offset,omitempty"`
// Sort field (default created)
Sort *ListJobsRequestSort `json:"-" url:"sort,omitempty"`
// Sort order (default desc)
Order *ListJobsRequestOrder `json:"-" url:"order,omitempty"`
// Filter by originating client
Client *string `json:"-" url:"client,omitempty"`
// Created-after (Unix ms)
From *int `json:"-" url:"from,omitempty"`
// Created-before (Unix ms)
To *int `json:"-" url:"to,omitempty"`
// contains filtered or unexported fields
}
func (*ListJobsRequest) SetClient ¶
func (l *ListJobsRequest) SetClient(client *string)
SetClient sets the Client field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetFrom ¶
func (l *ListJobsRequest) SetFrom(from *int)
SetFrom sets the From field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetLimit ¶
func (l *ListJobsRequest) SetLimit(limit *int)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetOffset ¶
func (l *ListJobsRequest) SetOffset(offset *int)
SetOffset sets the Offset field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetOrder ¶
func (l *ListJobsRequest) SetOrder(order *ListJobsRequestOrder)
SetOrder sets the Order field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetSort ¶
func (l *ListJobsRequest) SetSort(sort *ListJobsRequestSort)
SetSort sets the Sort field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetStatus ¶
func (l *ListJobsRequest) SetStatus(status *ListJobsRequestStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetTo ¶
func (l *ListJobsRequest) SetTo(to *int)
SetTo sets the To field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetType ¶
func (l *ListJobsRequest) SetType(type_ *string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type ListJobsRequestOrder ¶
type ListJobsRequestOrder string
Sort order (default desc)
const ( ListJobsRequestOrderAsc ListJobsRequestOrder = "asc" ListJobsRequestOrderDesc ListJobsRequestOrder = "desc" )
func NewListJobsRequestOrderFromString ¶
func NewListJobsRequestOrderFromString(s string) (ListJobsRequestOrder, error)
func (ListJobsRequestOrder) Ptr ¶
func (l ListJobsRequestOrder) Ptr() *ListJobsRequestOrder
type ListJobsRequestSort ¶
type ListJobsRequestSort string
Sort field (default created)
const ( ListJobsRequestSortCreated ListJobsRequestSort = "created" ListJobsRequestSortDuration ListJobsRequestSort = "duration" ListJobsRequestSortCost ListJobsRequestSort = "cost" )
func NewListJobsRequestSortFromString ¶
func NewListJobsRequestSortFromString(s string) (ListJobsRequestSort, error)
func (ListJobsRequestSort) Ptr ¶
func (l ListJobsRequestSort) Ptr() *ListJobsRequestSort
type ListJobsRequestStatus ¶
type ListJobsRequestStatus string
Filter by job status
const ( ListJobsRequestStatusWaiting ListJobsRequestStatus = "waiting" ListJobsRequestStatusDispatched ListJobsRequestStatus = "dispatched" ListJobsRequestStatusRunning ListJobsRequestStatus = "running" ListJobsRequestStatusComplete ListJobsRequestStatus = "complete" ListJobsRequestStatusFailed ListJobsRequestStatus = "failed" ListJobsRequestStatusCancelled ListJobsRequestStatus = "cancelled" )
func NewListJobsRequestStatusFromString ¶
func NewListJobsRequestStatusFromString(s string) (ListJobsRequestStatus, error)
func (ListJobsRequestStatus) Ptr ¶
func (l ListJobsRequestStatus) Ptr() *ListJobsRequestStatus
type ListJobsResponse ¶
type ListJobsResponse struct {
Data []*Job `json:"data" url:"data"`
Meta *ListJobsResponseMeta `json:"meta" url:"meta"`
// contains filtered or unexported fields
}
func (*ListJobsResponse) GetData ¶
func (l *ListJobsResponse) GetData() []*Job
func (*ListJobsResponse) GetExtraProperties ¶
func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}
func (*ListJobsResponse) GetMeta ¶
func (l *ListJobsResponse) GetMeta() *ListJobsResponseMeta
func (*ListJobsResponse) MarshalJSON ¶
func (l *ListJobsResponse) MarshalJSON() ([]byte, error)
func (*ListJobsResponse) SetData ¶
func (l *ListJobsResponse) SetData(data []*Job)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponse) SetMeta ¶
func (l *ListJobsResponse) SetMeta(meta *ListJobsResponseMeta)
SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponse) String ¶
func (l *ListJobsResponse) String() string
func (*ListJobsResponse) UnmarshalJSON ¶
func (l *ListJobsResponse) UnmarshalJSON(data []byte) error
type ListJobsResponseMeta ¶
type ListJobsResponseMeta struct {
Total int `json:"total" url:"total"`
Page int `json:"page" url:"page"`
Limit int `json:"limit" url:"limit"`
// contains filtered or unexported fields
}
func (*ListJobsResponseMeta) GetExtraProperties ¶
func (l *ListJobsResponseMeta) GetExtraProperties() map[string]interface{}
func (*ListJobsResponseMeta) GetLimit ¶
func (l *ListJobsResponseMeta) GetLimit() int
func (*ListJobsResponseMeta) GetPage ¶
func (l *ListJobsResponseMeta) GetPage() int
func (*ListJobsResponseMeta) GetTotal ¶
func (l *ListJobsResponseMeta) GetTotal() int
func (*ListJobsResponseMeta) MarshalJSON ¶
func (l *ListJobsResponseMeta) MarshalJSON() ([]byte, error)
func (*ListJobsResponseMeta) SetLimit ¶
func (l *ListJobsResponseMeta) SetLimit(limit int)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponseMeta) SetPage ¶
func (l *ListJobsResponseMeta) SetPage(page int)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponseMeta) SetTotal ¶
func (l *ListJobsResponseMeta) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponseMeta) String ¶
func (l *ListJobsResponseMeta) String() string
func (*ListJobsResponseMeta) UnmarshalJSON ¶
func (l *ListJobsResponseMeta) UnmarshalJSON(data []byte) error
type NotFoundError ¶
type NotFoundError struct {
*core.APIError
Body *ErrorResponse
}
Job type not found or not active
func (*NotFoundError) GetBody ¶
func (n *NotFoundError) GetBody() *ErrorResponse
func (*NotFoundError) MarshalJSON ¶
func (n *NotFoundError) MarshalJSON() ([]byte, error)
func (*NotFoundError) UnmarshalJSON ¶
func (n *NotFoundError) UnmarshalJSON(data []byte) error
func (*NotFoundError) Unwrap ¶
func (n *NotFoundError) Unwrap() error
type OauthScope ¶
type OauthScope string
const ( // View your jobs and their results OauthScopeJobsRead OauthScope = "jobs:read" // Run and cancel jobs, which spends credits OauthScopeJobsWrite OauthScope = "jobs:write" // View and download your files OauthScopeAssetsRead OauthScope = "assets:read" // Upload and delete files OauthScopeAssetsWrite OauthScope = "assets:write" // View your webhooks and their deliveries OauthScopeWebhooksRead OauthScope = "webhooks:read" // Create, change and remove webhooks OauthScopeWebhooksWrite OauthScope = "webhooks:write" // View your plan, balance and usage OauthScopeBillingRead OauthScope = "billing:read" // Buy credits and manage payment methods OauthScopeBillingWrite OauthScope = "billing:write" // View your workspace settings OauthScopeOrgsRead OauthScope = "orgs:read" // Change your workspace settings OauthScopeOrgsWrite OauthScope = "orgs:write" // View which API keys exist OauthScopeKeysRead OauthScope = "keys:read" // Create and revoke API keys OauthScopeKeysWrite OauthScope = "keys:write" // View your connected storage OauthScopeStorageRead OauthScope = "storage:read" // Connect, rotate and remove storage OauthScopeStorageWrite OauthScope = "storage:write" // View your team and its invitations OauthScopeTeamRead OauthScope = "team:read" // Manage members and invitations OauthScopeTeamWrite OauthScope = "team:write" // View your workspace OauthScopeWorkspaceRead OauthScope = "workspace:read" // Change the plan or delete the workspace OauthScopeWorkspaceWrite OauthScope = "workspace:write" )
func NewOauthScopeFromString ¶
func NewOauthScopeFromString(s string) (OauthScope, error)
func (OauthScope) Ptr ¶
func (o OauthScope) Ptr() *OauthScope
type OutputFile ¶
type OutputFile struct {
// Ready-to-fetch, time-limited URL for this file
URL string `json:"url" url:"url"`
// File path within the job output (relative). For an ffmpeg job, the name the command wrote.
Path string `json:"path" url:"path"`
Type OutputFileType `json:"type" url:"type"`
// File size in bytes
Size int `json:"size" url:"size"`
// SHA-256 of the file's bytes, 64 lowercase hex characters. Compare it with your own digest of a download or a delivered copy. Null on jobs completed before 2026-10 (single files) or 2026-10-22 (multi-file outputs).
Sha256 *string `json:"sha256,omitempty" url:"sha256,omitempty"`
// Optional per-file media metadata, when known
Meta *OutputFileMeta `json:"meta,omitempty" url:"meta,omitempty"`
// contains filtered or unexported fields
}
func (*OutputFile) GetExtraProperties ¶
func (o *OutputFile) GetExtraProperties() map[string]interface{}
func (*OutputFile) GetMeta ¶
func (o *OutputFile) GetMeta() *OutputFileMeta
func (*OutputFile) GetPath ¶
func (o *OutputFile) GetPath() string
func (*OutputFile) GetSha256 ¶
func (o *OutputFile) GetSha256() *string
func (*OutputFile) GetSize ¶
func (o *OutputFile) GetSize() int
func (*OutputFile) GetType ¶
func (o *OutputFile) GetType() OutputFileType
func (*OutputFile) GetURL ¶
func (o *OutputFile) GetURL() string
func (*OutputFile) MarshalJSON ¶
func (o *OutputFile) MarshalJSON() ([]byte, error)
func (*OutputFile) SetMeta ¶
func (o *OutputFile) SetMeta(meta *OutputFileMeta)
SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) SetPath ¶
func (o *OutputFile) SetPath(path string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) SetSha256 ¶
func (o *OutputFile) SetSha256(sha256 *string)
SetSha256 sets the Sha256 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) SetSize ¶
func (o *OutputFile) SetSize(size int)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) SetType ¶
func (o *OutputFile) SetType(type_ OutputFileType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) SetURL ¶
func (o *OutputFile) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFile) String ¶
func (o *OutputFile) String() string
func (*OutputFile) UnmarshalJSON ¶
func (o *OutputFile) UnmarshalJSON(data []byte) error
type OutputFileMeta ¶
type OutputFileMeta struct {
// Container/codec format (from extension)
Format *string `json:"format,omitempty" url:"format,omitempty"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
Height *int `json:"height,omitempty" url:"height,omitempty"`
DurationMs *int `json:"durationMs,omitempty" url:"durationMs,omitempty"`
// Seed used, for reproducible generation
Seed *int `json:"seed,omitempty" url:"seed,omitempty"`
// contains filtered or unexported fields
}
Optional per-file media metadata, when known
func (*OutputFileMeta) GetDurationMs ¶
func (o *OutputFileMeta) GetDurationMs() *int
func (*OutputFileMeta) GetExtraProperties ¶
func (o *OutputFileMeta) GetExtraProperties() map[string]interface{}
func (*OutputFileMeta) GetFormat ¶
func (o *OutputFileMeta) GetFormat() *string
func (*OutputFileMeta) GetHeight ¶
func (o *OutputFileMeta) GetHeight() *int
func (*OutputFileMeta) GetSeed ¶
func (o *OutputFileMeta) GetSeed() *int
func (*OutputFileMeta) GetWidth ¶
func (o *OutputFileMeta) GetWidth() *int
func (*OutputFileMeta) MarshalJSON ¶
func (o *OutputFileMeta) MarshalJSON() ([]byte, error)
func (*OutputFileMeta) SetDurationMs ¶
func (o *OutputFileMeta) SetDurationMs(durationMs *int)
SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFileMeta) SetFormat ¶
func (o *OutputFileMeta) SetFormat(format *string)
SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFileMeta) SetHeight ¶
func (o *OutputFileMeta) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFileMeta) SetSeed ¶
func (o *OutputFileMeta) SetSeed(seed *int)
SetSeed sets the Seed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFileMeta) SetWidth ¶
func (o *OutputFileMeta) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OutputFileMeta) String ¶
func (o *OutputFileMeta) String() string
func (*OutputFileMeta) UnmarshalJSON ¶
func (o *OutputFileMeta) UnmarshalJSON(data []byte) error
type OutputFileType ¶
type OutputFileType string
File type, derived from the extension. OPEN enum — tolerate unknown future values.
const ( OutputFileTypeVideo OutputFileType = "video" OutputFileTypeImage OutputFileType = "image" OutputFileTypeAudio OutputFileType = "audio" OutputFileTypeCaptions OutputFileType = "captions" OutputFileTypePlaylist OutputFileType = "playlist" OutputFileTypeData OutputFileType = "data" OutputFileTypeOther OutputFileType = "other" )
func NewOutputFileTypeFromString ¶
func NewOutputFileTypeFromString(s string) (OutputFileType, error)
func (OutputFileType) Ptr ¶
func (o OutputFileType) Ptr() *OutputFileType
type PaymentRequiredError ¶
type PaymentRequiredError struct {
*core.APIError
Body *ErrorResponse
}
Insufficient credits
func (*PaymentRequiredError) GetBody ¶
func (p *PaymentRequiredError) GetBody() *ErrorResponse
func (*PaymentRequiredError) MarshalJSON ¶
func (p *PaymentRequiredError) MarshalJSON() ([]byte, error)
func (*PaymentRequiredError) UnmarshalJSON ¶
func (p *PaymentRequiredError) UnmarshalJSON(data []byte) error
func (*PaymentRequiredError) Unwrap ¶
func (p *PaymentRequiredError) Unwrap() error
type SettledDelivery ¶
type SettledDelivery struct {
// The storage connection id
StorageID string `json:"storageId" url:"storageId"`
Status SettledDeliveryStatus `json:"status" url:"status"`
// Object key in the bucket, rendered from the template. A multi-file output is a folder, and its path ends in /
Path *string `json:"path,omitempty" url:"path,omitempty"`
// Where to fetch it: the public base URL when set, else our files route. Absent for a folder
URL *string `json:"url,omitempty" url:"url,omitempty"`
Reason *SettledDeliveryReason `json:"reason,omitempty" url:"reason,omitempty"`
// The name was taken, so the job's tail was appended to free it
Renamed *bool `json:"renamed,omitempty" url:"renamed,omitempty"`
// contains filtered or unexported fields
}
func (*SettledDelivery) GetExtraProperties ¶
func (s *SettledDelivery) GetExtraProperties() map[string]interface{}
func (*SettledDelivery) GetPath ¶
func (s *SettledDelivery) GetPath() *string
func (*SettledDelivery) GetReason ¶
func (s *SettledDelivery) GetReason() *SettledDeliveryReason
func (*SettledDelivery) GetRenamed ¶
func (s *SettledDelivery) GetRenamed() *bool
func (*SettledDelivery) GetStatus ¶
func (s *SettledDelivery) GetStatus() SettledDeliveryStatus
func (*SettledDelivery) GetStorageID ¶
func (s *SettledDelivery) GetStorageID() string
func (*SettledDelivery) GetURL ¶
func (s *SettledDelivery) GetURL() *string
func (*SettledDelivery) MarshalJSON ¶
func (s *SettledDelivery) MarshalJSON() ([]byte, error)
func (*SettledDelivery) SetPath ¶
func (s *SettledDelivery) SetPath(path *string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) SetReason ¶
func (s *SettledDelivery) SetReason(reason *SettledDeliveryReason)
SetReason sets the Reason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) SetRenamed ¶
func (s *SettledDelivery) SetRenamed(renamed *bool)
SetRenamed sets the Renamed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) SetStatus ¶
func (s *SettledDelivery) SetStatus(status SettledDeliveryStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) SetStorageID ¶
func (s *SettledDelivery) SetStorageID(storageID string)
SetStorageID sets the StorageID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) SetURL ¶
func (s *SettledDelivery) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SettledDelivery) String ¶
func (s *SettledDelivery) String() string
func (*SettledDelivery) UnmarshalJSON ¶
func (s *SettledDelivery) UnmarshalJSON(data []byte) error
type SettledDeliveryReason ¶
type SettledDeliveryReason string
const ( SettledDeliveryReasonDestinationDenied SettledDeliveryReason = "destination_denied" SettledDeliveryReasonSignatureMismatch SettledDeliveryReason = "signature_mismatch" SettledDeliveryReasonBucketNotFound SettledDeliveryReason = "bucket_not_found" SettledDeliveryReasonObjectTooLarge SettledDeliveryReason = "object_too_large" SettledDeliveryReasonAlreadyExists SettledDeliveryReason = "already_exists" SettledDeliveryReasonNotDeliverable SettledDeliveryReason = "not_deliverable" )
func NewSettledDeliveryReasonFromString ¶
func NewSettledDeliveryReasonFromString(s string) (SettledDeliveryReason, error)
func (SettledDeliveryReason) Ptr ¶
func (s SettledDeliveryReason) Ptr() *SettledDeliveryReason
type SettledDeliveryStatus ¶
type SettledDeliveryStatus string
const ( SettledDeliveryStatusDelivered SettledDeliveryStatus = "delivered" SettledDeliveryStatusFailed SettledDeliveryStatus = "failed" )
func NewSettledDeliveryStatusFromString ¶
func NewSettledDeliveryStatusFromString(s string) (SettledDeliveryStatus, error)
func (SettledDeliveryStatus) Ptr ¶
func (s SettledDeliveryStatus) Ptr() *SettledDeliveryStatus
type SubmitAnyJob ¶
type SubmitAnyJob struct {
// Job type identifier, such as ffmpeg, ffprobe or compose. GET /jobs/types lists every live type.
Type string `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
// Job-specific parameters (validated per job type)
Params map[string]any `json:"params,omitempty" url:"params,omitempty"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitAnyJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit any job type, including one newer than your SDK and compose. `params` is validated per type: read GET /jobs/types/{type}/schema for the fields.
func (*SubmitAnyJob) GetCallback ¶
func (s *SubmitAnyJob) GetCallback() *SubmitAnyJobCallback
func (*SubmitAnyJob) GetDestinations ¶
func (s *SubmitAnyJob) GetDestinations() []string
func (*SubmitAnyJob) GetExtraProperties ¶
func (s *SubmitAnyJob) GetExtraProperties() map[string]interface{}
func (*SubmitAnyJob) GetForceAsync ¶
func (s *SubmitAnyJob) GetForceAsync() *bool
func (*SubmitAnyJob) GetIdempotencyKey ¶
func (s *SubmitAnyJob) GetIdempotencyKey() *string
func (*SubmitAnyJob) GetInputs ¶
func (s *SubmitAnyJob) GetInputs() map[string]any
func (*SubmitAnyJob) GetLabel ¶
func (s *SubmitAnyJob) GetLabel() *string
func (*SubmitAnyJob) GetParams ¶
func (s *SubmitAnyJob) GetParams() map[string]any
func (*SubmitAnyJob) GetType ¶
func (s *SubmitAnyJob) GetType() string
func (*SubmitAnyJob) MarshalJSON ¶
func (s *SubmitAnyJob) MarshalJSON() ([]byte, error)
func (*SubmitAnyJob) SetCallback ¶
func (s *SubmitAnyJob) SetCallback(callback *SubmitAnyJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetDestinations ¶
func (s *SubmitAnyJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetForceAsync ¶
func (s *SubmitAnyJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetIdempotencyKey ¶
func (s *SubmitAnyJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetInputs ¶
func (s *SubmitAnyJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetLabel ¶
func (s *SubmitAnyJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetParams ¶
func (s *SubmitAnyJob) SetParams(params map[string]any)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) SetType ¶
func (s *SubmitAnyJob) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJob) String ¶
func (s *SubmitAnyJob) String() string
func (*SubmitAnyJob) UnmarshalJSON ¶
func (s *SubmitAnyJob) UnmarshalJSON(data []byte) error
type SubmitAnyJobCallback ¶
type SubmitAnyJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitAnyJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitAnyJobCallback) GetEvents ¶
func (s *SubmitAnyJobCallback) GetEvents() []SubmitAnyJobCallbackEventsItem
func (*SubmitAnyJobCallback) GetExtraProperties ¶
func (s *SubmitAnyJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitAnyJobCallback) GetHeaders ¶
func (s *SubmitAnyJobCallback) GetHeaders() map[string]string
func (*SubmitAnyJobCallback) GetURL ¶
func (s *SubmitAnyJobCallback) GetURL() string
func (*SubmitAnyJobCallback) GetVerify ¶
func (s *SubmitAnyJobCallback) GetVerify() *bool
func (*SubmitAnyJobCallback) MarshalJSON ¶
func (s *SubmitAnyJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitAnyJobCallback) SetEvents ¶
func (s *SubmitAnyJobCallback) SetEvents(events []SubmitAnyJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJobCallback) SetHeaders ¶
func (s *SubmitAnyJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJobCallback) SetURL ¶
func (s *SubmitAnyJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJobCallback) SetVerify ¶
func (s *SubmitAnyJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitAnyJobCallback) String ¶
func (s *SubmitAnyJobCallback) String() string
func (*SubmitAnyJobCallback) UnmarshalJSON ¶
func (s *SubmitAnyJobCallback) UnmarshalJSON(data []byte) error
type SubmitAnyJobCallbackEventsItem ¶
type SubmitAnyJobCallbackEventsItem string
const (
SubmitAnyJobCallbackEventsItemJobStarted SubmitAnyJobCallbackEventsItem = "job.started"
)
func NewSubmitAnyJobCallbackEventsItemFromString ¶
func NewSubmitAnyJobCallbackEventsItemFromString(s string) (SubmitAnyJobCallbackEventsItem, error)
func (SubmitAnyJobCallbackEventsItem) Ptr ¶
func (s SubmitAnyJobCallbackEventsItem) Ptr() *SubmitAnyJobCallbackEventsItem
type SubmitCaptionBurnJob ¶
type SubmitCaptionBurnJob struct {
// Job type
Type SubmitCaptionBurnJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *CaptionBurnParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitCaptionBurnJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a caption.burn job.
func (*SubmitCaptionBurnJob) GetCallback ¶
func (s *SubmitCaptionBurnJob) GetCallback() *SubmitCaptionBurnJobCallback
func (*SubmitCaptionBurnJob) GetDestinations ¶
func (s *SubmitCaptionBurnJob) GetDestinations() []string
func (*SubmitCaptionBurnJob) GetExtraProperties ¶
func (s *SubmitCaptionBurnJob) GetExtraProperties() map[string]interface{}
func (*SubmitCaptionBurnJob) GetForceAsync ¶
func (s *SubmitCaptionBurnJob) GetForceAsync() *bool
func (*SubmitCaptionBurnJob) GetIdempotencyKey ¶
func (s *SubmitCaptionBurnJob) GetIdempotencyKey() *string
func (*SubmitCaptionBurnJob) GetInputs ¶
func (s *SubmitCaptionBurnJob) GetInputs() map[string]any
func (*SubmitCaptionBurnJob) GetLabel ¶
func (s *SubmitCaptionBurnJob) GetLabel() *string
func (*SubmitCaptionBurnJob) GetParams ¶
func (s *SubmitCaptionBurnJob) GetParams() *CaptionBurnParams
func (*SubmitCaptionBurnJob) GetType ¶
func (s *SubmitCaptionBurnJob) GetType() SubmitCaptionBurnJobType
func (*SubmitCaptionBurnJob) MarshalJSON ¶
func (s *SubmitCaptionBurnJob) MarshalJSON() ([]byte, error)
func (*SubmitCaptionBurnJob) SetCallback ¶
func (s *SubmitCaptionBurnJob) SetCallback(callback *SubmitCaptionBurnJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetDestinations ¶
func (s *SubmitCaptionBurnJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetForceAsync ¶
func (s *SubmitCaptionBurnJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetIdempotencyKey ¶
func (s *SubmitCaptionBurnJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetInputs ¶
func (s *SubmitCaptionBurnJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetLabel ¶
func (s *SubmitCaptionBurnJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetParams ¶
func (s *SubmitCaptionBurnJob) SetParams(params *CaptionBurnParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) SetType ¶
func (s *SubmitCaptionBurnJob) SetType(type_ SubmitCaptionBurnJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJob) String ¶
func (s *SubmitCaptionBurnJob) String() string
func (*SubmitCaptionBurnJob) UnmarshalJSON ¶
func (s *SubmitCaptionBurnJob) UnmarshalJSON(data []byte) error
type SubmitCaptionBurnJobCallback ¶
type SubmitCaptionBurnJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitCaptionBurnJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitCaptionBurnJobCallback) GetEvents ¶
func (s *SubmitCaptionBurnJobCallback) GetEvents() []SubmitCaptionBurnJobCallbackEventsItem
func (*SubmitCaptionBurnJobCallback) GetExtraProperties ¶
func (s *SubmitCaptionBurnJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitCaptionBurnJobCallback) GetHeaders ¶
func (s *SubmitCaptionBurnJobCallback) GetHeaders() map[string]string
func (*SubmitCaptionBurnJobCallback) GetURL ¶
func (s *SubmitCaptionBurnJobCallback) GetURL() string
func (*SubmitCaptionBurnJobCallback) GetVerify ¶
func (s *SubmitCaptionBurnJobCallback) GetVerify() *bool
func (*SubmitCaptionBurnJobCallback) MarshalJSON ¶
func (s *SubmitCaptionBurnJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitCaptionBurnJobCallback) SetEvents ¶
func (s *SubmitCaptionBurnJobCallback) SetEvents(events []SubmitCaptionBurnJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJobCallback) SetHeaders ¶
func (s *SubmitCaptionBurnJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJobCallback) SetURL ¶
func (s *SubmitCaptionBurnJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJobCallback) SetVerify ¶
func (s *SubmitCaptionBurnJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionBurnJobCallback) String ¶
func (s *SubmitCaptionBurnJobCallback) String() string
func (*SubmitCaptionBurnJobCallback) UnmarshalJSON ¶
func (s *SubmitCaptionBurnJobCallback) UnmarshalJSON(data []byte) error
type SubmitCaptionBurnJobCallbackEventsItem ¶
type SubmitCaptionBurnJobCallbackEventsItem string
const (
SubmitCaptionBurnJobCallbackEventsItemJobStarted SubmitCaptionBurnJobCallbackEventsItem = "job.started"
)
func NewSubmitCaptionBurnJobCallbackEventsItemFromString ¶
func NewSubmitCaptionBurnJobCallbackEventsItemFromString(s string) (SubmitCaptionBurnJobCallbackEventsItem, error)
type SubmitCaptionBurnJobType ¶
type SubmitCaptionBurnJobType string
Job type
const (
SubmitCaptionBurnJobTypeCaptionBurn SubmitCaptionBurnJobType = "caption.burn"
)
func NewSubmitCaptionBurnJobTypeFromString ¶
func NewSubmitCaptionBurnJobTypeFromString(s string) (SubmitCaptionBurnJobType, error)
func (SubmitCaptionBurnJobType) Ptr ¶
func (s SubmitCaptionBurnJobType) Ptr() *SubmitCaptionBurnJobType
type SubmitCaptionsAnimateJob ¶
type SubmitCaptionsAnimateJob struct {
// Job type
Type SubmitCaptionsAnimateJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *CaptionsAnimateParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitCaptionsAnimateJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a captions.animate job.
func (*SubmitCaptionsAnimateJob) GetCallback ¶
func (s *SubmitCaptionsAnimateJob) GetCallback() *SubmitCaptionsAnimateJobCallback
func (*SubmitCaptionsAnimateJob) GetDestinations ¶
func (s *SubmitCaptionsAnimateJob) GetDestinations() []string
func (*SubmitCaptionsAnimateJob) GetExtraProperties ¶
func (s *SubmitCaptionsAnimateJob) GetExtraProperties() map[string]interface{}
func (*SubmitCaptionsAnimateJob) GetForceAsync ¶
func (s *SubmitCaptionsAnimateJob) GetForceAsync() *bool
func (*SubmitCaptionsAnimateJob) GetIdempotencyKey ¶
func (s *SubmitCaptionsAnimateJob) GetIdempotencyKey() *string
func (*SubmitCaptionsAnimateJob) GetInputs ¶
func (s *SubmitCaptionsAnimateJob) GetInputs() map[string]any
func (*SubmitCaptionsAnimateJob) GetLabel ¶
func (s *SubmitCaptionsAnimateJob) GetLabel() *string
func (*SubmitCaptionsAnimateJob) GetParams ¶
func (s *SubmitCaptionsAnimateJob) GetParams() *CaptionsAnimateParams
func (*SubmitCaptionsAnimateJob) GetType ¶
func (s *SubmitCaptionsAnimateJob) GetType() SubmitCaptionsAnimateJobType
func (*SubmitCaptionsAnimateJob) MarshalJSON ¶
func (s *SubmitCaptionsAnimateJob) MarshalJSON() ([]byte, error)
func (*SubmitCaptionsAnimateJob) SetCallback ¶
func (s *SubmitCaptionsAnimateJob) SetCallback(callback *SubmitCaptionsAnimateJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetDestinations ¶
func (s *SubmitCaptionsAnimateJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetForceAsync ¶
func (s *SubmitCaptionsAnimateJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetIdempotencyKey ¶
func (s *SubmitCaptionsAnimateJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetInputs ¶
func (s *SubmitCaptionsAnimateJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetLabel ¶
func (s *SubmitCaptionsAnimateJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetParams ¶
func (s *SubmitCaptionsAnimateJob) SetParams(params *CaptionsAnimateParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) SetType ¶
func (s *SubmitCaptionsAnimateJob) SetType(type_ SubmitCaptionsAnimateJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJob) String ¶
func (s *SubmitCaptionsAnimateJob) String() string
func (*SubmitCaptionsAnimateJob) UnmarshalJSON ¶
func (s *SubmitCaptionsAnimateJob) UnmarshalJSON(data []byte) error
type SubmitCaptionsAnimateJobCallback ¶
type SubmitCaptionsAnimateJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitCaptionsAnimateJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitCaptionsAnimateJobCallback) GetEvents ¶
func (s *SubmitCaptionsAnimateJobCallback) GetEvents() []SubmitCaptionsAnimateJobCallbackEventsItem
func (*SubmitCaptionsAnimateJobCallback) GetExtraProperties ¶
func (s *SubmitCaptionsAnimateJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitCaptionsAnimateJobCallback) GetHeaders ¶
func (s *SubmitCaptionsAnimateJobCallback) GetHeaders() map[string]string
func (*SubmitCaptionsAnimateJobCallback) GetURL ¶
func (s *SubmitCaptionsAnimateJobCallback) GetURL() string
func (*SubmitCaptionsAnimateJobCallback) GetVerify ¶
func (s *SubmitCaptionsAnimateJobCallback) GetVerify() *bool
func (*SubmitCaptionsAnimateJobCallback) MarshalJSON ¶
func (s *SubmitCaptionsAnimateJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitCaptionsAnimateJobCallback) SetEvents ¶
func (s *SubmitCaptionsAnimateJobCallback) SetEvents(events []SubmitCaptionsAnimateJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJobCallback) SetHeaders ¶
func (s *SubmitCaptionsAnimateJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJobCallback) SetURL ¶
func (s *SubmitCaptionsAnimateJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJobCallback) SetVerify ¶
func (s *SubmitCaptionsAnimateJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCaptionsAnimateJobCallback) String ¶
func (s *SubmitCaptionsAnimateJobCallback) String() string
func (*SubmitCaptionsAnimateJobCallback) UnmarshalJSON ¶
func (s *SubmitCaptionsAnimateJobCallback) UnmarshalJSON(data []byte) error
type SubmitCaptionsAnimateJobCallbackEventsItem ¶
type SubmitCaptionsAnimateJobCallbackEventsItem string
const (
SubmitCaptionsAnimateJobCallbackEventsItemJobStarted SubmitCaptionsAnimateJobCallbackEventsItem = "job.started"
)
func NewSubmitCaptionsAnimateJobCallbackEventsItemFromString ¶
func NewSubmitCaptionsAnimateJobCallbackEventsItemFromString(s string) (SubmitCaptionsAnimateJobCallbackEventsItem, error)
type SubmitCaptionsAnimateJobType ¶
type SubmitCaptionsAnimateJobType string
Job type
const (
SubmitCaptionsAnimateJobTypeCaptionsAnimate SubmitCaptionsAnimateJobType = "captions.animate"
)
func NewSubmitCaptionsAnimateJobTypeFromString ¶
func NewSubmitCaptionsAnimateJobTypeFromString(s string) (SubmitCaptionsAnimateJobType, error)
func (SubmitCaptionsAnimateJobType) Ptr ¶
func (s SubmitCaptionsAnimateJobType) Ptr() *SubmitCaptionsAnimateJobType
type SubmitCompressTargetJob ¶
type SubmitCompressTargetJob struct {
// Job type
Type SubmitCompressTargetJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *CompressTargetParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitCompressTargetJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a compress.target job.
func (*SubmitCompressTargetJob) GetCallback ¶
func (s *SubmitCompressTargetJob) GetCallback() *SubmitCompressTargetJobCallback
func (*SubmitCompressTargetJob) GetDestinations ¶
func (s *SubmitCompressTargetJob) GetDestinations() []string
func (*SubmitCompressTargetJob) GetExtraProperties ¶
func (s *SubmitCompressTargetJob) GetExtraProperties() map[string]interface{}
func (*SubmitCompressTargetJob) GetForceAsync ¶
func (s *SubmitCompressTargetJob) GetForceAsync() *bool
func (*SubmitCompressTargetJob) GetIdempotencyKey ¶
func (s *SubmitCompressTargetJob) GetIdempotencyKey() *string
func (*SubmitCompressTargetJob) GetInputs ¶
func (s *SubmitCompressTargetJob) GetInputs() map[string]any
func (*SubmitCompressTargetJob) GetLabel ¶
func (s *SubmitCompressTargetJob) GetLabel() *string
func (*SubmitCompressTargetJob) GetParams ¶
func (s *SubmitCompressTargetJob) GetParams() *CompressTargetParams
func (*SubmitCompressTargetJob) GetType ¶
func (s *SubmitCompressTargetJob) GetType() SubmitCompressTargetJobType
func (*SubmitCompressTargetJob) MarshalJSON ¶
func (s *SubmitCompressTargetJob) MarshalJSON() ([]byte, error)
func (*SubmitCompressTargetJob) SetCallback ¶
func (s *SubmitCompressTargetJob) SetCallback(callback *SubmitCompressTargetJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetDestinations ¶
func (s *SubmitCompressTargetJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetForceAsync ¶
func (s *SubmitCompressTargetJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetIdempotencyKey ¶
func (s *SubmitCompressTargetJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetInputs ¶
func (s *SubmitCompressTargetJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetLabel ¶
func (s *SubmitCompressTargetJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetParams ¶
func (s *SubmitCompressTargetJob) SetParams(params *CompressTargetParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) SetType ¶
func (s *SubmitCompressTargetJob) SetType(type_ SubmitCompressTargetJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJob) String ¶
func (s *SubmitCompressTargetJob) String() string
func (*SubmitCompressTargetJob) UnmarshalJSON ¶
func (s *SubmitCompressTargetJob) UnmarshalJSON(data []byte) error
type SubmitCompressTargetJobCallback ¶
type SubmitCompressTargetJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitCompressTargetJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitCompressTargetJobCallback) GetEvents ¶
func (s *SubmitCompressTargetJobCallback) GetEvents() []SubmitCompressTargetJobCallbackEventsItem
func (*SubmitCompressTargetJobCallback) GetExtraProperties ¶
func (s *SubmitCompressTargetJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitCompressTargetJobCallback) GetHeaders ¶
func (s *SubmitCompressTargetJobCallback) GetHeaders() map[string]string
func (*SubmitCompressTargetJobCallback) GetURL ¶
func (s *SubmitCompressTargetJobCallback) GetURL() string
func (*SubmitCompressTargetJobCallback) GetVerify ¶
func (s *SubmitCompressTargetJobCallback) GetVerify() *bool
func (*SubmitCompressTargetJobCallback) MarshalJSON ¶
func (s *SubmitCompressTargetJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitCompressTargetJobCallback) SetEvents ¶
func (s *SubmitCompressTargetJobCallback) SetEvents(events []SubmitCompressTargetJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJobCallback) SetHeaders ¶
func (s *SubmitCompressTargetJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJobCallback) SetURL ¶
func (s *SubmitCompressTargetJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJobCallback) SetVerify ¶
func (s *SubmitCompressTargetJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitCompressTargetJobCallback) String ¶
func (s *SubmitCompressTargetJobCallback) String() string
func (*SubmitCompressTargetJobCallback) UnmarshalJSON ¶
func (s *SubmitCompressTargetJobCallback) UnmarshalJSON(data []byte) error
type SubmitCompressTargetJobCallbackEventsItem ¶
type SubmitCompressTargetJobCallbackEventsItem string
const (
SubmitCompressTargetJobCallbackEventsItemJobStarted SubmitCompressTargetJobCallbackEventsItem = "job.started"
)
func NewSubmitCompressTargetJobCallbackEventsItemFromString ¶
func NewSubmitCompressTargetJobCallbackEventsItemFromString(s string) (SubmitCompressTargetJobCallbackEventsItem, error)
type SubmitCompressTargetJobType ¶
type SubmitCompressTargetJobType string
Job type
const (
SubmitCompressTargetJobTypeCompressTarget SubmitCompressTargetJobType = "compress.target"
)
func NewSubmitCompressTargetJobTypeFromString ¶
func NewSubmitCompressTargetJobTypeFromString(s string) (SubmitCompressTargetJobType, error)
func (SubmitCompressTargetJobType) Ptr ¶
func (s SubmitCompressTargetJobType) Ptr() *SubmitCompressTargetJobType
type SubmitFfmpegJob ¶
type SubmitFfmpegJob struct {
// Job type
Type SubmitFfmpegJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *FfmpegParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitFfmpegJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a ffmpeg job.
func (*SubmitFfmpegJob) GetCallback ¶
func (s *SubmitFfmpegJob) GetCallback() *SubmitFfmpegJobCallback
func (*SubmitFfmpegJob) GetDestinations ¶
func (s *SubmitFfmpegJob) GetDestinations() []string
func (*SubmitFfmpegJob) GetExtraProperties ¶
func (s *SubmitFfmpegJob) GetExtraProperties() map[string]interface{}
func (*SubmitFfmpegJob) GetForceAsync ¶
func (s *SubmitFfmpegJob) GetForceAsync() *bool
func (*SubmitFfmpegJob) GetIdempotencyKey ¶
func (s *SubmitFfmpegJob) GetIdempotencyKey() *string
func (*SubmitFfmpegJob) GetInputs ¶
func (s *SubmitFfmpegJob) GetInputs() map[string]any
func (*SubmitFfmpegJob) GetLabel ¶
func (s *SubmitFfmpegJob) GetLabel() *string
func (*SubmitFfmpegJob) GetParams ¶
func (s *SubmitFfmpegJob) GetParams() *FfmpegParams
func (*SubmitFfmpegJob) GetType ¶
func (s *SubmitFfmpegJob) GetType() SubmitFfmpegJobType
func (*SubmitFfmpegJob) MarshalJSON ¶
func (s *SubmitFfmpegJob) MarshalJSON() ([]byte, error)
func (*SubmitFfmpegJob) SetCallback ¶
func (s *SubmitFfmpegJob) SetCallback(callback *SubmitFfmpegJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetDestinations ¶
func (s *SubmitFfmpegJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetForceAsync ¶
func (s *SubmitFfmpegJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetIdempotencyKey ¶
func (s *SubmitFfmpegJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetInputs ¶
func (s *SubmitFfmpegJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetLabel ¶
func (s *SubmitFfmpegJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetParams ¶
func (s *SubmitFfmpegJob) SetParams(params *FfmpegParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) SetType ¶
func (s *SubmitFfmpegJob) SetType(type_ SubmitFfmpegJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJob) String ¶
func (s *SubmitFfmpegJob) String() string
func (*SubmitFfmpegJob) UnmarshalJSON ¶
func (s *SubmitFfmpegJob) UnmarshalJSON(data []byte) error
type SubmitFfmpegJobCallback ¶
type SubmitFfmpegJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitFfmpegJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitFfmpegJobCallback) GetEvents ¶
func (s *SubmitFfmpegJobCallback) GetEvents() []SubmitFfmpegJobCallbackEventsItem
func (*SubmitFfmpegJobCallback) GetExtraProperties ¶
func (s *SubmitFfmpegJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitFfmpegJobCallback) GetHeaders ¶
func (s *SubmitFfmpegJobCallback) GetHeaders() map[string]string
func (*SubmitFfmpegJobCallback) GetURL ¶
func (s *SubmitFfmpegJobCallback) GetURL() string
func (*SubmitFfmpegJobCallback) GetVerify ¶
func (s *SubmitFfmpegJobCallback) GetVerify() *bool
func (*SubmitFfmpegJobCallback) MarshalJSON ¶
func (s *SubmitFfmpegJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitFfmpegJobCallback) SetEvents ¶
func (s *SubmitFfmpegJobCallback) SetEvents(events []SubmitFfmpegJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJobCallback) SetHeaders ¶
func (s *SubmitFfmpegJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJobCallback) SetURL ¶
func (s *SubmitFfmpegJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJobCallback) SetVerify ¶
func (s *SubmitFfmpegJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfmpegJobCallback) String ¶
func (s *SubmitFfmpegJobCallback) String() string
func (*SubmitFfmpegJobCallback) UnmarshalJSON ¶
func (s *SubmitFfmpegJobCallback) UnmarshalJSON(data []byte) error
type SubmitFfmpegJobCallbackEventsItem ¶
type SubmitFfmpegJobCallbackEventsItem string
const (
SubmitFfmpegJobCallbackEventsItemJobStarted SubmitFfmpegJobCallbackEventsItem = "job.started"
)
func NewSubmitFfmpegJobCallbackEventsItemFromString ¶
func NewSubmitFfmpegJobCallbackEventsItemFromString(s string) (SubmitFfmpegJobCallbackEventsItem, error)
func (SubmitFfmpegJobCallbackEventsItem) Ptr ¶
func (s SubmitFfmpegJobCallbackEventsItem) Ptr() *SubmitFfmpegJobCallbackEventsItem
type SubmitFfmpegJobType ¶
type SubmitFfmpegJobType string
Job type
const (
SubmitFfmpegJobTypeFfmpeg SubmitFfmpegJobType = "ffmpeg"
)
func NewSubmitFfmpegJobTypeFromString ¶
func NewSubmitFfmpegJobTypeFromString(s string) (SubmitFfmpegJobType, error)
func (SubmitFfmpegJobType) Ptr ¶
func (s SubmitFfmpegJobType) Ptr() *SubmitFfmpegJobType
type SubmitFfprobeJob ¶
type SubmitFfprobeJob struct {
// Job type
Type SubmitFfprobeJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *FfprobeParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitFfprobeJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a ffprobe job.
func (*SubmitFfprobeJob) GetCallback ¶
func (s *SubmitFfprobeJob) GetCallback() *SubmitFfprobeJobCallback
func (*SubmitFfprobeJob) GetDestinations ¶
func (s *SubmitFfprobeJob) GetDestinations() []string
func (*SubmitFfprobeJob) GetExtraProperties ¶
func (s *SubmitFfprobeJob) GetExtraProperties() map[string]interface{}
func (*SubmitFfprobeJob) GetForceAsync ¶
func (s *SubmitFfprobeJob) GetForceAsync() *bool
func (*SubmitFfprobeJob) GetIdempotencyKey ¶
func (s *SubmitFfprobeJob) GetIdempotencyKey() *string
func (*SubmitFfprobeJob) GetInputs ¶
func (s *SubmitFfprobeJob) GetInputs() map[string]any
func (*SubmitFfprobeJob) GetLabel ¶
func (s *SubmitFfprobeJob) GetLabel() *string
func (*SubmitFfprobeJob) GetParams ¶
func (s *SubmitFfprobeJob) GetParams() *FfprobeParams
func (*SubmitFfprobeJob) GetType ¶
func (s *SubmitFfprobeJob) GetType() SubmitFfprobeJobType
func (*SubmitFfprobeJob) MarshalJSON ¶
func (s *SubmitFfprobeJob) MarshalJSON() ([]byte, error)
func (*SubmitFfprobeJob) SetCallback ¶
func (s *SubmitFfprobeJob) SetCallback(callback *SubmitFfprobeJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetDestinations ¶
func (s *SubmitFfprobeJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetForceAsync ¶
func (s *SubmitFfprobeJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetIdempotencyKey ¶
func (s *SubmitFfprobeJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetInputs ¶
func (s *SubmitFfprobeJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetLabel ¶
func (s *SubmitFfprobeJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetParams ¶
func (s *SubmitFfprobeJob) SetParams(params *FfprobeParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) SetType ¶
func (s *SubmitFfprobeJob) SetType(type_ SubmitFfprobeJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJob) String ¶
func (s *SubmitFfprobeJob) String() string
func (*SubmitFfprobeJob) UnmarshalJSON ¶
func (s *SubmitFfprobeJob) UnmarshalJSON(data []byte) error
type SubmitFfprobeJobCallback ¶
type SubmitFfprobeJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitFfprobeJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitFfprobeJobCallback) GetEvents ¶
func (s *SubmitFfprobeJobCallback) GetEvents() []SubmitFfprobeJobCallbackEventsItem
func (*SubmitFfprobeJobCallback) GetExtraProperties ¶
func (s *SubmitFfprobeJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitFfprobeJobCallback) GetHeaders ¶
func (s *SubmitFfprobeJobCallback) GetHeaders() map[string]string
func (*SubmitFfprobeJobCallback) GetURL ¶
func (s *SubmitFfprobeJobCallback) GetURL() string
func (*SubmitFfprobeJobCallback) GetVerify ¶
func (s *SubmitFfprobeJobCallback) GetVerify() *bool
func (*SubmitFfprobeJobCallback) MarshalJSON ¶
func (s *SubmitFfprobeJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitFfprobeJobCallback) SetEvents ¶
func (s *SubmitFfprobeJobCallback) SetEvents(events []SubmitFfprobeJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJobCallback) SetHeaders ¶
func (s *SubmitFfprobeJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJobCallback) SetURL ¶
func (s *SubmitFfprobeJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJobCallback) SetVerify ¶
func (s *SubmitFfprobeJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitFfprobeJobCallback) String ¶
func (s *SubmitFfprobeJobCallback) String() string
func (*SubmitFfprobeJobCallback) UnmarshalJSON ¶
func (s *SubmitFfprobeJobCallback) UnmarshalJSON(data []byte) error
type SubmitFfprobeJobCallbackEventsItem ¶
type SubmitFfprobeJobCallbackEventsItem string
const (
SubmitFfprobeJobCallbackEventsItemJobStarted SubmitFfprobeJobCallbackEventsItem = "job.started"
)
func NewSubmitFfprobeJobCallbackEventsItemFromString ¶
func NewSubmitFfprobeJobCallbackEventsItemFromString(s string) (SubmitFfprobeJobCallbackEventsItem, error)
func (SubmitFfprobeJobCallbackEventsItem) Ptr ¶
func (s SubmitFfprobeJobCallbackEventsItem) Ptr() *SubmitFfprobeJobCallbackEventsItem
type SubmitFfprobeJobType ¶
type SubmitFfprobeJobType string
Job type
const (
SubmitFfprobeJobTypeFfprobe SubmitFfprobeJobType = "ffprobe"
)
func NewSubmitFfprobeJobTypeFromString ¶
func NewSubmitFfprobeJobTypeFromString(s string) (SubmitFfprobeJobType, error)
func (SubmitFfprobeJobType) Ptr ¶
func (s SubmitFfprobeJobType) Ptr() *SubmitFfprobeJobType
type SubmitImageEditJob ¶
type SubmitImageEditJob struct {
// Job type
Type SubmitImageEditJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *ImageEditParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitImageEditJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a image.edit job.
func (*SubmitImageEditJob) GetCallback ¶
func (s *SubmitImageEditJob) GetCallback() *SubmitImageEditJobCallback
func (*SubmitImageEditJob) GetDestinations ¶
func (s *SubmitImageEditJob) GetDestinations() []string
func (*SubmitImageEditJob) GetExtraProperties ¶
func (s *SubmitImageEditJob) GetExtraProperties() map[string]interface{}
func (*SubmitImageEditJob) GetForceAsync ¶
func (s *SubmitImageEditJob) GetForceAsync() *bool
func (*SubmitImageEditJob) GetIdempotencyKey ¶
func (s *SubmitImageEditJob) GetIdempotencyKey() *string
func (*SubmitImageEditJob) GetInputs ¶
func (s *SubmitImageEditJob) GetInputs() map[string]any
func (*SubmitImageEditJob) GetLabel ¶
func (s *SubmitImageEditJob) GetLabel() *string
func (*SubmitImageEditJob) GetParams ¶
func (s *SubmitImageEditJob) GetParams() *ImageEditParams
func (*SubmitImageEditJob) GetType ¶
func (s *SubmitImageEditJob) GetType() SubmitImageEditJobType
func (*SubmitImageEditJob) MarshalJSON ¶
func (s *SubmitImageEditJob) MarshalJSON() ([]byte, error)
func (*SubmitImageEditJob) SetCallback ¶
func (s *SubmitImageEditJob) SetCallback(callback *SubmitImageEditJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetDestinations ¶
func (s *SubmitImageEditJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetForceAsync ¶
func (s *SubmitImageEditJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetIdempotencyKey ¶
func (s *SubmitImageEditJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetInputs ¶
func (s *SubmitImageEditJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetLabel ¶
func (s *SubmitImageEditJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetParams ¶
func (s *SubmitImageEditJob) SetParams(params *ImageEditParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) SetType ¶
func (s *SubmitImageEditJob) SetType(type_ SubmitImageEditJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJob) String ¶
func (s *SubmitImageEditJob) String() string
func (*SubmitImageEditJob) UnmarshalJSON ¶
func (s *SubmitImageEditJob) UnmarshalJSON(data []byte) error
type SubmitImageEditJobCallback ¶
type SubmitImageEditJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitImageEditJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitImageEditJobCallback) GetEvents ¶
func (s *SubmitImageEditJobCallback) GetEvents() []SubmitImageEditJobCallbackEventsItem
func (*SubmitImageEditJobCallback) GetExtraProperties ¶
func (s *SubmitImageEditJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitImageEditJobCallback) GetHeaders ¶
func (s *SubmitImageEditJobCallback) GetHeaders() map[string]string
func (*SubmitImageEditJobCallback) GetURL ¶
func (s *SubmitImageEditJobCallback) GetURL() string
func (*SubmitImageEditJobCallback) GetVerify ¶
func (s *SubmitImageEditJobCallback) GetVerify() *bool
func (*SubmitImageEditJobCallback) MarshalJSON ¶
func (s *SubmitImageEditJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitImageEditJobCallback) SetEvents ¶
func (s *SubmitImageEditJobCallback) SetEvents(events []SubmitImageEditJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJobCallback) SetHeaders ¶
func (s *SubmitImageEditJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJobCallback) SetURL ¶
func (s *SubmitImageEditJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJobCallback) SetVerify ¶
func (s *SubmitImageEditJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageEditJobCallback) String ¶
func (s *SubmitImageEditJobCallback) String() string
func (*SubmitImageEditJobCallback) UnmarshalJSON ¶
func (s *SubmitImageEditJobCallback) UnmarshalJSON(data []byte) error
type SubmitImageEditJobCallbackEventsItem ¶
type SubmitImageEditJobCallbackEventsItem string
const (
SubmitImageEditJobCallbackEventsItemJobStarted SubmitImageEditJobCallbackEventsItem = "job.started"
)
func NewSubmitImageEditJobCallbackEventsItemFromString ¶
func NewSubmitImageEditJobCallbackEventsItemFromString(s string) (SubmitImageEditJobCallbackEventsItem, error)
type SubmitImageEditJobType ¶
type SubmitImageEditJobType string
Job type
const (
SubmitImageEditJobTypeImageEdit SubmitImageEditJobType = "image.edit"
)
func NewSubmitImageEditJobTypeFromString ¶
func NewSubmitImageEditJobTypeFromString(s string) (SubmitImageEditJobType, error)
func (SubmitImageEditJobType) Ptr ¶
func (s SubmitImageEditJobType) Ptr() *SubmitImageEditJobType
type SubmitImageGenerateJob ¶
type SubmitImageGenerateJob struct {
// Job type
Type SubmitImageGenerateJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *ImageGenerateParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitImageGenerateJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a image.generate job.
func (*SubmitImageGenerateJob) GetCallback ¶
func (s *SubmitImageGenerateJob) GetCallback() *SubmitImageGenerateJobCallback
func (*SubmitImageGenerateJob) GetDestinations ¶
func (s *SubmitImageGenerateJob) GetDestinations() []string
func (*SubmitImageGenerateJob) GetExtraProperties ¶
func (s *SubmitImageGenerateJob) GetExtraProperties() map[string]interface{}
func (*SubmitImageGenerateJob) GetForceAsync ¶
func (s *SubmitImageGenerateJob) GetForceAsync() *bool
func (*SubmitImageGenerateJob) GetIdempotencyKey ¶
func (s *SubmitImageGenerateJob) GetIdempotencyKey() *string
func (*SubmitImageGenerateJob) GetInputs ¶
func (s *SubmitImageGenerateJob) GetInputs() map[string]any
func (*SubmitImageGenerateJob) GetLabel ¶
func (s *SubmitImageGenerateJob) GetLabel() *string
func (*SubmitImageGenerateJob) GetParams ¶
func (s *SubmitImageGenerateJob) GetParams() *ImageGenerateParams
func (*SubmitImageGenerateJob) GetType ¶
func (s *SubmitImageGenerateJob) GetType() SubmitImageGenerateJobType
func (*SubmitImageGenerateJob) MarshalJSON ¶
func (s *SubmitImageGenerateJob) MarshalJSON() ([]byte, error)
func (*SubmitImageGenerateJob) SetCallback ¶
func (s *SubmitImageGenerateJob) SetCallback(callback *SubmitImageGenerateJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetDestinations ¶
func (s *SubmitImageGenerateJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetForceAsync ¶
func (s *SubmitImageGenerateJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetIdempotencyKey ¶
func (s *SubmitImageGenerateJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetInputs ¶
func (s *SubmitImageGenerateJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetLabel ¶
func (s *SubmitImageGenerateJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetParams ¶
func (s *SubmitImageGenerateJob) SetParams(params *ImageGenerateParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) SetType ¶
func (s *SubmitImageGenerateJob) SetType(type_ SubmitImageGenerateJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJob) String ¶
func (s *SubmitImageGenerateJob) String() string
func (*SubmitImageGenerateJob) UnmarshalJSON ¶
func (s *SubmitImageGenerateJob) UnmarshalJSON(data []byte) error
type SubmitImageGenerateJobCallback ¶
type SubmitImageGenerateJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitImageGenerateJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitImageGenerateJobCallback) GetEvents ¶
func (s *SubmitImageGenerateJobCallback) GetEvents() []SubmitImageGenerateJobCallbackEventsItem
func (*SubmitImageGenerateJobCallback) GetExtraProperties ¶
func (s *SubmitImageGenerateJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitImageGenerateJobCallback) GetHeaders ¶
func (s *SubmitImageGenerateJobCallback) GetHeaders() map[string]string
func (*SubmitImageGenerateJobCallback) GetURL ¶
func (s *SubmitImageGenerateJobCallback) GetURL() string
func (*SubmitImageGenerateJobCallback) GetVerify ¶
func (s *SubmitImageGenerateJobCallback) GetVerify() *bool
func (*SubmitImageGenerateJobCallback) MarshalJSON ¶
func (s *SubmitImageGenerateJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitImageGenerateJobCallback) SetEvents ¶
func (s *SubmitImageGenerateJobCallback) SetEvents(events []SubmitImageGenerateJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJobCallback) SetHeaders ¶
func (s *SubmitImageGenerateJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJobCallback) SetURL ¶
func (s *SubmitImageGenerateJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJobCallback) SetVerify ¶
func (s *SubmitImageGenerateJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageGenerateJobCallback) String ¶
func (s *SubmitImageGenerateJobCallback) String() string
func (*SubmitImageGenerateJobCallback) UnmarshalJSON ¶
func (s *SubmitImageGenerateJobCallback) UnmarshalJSON(data []byte) error
type SubmitImageGenerateJobCallbackEventsItem ¶
type SubmitImageGenerateJobCallbackEventsItem string
const (
SubmitImageGenerateJobCallbackEventsItemJobStarted SubmitImageGenerateJobCallbackEventsItem = "job.started"
)
func NewSubmitImageGenerateJobCallbackEventsItemFromString ¶
func NewSubmitImageGenerateJobCallbackEventsItemFromString(s string) (SubmitImageGenerateJobCallbackEventsItem, error)
type SubmitImageGenerateJobType ¶
type SubmitImageGenerateJobType string
Job type
const (
SubmitImageGenerateJobTypeImageGenerate SubmitImageGenerateJobType = "image.generate"
)
func NewSubmitImageGenerateJobTypeFromString ¶
func NewSubmitImageGenerateJobTypeFromString(s string) (SubmitImageGenerateJobType, error)
func (SubmitImageGenerateJobType) Ptr ¶
func (s SubmitImageGenerateJobType) Ptr() *SubmitImageGenerateJobType
type SubmitImageUpscaleJob ¶
type SubmitImageUpscaleJob struct {
// Job type
Type SubmitImageUpscaleJobType `json:"type" url:"type"`
// Input files (e.g., { source: 'https://...' })
Inputs map[string]any `json:"inputs,omitempty" url:"inputs,omitempty"`
Params *ImageUpscaleParams `json:"params" url:"params"`
// Force async dispatch even for sync-eligible job types
ForceAsync *bool `json:"forceAsync,omitempty" url:"forceAsync,omitempty"`
// Idempotency key to prevent duplicate job creation. Resending the same request with the same key returns the job it created. Reusing the key with a different type, inputs or params is a 409 CONFLICT naming that job.
IdempotencyKey *string `json:"idempotencyKey,omitempty" url:"idempotencyKey,omitempty"`
// A short name for this job, such as "Trim intro for episode 12". Shown in the dashboard and returned with the job as `label`.
Label *string `json:"label,omitempty" url:"label,omitempty"`
// Where to deliver the output once the job completes, as storage://<id>[/<folder or path template>]. A bare id uses the connection's output path template. A folder (storage://prod-media/exports) keeps that template's file name inside the folder. A path containing a token ({job_id} {ext} {source_name} {date}) or ending in a file name is used as written. The whole output is delivered: a single file at that path, a multi-file output as a folder named after that path without its extension, and any structured data as a .json file with the same name (the whole path when the job returns only data).
Destinations []string `json:"destinations,omitempty" url:"destinations,omitempty"`
// Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
Callback *SubmitImageUpscaleJobCallback `json:"callback,omitempty" url:"callback,omitempty"`
// contains filtered or unexported fields
}
Submit a image.upscale job.
func (*SubmitImageUpscaleJob) GetCallback ¶
func (s *SubmitImageUpscaleJob) GetCallback() *SubmitImageUpscaleJobCallback
func (*SubmitImageUpscaleJob) GetDestinations ¶
func (s *SubmitImageUpscaleJob) GetDestinations() []string
func (*SubmitImageUpscaleJob) GetExtraProperties ¶
func (s *SubmitImageUpscaleJob) GetExtraProperties() map[string]interface{}
func (*SubmitImageUpscaleJob) GetForceAsync ¶
func (s *SubmitImageUpscaleJob) GetForceAsync() *bool
func (*SubmitImageUpscaleJob) GetIdempotencyKey ¶
func (s *SubmitImageUpscaleJob) GetIdempotencyKey() *string
func (*SubmitImageUpscaleJob) GetInputs ¶
func (s *SubmitImageUpscaleJob) GetInputs() map[string]any
func (*SubmitImageUpscaleJob) GetLabel ¶
func (s *SubmitImageUpscaleJob) GetLabel() *string
func (*SubmitImageUpscaleJob) GetParams ¶
func (s *SubmitImageUpscaleJob) GetParams() *ImageUpscaleParams
func (*SubmitImageUpscaleJob) GetType ¶
func (s *SubmitImageUpscaleJob) GetType() SubmitImageUpscaleJobType
func (*SubmitImageUpscaleJob) MarshalJSON ¶
func (s *SubmitImageUpscaleJob) MarshalJSON() ([]byte, error)
func (*SubmitImageUpscaleJob) SetCallback ¶
func (s *SubmitImageUpscaleJob) SetCallback(callback *SubmitImageUpscaleJobCallback)
SetCallback sets the Callback field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetDestinations ¶
func (s *SubmitImageUpscaleJob) SetDestinations(destinations []string)
SetDestinations sets the Destinations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetForceAsync ¶
func (s *SubmitImageUpscaleJob) SetForceAsync(forceAsync *bool)
SetForceAsync sets the ForceAsync field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetIdempotencyKey ¶
func (s *SubmitImageUpscaleJob) SetIdempotencyKey(idempotencyKey *string)
SetIdempotencyKey sets the IdempotencyKey field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetInputs ¶
func (s *SubmitImageUpscaleJob) SetInputs(inputs map[string]any)
SetInputs sets the Inputs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetLabel ¶
func (s *SubmitImageUpscaleJob) SetLabel(label *string)
SetLabel sets the Label field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetParams ¶
func (s *SubmitImageUpscaleJob) SetParams(params *ImageUpscaleParams)
SetParams sets the Params field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) SetType ¶
func (s *SubmitImageUpscaleJob) SetType(type_ SubmitImageUpscaleJobType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJob) String ¶
func (s *SubmitImageUpscaleJob) String() string
func (*SubmitImageUpscaleJob) UnmarshalJSON ¶
func (s *SubmitImageUpscaleJob) UnmarshalJSON(data []byte) error
type SubmitImageUpscaleJobCallback ¶
type SubmitImageUpscaleJobCallback struct {
// HTTPS URL Rendobar POSTs the job result to on a terminal state
URL string `json:"url" url:"url"`
// Custom request headers (e.g. an Authorization bearer) sent with the callback POST. Lets it hit an authed target like Cloudflare's Workflows events endpoint directly. Framing and X-Rendobar-* headers are reserved.
Headers map[string]string `json:"headers,omitempty" url:"headers,omitempty"`
// Opt into signing: when true, the callback POST carries an X-Rendobar-Signature (HMAC-SHA256, same scheme as webhooks). Verify it with your org callback signing secret (GET /orgs/current/callback-secret) via the SDK's verifyWebhook(). Default false leaves the callback unsigned.
Verify *bool `json:"verify,omitempty" url:"verify,omitempty"`
// Opt into EXTRA non-terminal events. The terminal events (complete/failed/cancelled) always fire and cannot be filtered out, so a waiter can never hang. Today the only opt-in extra is job.started (a progress ping fired when the job starts running).
Events []SubmitImageUpscaleJobCallbackEventsItem `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Per-job completion callback. On complete/failed/cancelled Rendobar POSTs the standard job envelope to this URL.
func (*SubmitImageUpscaleJobCallback) GetEvents ¶
func (s *SubmitImageUpscaleJobCallback) GetEvents() []SubmitImageUpscaleJobCallbackEventsItem
func (*SubmitImageUpscaleJobCallback) GetExtraProperties ¶
func (s *SubmitImageUpscaleJobCallback) GetExtraProperties() map[string]interface{}
func (*SubmitImageUpscaleJobCallback) GetHeaders ¶
func (s *SubmitImageUpscaleJobCallback) GetHeaders() map[string]string
func (*SubmitImageUpscaleJobCallback) GetURL ¶
func (s *SubmitImageUpscaleJobCallback) GetURL() string
func (*SubmitImageUpscaleJobCallback) GetVerify ¶
func (s *SubmitImageUpscaleJobCallback) GetVerify() *bool
func (*SubmitImageUpscaleJobCallback) MarshalJSON ¶
func (s *SubmitImageUpscaleJobCallback) MarshalJSON() ([]byte, error)
func (*SubmitImageUpscaleJobCallback) SetEvents ¶
func (s *SubmitImageUpscaleJobCallback) SetEvents(events []SubmitImageUpscaleJobCallbackEventsItem)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJobCallback) SetHeaders ¶
func (s *SubmitImageUpscaleJobCallback) SetHeaders(headers map[string]string)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJobCallback) SetURL ¶
func (s *SubmitImageUpscaleJobCallback) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJobCallback) SetVerify ¶
func (s *SubmitImageUpscaleJobCallback) SetVerify(verify *bool)
SetVerify sets the Verify field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitImageUpscaleJobCallback) String ¶
func (s *SubmitImageUpscaleJobCallback) String() string
func (*SubmitImageUpscaleJobCallback) UnmarshalJSON ¶
func (s *SubmitImageUpscaleJobCallback) UnmarshalJSON(data []byte) error
type SubmitImageUpscaleJobCallbackEventsItem ¶
type SubmitImageUpscaleJobCallbackEventsItem string
const (
SubmitImageUpscaleJobCallbackEventsItemJobStarted SubmitImageUpscaleJobCallbackEventsItem = "job.started"
)
func NewSubmitImageUpscaleJobCallbackEventsItemFromString ¶
func NewSubmitImageUpscaleJobCallbackEventsItemFromString(s string) (SubmitImageUpscaleJobCallbackEventsItem, error)
type SubmitImageUpscaleJobType ¶
type SubmitImageUpscaleJobType string
Job type
const (
SubmitImageUpscaleJobTypeImageUpscale SubmitImageUpscaleJobType = "image.upscale"
)
func NewSubmitImageUpscaleJobTypeFromString ¶
func NewSubmitImageUpscaleJobTypeFromString(s string) (SubmitImageUpscaleJobType, error)
func (SubmitImageUpscaleJobType) Ptr ¶
func (s SubmitImageUpscaleJobType) Ptr() *SubmitImageUpscaleJobType
type SubmitJobRequest ¶
type SubmitJobRequest struct {
SubmitCaptionBurnJob *SubmitCaptionBurnJob
SubmitCaptionsAnimateJob *SubmitCaptionsAnimateJob
SubmitCompressTargetJob *SubmitCompressTargetJob
SubmitFfmpegJob *SubmitFfmpegJob
SubmitFfprobeJob *SubmitFfprobeJob
SubmitImageEditJob *SubmitImageEditJob
SubmitImageGenerateJob *SubmitImageGenerateJob
SubmitImageUpscaleJob *SubmitImageUpscaleJob
SubmitAnyJob *SubmitAnyJob
// contains filtered or unexported fields
}
func (*SubmitJobRequest) Accept ¶
func (s *SubmitJobRequest) Accept(visitor SubmitJobRequestVisitor) error
func (*SubmitJobRequest) GetSubmitAnyJob ¶
func (s *SubmitJobRequest) GetSubmitAnyJob() *SubmitAnyJob
func (*SubmitJobRequest) GetSubmitCaptionBurnJob ¶
func (s *SubmitJobRequest) GetSubmitCaptionBurnJob() *SubmitCaptionBurnJob
func (*SubmitJobRequest) GetSubmitCaptionsAnimateJob ¶
func (s *SubmitJobRequest) GetSubmitCaptionsAnimateJob() *SubmitCaptionsAnimateJob
func (*SubmitJobRequest) GetSubmitCompressTargetJob ¶
func (s *SubmitJobRequest) GetSubmitCompressTargetJob() *SubmitCompressTargetJob
func (*SubmitJobRequest) GetSubmitFfmpegJob ¶
func (s *SubmitJobRequest) GetSubmitFfmpegJob() *SubmitFfmpegJob
func (*SubmitJobRequest) GetSubmitFfprobeJob ¶
func (s *SubmitJobRequest) GetSubmitFfprobeJob() *SubmitFfprobeJob
func (*SubmitJobRequest) GetSubmitImageEditJob ¶
func (s *SubmitJobRequest) GetSubmitImageEditJob() *SubmitImageEditJob
func (*SubmitJobRequest) GetSubmitImageGenerateJob ¶
func (s *SubmitJobRequest) GetSubmitImageGenerateJob() *SubmitImageGenerateJob
func (*SubmitJobRequest) GetSubmitImageUpscaleJob ¶
func (s *SubmitJobRequest) GetSubmitImageUpscaleJob() *SubmitImageUpscaleJob
func (SubmitJobRequest) MarshalJSON ¶
func (s SubmitJobRequest) MarshalJSON() ([]byte, error)
func (*SubmitJobRequest) UnmarshalJSON ¶
func (s *SubmitJobRequest) UnmarshalJSON(data []byte) error
type SubmitJobRequestVisitor ¶
type SubmitJobRequestVisitor interface {
VisitSubmitCaptionBurnJob(*SubmitCaptionBurnJob) error
VisitSubmitCaptionsAnimateJob(*SubmitCaptionsAnimateJob) error
VisitSubmitCompressTargetJob(*SubmitCompressTargetJob) error
VisitSubmitFfmpegJob(*SubmitFfmpegJob) error
VisitSubmitFfprobeJob(*SubmitFfprobeJob) error
VisitSubmitImageEditJob(*SubmitImageEditJob) error
VisitSubmitImageGenerateJob(*SubmitImageGenerateJob) error
VisitSubmitImageUpscaleJob(*SubmitImageUpscaleJob) error
VisitSubmitAnyJob(*SubmitAnyJob) error
}
type SubmitJobResponse ¶
type SubmitJobResponse struct {
Data *SubmitJobResponseData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*SubmitJobResponse) GetData ¶
func (s *SubmitJobResponse) GetData() *SubmitJobResponseData
func (*SubmitJobResponse) GetExtraProperties ¶
func (s *SubmitJobResponse) GetExtraProperties() map[string]interface{}
func (*SubmitJobResponse) MarshalJSON ¶
func (s *SubmitJobResponse) MarshalJSON() ([]byte, error)
func (*SubmitJobResponse) SetData ¶
func (s *SubmitJobResponse) SetData(data *SubmitJobResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SubmitJobResponse) String ¶
func (s *SubmitJobResponse) String() string
func (*SubmitJobResponse) UnmarshalJSON ¶
func (s *SubmitJobResponse) UnmarshalJSON(data []byte) error
type SubmitJobResponseData ¶
type SubmitJobResponseData struct {
JobCompletedOnSubmit *JobCompletedOnSubmit
JobReplayed *JobReplayed
// contains filtered or unexported fields
}
func (*SubmitJobResponseData) Accept ¶
func (s *SubmitJobResponseData) Accept(visitor SubmitJobResponseDataVisitor) error
func (*SubmitJobResponseData) GetJobCompletedOnSubmit ¶
func (s *SubmitJobResponseData) GetJobCompletedOnSubmit() *JobCompletedOnSubmit
func (*SubmitJobResponseData) GetJobReplayed ¶
func (s *SubmitJobResponseData) GetJobReplayed() *JobReplayed
func (SubmitJobResponseData) MarshalJSON ¶
func (s SubmitJobResponseData) MarshalJSON() ([]byte, error)
func (*SubmitJobResponseData) UnmarshalJSON ¶
func (s *SubmitJobResponseData) UnmarshalJSON(data []byte) error
type SubmitJobResponseDataVisitor ¶
type SubmitJobResponseDataVisitor interface {
VisitJobCompletedOnSubmit(*JobCompletedOnSubmit) error
VisitJobReplayed(*JobReplayed) error
}
type TestEventData ¶
type TestEventData struct {
Message string `json:"message" url:"message"`
EndpointID string `json:"endpointId" url:"endpointId"`
// contains filtered or unexported fields
}
func (*TestEventData) GetEndpointID ¶
func (t *TestEventData) GetEndpointID() string
func (*TestEventData) GetExtraProperties ¶
func (t *TestEventData) GetExtraProperties() map[string]interface{}
func (*TestEventData) GetMessage ¶
func (t *TestEventData) GetMessage() string
func (*TestEventData) MarshalJSON ¶
func (t *TestEventData) MarshalJSON() ([]byte, error)
func (*TestEventData) SetEndpointID ¶
func (t *TestEventData) SetEndpointID(endpointID string)
SetEndpointID sets the EndpointID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestEventData) SetMessage ¶
func (t *TestEventData) SetMessage(message string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestEventData) String ¶
func (t *TestEventData) String() string
func (*TestEventData) UnmarshalJSON ¶
func (t *TestEventData) UnmarshalJSON(data []byte) error
type TestWebhookEvent ¶
type TestWebhookEvent struct {
// Envelope version. A new version is a new shape
Version TestWebhookEventVersion `json:"version" url:"version"`
// Unique per delivery. Retries of one delivery share it
DeliveryID string `json:"deliveryId" url:"deliveryId"`
// When the event happened (Unix ms)
Timestamp int `json:"timestamp" url:"timestamp"`
OrgID string `json:"orgId" url:"orgId"`
Data *TestEventData `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*TestWebhookEvent) GetData ¶
func (t *TestWebhookEvent) GetData() *TestEventData
func (*TestWebhookEvent) GetDeliveryID ¶
func (t *TestWebhookEvent) GetDeliveryID() string
func (*TestWebhookEvent) GetExtraProperties ¶
func (t *TestWebhookEvent) GetExtraProperties() map[string]interface{}
func (*TestWebhookEvent) GetOrgID ¶
func (t *TestWebhookEvent) GetOrgID() string
func (*TestWebhookEvent) GetTimestamp ¶
func (t *TestWebhookEvent) GetTimestamp() int
func (*TestWebhookEvent) GetVersion ¶
func (t *TestWebhookEvent) GetVersion() TestWebhookEventVersion
func (*TestWebhookEvent) MarshalJSON ¶
func (t *TestWebhookEvent) MarshalJSON() ([]byte, error)
func (*TestWebhookEvent) SetData ¶
func (t *TestWebhookEvent) SetData(data *TestEventData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookEvent) SetDeliveryID ¶
func (t *TestWebhookEvent) SetDeliveryID(deliveryID string)
SetDeliveryID sets the DeliveryID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookEvent) SetOrgID ¶
func (t *TestWebhookEvent) SetOrgID(orgID string)
SetOrgID sets the OrgID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookEvent) SetTimestamp ¶
func (t *TestWebhookEvent) SetTimestamp(timestamp int)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookEvent) SetVersion ¶
func (t *TestWebhookEvent) SetVersion(version TestWebhookEventVersion)
SetVersion sets the Version field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookEvent) String ¶
func (t *TestWebhookEvent) String() string
func (*TestWebhookEvent) UnmarshalJSON ¶
func (t *TestWebhookEvent) UnmarshalJSON(data []byte) error
type TestWebhookEventVersion ¶
type TestWebhookEventVersion string
Envelope version. A new version is a new shape
const (
TestWebhookEventVersionV1 TestWebhookEventVersion = "1"
)
func NewTestWebhookEventVersionFromString ¶
func NewTestWebhookEventVersionFromString(s string) (TestWebhookEventVersion, error)
func (TestWebhookEventVersion) Ptr ¶
func (t TestWebhookEventVersion) Ptr() *TestWebhookEventVersion
type TooManyRequestsError ¶
type TooManyRequestsError struct {
*core.APIError
Body *ErrorResponse
}
Rate limited
func (*TooManyRequestsError) GetBody ¶
func (t *TooManyRequestsError) GetBody() *ErrorResponse
func (*TooManyRequestsError) MarshalJSON ¶
func (t *TooManyRequestsError) MarshalJSON() ([]byte, error)
func (*TooManyRequestsError) UnmarshalJSON ¶
func (t *TooManyRequestsError) UnmarshalJSON(data []byte) error
func (*TooManyRequestsError) Unwrap ¶
func (t *TooManyRequestsError) Unwrap() error
type UnauthorizedError ¶
type UnauthorizedError struct {
}
Unauthorized
func (*UnauthorizedError) GetBody ¶
func (u *UnauthorizedError) GetBody() *ErrorResponse
func (*UnauthorizedError) MarshalJSON ¶
func (u *UnauthorizedError) MarshalJSON() ([]byte, error)
func (*UnauthorizedError) UnmarshalJSON ¶
func (u *UnauthorizedError) UnmarshalJSON(data []byte) error
func (*UnauthorizedError) Unwrap ¶
func (u *UnauthorizedError) Unwrap() error
type WebhookEndpoint ¶
type WebhookEndpoint struct {
ID string `json:"id" url:"id"`
Name string `json:"name" url:"name"`
URL string `json:"url" url:"url"`
// Masked signing secret
SigningSecret string `json:"signingSecret" url:"signingSecret"`
Active bool `json:"active" url:"active"`
DisabledReason *string `json:"disabledReason,omitempty" url:"disabledReason,omitempty"`
ConsecutiveFailures int `json:"consecutiveFailures" url:"consecutiveFailures"`
SubscribedEvents []string `json:"subscribedEvents" url:"subscribedEvents"`
RotationActive bool `json:"rotationActive" url:"rotationActive"`
SecretExpiresAt *int `json:"secretExpiresAt,omitempty" url:"secretExpiresAt,omitempty"`
CreatedAt int `json:"createdAt" url:"createdAt"`
UpdatedAt int `json:"updatedAt" url:"updatedAt"`
// contains filtered or unexported fields
}
func (*WebhookEndpoint) GetActive ¶
func (w *WebhookEndpoint) GetActive() bool
func (*WebhookEndpoint) GetConsecutiveFailures ¶
func (w *WebhookEndpoint) GetConsecutiveFailures() int
func (*WebhookEndpoint) GetCreatedAt ¶
func (w *WebhookEndpoint) GetCreatedAt() int
func (*WebhookEndpoint) GetDisabledReason ¶
func (w *WebhookEndpoint) GetDisabledReason() *string
func (*WebhookEndpoint) GetExtraProperties ¶
func (w *WebhookEndpoint) GetExtraProperties() map[string]interface{}
func (*WebhookEndpoint) GetID ¶
func (w *WebhookEndpoint) GetID() string
func (*WebhookEndpoint) GetName ¶
func (w *WebhookEndpoint) GetName() string
func (*WebhookEndpoint) GetRotationActive ¶
func (w *WebhookEndpoint) GetRotationActive() bool
func (*WebhookEndpoint) GetSecretExpiresAt ¶
func (w *WebhookEndpoint) GetSecretExpiresAt() *int
func (*WebhookEndpoint) GetSigningSecret ¶
func (w *WebhookEndpoint) GetSigningSecret() string
func (*WebhookEndpoint) GetSubscribedEvents ¶
func (w *WebhookEndpoint) GetSubscribedEvents() []string
func (*WebhookEndpoint) GetURL ¶
func (w *WebhookEndpoint) GetURL() string
func (*WebhookEndpoint) GetUpdatedAt ¶
func (w *WebhookEndpoint) GetUpdatedAt() int
func (*WebhookEndpoint) MarshalJSON ¶
func (w *WebhookEndpoint) MarshalJSON() ([]byte, error)
func (*WebhookEndpoint) SetActive ¶
func (w *WebhookEndpoint) SetActive(active bool)
SetActive sets the Active field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetConsecutiveFailures ¶
func (w *WebhookEndpoint) SetConsecutiveFailures(consecutiveFailures int)
SetConsecutiveFailures sets the ConsecutiveFailures field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetCreatedAt ¶
func (w *WebhookEndpoint) SetCreatedAt(createdAt int)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetDisabledReason ¶
func (w *WebhookEndpoint) SetDisabledReason(disabledReason *string)
SetDisabledReason sets the DisabledReason field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetID ¶
func (w *WebhookEndpoint) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetName ¶
func (w *WebhookEndpoint) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetRotationActive ¶
func (w *WebhookEndpoint) SetRotationActive(rotationActive bool)
SetRotationActive sets the RotationActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetSecretExpiresAt ¶
func (w *WebhookEndpoint) SetSecretExpiresAt(secretExpiresAt *int)
SetSecretExpiresAt sets the SecretExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetSigningSecret ¶
func (w *WebhookEndpoint) SetSigningSecret(signingSecret string)
SetSigningSecret sets the SigningSecret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetSubscribedEvents ¶
func (w *WebhookEndpoint) SetSubscribedEvents(subscribedEvents []string)
SetSubscribedEvents sets the SubscribedEvents field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetURL ¶
func (w *WebhookEndpoint) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) SetUpdatedAt ¶
func (w *WebhookEndpoint) SetUpdatedAt(updatedAt int)
SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookEndpoint) String ¶
func (w *WebhookEndpoint) String() string
func (*WebhookEndpoint) UnmarshalJSON ¶
func (w *WebhookEndpoint) UnmarshalJSON(data []byte) error
type WebhookJobCost ¶
type WebhookJobCost struct {
Amount int `json:"amount" url:"amount"`
Currency WebhookJobCostCurrency `json:"currency" url:"currency"`
Formatted string `json:"formatted" url:"formatted"`
Breakdown string `json:"breakdown" url:"breakdown"`
// contains filtered or unexported fields
}
func (*WebhookJobCost) GetAmount ¶
func (w *WebhookJobCost) GetAmount() int
func (*WebhookJobCost) GetBreakdown ¶
func (w *WebhookJobCost) GetBreakdown() string
func (*WebhookJobCost) GetCurrency ¶
func (w *WebhookJobCost) GetCurrency() WebhookJobCostCurrency
func (*WebhookJobCost) GetExtraProperties ¶
func (w *WebhookJobCost) GetExtraProperties() map[string]interface{}
func (*WebhookJobCost) GetFormatted ¶
func (w *WebhookJobCost) GetFormatted() string
func (*WebhookJobCost) MarshalJSON ¶
func (w *WebhookJobCost) MarshalJSON() ([]byte, error)
func (*WebhookJobCost) SetAmount ¶
func (w *WebhookJobCost) SetAmount(amount int)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobCost) SetBreakdown ¶
func (w *WebhookJobCost) SetBreakdown(breakdown string)
SetBreakdown sets the Breakdown field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobCost) SetCurrency ¶
func (w *WebhookJobCost) SetCurrency(currency WebhookJobCostCurrency)
SetCurrency sets the Currency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobCost) SetFormatted ¶
func (w *WebhookJobCost) SetFormatted(formatted string)
SetFormatted sets the Formatted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobCost) String ¶
func (w *WebhookJobCost) String() string
func (*WebhookJobCost) UnmarshalJSON ¶
func (w *WebhookJobCost) UnmarshalJSON(data []byte) error
type WebhookJobCostCurrency ¶
type WebhookJobCostCurrency string
const (
WebhookJobCostCurrencyUsd WebhookJobCostCurrency = "USD"
)
func NewWebhookJobCostCurrencyFromString ¶
func NewWebhookJobCostCurrencyFromString(s string) (WebhookJobCostCurrency, error)
func (WebhookJobCostCurrency) Ptr ¶
func (w WebhookJobCostCurrency) Ptr() *WebhookJobCostCurrency
type WebhookJobStep ¶
type WebhookJobStep struct {
ID string `json:"id" url:"id"`
Name string `json:"name" url:"name"`
Status string `json:"status" url:"status"`
DurationMs *int `json:"durationMs,omitempty" url:"durationMs,omitempty"`
Error *string `json:"error,omitempty" url:"error,omitempty"`
// contains filtered or unexported fields
}
func (*WebhookJobStep) GetDurationMs ¶
func (w *WebhookJobStep) GetDurationMs() *int
func (*WebhookJobStep) GetError ¶
func (w *WebhookJobStep) GetError() *string
func (*WebhookJobStep) GetExtraProperties ¶
func (w *WebhookJobStep) GetExtraProperties() map[string]interface{}
func (*WebhookJobStep) GetID ¶
func (w *WebhookJobStep) GetID() string
func (*WebhookJobStep) GetName ¶
func (w *WebhookJobStep) GetName() string
func (*WebhookJobStep) GetStatus ¶
func (w *WebhookJobStep) GetStatus() string
func (*WebhookJobStep) MarshalJSON ¶
func (w *WebhookJobStep) MarshalJSON() ([]byte, error)
func (*WebhookJobStep) SetDurationMs ¶
func (w *WebhookJobStep) SetDurationMs(durationMs *int)
SetDurationMs sets the DurationMs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobStep) SetError ¶
func (w *WebhookJobStep) SetError(error_ *string)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobStep) SetID ¶
func (w *WebhookJobStep) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobStep) SetName ¶
func (w *WebhookJobStep) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobStep) SetStatus ¶
func (w *WebhookJobStep) SetStatus(status string)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookJobStep) String ¶
func (w *WebhookJobStep) String() string
func (*WebhookJobStep) UnmarshalJSON ¶
func (w *WebhookJobStep) UnmarshalJSON(data []byte) error
type WebhookPayload ¶
type WebhookPayload struct {
Event string
JobCreated *JobCreatedWebhookEvent
JobStarted *JobStartedWebhookEvent
JobCompleted *JobCompletedWebhookEvent
JobFailed *JobFailedWebhookEvent
JobCancelled *JobCancelledWebhookEvent
JobDeliverySucceeded *JobDeliverySucceededWebhookEvent
JobDeliveryFailed *JobDeliveryFailedWebhookEvent
JobDeliveriesSettled *JobDeliveriesSettledWebhookEvent
BalanceLow *BalanceLowWebhookEvent
BalanceDepleted *BalanceDepletedWebhookEvent
Test *TestWebhookEvent
// contains filtered or unexported fields
}
func (*WebhookPayload) Accept ¶
func (w *WebhookPayload) Accept(visitor WebhookPayloadVisitor) error
func (*WebhookPayload) GetBalanceDepleted ¶
func (w *WebhookPayload) GetBalanceDepleted() *BalanceDepletedWebhookEvent
func (*WebhookPayload) GetBalanceLow ¶
func (w *WebhookPayload) GetBalanceLow() *BalanceLowWebhookEvent
func (*WebhookPayload) GetEvent ¶
func (w *WebhookPayload) GetEvent() string
func (*WebhookPayload) GetJobCancelled ¶
func (w *WebhookPayload) GetJobCancelled() *JobCancelledWebhookEvent
func (*WebhookPayload) GetJobCompleted ¶
func (w *WebhookPayload) GetJobCompleted() *JobCompletedWebhookEvent
func (*WebhookPayload) GetJobCreated ¶
func (w *WebhookPayload) GetJobCreated() *JobCreatedWebhookEvent
func (*WebhookPayload) GetJobDeliveriesSettled ¶
func (w *WebhookPayload) GetJobDeliveriesSettled() *JobDeliveriesSettledWebhookEvent
func (*WebhookPayload) GetJobDeliveryFailed ¶
func (w *WebhookPayload) GetJobDeliveryFailed() *JobDeliveryFailedWebhookEvent
func (*WebhookPayload) GetJobDeliverySucceeded ¶
func (w *WebhookPayload) GetJobDeliverySucceeded() *JobDeliverySucceededWebhookEvent
func (*WebhookPayload) GetJobFailed ¶
func (w *WebhookPayload) GetJobFailed() *JobFailedWebhookEvent
func (*WebhookPayload) GetJobStarted ¶
func (w *WebhookPayload) GetJobStarted() *JobStartedWebhookEvent
func (*WebhookPayload) GetTest ¶
func (w *WebhookPayload) GetTest() *TestWebhookEvent
func (WebhookPayload) MarshalJSON ¶
func (w WebhookPayload) MarshalJSON() ([]byte, error)
func (*WebhookPayload) UnmarshalJSON ¶
func (w *WebhookPayload) UnmarshalJSON(data []byte) error
type WebhookPayloadVisitor ¶
type WebhookPayloadVisitor interface {
VisitJobCreated(*JobCreatedWebhookEvent) error
VisitJobStarted(*JobStartedWebhookEvent) error
VisitJobCompleted(*JobCompletedWebhookEvent) error
VisitJobFailed(*JobFailedWebhookEvent) error
VisitJobCancelled(*JobCancelledWebhookEvent) error
VisitJobDeliverySucceeded(*JobDeliverySucceededWebhookEvent) error
VisitJobDeliveryFailed(*JobDeliveryFailedWebhookEvent) error
VisitJobDeliveriesSettled(*JobDeliveriesSettledWebhookEvent) error
VisitBalanceLow(*BalanceLowWebhookEvent) error
VisitBalanceDepleted(*BalanceDepletedWebhookEvent) error
VisitTest(*TestWebhookEvent) error
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Plan limits and enabled features for the authenticated account
|
Plan limits and enabled features for the authenticated account |
|
Check account balance and usage history
|
Check account balance and usage history |
|
Job creation and management (submit, list, get, cancel, download)
|
Job creation and management (submit, list, get, cancel, download) |