encodings

package
v0.20221013.1075625 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/media/2020-05-01/encodings Documentation

The encodings SDK allows for interaction with the Azure Resource Manager Service media (API Version 2020-05-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/media/2020-05-01/encodings"

Client Initialization

client := encodings.NewEncodingsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EncodingsClient.JobsCancelJob

ctx := context.TODO()
id := encodings.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue", "jobValue")

read, err := client.JobsCancelJob(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.JobsCreate

ctx := context.TODO()
id := encodings.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue", "jobValue")

payload := encodings.Job{
	// ...
}


read, err := client.JobsCreate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.JobsDelete

ctx := context.TODO()
id := encodings.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue", "jobValue")

read, err := client.JobsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.JobsGet

ctx := context.TODO()
id := encodings.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue", "jobValue")

read, err := client.JobsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.JobsList

ctx := context.TODO()
id := encodings.NewTransformID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue")

// alternatively `client.JobsList(ctx, id, encodings.DefaultJobsListOperationOptions())` can be used to do batched pagination
items, err := client.JobsListComplete(ctx, id, encodings.DefaultJobsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EncodingsClient.JobsUpdate

ctx := context.TODO()
id := encodings.NewJobID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue", "jobValue")

payload := encodings.Job{
	// ...
}


read, err := client.JobsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.TransformsCreateOrUpdate

ctx := context.TODO()
id := encodings.NewTransformID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue")

payload := encodings.Transform{
	// ...
}


read, err := client.TransformsCreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.TransformsDelete

ctx := context.TODO()
id := encodings.NewTransformID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue")

read, err := client.TransformsDelete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.TransformsGet

ctx := context.TODO()
id := encodings.NewTransformID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue")

read, err := client.TransformsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: EncodingsClient.TransformsList

ctx := context.TODO()
id := encodings.NewMediaServiceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue")

// alternatively `client.TransformsList(ctx, id, encodings.DefaultTransformsListOperationOptions())` can be used to do batched pagination
items, err := client.TransformsListComplete(ctx, id, encodings.DefaultTransformsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: EncodingsClient.TransformsUpdate

ctx := context.TODO()
id := encodings.NewTransformID("12345678-1234-9876-4563-123456789012", "example-resource-group", "accountValue", "transformValue")

payload := encodings.Transform{
	// ...
}


read, err := client.TransformsUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAnalysisResolution

func PossibleValuesForAnalysisResolution() []string

func PossibleValuesForAudioAnalysisMode

func PossibleValuesForAudioAnalysisMode() []string

func PossibleValuesForBlurType

func PossibleValuesForBlurType() []string

func PossibleValuesForChannelMapping

func PossibleValuesForChannelMapping() []string

func PossibleValuesForDeinterlaceMode

func PossibleValuesForDeinterlaceMode() []string

func PossibleValuesForDeinterlaceParity

func PossibleValuesForDeinterlaceParity() []string

func PossibleValuesForEncoderNamedPreset

func PossibleValuesForEncoderNamedPreset() []string

func PossibleValuesForFaceRedactorMode

func PossibleValuesForFaceRedactorMode() []string

func PossibleValuesForJobErrorCategory

func PossibleValuesForJobErrorCategory() []string

func PossibleValuesForJobErrorCode

func PossibleValuesForJobErrorCode() []string

func PossibleValuesForJobRetry

func PossibleValuesForJobRetry() []string

func PossibleValuesForJobState

func PossibleValuesForJobState() []string

func PossibleValuesForOnErrorType

func PossibleValuesForOnErrorType() []string

func PossibleValuesForPriority

func PossibleValuesForPriority() []string

func PossibleValuesForRotation

func PossibleValuesForRotation() []string

func PossibleValuesForStretchMode

func PossibleValuesForStretchMode() []string

func PossibleValuesForVideoSyncMode

func PossibleValuesForVideoSyncMode() []string

func ValidateJobID

func ValidateJobID(input interface{}, key string) (warnings []string, errors []error)

ValidateJobID checks that 'input' can be parsed as a Job ID

func ValidateMediaServiceID

func ValidateMediaServiceID(input interface{}, key string) (warnings []string, errors []error)

ValidateMediaServiceID checks that 'input' can be parsed as a Media Service ID

func ValidateTransformID

func ValidateTransformID(input interface{}, key string) (warnings []string, errors []error)

ValidateTransformID checks that 'input' can be parsed as a Transform ID

Types

type AbsoluteClipTime

type AbsoluteClipTime struct {
	Time string `json:"time"`
}

func (AbsoluteClipTime) MarshalJSON

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

type AnalysisResolution

type AnalysisResolution string
const (
	AnalysisResolutionSourceResolution   AnalysisResolution = "SourceResolution"
	AnalysisResolutionStandardDefinition AnalysisResolution = "StandardDefinition"
)

type Audio

type Audio struct {
	Bitrate      *int64 `json:"bitrate,omitempty"`
	Channels     *int64 `json:"channels,omitempty"`
	SamplingRate *int64 `json:"samplingRate,omitempty"`

	// Fields inherited from Codec
	Label *string `json:"label,omitempty"`
}

func (Audio) MarshalJSON

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

type AudioAnalysisMode

type AudioAnalysisMode string
const (
	AudioAnalysisModeBasic    AudioAnalysisMode = "Basic"
	AudioAnalysisModeStandard AudioAnalysisMode = "Standard"
)

type AudioAnalyzerPreset

type AudioAnalyzerPreset struct {
	AudioLanguage       *string            `json:"audioLanguage,omitempty"`
	ExperimentalOptions *map[string]string `json:"experimentalOptions,omitempty"`
	Mode                *AudioAnalysisMode `json:"mode,omitempty"`
}

func (AudioAnalyzerPreset) MarshalJSON

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

type AudioOverlay

type AudioOverlay struct {

	// Fields inherited from Overlay
	AudioGainLevel  *float64 `json:"audioGainLevel,omitempty"`
	End             *string  `json:"end,omitempty"`
	FadeInDuration  *string  `json:"fadeInDuration,omitempty"`
	FadeOutDuration *string  `json:"fadeOutDuration,omitempty"`
	InputLabel      string   `json:"inputLabel"`
	Start           *string  `json:"start,omitempty"`
}

func (AudioOverlay) MarshalJSON

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

type AudioTrackDescriptor

type AudioTrackDescriptor struct {
	ChannelMapping *ChannelMapping `json:"channelMapping,omitempty"`
}

func (AudioTrackDescriptor) MarshalJSON

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

type BlurType

type BlurType string
const (
	BlurTypeBlack BlurType = "Black"
	BlurTypeBox   BlurType = "Box"
	BlurTypeHigh  BlurType = "High"
	BlurTypeLow   BlurType = "Low"
	BlurTypeMed   BlurType = "Med"
)

type BuiltInStandardEncoderPreset

type BuiltInStandardEncoderPreset struct {
	PresetName EncoderNamedPreset `json:"presetName"`
}

func (BuiltInStandardEncoderPreset) MarshalJSON

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

type ChannelMapping

type ChannelMapping string
const (
	ChannelMappingBackLeft            ChannelMapping = "BackLeft"
	ChannelMappingBackRight           ChannelMapping = "BackRight"
	ChannelMappingCenter              ChannelMapping = "Center"
	ChannelMappingFrontLeft           ChannelMapping = "FrontLeft"
	ChannelMappingFrontRight          ChannelMapping = "FrontRight"
	ChannelMappingLowFrequencyEffects ChannelMapping = "LowFrequencyEffects"
	ChannelMappingStereoLeft          ChannelMapping = "StereoLeft"
	ChannelMappingStereoRight         ChannelMapping = "StereoRight"
)

type ClipTime

type ClipTime interface {
}

type Codec

type Codec interface {
}

type CopyAudio

type CopyAudio struct {

	// Fields inherited from Codec
	Label *string `json:"label,omitempty"`
}

func (CopyAudio) MarshalJSON

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

type CopyVideo

type CopyVideo struct {

	// Fields inherited from Codec
	Label *string `json:"label,omitempty"`
}

func (CopyVideo) MarshalJSON

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

type Deinterlace

type Deinterlace struct {
	Mode   *DeinterlaceMode   `json:"mode,omitempty"`
	Parity *DeinterlaceParity `json:"parity,omitempty"`
}

type DeinterlaceMode

type DeinterlaceMode string
const (
	DeinterlaceModeAutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive"
	DeinterlaceModeOff               DeinterlaceMode = "Off"
)

type DeinterlaceParity

type DeinterlaceParity string
const (
	DeinterlaceParityAuto             DeinterlaceParity = "Auto"
	DeinterlaceParityBottomFieldFirst DeinterlaceParity = "BottomFieldFirst"
	DeinterlaceParityTopFieldFirst    DeinterlaceParity = "TopFieldFirst"
)

type EncoderNamedPreset

type EncoderNamedPreset string
const (
	EncoderNamedPresetAACGoodQualityAudio                         EncoderNamedPreset = "AACGoodQualityAudio"
	EncoderNamedPresetAdaptiveStreaming                           EncoderNamedPreset = "AdaptiveStreaming"
	EncoderNamedPresetContentAwareEncoding                        EncoderNamedPreset = "ContentAwareEncoding"
	EncoderNamedPresetContentAwareEncodingExperimental            EncoderNamedPreset = "ContentAwareEncodingExperimental"
	EncoderNamedPresetCopyAllBitrateNonInterleaved                EncoderNamedPreset = "CopyAllBitrateNonInterleaved"
	EncoderNamedPresetHTwoSixFiveAdaptiveStreaming                EncoderNamedPreset = "H265AdaptiveStreaming"
	EncoderNamedPresetHTwoSixFiveContentAwareEncoding             EncoderNamedPreset = "H265ContentAwareEncoding"
	EncoderNamedPresetHTwoSixFiveSingleBitrateFourK               EncoderNamedPreset = "H265SingleBitrate4K"
	EncoderNamedPresetHTwoSixFiveSingleBitrateOneZeroEightZerop   EncoderNamedPreset = "H265SingleBitrate1080p"
	EncoderNamedPresetHTwoSixFiveSingleBitrateSevenTwoZerop       EncoderNamedPreset = "H265SingleBitrate720p"
	EncoderNamedPresetHTwoSixFourMultipleBitrateOneZeroEightZerop EncoderNamedPreset = "H264MultipleBitrate1080p"
	EncoderNamedPresetHTwoSixFourMultipleBitrateSD                EncoderNamedPreset = "H264MultipleBitrateSD"
	EncoderNamedPresetHTwoSixFourMultipleBitrateSevenTwoZerop     EncoderNamedPreset = "H264MultipleBitrate720p"
	EncoderNamedPresetHTwoSixFourSingleBitrateOneZeroEightZerop   EncoderNamedPreset = "H264SingleBitrate1080p"
	EncoderNamedPresetHTwoSixFourSingleBitrateSD                  EncoderNamedPreset = "H264SingleBitrateSD"
	EncoderNamedPresetHTwoSixFourSingleBitrateSevenTwoZerop       EncoderNamedPreset = "H264SingleBitrate720p"
)

type EncodingsClient

type EncodingsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewEncodingsClientWithBaseURI

func NewEncodingsClientWithBaseURI(endpoint string) EncodingsClient

func (EncodingsClient) JobsCancelJob

func (c EncodingsClient) JobsCancelJob(ctx context.Context, id JobId) (result JobsCancelJobOperationResponse, err error)

JobsCancelJob ...

func (EncodingsClient) JobsCreate

func (c EncodingsClient) JobsCreate(ctx context.Context, id JobId, input Job) (result JobsCreateOperationResponse, err error)

JobsCreate ...

func (EncodingsClient) JobsDelete

func (c EncodingsClient) JobsDelete(ctx context.Context, id JobId) (result JobsDeleteOperationResponse, err error)

JobsDelete ...

func (EncodingsClient) JobsGet

func (c EncodingsClient) JobsGet(ctx context.Context, id JobId) (result JobsGetOperationResponse, err error)

JobsGet ...

func (EncodingsClient) JobsList

JobsList ...

func (EncodingsClient) JobsListComplete

JobsListComplete retrieves all of the results into a single object

func (EncodingsClient) JobsListCompleteMatchingPredicate

func (c EncodingsClient) JobsListCompleteMatchingPredicate(ctx context.Context, id TransformId, options JobsListOperationOptions, predicate JobOperationPredicate) (resp JobsListCompleteResult, err error)

JobsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EncodingsClient) JobsUpdate

func (c EncodingsClient) JobsUpdate(ctx context.Context, id JobId, input Job) (result JobsUpdateOperationResponse, err error)

JobsUpdate ...

func (EncodingsClient) TransformsCreateOrUpdate

func (c EncodingsClient) TransformsCreateOrUpdate(ctx context.Context, id TransformId, input Transform) (result TransformsCreateOrUpdateOperationResponse, err error)

TransformsCreateOrUpdate ...

func (EncodingsClient) TransformsDelete

func (c EncodingsClient) TransformsDelete(ctx context.Context, id TransformId) (result TransformsDeleteOperationResponse, err error)

TransformsDelete ...

func (EncodingsClient) TransformsGet

func (c EncodingsClient) TransformsGet(ctx context.Context, id TransformId) (result TransformsGetOperationResponse, err error)

TransformsGet ...

func (EncodingsClient) TransformsList

TransformsList ...

func (EncodingsClient) TransformsListComplete

TransformsListComplete retrieves all of the results into a single object

func (EncodingsClient) TransformsListCompleteMatchingPredicate

func (c EncodingsClient) TransformsListCompleteMatchingPredicate(ctx context.Context, id MediaServiceId, options TransformsListOperationOptions, predicate TransformOperationPredicate) (resp TransformsListCompleteResult, err error)

TransformsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (EncodingsClient) TransformsUpdate

func (c EncodingsClient) TransformsUpdate(ctx context.Context, id TransformId, input Transform) (result TransformsUpdateOperationResponse, err error)

TransformsUpdate ...

type FaceDetectorPreset

type FaceDetectorPreset struct {
	BlurType            *BlurType           `json:"blurType,omitempty"`
	ExperimentalOptions *map[string]string  `json:"experimentalOptions,omitempty"`
	Mode                *FaceRedactorMode   `json:"mode,omitempty"`
	Resolution          *AnalysisResolution `json:"resolution,omitempty"`
}

func (FaceDetectorPreset) MarshalJSON

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

type FaceRedactorMode

type FaceRedactorMode string
const (
	FaceRedactorModeAnalyze  FaceRedactorMode = "Analyze"
	FaceRedactorModeCombined FaceRedactorMode = "Combined"
	FaceRedactorModeRedact   FaceRedactorMode = "Redact"
)

type Filters

type Filters struct {
	Crop        *Rectangle   `json:"crop,omitempty"`
	Deinterlace *Deinterlace `json:"deinterlace,omitempty"`
	Overlays    *[]Overlay   `json:"overlays,omitempty"`
	Rotation    *Rotation    `json:"rotation,omitempty"`
}

func (*Filters) UnmarshalJSON

func (s *Filters) UnmarshalJSON(bytes []byte) error

type Format

type Format interface {
}

type FromAllInputFile

type FromAllInputFile struct {

	// Fields inherited from InputDefinition
	IncludedTracks *[]TrackDescriptor `json:"includedTracks,omitempty"`
}

func (FromAllInputFile) MarshalJSON

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

func (*FromAllInputFile) UnmarshalJSON

func (s *FromAllInputFile) UnmarshalJSON(bytes []byte) error

type FromEachInputFile

type FromEachInputFile struct {

	// Fields inherited from InputDefinition
	IncludedTracks *[]TrackDescriptor `json:"includedTracks,omitempty"`
}

func (FromEachInputFile) MarshalJSON

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

func (*FromEachInputFile) UnmarshalJSON

func (s *FromEachInputFile) UnmarshalJSON(bytes []byte) error

type ImageFormat

type ImageFormat struct {

	// Fields inherited from Format
	FilenamePattern string `json:"filenamePattern"`
}

func (ImageFormat) MarshalJSON

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

type InputDefinition

type InputDefinition interface {
}

type InputFile

type InputFile struct {
	Filename *string `json:"filename,omitempty"`

	// Fields inherited from InputDefinition
	IncludedTracks *[]TrackDescriptor `json:"includedTracks,omitempty"`
}

func (InputFile) MarshalJSON

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

func (*InputFile) UnmarshalJSON

func (s *InputFile) UnmarshalJSON(bytes []byte) error

type Job

type Job struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *JobProperties         `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type JobError

type JobError struct {
	Category *JobErrorCategory `json:"category,omitempty"`
	Code     *JobErrorCode     `json:"code,omitempty"`
	Details  *[]JobErrorDetail `json:"details,omitempty"`
	Message  *string           `json:"message,omitempty"`
	Retry    *JobRetry         `json:"retry,omitempty"`
}

type JobErrorCategory

type JobErrorCategory string
const (
	JobErrorCategoryConfiguration JobErrorCategory = "Configuration"
	JobErrorCategoryContent       JobErrorCategory = "Content"
	JobErrorCategoryDownload      JobErrorCategory = "Download"
	JobErrorCategoryService       JobErrorCategory = "Service"
	JobErrorCategoryUpload        JobErrorCategory = "Upload"
)

type JobErrorCode

type JobErrorCode string
const (
	JobErrorCodeConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported"
	JobErrorCodeContentMalformed         JobErrorCode = "ContentMalformed"
	JobErrorCodeContentUnsupported       JobErrorCode = "ContentUnsupported"
	JobErrorCodeDownloadNotAccessible    JobErrorCode = "DownloadNotAccessible"
	JobErrorCodeDownloadTransientError   JobErrorCode = "DownloadTransientError"
	JobErrorCodeServiceError             JobErrorCode = "ServiceError"
	JobErrorCodeServiceTransientError    JobErrorCode = "ServiceTransientError"
	JobErrorCodeUploadNotAccessible      JobErrorCode = "UploadNotAccessible"
	JobErrorCodeUploadTransientError     JobErrorCode = "UploadTransientError"
)

type JobErrorDetail

type JobErrorDetail struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type JobId

type JobId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	TransformName     string
	JobName           string
}

JobId is a struct representing the Resource ID for a Job

func NewJobID

func NewJobID(subscriptionId string, resourceGroupName string, accountName string, transformName string, jobName string) JobId

NewJobID returns a new JobId struct

func ParseJobID

func ParseJobID(input string) (*JobId, error)

ParseJobID parses 'input' into a JobId

func ParseJobIDInsensitively

func ParseJobIDInsensitively(input string) (*JobId, error)

ParseJobIDInsensitively parses 'input' case-insensitively into a JobId note: this method should only be used for API response data and not user input

func (JobId) ID

func (id JobId) ID() string

ID returns the formatted Job ID

func (JobId) Segments

func (id JobId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Job ID

func (JobId) String

func (id JobId) String() string

String returns a human-readable description of this Job ID

type JobInput

type JobInput interface {
}

type JobInputClip

type JobInputClip struct {
	End              ClipTime           `json:"end"`
	Files            *[]string          `json:"files,omitempty"`
	InputDefinitions *[]InputDefinition `json:"inputDefinitions,omitempty"`
	Label            *string            `json:"label,omitempty"`
	Start            ClipTime           `json:"start"`
}

func (JobInputClip) MarshalJSON

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

func (*JobInputClip) UnmarshalJSON

func (s *JobInputClip) UnmarshalJSON(bytes []byte) error

type JobInputSequence

type JobInputSequence struct {
	Inputs *[]JobInput `json:"inputs,omitempty"`
}

func (JobInputSequence) MarshalJSON

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

func (*JobInputSequence) UnmarshalJSON

func (s *JobInputSequence) UnmarshalJSON(bytes []byte) error

type JobInputs

type JobInputs struct {
	Inputs *[]JobInput `json:"inputs,omitempty"`
}

func (JobInputs) MarshalJSON

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

func (*JobInputs) UnmarshalJSON

func (s *JobInputs) UnmarshalJSON(bytes []byte) error

type JobOperationPredicate

type JobOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (JobOperationPredicate) Matches

func (p JobOperationPredicate) Matches(input Job) bool

type JobOutput

type JobOutput interface {
}

type JobOutputAsset

type JobOutputAsset struct {
	AssetName string `json:"assetName"`

	// Fields inherited from JobOutput
	EndTime   *string   `json:"endTime,omitempty"`
	Error     *JobError `json:"error,omitempty"`
	Label     *string   `json:"label,omitempty"`
	Progress  *int64    `json:"progress,omitempty"`
	StartTime *string   `json:"startTime,omitempty"`
	State     *JobState `json:"state,omitempty"`
}

func (*JobOutputAsset) GetEndTimeAsTime

func (o *JobOutputAsset) GetEndTimeAsTime() (*time.Time, error)

func (*JobOutputAsset) GetStartTimeAsTime

func (o *JobOutputAsset) GetStartTimeAsTime() (*time.Time, error)

func (JobOutputAsset) MarshalJSON

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

func (*JobOutputAsset) SetEndTimeAsTime

func (o *JobOutputAsset) SetEndTimeAsTime(input time.Time)

func (*JobOutputAsset) SetStartTimeAsTime

func (o *JobOutputAsset) SetStartTimeAsTime(input time.Time)

type JobProperties

type JobProperties struct {
	CorrelationData *map[string]string `json:"correlationData,omitempty"`
	Created         *string            `json:"created,omitempty"`
	Description     *string            `json:"description,omitempty"`
	EndTime         *string            `json:"endTime,omitempty"`
	Input           JobInput           `json:"input"`
	LastModified    *string            `json:"lastModified,omitempty"`
	Outputs         []JobOutput        `json:"outputs"`
	Priority        *Priority          `json:"priority,omitempty"`
	StartTime       *string            `json:"startTime,omitempty"`
	State           *JobState          `json:"state,omitempty"`
}

func (*JobProperties) GetCreatedAsTime

func (o *JobProperties) GetCreatedAsTime() (*time.Time, error)

func (*JobProperties) GetEndTimeAsTime

func (o *JobProperties) GetEndTimeAsTime() (*time.Time, error)

func (*JobProperties) GetLastModifiedAsTime

func (o *JobProperties) GetLastModifiedAsTime() (*time.Time, error)

func (*JobProperties) GetStartTimeAsTime

func (o *JobProperties) GetStartTimeAsTime() (*time.Time, error)

func (*JobProperties) SetCreatedAsTime

func (o *JobProperties) SetCreatedAsTime(input time.Time)

func (*JobProperties) SetEndTimeAsTime

func (o *JobProperties) SetEndTimeAsTime(input time.Time)

func (*JobProperties) SetLastModifiedAsTime

func (o *JobProperties) SetLastModifiedAsTime(input time.Time)

func (*JobProperties) SetStartTimeAsTime

func (o *JobProperties) SetStartTimeAsTime(input time.Time)

func (*JobProperties) UnmarshalJSON

func (s *JobProperties) UnmarshalJSON(bytes []byte) error

type JobRetry

type JobRetry string
const (
	JobRetryDoNotRetry JobRetry = "DoNotRetry"
	JobRetryMayRetry   JobRetry = "MayRetry"
)

type JobState

type JobState string
const (
	JobStateCanceled   JobState = "Canceled"
	JobStateCanceling  JobState = "Canceling"
	JobStateError      JobState = "Error"
	JobStateFinished   JobState = "Finished"
	JobStateProcessing JobState = "Processing"
	JobStateQueued     JobState = "Queued"
	JobStateScheduled  JobState = "Scheduled"
)

type JobsCancelJobOperationResponse

type JobsCancelJobOperationResponse struct {
	HttpResponse *http.Response
}

type JobsCreateOperationResponse

type JobsCreateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Job
}

type JobsDeleteOperationResponse

type JobsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type JobsGetOperationResponse

type JobsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Job
}

type JobsListCompleteResult

type JobsListCompleteResult struct {
	Items []Job
}

type JobsListOperationOptions

type JobsListOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultJobsListOperationOptions

func DefaultJobsListOperationOptions() JobsListOperationOptions

type JobsListOperationResponse

type JobsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Job
	// contains filtered or unexported fields
}

func (JobsListOperationResponse) HasMore

func (r JobsListOperationResponse) HasMore() bool

func (JobsListOperationResponse) LoadMore

type JobsUpdateOperationResponse

type JobsUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Job
}

type MediaServiceId

type MediaServiceId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
}

MediaServiceId is a struct representing the Resource ID for a Media Service

func NewMediaServiceID

func NewMediaServiceID(subscriptionId string, resourceGroupName string, accountName string) MediaServiceId

NewMediaServiceID returns a new MediaServiceId struct

func ParseMediaServiceID

func ParseMediaServiceID(input string) (*MediaServiceId, error)

ParseMediaServiceID parses 'input' into a MediaServiceId

func ParseMediaServiceIDInsensitively

func ParseMediaServiceIDInsensitively(input string) (*MediaServiceId, error)

ParseMediaServiceIDInsensitively parses 'input' case-insensitively into a MediaServiceId note: this method should only be used for API response data and not user input

func (MediaServiceId) ID

func (id MediaServiceId) ID() string

ID returns the formatted Media Service ID

func (MediaServiceId) Segments

func (id MediaServiceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Media Service ID

func (MediaServiceId) String

func (id MediaServiceId) String() string

String returns a human-readable description of this Media Service ID

type MultiBitrateFormat

type MultiBitrateFormat struct {
	OutputFiles *[]OutputFile `json:"outputFiles,omitempty"`

	// Fields inherited from Format
	FilenamePattern string `json:"filenamePattern"`
}

func (MultiBitrateFormat) MarshalJSON

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

type OnErrorType

type OnErrorType string
const (
	OnErrorTypeContinueJob       OnErrorType = "ContinueJob"
	OnErrorTypeStopProcessingJob OnErrorType = "StopProcessingJob"
)

type OutputFile

type OutputFile struct {
	Labels []string `json:"labels"`
}

type Overlay

type Overlay interface {
}

type Preset

type Preset interface {
}

type Priority

type Priority string
const (
	PriorityHigh   Priority = "High"
	PriorityLow    Priority = "Low"
	PriorityNormal Priority = "Normal"
)

type Rectangle

type Rectangle struct {
	Height *string `json:"height,omitempty"`
	Left   *string `json:"left,omitempty"`
	Top    *string `json:"top,omitempty"`
	Width  *string `json:"width,omitempty"`
}

type Rotation

type Rotation string
const (
	RotationAuto               Rotation = "Auto"
	RotationNone               Rotation = "None"
	RotationRotateNineZero     Rotation = "Rotate90"
	RotationRotateOneEightZero Rotation = "Rotate180"
	RotationRotateTwoSevenZero Rotation = "Rotate270"
	RotationRotateZero         Rotation = "Rotate0"
)

type StandardEncoderPreset

type StandardEncoderPreset struct {
	Codecs  []Codec  `json:"codecs"`
	Filters *Filters `json:"filters,omitempty"`
	Formats []Format `json:"formats"`
}

func (StandardEncoderPreset) MarshalJSON

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

func (*StandardEncoderPreset) UnmarshalJSON

func (s *StandardEncoderPreset) UnmarshalJSON(bytes []byte) error

type StretchMode

type StretchMode string
const (
	StretchModeAutoFit  StretchMode = "AutoFit"
	StretchModeAutoSize StretchMode = "AutoSize"
	StretchModeNone     StretchMode = "None"
)

type TrackDescriptor

type TrackDescriptor interface {
}

type Transform

type Transform struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *TransformProperties   `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type TransformId

type TransformId struct {
	SubscriptionId    string
	ResourceGroupName string
	AccountName       string
	TransformName     string
}

TransformId is a struct representing the Resource ID for a Transform

func NewTransformID

func NewTransformID(subscriptionId string, resourceGroupName string, accountName string, transformName string) TransformId

NewTransformID returns a new TransformId struct

func ParseTransformID

func ParseTransformID(input string) (*TransformId, error)

ParseTransformID parses 'input' into a TransformId

func ParseTransformIDInsensitively

func ParseTransformIDInsensitively(input string) (*TransformId, error)

ParseTransformIDInsensitively parses 'input' case-insensitively into a TransformId note: this method should only be used for API response data and not user input

func (TransformId) ID

func (id TransformId) ID() string

ID returns the formatted Transform ID

func (TransformId) Segments

func (id TransformId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Transform ID

func (TransformId) String

func (id TransformId) String() string

String returns a human-readable description of this Transform ID

type TransformOperationPredicate

type TransformOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (TransformOperationPredicate) Matches

func (p TransformOperationPredicate) Matches(input Transform) bool

type TransformOutput

type TransformOutput struct {
	OnError          *OnErrorType `json:"onError,omitempty"`
	Preset           Preset       `json:"preset"`
	RelativePriority *Priority    `json:"relativePriority,omitempty"`
}

func (*TransformOutput) UnmarshalJSON

func (s *TransformOutput) UnmarshalJSON(bytes []byte) error

type TransformProperties

type TransformProperties struct {
	Created      *string           `json:"created,omitempty"`
	Description  *string           `json:"description,omitempty"`
	LastModified *string           `json:"lastModified,omitempty"`
	Outputs      []TransformOutput `json:"outputs"`
}

func (*TransformProperties) GetCreatedAsTime

func (o *TransformProperties) GetCreatedAsTime() (*time.Time, error)

func (*TransformProperties) GetLastModifiedAsTime

func (o *TransformProperties) GetLastModifiedAsTime() (*time.Time, error)

func (*TransformProperties) SetCreatedAsTime

func (o *TransformProperties) SetCreatedAsTime(input time.Time)

func (*TransformProperties) SetLastModifiedAsTime

func (o *TransformProperties) SetLastModifiedAsTime(input time.Time)

type TransformsCreateOrUpdateOperationResponse

type TransformsCreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Transform
}

type TransformsDeleteOperationResponse

type TransformsDeleteOperationResponse struct {
	HttpResponse *http.Response
}

type TransformsGetOperationResponse

type TransformsGetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Transform
}

type TransformsListCompleteResult

type TransformsListCompleteResult struct {
	Items []Transform
}

type TransformsListOperationOptions

type TransformsListOperationOptions struct {
	Filter  *string
	Orderby *string
}

func DefaultTransformsListOperationOptions

func DefaultTransformsListOperationOptions() TransformsListOperationOptions

type TransformsListOperationResponse

type TransformsListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Transform
	// contains filtered or unexported fields
}

func (TransformsListOperationResponse) HasMore

func (TransformsListOperationResponse) LoadMore

type TransformsUpdateOperationResponse

type TransformsUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Transform
}

type UtcClipTime

type UtcClipTime struct {
	Time string `json:"time"`
}

func (UtcClipTime) MarshalJSON

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

type Video

type Video struct {
	KeyFrameInterval *string        `json:"keyFrameInterval,omitempty"`
	StretchMode      *StretchMode   `json:"stretchMode,omitempty"`
	SyncMode         *VideoSyncMode `json:"syncMode,omitempty"`

	// Fields inherited from Codec
	Label *string `json:"label,omitempty"`
}

func (Video) MarshalJSON

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

type VideoOverlay

type VideoOverlay struct {
	CropRectangle *Rectangle `json:"cropRectangle,omitempty"`
	Opacity       *float64   `json:"opacity,omitempty"`
	Position      *Rectangle `json:"position,omitempty"`

	// Fields inherited from Overlay
	AudioGainLevel  *float64 `json:"audioGainLevel,omitempty"`
	End             *string  `json:"end,omitempty"`
	FadeInDuration  *string  `json:"fadeInDuration,omitempty"`
	FadeOutDuration *string  `json:"fadeOutDuration,omitempty"`
	InputLabel      string   `json:"inputLabel"`
	Start           *string  `json:"start,omitempty"`
}

func (VideoOverlay) MarshalJSON

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

type VideoSyncMode

type VideoSyncMode string
const (
	VideoSyncModeAuto        VideoSyncMode = "Auto"
	VideoSyncModeCfr         VideoSyncMode = "Cfr"
	VideoSyncModePassthrough VideoSyncMode = "Passthrough"
	VideoSyncModeVfr         VideoSyncMode = "Vfr"
)

type VideoTrackDescriptor

type VideoTrackDescriptor struct {
}

func (VideoTrackDescriptor) MarshalJSON

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

Jump to

Keyboard shortcuts

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