operations

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SupportedOptionRetries              = "retries"
	SupportedOptionTimeout              = "timeout"
	SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride"
	SupportedOptionURLOverride          = "urlOverride"
)

Variables

View Source
var ErrUnsupportedOption = errors.New("unsupported option")

Functions

This section is empty.

Types

type CreateMediaPlaybackIDAccessPolicy

type CreateMediaPlaybackIDAccessPolicy string

CreateMediaPlaybackIDAccessPolicy - Determines if access to the streamed content is kept private or available to all.

const (
	CreateMediaPlaybackIDAccessPolicyPublic  CreateMediaPlaybackIDAccessPolicy = "public"
	CreateMediaPlaybackIDAccessPolicyPrivate CreateMediaPlaybackIDAccessPolicy = "private"
	CreateMediaPlaybackIDAccessPolicyDrm     CreateMediaPlaybackIDAccessPolicy = "drm"
)

func (CreateMediaPlaybackIDAccessPolicy) ToPointer

func (*CreateMediaPlaybackIDAccessPolicy) UnmarshalJSON

func (e *CreateMediaPlaybackIDAccessPolicy) UnmarshalJSON(data []byte) error

type CreateMediaPlaybackIDAccessRestrictions

type CreateMediaPlaybackIDAccessRestrictions struct {
	Domains    *CreateMediaPlaybackIDDomains    `json:"domains,omitempty"`
	UserAgents *CreateMediaPlaybackIDUserAgents `json:"userAgents,omitempty"`
}

func (*CreateMediaPlaybackIDAccessRestrictions) GetDomains

func (*CreateMediaPlaybackIDAccessRestrictions) GetUserAgents

type CreateMediaPlaybackIDDomains

type CreateMediaPlaybackIDDomains struct {
	// Specifies the default access policy for domains.
	// If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list.
	// If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
	//
	DefaultPolicy *CreateMediaPlaybackIDDomainsDefaultPolicy `json:"defaultPolicy,omitempty"`
	// A list of domain names or patterns that are explicitly allowed access.
	// This list is only effective when the `defaultPolicy` is set to `deny`.
	//
	Allow []string `json:"allow,omitempty"`
	// A list of domain names or patterns that are explicitly denied access.
	// This list is only effective when the `defaultPolicy` is set to `allow`.
	//
	Deny []string `json:"deny,omitempty"`
}

func (*CreateMediaPlaybackIDDomains) GetAllow

func (o *CreateMediaPlaybackIDDomains) GetAllow() []string

func (*CreateMediaPlaybackIDDomains) GetDefaultPolicy

func (*CreateMediaPlaybackIDDomains) GetDeny

func (o *CreateMediaPlaybackIDDomains) GetDeny() []string

type CreateMediaPlaybackIDDomainsDefaultPolicy

type CreateMediaPlaybackIDDomainsDefaultPolicy string

CreateMediaPlaybackIDDomainsDefaultPolicy - Specifies the default access policy for domains. If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.

const (
	CreateMediaPlaybackIDDomainsDefaultPolicyAllow CreateMediaPlaybackIDDomainsDefaultPolicy = "allow"
	CreateMediaPlaybackIDDomainsDefaultPolicyDeny  CreateMediaPlaybackIDDomainsDefaultPolicy = "deny"
)

func (CreateMediaPlaybackIDDomainsDefaultPolicy) ToPointer

func (*CreateMediaPlaybackIDDomainsDefaultPolicy) UnmarshalJSON

func (e *CreateMediaPlaybackIDDomainsDefaultPolicy) UnmarshalJSON(data []byte) error

type CreateMediaPlaybackIDRequest

type CreateMediaPlaybackIDRequest struct {
	// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
	MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
	// Request body for creating playback id for an media
	RequestBody *CreateMediaPlaybackIDRequestBody `request:"mediaType=application/json"`
}

func (*CreateMediaPlaybackIDRequest) GetMediaID

func (o *CreateMediaPlaybackIDRequest) GetMediaID() string

func (*CreateMediaPlaybackIDRequest) GetRequestBody

type CreateMediaPlaybackIDRequestBody

type CreateMediaPlaybackIDRequestBody struct {
	// Determines if access to the streamed content is kept private or available to all.
	AccessPolicy       CreateMediaPlaybackIDAccessPolicy        `json:"accessPolicy"`
	AccessRestrictions *CreateMediaPlaybackIDAccessRestrictions `json:"accessRestrictions,omitempty"`
}

CreateMediaPlaybackIDRequestBody - Request body for creating playback id for an media

func (*CreateMediaPlaybackIDRequestBody) GetAccessPolicy

func (*CreateMediaPlaybackIDRequestBody) GetAccessRestrictions

type CreateMediaPlaybackIDResponse

type CreateMediaPlaybackIDResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Playback id for an media
	Object *CreateMediaPlaybackIDResponseBody
}

func (*CreateMediaPlaybackIDResponse) GetHTTPMeta

func (*CreateMediaPlaybackIDResponse) GetObject

type CreateMediaPlaybackIDResponseBody

type CreateMediaPlaybackIDResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays the result of the request.
	Data *Data `json:"data,omitempty"`
}

CreateMediaPlaybackIDResponseBody - Playback id for an media

func (*CreateMediaPlaybackIDResponseBody) GetData

func (*CreateMediaPlaybackIDResponseBody) GetSuccess

func (o *CreateMediaPlaybackIDResponseBody) GetSuccess() *bool

type CreateMediaPlaybackIDUserAgents

type CreateMediaPlaybackIDUserAgents struct {
	// Specifies the default access policy for user agents (browsers, bots, etc.).
	// If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list.
	// If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
	//
	DefaultPolicy *CreateMediaPlaybackIDUserAgentsDefaultPolicy `json:"defaultPolicy,omitempty"`
	// A list of user agents (identified by string names or patterns) that are explicitly allowed access.
	// This list is only effective when the `defaultPolicy` is set to `deny`.
	//
	Allow []string `json:"allow,omitempty"`
	// A list of user agents (identified by string names or patterns) that are explicitly denied access.
	// This list is only effective when the `defaultPolicy` is set to `allow`.
	//
	Deny []string `json:"deny,omitempty"`
}

func (*CreateMediaPlaybackIDUserAgents) GetAllow

func (o *CreateMediaPlaybackIDUserAgents) GetAllow() []string

func (*CreateMediaPlaybackIDUserAgents) GetDefaultPolicy

func (*CreateMediaPlaybackIDUserAgents) GetDeny

func (o *CreateMediaPlaybackIDUserAgents) GetDeny() []string

type CreateMediaPlaybackIDUserAgentsDefaultPolicy

type CreateMediaPlaybackIDUserAgentsDefaultPolicy string

CreateMediaPlaybackIDUserAgentsDefaultPolicy - Specifies the default access policy for user agents (browsers, bots, etc.). If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.

const (
	CreateMediaPlaybackIDUserAgentsDefaultPolicyAllow CreateMediaPlaybackIDUserAgentsDefaultPolicy = "allow"
	CreateMediaPlaybackIDUserAgentsDefaultPolicyDeny  CreateMediaPlaybackIDUserAgentsDefaultPolicy = "deny"
)

func (CreateMediaPlaybackIDUserAgentsDefaultPolicy) ToPointer

func (*CreateMediaPlaybackIDUserAgentsDefaultPolicy) UnmarshalJSON

func (e *CreateMediaPlaybackIDUserAgentsDefaultPolicy) UnmarshalJSON(data []byte) error

type CreateMediaResponse

type CreateMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Media is created successfully
	Object *CreateMediaResponseBody
}

func (*CreateMediaResponse) GetHTTPMeta

func (o *CreateMediaResponse) GetHTTPMeta() components.HTTPMetadata

func (*CreateMediaResponse) GetObject

type CreateMediaResponseBody

type CreateMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool                           `json:"success,omitempty"`
	Data    *components.CreateMediaResponse `json:"data,omitempty"`
}

CreateMediaResponseBody - Media is created successfully

func (*CreateMediaResponseBody) GetData

func (*CreateMediaResponseBody) GetSuccess

func (o *CreateMediaResponseBody) GetSuccess() *bool

type CreateNewStreamResponse

type CreateNewStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream created successfully
	LiveStreamResponseDTO *components.LiveStreamResponseDTO
}

func (*CreateNewStreamResponse) GetHTTPMeta

func (*CreateNewStreamResponse) GetLiveStreamResponseDTO

func (o *CreateNewStreamResponse) GetLiveStreamResponseDTO() *components.LiveStreamResponseDTO

type CreatePlaybackIDOfStreamRequest

type CreatePlaybackIDOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID          string                        `pathParam:"style=simple,explode=false,name=streamId"`
	PlaybackIDRequest *components.PlaybackIDRequest `request:"mediaType=application/json"`
}

func (*CreatePlaybackIDOfStreamRequest) GetPlaybackIDRequest

func (*CreatePlaybackIDOfStreamRequest) GetStreamID

func (o *CreatePlaybackIDOfStreamRequest) GetStreamID() string

type CreatePlaybackIDOfStreamResponse

type CreatePlaybackIDOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// New PlaybackId created successfully
	PlaybackIDResponse *components.PlaybackIDResponse
}

func (*CreatePlaybackIDOfStreamResponse) GetHTTPMeta

func (*CreatePlaybackIDOfStreamResponse) GetPlaybackIDResponse

type CreateSimulcastOfStreamRequest

type CreateSimulcastOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID         string                       `pathParam:"style=simple,explode=false,name=streamId"`
	SimulcastRequest *components.SimulcastRequest `request:"mediaType=application/json"`
}

func (*CreateSimulcastOfStreamRequest) GetSimulcastRequest

func (*CreateSimulcastOfStreamRequest) GetStreamID

func (o *CreateSimulcastOfStreamRequest) GetStreamID() string

type CreateSimulcastOfStreamResponse

type CreateSimulcastOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// New Simulcast created successfully
	SimulcastResponse *components.SimulcastResponse
}

func (*CreateSimulcastOfStreamResponse) GetHTTPMeta

func (*CreateSimulcastOfStreamResponse) GetSimulcastResponse

type Data

type Data struct {
	// A collection of Playback ID objects utilized for crafting HLS playback URLs.
	PlaybackIds []components.PlaybackID `json:"playbackIds,omitempty"`
}

Data - Displays the result of the request.

func (*Data) GetPlaybackIds

func (o *Data) GetPlaybackIds() []components.PlaybackID

type DeleteLiveStreamRequest

type DeleteLiveStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
}

func (*DeleteLiveStreamRequest) GetStreamID

func (o *DeleteLiveStreamRequest) GetStreamID() string

type DeleteLiveStreamResponse

type DeleteLiveStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream deleted successfully
	LiveStreamDeleteResponse *components.LiveStreamDeleteResponse
}

func (*DeleteLiveStreamResponse) GetHTTPMeta

func (*DeleteLiveStreamResponse) GetLiveStreamDeleteResponse

func (o *DeleteLiveStreamResponse) GetLiveStreamDeleteResponse() *components.LiveStreamDeleteResponse

type DeleteMediaPlaybackIDRequest

type DeleteMediaPlaybackIDRequest struct {
	// Return the universal unique identifier for media which can contain a maximum of 255 characters.
	MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
	// Return the universal unique identifier for playbacks  which can contain a maximum of 255 characters.
	PlaybackID string `queryParam:"style=form,explode=true,name=playbackId"`
}

func (*DeleteMediaPlaybackIDRequest) GetMediaID

func (o *DeleteMediaPlaybackIDRequest) GetMediaID() string

func (*DeleteMediaPlaybackIDRequest) GetPlaybackID

func (o *DeleteMediaPlaybackIDRequest) GetPlaybackID() string

type DeleteMediaPlaybackIDResponse

type DeleteMediaPlaybackIDResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Deleted a Playback Id successfully
	Object *DeleteMediaPlaybackIDResponseBody
}

func (*DeleteMediaPlaybackIDResponse) GetHTTPMeta

func (*DeleteMediaPlaybackIDResponse) GetObject

type DeleteMediaPlaybackIDResponseBody

type DeleteMediaPlaybackIDResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
}

DeleteMediaPlaybackIDResponseBody - Deleted a Playback Id successfully

func (*DeleteMediaPlaybackIDResponseBody) GetSuccess

func (o *DeleteMediaPlaybackIDResponseBody) GetSuccess() *bool

type DeleteMediaRequest

type DeleteMediaRequest struct {
	// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
	MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}

func (*DeleteMediaRequest) GetMediaID

func (o *DeleteMediaRequest) GetMediaID() string

type DeleteMediaResponse

type DeleteMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Delete a video media
	Object *DeleteMediaResponseBody
}

func (*DeleteMediaResponse) GetHTTPMeta

func (o *DeleteMediaResponse) GetHTTPMeta() components.HTTPMetadata

func (*DeleteMediaResponse) GetObject

type DeleteMediaResponseBody

type DeleteMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
}

DeleteMediaResponseBody - Delete a video media

func (*DeleteMediaResponseBody) GetSuccess

func (o *DeleteMediaResponseBody) GetSuccess() *bool

type DeletePlaybackIDOfStreamRequest

type DeletePlaybackIDOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
	// Unique identifier for the playbackId
	PlaybackID string `queryParam:"style=form,explode=true,name=playbackId"`
}

func (*DeletePlaybackIDOfStreamRequest) GetPlaybackID

func (o *DeletePlaybackIDOfStreamRequest) GetPlaybackID() string

func (*DeletePlaybackIDOfStreamRequest) GetStreamID

func (o *DeletePlaybackIDOfStreamRequest) GetStreamID() string

type DeletePlaybackIDOfStreamResponse

type DeletePlaybackIDOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream's playbackId deleted successfully
	LiveStreamDeleteResponse *components.LiveStreamDeleteResponse
}

func (*DeletePlaybackIDOfStreamResponse) GetHTTPMeta

func (*DeletePlaybackIDOfStreamResponse) GetLiveStreamDeleteResponse

func (o *DeletePlaybackIDOfStreamResponse) GetLiveStreamDeleteResponse() *components.LiveStreamDeleteResponse

type DeleteSimulcastOfStreamRequest

type DeleteSimulcastOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
	// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
	SimulcastID string `pathParam:"style=simple,explode=false,name=simulcastId"`
}

func (*DeleteSimulcastOfStreamRequest) GetSimulcastID

func (o *DeleteSimulcastOfStreamRequest) GetSimulcastID() string

func (*DeleteSimulcastOfStreamRequest) GetStreamID

func (o *DeleteSimulcastOfStreamRequest) GetStreamID() string

type DeleteSimulcastOfStreamResponse

type DeleteSimulcastOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream's simulcast deleted successfully
	SimulcastdeleteResponse *components.SimulcastdeleteResponse
}

func (*DeleteSimulcastOfStreamResponse) GetHTTPMeta

func (*DeleteSimulcastOfStreamResponse) GetSimulcastdeleteResponse

func (o *DeleteSimulcastOfStreamResponse) GetSimulcastdeleteResponse() *components.SimulcastdeleteResponse

type DirectUploadVideoMediaAccessPolicy

type DirectUploadVideoMediaAccessPolicy string

DirectUploadVideoMediaAccessPolicy - Determines if access to the streamed content is kept private or available to all.

const (
	DirectUploadVideoMediaAccessPolicyPublic  DirectUploadVideoMediaAccessPolicy = "public"
	DirectUploadVideoMediaAccessPolicyPrivate DirectUploadVideoMediaAccessPolicy = "private"
)

func (DirectUploadVideoMediaAccessPolicy) ToPointer

func (*DirectUploadVideoMediaAccessPolicy) UnmarshalJSON

func (e *DirectUploadVideoMediaAccessPolicy) UnmarshalJSON(data []byte) error

type DirectUploadVideoMediaAccessRestrictions

type DirectUploadVideoMediaAccessRestrictions struct {
	Domains    *DirectUploadVideoMediaDomains    `json:"domains,omitempty"`
	UserAgents *DirectUploadVideoMediaUserAgents `json:"userAgents,omitempty"`
}

func (*DirectUploadVideoMediaAccessRestrictions) GetDomains

func (*DirectUploadVideoMediaAccessRestrictions) GetUserAgents

type DirectUploadVideoMediaDomains

type DirectUploadVideoMediaDomains struct {
	// Specifies the default access policy for domains.
	// If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list.
	// If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.
	//
	DefaultPolicy *DirectUploadVideoMediaDomainsDefaultPolicy `json:"defaultPolicy,omitempty"`
	// A list of domain names or patterns that are explicitly allowed access.
	// This list is only effective when the `defaultPolicy` is set to `deny`.
	//
	Allow []string `json:"allow,omitempty"`
	// A list of domain names or patterns that are explicitly denied access.
	// This list is only effective when the `defaultPolicy` is set to `allow`.
	//
	Deny []string `json:"deny,omitempty"`
}

func (*DirectUploadVideoMediaDomains) GetAllow

func (o *DirectUploadVideoMediaDomains) GetAllow() []string

func (*DirectUploadVideoMediaDomains) GetDefaultPolicy

func (*DirectUploadVideoMediaDomains) GetDeny

func (o *DirectUploadVideoMediaDomains) GetDeny() []string

type DirectUploadVideoMediaDomainsDefaultPolicy

type DirectUploadVideoMediaDomainsDefaultPolicy string

DirectUploadVideoMediaDomainsDefaultPolicy - Specifies the default access policy for domains. If set to `allow`, all domains are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all domains are denied access unless otherwise specified in the `allow` list.

const (
	DirectUploadVideoMediaDomainsDefaultPolicyAllow DirectUploadVideoMediaDomainsDefaultPolicy = "allow"
	DirectUploadVideoMediaDomainsDefaultPolicyDeny  DirectUploadVideoMediaDomainsDefaultPolicy = "deny"
)

func (DirectUploadVideoMediaDomainsDefaultPolicy) ToPointer

func (*DirectUploadVideoMediaDomainsDefaultPolicy) UnmarshalJSON

func (e *DirectUploadVideoMediaDomainsDefaultPolicy) UnmarshalJSON(data []byte) error

type DirectUploadVideoMediaMetadata

type DirectUploadVideoMediaMetadata struct {
}

DirectUploadVideoMediaMetadata - Tag a video in "key" : "value" pairs for searchable metadata. Maximum 10 entries, 255 characters each.

type DirectUploadVideoMediaRequest

type DirectUploadVideoMediaRequest struct {
	// Upload media directly from a device using the URL name or enter '*' to allow all.
	CorsOrigin string `json:"corsOrigin"`
	// Configuration settings for media upload.
	PushMediaSettings *PushMediaSettings `json:"pushMediaSettings,omitempty"`
}

DirectUploadVideoMediaRequest - Request body for direct upload

func (*DirectUploadVideoMediaRequest) GetCorsOrigin

func (o *DirectUploadVideoMediaRequest) GetCorsOrigin() string

func (*DirectUploadVideoMediaRequest) GetPushMediaSettings

func (o *DirectUploadVideoMediaRequest) GetPushMediaSettings() *PushMediaSettings

type DirectUploadVideoMediaResponse

type DirectUploadVideoMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Direct upload created successfully
	Object *DirectUploadVideoMediaResponseBody
}

func (*DirectUploadVideoMediaResponse) GetHTTPMeta

func (*DirectUploadVideoMediaResponse) GetObject

type DirectUploadVideoMediaResponseBody

type DirectUploadVideoMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays the result of the request.
	Data *components.DirectUpload `json:"data,omitempty"`
}

DirectUploadVideoMediaResponseBody - Direct upload created successfully

func (*DirectUploadVideoMediaResponseBody) GetData

func (*DirectUploadVideoMediaResponseBody) GetSuccess

func (o *DirectUploadVideoMediaResponseBody) GetSuccess() *bool

type DirectUploadVideoMediaUserAgents

type DirectUploadVideoMediaUserAgents struct {
	// Specifies the default access policy for user agents (browsers, bots, etc.).
	// If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list.
	// If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.
	//
	DefaultPolicy *DirectUploadVideoMediaUserAgentsDefaultPolicy `json:"defaultPolicy,omitempty"`
	// A list of user agents (identified by string names or patterns) that are explicitly allowed access.
	// This list is only effective when the `defaultPolicy` is set to `deny`.
	//
	Allow []string `json:"allow,omitempty"`
	// A list of user agents (identified by string names or patterns) that are explicitly denied access.
	// This list is only effective when the `defaultPolicy` is set to `allow`.
	//
	Deny []string `json:"deny,omitempty"`
}

func (*DirectUploadVideoMediaUserAgents) GetAllow

func (o *DirectUploadVideoMediaUserAgents) GetAllow() []string

func (*DirectUploadVideoMediaUserAgents) GetDefaultPolicy

func (*DirectUploadVideoMediaUserAgents) GetDeny

type DirectUploadVideoMediaUserAgentsDefaultPolicy

type DirectUploadVideoMediaUserAgentsDefaultPolicy string

DirectUploadVideoMediaUserAgentsDefaultPolicy - Specifies the default access policy for user agents (browsers, bots, etc.). If set to `allow`, all user agents are allowed access unless otherwise specified in the `deny` list. If set to `deny`, all user agents are denied access unless otherwise specified in the `allow` list.

const (
	DirectUploadVideoMediaUserAgentsDefaultPolicyAllow DirectUploadVideoMediaUserAgentsDefaultPolicy = "allow"
	DirectUploadVideoMediaUserAgentsDefaultPolicyDeny  DirectUploadVideoMediaUserAgentsDefaultPolicy = "deny"
)

func (DirectUploadVideoMediaUserAgentsDefaultPolicy) ToPointer

func (*DirectUploadVideoMediaUserAgentsDefaultPolicy) UnmarshalJSON

func (e *DirectUploadVideoMediaUserAgentsDefaultPolicy) UnmarshalJSON(data []byte) error

type GetAllStreamsOrderBy

type GetAllStreamsOrderBy string

GetAllStreamsOrderBy - The list of value can be order in two ways DESC (Descending) or ASC (Ascending). In case not specified, by default it will be DESC.

const (
	GetAllStreamsOrderByAsc  GetAllStreamsOrderBy = "asc"
	GetAllStreamsOrderByDesc GetAllStreamsOrderBy = "desc"
)

func (GetAllStreamsOrderBy) ToPointer

func (*GetAllStreamsOrderBy) UnmarshalJSON

func (e *GetAllStreamsOrderBy) UnmarshalJSON(data []byte) error

type GetAllStreamsRequest

type GetAllStreamsRequest struct {
	// Limit specifies the maximum number of items to display per page.
	Limit *string `default:"10" queryParam:"style=form,explode=true,name=limit"`
	// Offset determines the starting point for data retrieval within a paginated list.
	Offset *string `default:"1" queryParam:"style=form,explode=true,name=offset"`
	// The list of value can be order in two ways DESC (Descending) or ASC (Ascending). In case not specified, by default it will be DESC.
	OrderBy *GetAllStreamsOrderBy `default:"desc" queryParam:"style=form,explode=true,name=orderBy"`
}

func (*GetAllStreamsRequest) GetLimit

func (o *GetAllStreamsRequest) GetLimit() *string

func (*GetAllStreamsRequest) GetOffset

func (o *GetAllStreamsRequest) GetOffset() *string

func (*GetAllStreamsRequest) GetOrderBy

func (o *GetAllStreamsRequest) GetOrderBy() *GetAllStreamsOrderBy

func (GetAllStreamsRequest) MarshalJSON

func (g GetAllStreamsRequest) MarshalJSON() ([]byte, error)

func (*GetAllStreamsRequest) UnmarshalJSON

func (g *GetAllStreamsRequest) UnmarshalJSON(data []byte) error

type GetAllStreamsResponse

type GetAllStreamsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// All streams retrieved sucessfully
	GetStreamsResponse *components.GetStreamsResponse
}

func (*GetAllStreamsResponse) GetGetStreamsResponse

func (o *GetAllStreamsResponse) GetGetStreamsResponse() *components.GetStreamsResponse

func (*GetAllStreamsResponse) GetHTTPMeta

type GetLiveStreamByIDRequest

type GetLiveStreamByIDRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
}

func (*GetLiveStreamByIDRequest) GetStreamID

func (o *GetLiveStreamByIDRequest) GetStreamID() string

type GetLiveStreamByIDResponse

type GetLiveStreamByIDResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream details retrieved successfully
	LivestreamgetResponse *components.LivestreamgetResponse
}

func (*GetLiveStreamByIDResponse) GetHTTPMeta

func (*GetLiveStreamByIDResponse) GetLivestreamgetResponse

func (o *GetLiveStreamByIDResponse) GetLivestreamgetResponse() *components.LivestreamgetResponse

type GetLiveStreamPlaybackIDRequest

type GetLiveStreamPlaybackIDRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
	// Upon creating a new playbackId, FastPix assigns a unique identifier to the playback.
	PlaybackID string `pathParam:"style=simple,explode=false,name=playbackId"`
}

func (*GetLiveStreamPlaybackIDRequest) GetPlaybackID

func (o *GetLiveStreamPlaybackIDRequest) GetPlaybackID() string

func (*GetLiveStreamPlaybackIDRequest) GetStreamID

func (o *GetLiveStreamPlaybackIDRequest) GetStreamID() string

type GetLiveStreamPlaybackIDResponse

type GetLiveStreamPlaybackIDResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream details retrieved successfully
	PlaybackIDResponse *components.PlaybackIDResponse
}

func (*GetLiveStreamPlaybackIDResponse) GetHTTPMeta

func (*GetLiveStreamPlaybackIDResponse) GetPlaybackIDResponse

type GetMediaRequest

type GetMediaRequest struct {
	// The Media Id is assigned a universal unique identifier, which can contain a maximum of 255 characters.
	MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}

func (*GetMediaRequest) GetMediaID

func (o *GetMediaRequest) GetMediaID() string

type GetMediaResponse

type GetMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Get a video media by id
	Object *GetMediaResponseBody
}

func (*GetMediaResponse) GetHTTPMeta

func (o *GetMediaResponse) GetHTTPMeta() components.HTTPMetadata

func (*GetMediaResponse) GetObject

func (o *GetMediaResponse) GetObject() *GetMediaResponseBody

type GetMediaResponseBody

type GetMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool             `json:"success,omitempty"`
	Data    *components.Media `json:"data,omitempty"`
}

GetMediaResponseBody - Get a video media by id

func (*GetMediaResponseBody) GetData

func (o *GetMediaResponseBody) GetData() *components.Media

func (*GetMediaResponseBody) GetSuccess

func (o *GetMediaResponseBody) GetSuccess() *bool

type GetSpecificSimulcastOfStreamRequest

type GetSpecificSimulcastOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
	// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
	SimulcastID string `pathParam:"style=simple,explode=false,name=simulcastId"`
}

func (*GetSpecificSimulcastOfStreamRequest) GetSimulcastID

func (o *GetSpecificSimulcastOfStreamRequest) GetSimulcastID() string

func (*GetSpecificSimulcastOfStreamRequest) GetStreamID

type GetSpecificSimulcastOfStreamResponse

type GetSpecificSimulcastOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream's simulcast details fetched successfully
	SimulcastResponse *components.SimulcastResponse
}

func (*GetSpecificSimulcastOfStreamResponse) GetHTTPMeta

func (*GetSpecificSimulcastOfStreamResponse) GetSimulcastResponse

type Input

type Input struct {
	VideoInput     *components.VideoInput     `queryParam:"inline"`
	WatermarkInput *components.WatermarkInput `queryParam:"inline"`
	AudioInput     *components.AudioInput     `queryParam:"inline"`
	SubtitleInput  *components.SubtitleInput  `queryParam:"inline"`

	Type InputType
}

func CreateInputAudioInput

func CreateInputAudioInput(audioInput components.AudioInput) Input

func CreateInputSubtitleInput

func CreateInputSubtitleInput(subtitleInput components.SubtitleInput) Input

func CreateInputVideoInput

func CreateInputVideoInput(videoInput components.VideoInput) Input

func CreateInputWatermarkInput

func CreateInputWatermarkInput(watermarkInput components.WatermarkInput) Input

func (Input) MarshalJSON

func (u Input) MarshalJSON() ([]byte, error)

func (*Input) UnmarshalJSON

func (u *Input) UnmarshalJSON(data []byte) error

type InputType

type InputType string
const (
	InputTypeVideoInput     InputType = "VideoInput"
	InputTypeWatermarkInput InputType = "WatermarkInput"
	InputTypeAudioInput     InputType = "AudioInput"
	InputTypeSubtitleInput  InputType = "SubtitleInput"
)

type LanguageCode

type LanguageCode string

LanguageCode - Language codes (BCP 47 compliant) used for text files.

const (
	LanguageCodeEn LanguageCode = "en"
	LanguageCodeIt LanguageCode = "it"
	LanguageCodePl LanguageCode = "pl"
	LanguageCodeEs LanguageCode = "es"
	LanguageCodeFr LanguageCode = "fr"
	LanguageCodeRu LanguageCode = "ru"
	LanguageCodeNl LanguageCode = "nl"
)

func (LanguageCode) ToPointer

func (e LanguageCode) ToPointer() *LanguageCode

func (*LanguageCode) UnmarshalJSON

func (e *LanguageCode) UnmarshalJSON(data []byte) error

type ListMediaOrderBy

type ListMediaOrderBy string

ListMediaOrderBy - The values in the list can be arranged in two ways: DESC (Descending) or ASC (Ascending).

const (
	ListMediaOrderByAsc  ListMediaOrderBy = "asc"
	ListMediaOrderByDesc ListMediaOrderBy = "desc"
)

func (ListMediaOrderBy) ToPointer

func (e ListMediaOrderBy) ToPointer() *ListMediaOrderBy

func (*ListMediaOrderBy) UnmarshalJSON

func (e *ListMediaOrderBy) UnmarshalJSON(data []byte) error

type ListMediaRequest

type ListMediaRequest struct {
	// Limit specifies the maximum number of items to display per page.
	Limit *int64 `default:"10" queryParam:"style=form,explode=true,name=limit"`
	// Offset determines the starting point for data retrieval within a paginated list.
	Offset *int64 `default:"1" queryParam:"style=form,explode=true,name=offset"`
	// The values in the list can be arranged in two ways: DESC (Descending) or ASC (Ascending).
	OrderBy *ListMediaOrderBy `default:"desc" queryParam:"style=form,explode=true,name=orderBy"`
}

func (*ListMediaRequest) GetLimit

func (o *ListMediaRequest) GetLimit() *int64

func (*ListMediaRequest) GetOffset

func (o *ListMediaRequest) GetOffset() *int64

func (*ListMediaRequest) GetOrderBy

func (o *ListMediaRequest) GetOrderBy() *ListMediaOrderBy

func (ListMediaRequest) MarshalJSON

func (l ListMediaRequest) MarshalJSON() ([]byte, error)

func (*ListMediaRequest) UnmarshalJSON

func (l *ListMediaRequest) UnmarshalJSON(data []byte) error

type ListMediaResponse

type ListMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// List of video media
	Object *ListMediaResponseBody
}

func (*ListMediaResponse) GetHTTPMeta

func (o *ListMediaResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListMediaResponse) GetObject

func (o *ListMediaResponse) GetObject() *ListMediaResponseBody

type ListMediaResponseBody

type ListMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays the result of the request.
	Data []components.Media `json:"data,omitempty"`
	// Pagination organizes content into pages for better readability and navigation.
	Pagination *components.Pagination `json:"pagination,omitempty"`
}

ListMediaResponseBody - List of video media

func (*ListMediaResponseBody) GetData

func (o *ListMediaResponseBody) GetData() []components.Media

func (*ListMediaResponseBody) GetPagination

func (o *ListMediaResponseBody) GetPagination() *components.Pagination

func (*ListMediaResponseBody) GetSuccess

func (o *ListMediaResponseBody) GetSuccess() *bool

type MaxResolution

type MaxResolution string

MaxResolution - Determines the highest quality resolution available.

const (
	MaxResolutionTwoThousandOneHundredAndSixtyp  MaxResolution = "2160p"
	MaxResolutionOneThousandFourHundredAndFortyp MaxResolution = "1440p"
	MaxResolutionOneThousandAndEightyp           MaxResolution = "1080p"
	MaxResolutionSevenHundredAndTwentyp          MaxResolution = "720p"
	MaxResolutionFourHundredAndEightyp           MaxResolution = "480p"
	MaxResolutionThreeHundredAndSixtyp           MaxResolution = "360p"
)

func (MaxResolution) ToPointer

func (e MaxResolution) ToPointer() *MaxResolution

func (*MaxResolution) UnmarshalJSON

func (e *MaxResolution) UnmarshalJSON(data []byte) error

type Moderation

type Moderation struct {
	// Defines the type of input. Possible values include video, audio, av.
	//
	Type *Type `json:"type,omitempty"`
}

func (*Moderation) GetType

func (o *Moderation) GetType() *Type

type Mp4Support

type Mp4Support string

Mp4Support - Generates MP4 video up to 4K ("capped_4k"), m4a audio only ("audioOnly"), or both for offline viewing.

const (
	Mp4SupportCapped4k          Mp4Support = "capped_4k"
	Mp4SupportAudioOnly         Mp4Support = "audioOnly"
	Mp4SupportAudioOnlyCapped4k Mp4Support = "audioOnly,capped_4k"
)

func (Mp4Support) ToPointer

func (e Mp4Support) ToPointer() *Mp4Support

func (*Mp4Support) UnmarshalJSON

func (e *Mp4Support) UnmarshalJSON(data []byte) error

type Option

type Option func(*Options, ...string) error

func WithOperationTimeout

func WithOperationTimeout(timeout time.Duration) Option

WithOperationTimeout allows setting the request timeout applied for an operation.

func WithRetries

func WithRetries(config retry.Config) Option

WithRetries allows customizing the default retry configuration.

func WithServerURL

func WithServerURL(serverURL string) Option

WithServerURL allows providing an alternative server URL.

func WithSetHeaders

func WithSetHeaders(hdrs map[string]string) Option

WithSetHeaders takes a map of headers that will applied to a request. If the request contains headers that are in the map then they will be overwritten.

func WithTemplatedServerURL

func WithTemplatedServerURL(serverURL string, params map[string]string) Option

WithTemplatedServerURL allows providing an alternative server URL with templated parameters.

func WithURLOverride

func WithURLOverride(urlOverride string) Option

WithURLOverride allows overriding the URL.

type Options

type Options struct {
	ServerURL   *string
	Retries     *retry.Config
	Timeout     *time.Duration
	URLOverride *string
	SetHeaders  map[string]string
}

type PushMediaSettings

type PushMediaSettings struct {
	// Determines if access to the streamed content is kept private or available to all.
	AccessPolicy DirectUploadVideoMediaAccessPolicy `json:"accessPolicy"`
	// Start time indicates where encoding should begin within the video file, in seconds.
	StartTime *float64 `json:"startTime,omitempty"`
	// End time indicates where encoding should end within the video file, in seconds.
	EndTime *float64 `json:"endTime,omitempty"`
	Inputs  []Input  `json:"inputs,omitempty"`
	// Tag a video in "key" : "value" pairs for searchable metadata. Maximum 10 entries, 255 characters each.
	Metadata *DirectUploadVideoMediaMetadata `json:"metadata,omitempty"`
	// Generates subtitle files for audio/video files.
	//
	Subtitles *Subtitles `json:"subtitles,omitempty"`
	// Enhance the quality and volume of the audio track. This is available for pre-recorded content only.
	//
	OptimizeAudio *bool `default:"true" json:"optimizeAudio"`
	// Determines the highest quality resolution available.
	//
	MaxResolution *MaxResolution `default:"1080p" json:"maxResolution"`
	// The sourceAccess parameter determines whether the original media file is accessible. Set to true to enable access or false to restrict it
	SourceAccess *bool `json:"sourceAccess,omitempty"`
	// Generates MP4 video up to 4K ("capped_4k"), m4a audio only ("audioOnly"), or both for offline viewing.
	//
	Mp4Support *Mp4Support `json:"mp4Support,omitempty"`
	Summary    *Summary    `json:"summary,omitempty"`
	// Enable or disable the chapters feature for the media. Set to `true` to enable chapters or `false` to disable.
	//
	Chapters *bool `json:"chapters,omitempty"`
	// Enable or disable named entity extraction. Set to `true` to enable or `false` to disable.
	//
	NamedEntities      *bool                                     `json:"namedEntities,omitempty"`
	Moderation         *Moderation                               `json:"moderation,omitempty"`
	AccessRestrictions *DirectUploadVideoMediaAccessRestrictions `json:"accessRestrictions,omitempty"`
}

PushMediaSettings - Configuration settings for media upload.

func (*PushMediaSettings) GetAccessPolicy

func (*PushMediaSettings) GetAccessRestrictions

func (o *PushMediaSettings) GetAccessRestrictions() *DirectUploadVideoMediaAccessRestrictions

func (*PushMediaSettings) GetChapters

func (o *PushMediaSettings) GetChapters() *bool

func (*PushMediaSettings) GetEndTime

func (o *PushMediaSettings) GetEndTime() *float64

func (*PushMediaSettings) GetInputs

func (o *PushMediaSettings) GetInputs() []Input

func (*PushMediaSettings) GetMaxResolution

func (o *PushMediaSettings) GetMaxResolution() *MaxResolution

func (*PushMediaSettings) GetMetadata

func (*PushMediaSettings) GetModeration

func (o *PushMediaSettings) GetModeration() *Moderation

func (*PushMediaSettings) GetMp4Support

func (o *PushMediaSettings) GetMp4Support() *Mp4Support

func (*PushMediaSettings) GetNamedEntities

func (o *PushMediaSettings) GetNamedEntities() *bool

func (*PushMediaSettings) GetOptimizeAudio

func (o *PushMediaSettings) GetOptimizeAudio() *bool

func (*PushMediaSettings) GetSourceAccess

func (o *PushMediaSettings) GetSourceAccess() *bool

func (*PushMediaSettings) GetStartTime

func (o *PushMediaSettings) GetStartTime() *float64

func (*PushMediaSettings) GetSubtitles

func (o *PushMediaSettings) GetSubtitles() *Subtitles

func (*PushMediaSettings) GetSummary

func (o *PushMediaSettings) GetSummary() *Summary

func (PushMediaSettings) MarshalJSON

func (p PushMediaSettings) MarshalJSON() ([]byte, error)

func (*PushMediaSettings) UnmarshalJSON

func (p *PushMediaSettings) UnmarshalJSON(data []byte) error

type RetrieveMediaInputInfoRequest

type RetrieveMediaInputInfoRequest struct {
	// Pass the list of the input objects used to create the media, along with applied settings.
	MediaID string `pathParam:"style=simple,explode=false,name=mediaId"`
}

func (*RetrieveMediaInputInfoRequest) GetMediaID

func (o *RetrieveMediaInputInfoRequest) GetMediaID() string

type RetrieveMediaInputInfoResponse

type RetrieveMediaInputInfoResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Get video media input information
	Object *RetrieveMediaInputInfoResponseBody
}

func (*RetrieveMediaInputInfoResponse) GetHTTPMeta

func (*RetrieveMediaInputInfoResponse) GetObject

type RetrieveMediaInputInfoResponseBody

type RetrieveMediaInputInfoResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool `json:"success,omitempty"`
	// Displays the result of the request.
	Data any `json:"data,omitempty"`
}

RetrieveMediaInputInfoResponseBody - Get video media input information

func (*RetrieveMediaInputInfoResponseBody) GetData

func (*RetrieveMediaInputInfoResponseBody) GetSuccess

func (o *RetrieveMediaInputInfoResponseBody) GetSuccess() *bool

type Subtitles

type Subtitles struct {
	// Name of the language for the subtitles.
	LanguageName *string `json:"languageName,omitempty"`
	// Searchable metadata tags for the video in key-value pairs.
	Metadata *SubtitlesMetadata `json:"metadata,omitempty"`
	// Language codes (BCP 47 compliant) used for text files.
	//
	LanguageCode *LanguageCode `json:"languageCode,omitempty"`
}

Subtitles - Generates subtitle files for audio/video files.

func (*Subtitles) GetLanguageCode

func (o *Subtitles) GetLanguageCode() *LanguageCode

func (*Subtitles) GetLanguageName

func (o *Subtitles) GetLanguageName() *string

func (*Subtitles) GetMetadata

func (o *Subtitles) GetMetadata() *SubtitlesMetadata

type SubtitlesMetadata

type SubtitlesMetadata struct {
}

SubtitlesMetadata - Searchable metadata tags for the video in key-value pairs.

type Summary

type Summary struct {
	// Enable or disable the summary feature for the media. Set to true to enable summary or false to disable.
	//
	Generate *bool `json:"generate,omitempty"`
	// Specifies the desired word count for the generated summary.
	// - The value must be between **30** and **250** words.
	//
	SummaryLength *int64 `default:"100" json:"summaryLength"`
}

func (*Summary) GetGenerate

func (o *Summary) GetGenerate() *bool

func (*Summary) GetSummaryLength

func (o *Summary) GetSummaryLength() *int64

func (Summary) MarshalJSON

func (s Summary) MarshalJSON() ([]byte, error)

func (*Summary) UnmarshalJSON

func (s *Summary) UnmarshalJSON(data []byte) error

type Type

type Type string

Type - Defines the type of input. Possible values include video, audio, av.

const (
	TypeVideo Type = "video"
	TypeAudio Type = "audio"
	TypeAv    Type = "av"
)

func (Type) ToPointer

func (e Type) ToPointer() *Type

func (*Type) UnmarshalJSON

func (e *Type) UnmarshalJSON(data []byte) error

type UpdateLiveStreamRequest

type UpdateLiveStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID               string                             `pathParam:"style=simple,explode=false,name=streamId"`
	PatchLiveStreamRequest *components.PatchLiveStreamRequest `request:"mediaType=application/json"`
}

func (*UpdateLiveStreamRequest) GetPatchLiveStreamRequest

func (o *UpdateLiveStreamRequest) GetPatchLiveStreamRequest() *components.PatchLiveStreamRequest

func (*UpdateLiveStreamRequest) GetStreamID

func (o *UpdateLiveStreamRequest) GetStreamID() string

type UpdateLiveStreamResponse

type UpdateLiveStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream details updated successfully
	PatchResponseDTO *components.PatchResponseDTO
}

func (*UpdateLiveStreamResponse) GetHTTPMeta

func (*UpdateLiveStreamResponse) GetPatchResponseDTO

func (o *UpdateLiveStreamResponse) GetPatchResponseDTO() *components.PatchResponseDTO

type UpdateSpecificSimulcastOfStreamRequest

type UpdateSpecificSimulcastOfStreamRequest struct {
	// Upon creating a new live stream, FastPix assigns a unique identifier to the stream.
	StreamID string `pathParam:"style=simple,explode=false,name=streamId"`
	// When you create the new simulcast, FastPix assign a universal unique identifier which can contain a maximum of 255 characters.
	SimulcastID            string                             `pathParam:"style=simple,explode=false,name=simulcastId"`
	SimulcastUpdateRequest *components.SimulcastUpdateRequest `request:"mediaType=application/json"`
}

func (*UpdateSpecificSimulcastOfStreamRequest) GetSimulcastID

func (o *UpdateSpecificSimulcastOfStreamRequest) GetSimulcastID() string

func (*UpdateSpecificSimulcastOfStreamRequest) GetSimulcastUpdateRequest

func (*UpdateSpecificSimulcastOfStreamRequest) GetStreamID

type UpdateSpecificSimulcastOfStreamResponse

type UpdateSpecificSimulcastOfStreamResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Stream's simulcast details fetched successfully
	SimulcastUpdateResponse *components.SimulcastUpdateResponse
}

func (*UpdateSpecificSimulcastOfStreamResponse) GetHTTPMeta

func (*UpdateSpecificSimulcastOfStreamResponse) GetSimulcastUpdateResponse

type UpdatedMediaMetadata

type UpdatedMediaMetadata struct {
}

UpdatedMediaMetadata - You can search for videos with specific key value pairs using metadata, when you tag a video in "key" : "value" pairs. Dynamic Metadata allows you to define a key that allows any value pair. You can have maximum of 255 characters and upto 10 entries are allowed.

type UpdatedMediaRequest

type UpdatedMediaRequest struct {
	// When creating the media, FastPix assigns a universally unique identifier with a maximum length of 255 characters.
	MediaID     string                   `pathParam:"style=simple,explode=false,name=mediaId"`
	RequestBody *UpdatedMediaRequestBody `request:"mediaType=application/json"`
}

func (*UpdatedMediaRequest) GetMediaID

func (o *UpdatedMediaRequest) GetMediaID() string

func (*UpdatedMediaRequest) GetRequestBody

func (o *UpdatedMediaRequest) GetRequestBody() *UpdatedMediaRequestBody

type UpdatedMediaRequestBody

type UpdatedMediaRequestBody struct {
	// You can search for videos with specific key value pairs using metadata, when you tag a video in "key" : "value" pairs. Dynamic Metadata allows you to define a key that allows any value pair. You can have maximum of 255 characters and upto 10 entries are allowed.
	Metadata *UpdatedMediaMetadata `json:"metadata,omitempty"`
}

func (*UpdatedMediaRequestBody) GetMetadata

type UpdatedMediaResponse

type UpdatedMediaResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Media details updated successfully
	Object *UpdatedMediaResponseBody
}

func (*UpdatedMediaResponse) GetHTTPMeta

func (o *UpdatedMediaResponse) GetHTTPMeta() components.HTTPMetadata

func (*UpdatedMediaResponse) GetObject

type UpdatedMediaResponseBody

type UpdatedMediaResponseBody struct {
	// Demonstrates whether the request is successful or not.
	Success *bool             `json:"success,omitempty"`
	Data    *components.Media `json:"data,omitempty"`
}

UpdatedMediaResponseBody - Media details updated successfully

func (*UpdatedMediaResponseBody) GetData

func (*UpdatedMediaResponseBody) GetSuccess

func (o *UpdatedMediaResponseBody) GetSuccess() *bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL