From dc2c32ac7ace5baa3b2f8b0c4f5630ef64228d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJavier?= Date: Thu, 13 May 2021 16:18:39 -0600 Subject: [PATCH 1/5] Upgrade Media Services API --- .../internal/services/media/client/client.go | 2 +- .../media/media_asset_filter_resource.go | 2 +- .../services/media/media_asset_resource.go | 2 +- .../media_content_key_policy_resource.go | 2 +- .../services/media/media_job_resource.go | 2 +- .../media/media_live_output_resource.go | 2 +- .../media/media_services_account_resource.go | 2 +- .../media_streaming_endpoint_resource.go | 2 +- .../media_streaming_live_event_resource.go | 2 +- .../media/media_streaming_locator_resource.go | 2 +- .../media/media_streaming_policy_resource.go | 2 +- .../media/media_transform_resource.go | 2 +- .../mgmt/2020-05-01/media/enums.go | 1434 ---------------- .../media/CHANGELOG.md | 0 .../media/_meta.json | 10 +- .../media/accountfilters.go | 0 .../media/assetfilters.go | 0 .../media/assets.go | 0 .../media/client.go | 2 +- .../media/contentkeypolicies.go | 0 .../mgmt/2021-05-01/media/enums.go | 1487 +++++++++++++++++ .../{2020-05-01 => 2021-05-01}/media/jobs.go | 0 .../media/liveevents.go | 0 .../media/liveoutputs.go | 0 .../media/locations.go | 2 +- .../media/mediaservices.go | 95 +- .../media/models.go | 684 +++++--- .../media/operations.go | 2 +- .../media/privateendpointconnections.go | 8 +- .../media/privatelinkresources.go | 4 +- .../media/streamingendpoints.go | 0 .../media/streaminglocators.go | 0 .../media/streamingpolicies.go | 0 .../media/transforms.go | 0 .../media/version.go | 2 +- vendor/modules.txt | 2 +- 36 files changed, 1952 insertions(+), 1804 deletions(-) delete mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/enums.go rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/CHANGELOG.md (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/_meta.json (50%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/accountfilters.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/assetfilters.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/assets.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/client.go (98%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/contentkeypolicies.go (100%) create mode 100644 vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/enums.go rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/jobs.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/liveevents.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/liveoutputs.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/locations.go (99%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/mediaservices.go (89%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/models.go (89%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/operations.go (99%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/privateendpointconnections.go (99%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/privatelinkresources.go (99%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/streamingendpoints.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/streaminglocators.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/streamingpolicies.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/transforms.go (100%) rename vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/{2020-05-01 => 2021-05-01}/media/version.go (90%) diff --git a/azurerm/internal/services/media/client/client.go b/azurerm/internal/services/media/client/client.go index afff6a932337..ae9445e56537 100644 --- a/azurerm/internal/services/media/client/client.go +++ b/azurerm/internal/services/media/client/client.go @@ -1,7 +1,7 @@ package client import ( - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/common" ) diff --git a/azurerm/internal/services/media/media_asset_filter_resource.go b/azurerm/internal/services/media/media_asset_filter_resource.go index 82a3c1d05b5f..46b405f233ce 100644 --- a/azurerm/internal/services/media/media_asset_filter_resource.go +++ b/azurerm/internal/services/media/media_asset_filter_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/media/media_asset_resource.go b/azurerm/internal/services/media/media_asset_resource.go index ed81c6b22c93..c205e8d5b60d 100644 --- a/azurerm/internal/services/media/media_asset_resource.go +++ b/azurerm/internal/services/media/media_asset_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" diff --git a/azurerm/internal/services/media/media_content_key_policy_resource.go b/azurerm/internal/services/media/media_content_key_policy_resource.go index 4c754b0ea7a2..8ddeca8a41a6 100644 --- a/azurerm/internal/services/media/media_content_key_policy_resource.go +++ b/azurerm/internal/services/media/media_content_key_policy_resource.go @@ -12,7 +12,7 @@ import ( b64 "encoding/base64" "encoding/hex" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/Azure/go-autorest/autorest/date" "github.com/gofrs/uuid" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" diff --git a/azurerm/internal/services/media/media_job_resource.go b/azurerm/internal/services/media/media_job_resource.go index 52286e083d50..37b8b1c95f35 100644 --- a/azurerm/internal/services/media/media_job_resource.go +++ b/azurerm/internal/services/media/media_job_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" diff --git a/azurerm/internal/services/media/media_live_output_resource.go b/azurerm/internal/services/media/media_live_output_resource.go index d934cbd009ec..c1bb8f42e89f 100644 --- a/azurerm/internal/services/media/media_live_output_resource.go +++ b/azurerm/internal/services/media/media_live_output_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/media/media_services_account_resource.go b/azurerm/internal/services/media/media_services_account_resource.go index 54030b378f03..64d18fb1ee43 100644 --- a/azurerm/internal/services/media/media_services_account_resource.go +++ b/azurerm/internal/services/media/media_services_account_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" diff --git a/azurerm/internal/services/media/media_streaming_endpoint_resource.go b/azurerm/internal/services/media/media_streaming_endpoint_resource.go index 8522ad99fde0..20691fad8454 100644 --- a/azurerm/internal/services/media/media_streaming_endpoint_resource.go +++ b/azurerm/internal/services/media/media_streaming_endpoint_resource.go @@ -9,7 +9,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/media/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/Azure/go-autorest/autorest/date" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" diff --git a/azurerm/internal/services/media/media_streaming_live_event_resource.go b/azurerm/internal/services/media/media_streaming_live_event_resource.go index 10df5e0e4839..2da9f016976f 100644 --- a/azurerm/internal/services/media/media_streaming_live_event_resource.go +++ b/azurerm/internal/services/media/media_streaming_live_event_resource.go @@ -8,7 +8,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/media/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/media/media_streaming_locator_resource.go b/azurerm/internal/services/media/media_streaming_locator_resource.go index 7f25e2cb6d11..24d2448f8e40 100644 --- a/azurerm/internal/services/media/media_streaming_locator_resource.go +++ b/azurerm/internal/services/media/media_streaming_locator_resource.go @@ -9,7 +9,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/media/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/Azure/go-autorest/autorest/date" "github.com/gofrs/uuid" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" diff --git a/azurerm/internal/services/media/media_streaming_policy_resource.go b/azurerm/internal/services/media/media_streaming_policy_resource.go index 84400aa4d12c..56370af17d2d 100644 --- a/azurerm/internal/services/media/media_streaming_policy_resource.go +++ b/azurerm/internal/services/media/media_streaming_policy_resource.go @@ -9,7 +9,7 @@ import ( "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/media/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/tf/pluginsdk" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/azure" diff --git a/azurerm/internal/services/media/media_transform_resource.go b/azurerm/internal/services/media/media_transform_resource.go index 61d7edf7be60..f31d090c8112 100644 --- a/azurerm/internal/services/media/media_transform_resource.go +++ b/azurerm/internal/services/media/media_transform_resource.go @@ -6,7 +6,7 @@ import ( "regexp" "time" - "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" + "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" "github.com/hashicorp/go-azure-helpers/response" "github.com/hashicorp/terraform-plugin-sdk/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/helper/validation" diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/enums.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/enums.go deleted file mode 100644 index b5ef56891011..000000000000 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/enums.go +++ /dev/null @@ -1,1434 +0,0 @@ -package media - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// AacAudioProfile enumerates the values for aac audio profile. -type AacAudioProfile string - -const ( - // AacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC). - AacLc AacAudioProfile = "AacLc" - // HeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile. - HeAacV1 AacAudioProfile = "HeAacV1" - // HeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile. - HeAacV2 AacAudioProfile = "HeAacV2" -) - -// PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type. -func PossibleAacAudioProfileValues() []AacAudioProfile { - return []AacAudioProfile{AacLc, HeAacV1, HeAacV2} -} - -// AccountEncryptionKeyType enumerates the values for account encryption key type. -type AccountEncryptionKeyType string - -const ( - // CustomerKey The Account Key is encrypted with a Customer Key. - CustomerKey AccountEncryptionKeyType = "CustomerKey" - // SystemKey The Account Key is encrypted with a System Key. - SystemKey AccountEncryptionKeyType = "SystemKey" -) - -// PossibleAccountEncryptionKeyTypeValues returns an array of possible values for the AccountEncryptionKeyType const type. -func PossibleAccountEncryptionKeyTypeValues() []AccountEncryptionKeyType { - return []AccountEncryptionKeyType{CustomerKey, SystemKey} -} - -// AnalysisResolution enumerates the values for analysis resolution. -type AnalysisResolution string - -const ( - // SourceResolution ... - SourceResolution AnalysisResolution = "SourceResolution" - // StandardDefinition ... - StandardDefinition AnalysisResolution = "StandardDefinition" -) - -// PossibleAnalysisResolutionValues returns an array of possible values for the AnalysisResolution const type. -func PossibleAnalysisResolutionValues() []AnalysisResolution { - return []AnalysisResolution{SourceResolution, StandardDefinition} -} - -// AssetContainerPermission enumerates the values for asset container permission. -type AssetContainerPermission string - -const ( - // Read The SAS URL will allow read access to the container. - Read AssetContainerPermission = "Read" - // ReadWrite The SAS URL will allow read and write access to the container. - ReadWrite AssetContainerPermission = "ReadWrite" - // ReadWriteDelete The SAS URL will allow read, write and delete access to the container. - ReadWriteDelete AssetContainerPermission = "ReadWriteDelete" -) - -// PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type. -func PossibleAssetContainerPermissionValues() []AssetContainerPermission { - return []AssetContainerPermission{Read, ReadWrite, ReadWriteDelete} -} - -// AssetStorageEncryptionFormat enumerates the values for asset storage encryption format. -type AssetStorageEncryptionFormat string - -const ( - // MediaStorageClientEncryption The Asset is encrypted with Media Services client-side encryption. - MediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption" - // None The Asset does not use client-side storage encryption (this is the only allowed value for new - // Assets). - None AssetStorageEncryptionFormat = "None" -) - -// PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type. -func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat { - return []AssetStorageEncryptionFormat{MediaStorageClientEncryption, None} -} - -// AttributeFilter enumerates the values for attribute filter. -type AttributeFilter string - -const ( - // All All tracks will be included. - All AttributeFilter = "All" - // Bottom The first track will be included when the attribute is sorted in ascending order. Generally used - // to select the smallest bitrate. - Bottom AttributeFilter = "Bottom" - // Top The first track will be included when the attribute is sorted in descending order. Generally used - // to select the largest bitrate. - Top AttributeFilter = "Top" - // ValueEquals Any tracks that have an attribute equal to the value given will be included. - ValueEquals AttributeFilter = "ValueEquals" -) - -// PossibleAttributeFilterValues returns an array of possible values for the AttributeFilter const type. -func PossibleAttributeFilterValues() []AttributeFilter { - return []AttributeFilter{All, Bottom, Top, ValueEquals} -} - -// AudioAnalysisMode enumerates the values for audio analysis mode. -type AudioAnalysisMode string - -const ( - // Basic This mode performs speech-to-text transcription and generation of a VTT subtitle/caption file. The - // output of this mode includes an Insights JSON file including only the keywords, transcription,and timing - // information. Automatic language detection and speaker diarization are not included in this mode. - Basic AudioAnalysisMode = "Basic" - // Standard Performs all operations included in the Basic mode, additionally performing language detection - // and speaker diarization. - Standard AudioAnalysisMode = "Standard" -) - -// PossibleAudioAnalysisModeValues returns an array of possible values for the AudioAnalysisMode const type. -func PossibleAudioAnalysisModeValues() []AudioAnalysisMode { - return []AudioAnalysisMode{Basic, Standard} -} - -// BlurType enumerates the values for blur type. -type BlurType string - -const ( - // Black Black: Black out filter - Black BlurType = "Black" - // Box Box: debug filter, bounding box only - Box BlurType = "Box" - // High High: Confuse blur filter - High BlurType = "High" - // Low Low: box-car blur filter - Low BlurType = "Low" - // Med Med: Gaussian blur filter - Med BlurType = "Med" -) - -// PossibleBlurTypeValues returns an array of possible values for the BlurType const type. -func PossibleBlurTypeValues() []BlurType { - return []BlurType{Black, Box, High, Low, Med} -} - -// ChannelMapping enumerates the values for channel mapping. -type ChannelMapping string - -const ( - // BackLeft The Back Left Channel. Sometimes referred to as the Left Surround Channel. - BackLeft ChannelMapping = "BackLeft" - // BackRight The Back Right Channel. Sometimes referred to as the Right Surround Channel. - BackRight ChannelMapping = "BackRight" - // Center The Center Channel. - Center ChannelMapping = "Center" - // FrontLeft The Front Left Channel. - FrontLeft ChannelMapping = "FrontLeft" - // FrontRight The Front Right Channel. - FrontRight ChannelMapping = "FrontRight" - // LowFrequencyEffects Low Frequency Effects Channel. Sometimes referred to as the Subwoofer. - LowFrequencyEffects ChannelMapping = "LowFrequencyEffects" - // StereoLeft The Left Stereo channel. Sometimes referred to as Down Mix Left. - StereoLeft ChannelMapping = "StereoLeft" - // StereoRight The Right Stereo channel. Sometimes referred to as Down Mix Right. - StereoRight ChannelMapping = "StereoRight" -) - -// PossibleChannelMappingValues returns an array of possible values for the ChannelMapping const type. -func PossibleChannelMappingValues() []ChannelMapping { - return []ChannelMapping{BackLeft, BackRight, Center, FrontLeft, FrontRight, LowFrequencyEffects, StereoLeft, StereoRight} -} - -// ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental -// and lease key type. -type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string - -const ( - // DualExpiry Dual expiry for offline rental. - DualExpiry ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "DualExpiry" - // PersistentLimited Content key can be persisted and the valid duration is limited by the Rental Duration - // value - PersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited" - // PersistentUnlimited Content key can be persisted with an unlimited duration - PersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited" - // Undefined Key duration is not specified. - Undefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined" - // Unknown Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API - // version. - Unknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown" -) - -// PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type. -func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType { - return []ContentKeyPolicyFairPlayRentalAndLeaseKeyType{DualExpiry, PersistentLimited, PersistentUnlimited, Undefined, Unknown} -} - -// ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type. -type ContentKeyPolicyPlayReadyContentType string - -const ( - // ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type. - ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload" - // ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type. - ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming" - // ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is - // unavailable in current API version. - ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown" - // ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type. - ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified" -) - -// PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type. -func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType { - return []ContentKeyPolicyPlayReadyContentType{ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload, ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming, ContentKeyPolicyPlayReadyContentTypeUnknown, ContentKeyPolicyPlayReadyContentTypeUnspecified} -} - -// ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type. -type ContentKeyPolicyPlayReadyLicenseType string - -const ( - // ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license. - ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent" - // ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback. - ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent" - // ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is - // unavailable in current API version. - ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown" -) - -// PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type. -func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType { - return []ContentKeyPolicyPlayReadyLicenseType{ContentKeyPolicyPlayReadyLicenseTypeNonPersistent, ContentKeyPolicyPlayReadyLicenseTypePersistent, ContentKeyPolicyPlayReadyLicenseTypeUnknown} -} - -// ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready -// unknown output passing option. -type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string - -const ( - // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected - // content to an Unknown Output is allowed. - ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed" - // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video - // portion of protected content to an Unknown Output is allowed but with constrained resolution. - ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction" - // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected - // content to an Unknown Output is not allowed. - ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed" - // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a - // ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version. - ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown" -) - -// PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type. -func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption { - return []ContentKeyPolicyPlayReadyUnknownOutputPassingOption{ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown} -} - -// ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type. -type ContentKeyPolicyRestrictionTokenType string - -const ( - // ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token. - ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt" - // ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token. - ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt" - // ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is - // unavailable in current API version. - ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown" -) - -// PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type. -func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType { - return []ContentKeyPolicyRestrictionTokenType{ContentKeyPolicyRestrictionTokenTypeJwt, ContentKeyPolicyRestrictionTokenTypeSwt, ContentKeyPolicyRestrictionTokenTypeUnknown} -} - -// CreatedByType enumerates the values for created by type. -type CreatedByType string - -const ( - // Application ... - Application CreatedByType = "Application" - // Key ... - Key CreatedByType = "Key" - // ManagedIdentity ... - ManagedIdentity CreatedByType = "ManagedIdentity" - // User ... - User CreatedByType = "User" -) - -// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. -func PossibleCreatedByTypeValues() []CreatedByType { - return []CreatedByType{Application, Key, ManagedIdentity, User} -} - -// DeinterlaceMode enumerates the values for deinterlace mode. -type DeinterlaceMode string - -const ( - // AutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the input video. - AutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive" - // Off Disables de-interlacing of the source video. - Off DeinterlaceMode = "Off" -) - -// PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type. -func PossibleDeinterlaceModeValues() []DeinterlaceMode { - return []DeinterlaceMode{AutoPixelAdaptive, Off} -} - -// DeinterlaceParity enumerates the values for deinterlace parity. -type DeinterlaceParity string - -const ( - // Auto Automatically detect the order of fields - Auto DeinterlaceParity = "Auto" - // BottomFieldFirst Apply bottom field first processing of input video. - BottomFieldFirst DeinterlaceParity = "BottomFieldFirst" - // TopFieldFirst Apply top field first processing of input video. - TopFieldFirst DeinterlaceParity = "TopFieldFirst" -) - -// PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type. -func PossibleDeinterlaceParityValues() []DeinterlaceParity { - return []DeinterlaceParity{Auto, BottomFieldFirst, TopFieldFirst} -} - -// EncoderNamedPreset enumerates the values for encoder named preset. -type EncoderNamedPreset string - -const ( - // AACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at 192 kbps. - AACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" - // AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. - // Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The - // auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output - // will remain 720p at best. - AdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" - // ContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input - // content, the service performs an initial lightweight analysis of the input content, and uses the results - // to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by - // adaptive streaming. This preset is particularly effective for low and medium complexity videos, where - // the output files will be at lower bitrates but at a quality that still delivers a good experience to - // viewers. The output will contain MP4 files with video and audio interleaved. - ContentAwareEncoding EncoderNamedPreset = "ContentAwareEncoding" - // ContentAwareEncodingExperimental Exposes an experimental preset for content-aware encoding. Given any - // input content, the service attempts to automatically determine the optimal number of layers, appropriate - // bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will - // continue to evolve over time. The output will contain MP4 files with video and audio interleaved. - ContentAwareEncodingExperimental EncoderNamedPreset = "ContentAwareEncodingExperimental" - // CopyAllBitrateNonInterleaved Copy all video and audio streams from the input asset as non-interleaved - // video and audio output files. This preset can be used to clip an existing asset or convert a group of - // key frame (GOP) aligned MP4 files as an asset that can be streamed. - CopyAllBitrateNonInterleaved EncoderNamedPreset = "CopyAllBitrateNonInterleaved" - // H264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, - // and stereo AAC audio. Resolution starts at 1080p and goes down to 180p. - H264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" - // H264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, - // and stereo AAC audio. Resolution starts at 720p and goes down to 180p. - H264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" - // H264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and - // stereo AAC audio. Resolution starts at 480p and goes down to 240p. - H264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" - // H264SingleBitrate1080p Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and - // a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H264SingleBitrate1080p EncoderNamedPreset = "H264SingleBitrate1080p" - // H264SingleBitrate720p Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and - // a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H264SingleBitrate720p EncoderNamedPreset = "H264SingleBitrate720p" - // H264SingleBitrateSD Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a - // picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H264SingleBitrateSD EncoderNamedPreset = "H264SingleBitrateSD" - // H265AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. - // Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The - // auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output - // will remain 720p at best. - H265AdaptiveStreaming EncoderNamedPreset = "H265AdaptiveStreaming" - // H265ContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any - // input content, the service performs an initial lightweight analysis of the input content, and uses the - // results to determine the optimal number of layers, appropriate bitrate and resolution settings for - // delivery by adaptive streaming. This preset is particularly effective for low and medium complexity - // videos, where the output files will be at lower bitrates but at a quality that still delivers a good - // experience to viewers. The output will contain MP4 files with video and audio interleaved. - H265ContentAwareEncoding EncoderNamedPreset = "H265ContentAwareEncoding" - // H265SingleBitrate1080p Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and - // a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H265SingleBitrate1080p EncoderNamedPreset = "H265SingleBitrate1080p" - // H265SingleBitrate4K Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a - // picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H265SingleBitrate4K EncoderNamedPreset = "H265SingleBitrate4K" - // H265SingleBitrate720p Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and - // a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps. - H265SingleBitrate720p EncoderNamedPreset = "H265SingleBitrate720p" -) - -// PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type. -func PossibleEncoderNamedPresetValues() []EncoderNamedPreset { - return []EncoderNamedPreset{AACGoodQualityAudio, AdaptiveStreaming, ContentAwareEncoding, ContentAwareEncodingExperimental, CopyAllBitrateNonInterleaved, H264MultipleBitrate1080p, H264MultipleBitrate720p, H264MultipleBitrateSD, H264SingleBitrate1080p, H264SingleBitrate720p, H264SingleBitrateSD, H265AdaptiveStreaming, H265ContentAwareEncoding, H265SingleBitrate1080p, H265SingleBitrate4K, H265SingleBitrate720p} -} - -// EncryptionScheme enumerates the values for encryption scheme. -type EncryptionScheme string - -const ( - // EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme - EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs" - // EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme - EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc" - // EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme - EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption" - // EncryptionSchemeNoEncryption NoEncryption scheme - EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption" -) - -// PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type. -func PossibleEncryptionSchemeValues() []EncryptionScheme { - return []EncryptionScheme{EncryptionSchemeCommonEncryptionCbcs, EncryptionSchemeCommonEncryptionCenc, EncryptionSchemeEnvelopeEncryption, EncryptionSchemeNoEncryption} -} - -// EntropyMode enumerates the values for entropy mode. -type EntropyMode string - -const ( - // Cabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding. - Cabac EntropyMode = "Cabac" - // Cavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding. - Cavlc EntropyMode = "Cavlc" -) - -// PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type. -func PossibleEntropyModeValues() []EntropyMode { - return []EntropyMode{Cabac, Cavlc} -} - -// FaceRedactorMode enumerates the values for face redactor mode. -type FaceRedactorMode string - -const ( - // Analyze Analyze mode detects faces and outputs a metadata file with the results. Allows editing of the - // metadata file before faces are blurred with Redact mode. - Analyze FaceRedactorMode = "Analyze" - // Combined Combined mode does the Analyze and Redact steps in one pass when editing the analyzed faces is - // not desired. - Combined FaceRedactorMode = "Combined" - // Redact Redact mode consumes the metadata file from Analyze mode and redacts the faces found. - Redact FaceRedactorMode = "Redact" -) - -// PossibleFaceRedactorModeValues returns an array of possible values for the FaceRedactorMode const type. -func PossibleFaceRedactorModeValues() []FaceRedactorMode { - return []FaceRedactorMode{Analyze, Combined, Redact} -} - -// FilterTrackPropertyCompareOperation enumerates the values for filter track property compare operation. -type FilterTrackPropertyCompareOperation string - -const ( - // Equal The equal operation. - Equal FilterTrackPropertyCompareOperation = "Equal" - // NotEqual The not equal operation. - NotEqual FilterTrackPropertyCompareOperation = "NotEqual" -) - -// PossibleFilterTrackPropertyCompareOperationValues returns an array of possible values for the FilterTrackPropertyCompareOperation const type. -func PossibleFilterTrackPropertyCompareOperationValues() []FilterTrackPropertyCompareOperation { - return []FilterTrackPropertyCompareOperation{Equal, NotEqual} -} - -// FilterTrackPropertyType enumerates the values for filter track property type. -type FilterTrackPropertyType string - -const ( - // FilterTrackPropertyTypeBitrate The bitrate. - FilterTrackPropertyTypeBitrate FilterTrackPropertyType = "Bitrate" - // FilterTrackPropertyTypeFourCC The fourCC. - FilterTrackPropertyTypeFourCC FilterTrackPropertyType = "FourCC" - // FilterTrackPropertyTypeLanguage The language. - FilterTrackPropertyTypeLanguage FilterTrackPropertyType = "Language" - // FilterTrackPropertyTypeName The name. - FilterTrackPropertyTypeName FilterTrackPropertyType = "Name" - // FilterTrackPropertyTypeType The type. - FilterTrackPropertyTypeType FilterTrackPropertyType = "Type" - // FilterTrackPropertyTypeUnknown The unknown track property type. - FilterTrackPropertyTypeUnknown FilterTrackPropertyType = "Unknown" -) - -// PossibleFilterTrackPropertyTypeValues returns an array of possible values for the FilterTrackPropertyType const type. -func PossibleFilterTrackPropertyTypeValues() []FilterTrackPropertyType { - return []FilterTrackPropertyType{FilterTrackPropertyTypeBitrate, FilterTrackPropertyTypeFourCC, FilterTrackPropertyTypeLanguage, FilterTrackPropertyTypeName, FilterTrackPropertyTypeType, FilterTrackPropertyTypeUnknown} -} - -// H264Complexity enumerates the values for h264 complexity. -type H264Complexity string - -const ( - // Balanced Tells the encoder to use settings that achieve a balance between speed and quality. - Balanced H264Complexity = "Balanced" - // Quality Tells the encoder to use settings that are optimized to produce higher quality output at the - // expense of slower overall encode time. - Quality H264Complexity = "Quality" - // Speed Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to - // decrease encoding time. - Speed H264Complexity = "Speed" -) - -// PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type. -func PossibleH264ComplexityValues() []H264Complexity { - return []H264Complexity{Balanced, Quality, Speed} -} - -// H264VideoProfile enumerates the values for h264 video profile. -type H264VideoProfile string - -const ( - // H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile. - H264VideoProfileAuto H264VideoProfile = "Auto" - // H264VideoProfileBaseline Baseline profile - H264VideoProfileBaseline H264VideoProfile = "Baseline" - // H264VideoProfileHigh High profile. - H264VideoProfileHigh H264VideoProfile = "High" - // H264VideoProfileHigh422 High 4:2:2 profile. - H264VideoProfileHigh422 H264VideoProfile = "High422" - // H264VideoProfileHigh444 High 4:4:4 predictive profile. - H264VideoProfileHigh444 H264VideoProfile = "High444" - // H264VideoProfileMain Main profile - H264VideoProfileMain H264VideoProfile = "Main" -) - -// PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type. -func PossibleH264VideoProfileValues() []H264VideoProfile { - return []H264VideoProfile{H264VideoProfileAuto, H264VideoProfileBaseline, H264VideoProfileHigh, H264VideoProfileHigh422, H264VideoProfileHigh444, H264VideoProfileMain} -} - -// H265Complexity enumerates the values for h265 complexity. -type H265Complexity string - -const ( - // H265ComplexityBalanced Tells the encoder to use settings that achieve a balance between speed and - // quality. - H265ComplexityBalanced H265Complexity = "Balanced" - // H265ComplexityQuality Tells the encoder to use settings that are optimized to produce higher quality - // output at the expense of slower overall encode time. - H265ComplexityQuality H265Complexity = "Quality" - // H265ComplexitySpeed Tells the encoder to use settings that are optimized for faster encoding. Quality is - // sacrificed to decrease encoding time. - H265ComplexitySpeed H265Complexity = "Speed" -) - -// PossibleH265ComplexityValues returns an array of possible values for the H265Complexity const type. -func PossibleH265ComplexityValues() []H265Complexity { - return []H265Complexity{H265ComplexityBalanced, H265ComplexityQuality, H265ComplexitySpeed} -} - -// H265VideoProfile enumerates the values for h265 video profile. -type H265VideoProfile string - -const ( - // H265VideoProfileAuto Tells the encoder to automatically determine the appropriate H.265 profile. - H265VideoProfileAuto H265VideoProfile = "Auto" - // H265VideoProfileMain Main profile - // (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier) - H265VideoProfileMain H265VideoProfile = "Main" -) - -// PossibleH265VideoProfileValues returns an array of possible values for the H265VideoProfile const type. -func PossibleH265VideoProfileValues() []H265VideoProfile { - return []H265VideoProfile{H265VideoProfileAuto, H265VideoProfileMain} -} - -// InsightsType enumerates the values for insights type. -type InsightsType string - -const ( - // AllInsights Generate both audio and video insights. Fails if either audio or video Insights fail. - AllInsights InsightsType = "AllInsights" - // AudioInsightsOnly Generate audio only insights. Ignore video even if present. Fails if no audio is - // present. - AudioInsightsOnly InsightsType = "AudioInsightsOnly" - // VideoInsightsOnly Generate video only insights. Ignore audio if present. Fails if no video is present. - VideoInsightsOnly InsightsType = "VideoInsightsOnly" -) - -// PossibleInsightsTypeValues returns an array of possible values for the InsightsType const type. -func PossibleInsightsTypeValues() []InsightsType { - return []InsightsType{AllInsights, AudioInsightsOnly, VideoInsightsOnly} -} - -// JobErrorCategory enumerates the values for job error category. -type JobErrorCategory string - -const ( - // JobErrorCategoryConfiguration The error is configuration related. - JobErrorCategoryConfiguration JobErrorCategory = "Configuration" - // JobErrorCategoryContent The error is related to data in the input files. - JobErrorCategoryContent JobErrorCategory = "Content" - // JobErrorCategoryDownload The error is download related. - JobErrorCategoryDownload JobErrorCategory = "Download" - // JobErrorCategoryService The error is service related. - JobErrorCategoryService JobErrorCategory = "Service" - // JobErrorCategoryUpload The error is upload related. - JobErrorCategoryUpload JobErrorCategory = "Upload" -) - -// PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type. -func PossibleJobErrorCategoryValues() []JobErrorCategory { - return []JobErrorCategory{JobErrorCategoryConfiguration, JobErrorCategoryContent, JobErrorCategoryDownload, JobErrorCategoryService, JobErrorCategoryUpload} -} - -// JobErrorCode enumerates the values for job error code. -type JobErrorCode string - -const ( - // ConfigurationUnsupported There was a problem with the combination of input files and the configuration - // settings applied, fix the configuration settings and retry with the same input, or change input to match - // the configuration. - ConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported" - // ContentMalformed There was a problem with the input content (for example: zero byte files, or - // corrupt/non-decodable files), check the input files. - ContentMalformed JobErrorCode = "ContentMalformed" - // ContentUnsupported There was a problem with the format of the input (not valid media file, or an - // unsupported file/codec), check the validity of the input files. - ContentUnsupported JobErrorCode = "ContentUnsupported" - // DownloadNotAccessible While trying to download the input files, the files were not accessible, please - // check the availability of the source. - DownloadNotAccessible JobErrorCode = "DownloadNotAccessible" - // DownloadTransientError While trying to download the input files, there was an issue during transfer - // (storage service, network errors), see details and check your source. - DownloadTransientError JobErrorCode = "DownloadTransientError" - // ServiceError Fatal service error, please contact support. - ServiceError JobErrorCode = "ServiceError" - // ServiceTransientError Transient error, please retry, if retry is unsuccessful, please contact support. - ServiceTransientError JobErrorCode = "ServiceTransientError" - // UploadNotAccessible While trying to upload the output files, the destination was not reachable, please - // check the availability of the destination. - UploadNotAccessible JobErrorCode = "UploadNotAccessible" - // UploadTransientError While trying to upload the output files, there was an issue during transfer - // (storage service, network errors), see details and check your destination. - UploadTransientError JobErrorCode = "UploadTransientError" -) - -// PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type. -func PossibleJobErrorCodeValues() []JobErrorCode { - return []JobErrorCode{ConfigurationUnsupported, ContentMalformed, ContentUnsupported, DownloadNotAccessible, DownloadTransientError, ServiceError, ServiceTransientError, UploadNotAccessible, UploadTransientError} -} - -// JobRetry enumerates the values for job retry. -type JobRetry string - -const ( - // DoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or retried once - // the underlying issue has been corrected. - DoNotRetry JobRetry = "DoNotRetry" - // MayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job. - MayRetry JobRetry = "MayRetry" -) - -// PossibleJobRetryValues returns an array of possible values for the JobRetry const type. -func PossibleJobRetryValues() []JobRetry { - return []JobRetry{DoNotRetry, MayRetry} -} - -// JobState enumerates the values for job state. -type JobState string - -const ( - // Canceled The job was canceled. This is a final state for the job. - Canceled JobState = "Canceled" - // Canceling The job is in the process of being canceled. This is a transient state for the job. - Canceling JobState = "Canceling" - // Error The job has encountered an error. This is a final state for the job. - Error JobState = "Error" - // Finished The job is finished. This is a final state for the job. - Finished JobState = "Finished" - // Processing The job is processing. This is a transient state for the job. - Processing JobState = "Processing" - // Queued The job is in a queued state, waiting for resources to become available. This is a transient - // state. - Queued JobState = "Queued" - // Scheduled The job is being scheduled to run on an available resource. This is a transient state, between - // queued and processing states. - Scheduled JobState = "Scheduled" -) - -// PossibleJobStateValues returns an array of possible values for the JobState const type. -func PossibleJobStateValues() []JobState { - return []JobState{Canceled, Canceling, Error, Finished, Processing, Queued, Scheduled} -} - -// LiveEventEncodingType enumerates the values for live event encoding type. -type LiveEventEncodingType string - -const ( - // LiveEventEncodingTypeNone A contribution live encoder sends a multiple bitrate stream. The ingested - // stream passes through the live event without any further processing. It is also called the pass-through - // mode. - LiveEventEncodingTypeNone LiveEventEncodingType = "None" - // LiveEventEncodingTypePremium1080p A contribution live encoder sends a single bitrate stream to the live - // event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution. - LiveEventEncodingTypePremium1080p LiveEventEncodingType = "Premium1080p" - // LiveEventEncodingTypeStandard A contribution live encoder sends a single bitrate stream to the live - // event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution. - LiveEventEncodingTypeStandard LiveEventEncodingType = "Standard" -) - -// PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type. -func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType { - return []LiveEventEncodingType{LiveEventEncodingTypeNone, LiveEventEncodingTypePremium1080p, LiveEventEncodingTypeStandard} -} - -// LiveEventInputProtocol enumerates the values for live event input protocol. -type LiveEventInputProtocol string - -const ( - // FragmentedMP4 Smooth Streaming input will be sent by the contribution encoder to the live event. - FragmentedMP4 LiveEventInputProtocol = "FragmentedMP4" - // RTMP RTMP input will be sent by the contribution encoder to the live event. - RTMP LiveEventInputProtocol = "RTMP" -) - -// PossibleLiveEventInputProtocolValues returns an array of possible values for the LiveEventInputProtocol const type. -func PossibleLiveEventInputProtocolValues() []LiveEventInputProtocol { - return []LiveEventInputProtocol{FragmentedMP4, RTMP} -} - -// LiveEventResourceState enumerates the values for live event resource state. -type LiveEventResourceState string - -const ( - // Allocating Allocate action was called on the live event and resources are being provisioned for this - // live event. Once allocation completes successfully, the live event will transition to StandBy state. - Allocating LiveEventResourceState = "Allocating" - // Deleting The live event is being deleted. No billing occurs in this transient state. Updates or - // streaming are not allowed during this state. - Deleting LiveEventResourceState = "Deleting" - // Running The live event resources have been allocated, ingest and preview URLs have been generated, and - // it is capable of receiving live streams. At this point, billing is active. You must explicitly call Stop - // on the live event resource to halt further billing. - Running LiveEventResourceState = "Running" - // StandBy Live event resources have been provisioned and is ready to start. Billing occurs in this state. - // Most properties can still be updated, however ingest or streaming is not allowed during this state. - StandBy LiveEventResourceState = "StandBy" - // Starting The live event is being started and resources are being allocated. No billing occurs in this - // state. Updates or streaming are not allowed during this state. If an error occurs, the live event - // returns to the Stopped state. - Starting LiveEventResourceState = "Starting" - // Stopped This is the initial state of the live event after creation (unless autostart was set to true.) - // No billing occurs in this state. In this state, the live event properties can be updated but streaming - // is not allowed. - Stopped LiveEventResourceState = "Stopped" - // Stopping The live event is being stopped and resources are being de-provisioned. No billing occurs in - // this transient state. Updates or streaming are not allowed during this state. - Stopping LiveEventResourceState = "Stopping" -) - -// PossibleLiveEventResourceStateValues returns an array of possible values for the LiveEventResourceState const type. -func PossibleLiveEventResourceStateValues() []LiveEventResourceState { - return []LiveEventResourceState{Allocating, Deleting, Running, StandBy, Starting, Stopped, Stopping} -} - -// LiveOutputResourceState enumerates the values for live output resource state. -type LiveOutputResourceState string - -const ( - // LiveOutputResourceStateCreating Live output is being created. No content is archived in the asset until - // the live output is in running state. - LiveOutputResourceStateCreating LiveOutputResourceState = "Creating" - // LiveOutputResourceStateDeleting Live output is being deleted. The live asset is being converted from - // live to on-demand asset. Any streaming URLs created on the live output asset continue to work. - LiveOutputResourceStateDeleting LiveOutputResourceState = "Deleting" - // LiveOutputResourceStateRunning Live output is running and archiving live streaming content to the asset - // if there is valid input from a contribution encoder. - LiveOutputResourceStateRunning LiveOutputResourceState = "Running" -) - -// PossibleLiveOutputResourceStateValues returns an array of possible values for the LiveOutputResourceState const type. -func PossibleLiveOutputResourceStateValues() []LiveOutputResourceState { - return []LiveOutputResourceState{LiveOutputResourceStateCreating, LiveOutputResourceStateDeleting, LiveOutputResourceStateRunning} -} - -// ManagedIdentityType enumerates the values for managed identity type. -type ManagedIdentityType string - -const ( - // ManagedIdentityTypeNone No managed identity. - ManagedIdentityTypeNone ManagedIdentityType = "None" - // ManagedIdentityTypeSystemAssigned A system-assigned managed identity. - ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" -) - -// PossibleManagedIdentityTypeValues returns an array of possible values for the ManagedIdentityType const type. -func PossibleManagedIdentityTypeValues() []ManagedIdentityType { - return []ManagedIdentityType{ManagedIdentityTypeNone, ManagedIdentityTypeSystemAssigned} -} - -// MetricAggregationType enumerates the values for metric aggregation type. -type MetricAggregationType string - -const ( - // Average The average. - Average MetricAggregationType = "Average" - // Count The count of a number of items, usually requests. - Count MetricAggregationType = "Count" - // Total The sum. - Total MetricAggregationType = "Total" -) - -// PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type. -func PossibleMetricAggregationTypeValues() []MetricAggregationType { - return []MetricAggregationType{Average, Count, Total} -} - -// MetricUnit enumerates the values for metric unit. -type MetricUnit string - -const ( - // MetricUnitBytes The number of bytes. - MetricUnitBytes MetricUnit = "Bytes" - // MetricUnitCount The count. - MetricUnitCount MetricUnit = "Count" - // MetricUnitMilliseconds The number of milliseconds. - MetricUnitMilliseconds MetricUnit = "Milliseconds" -) - -// PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type. -func PossibleMetricUnitValues() []MetricUnit { - return []MetricUnit{MetricUnitBytes, MetricUnitCount, MetricUnitMilliseconds} -} - -// OdataType enumerates the values for odata type. -type OdataType string - -const ( - // OdataTypeContentKeyPolicyPlayReadyContentKeyLocation ... - OdataTypeContentKeyPolicyPlayReadyContentKeyLocation OdataType = "ContentKeyPolicyPlayReadyContentKeyLocation" - // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader ... - OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" - // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ... - OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" -) - -// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. -func PossibleOdataTypeValues() []OdataType { - return []OdataType{OdataTypeContentKeyPolicyPlayReadyContentKeyLocation, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier} -} - -// OdataTypeBasicClipTime enumerates the values for odata type basic clip time. -type OdataTypeBasicClipTime string - -const ( - // OdataTypeClipTime ... - OdataTypeClipTime OdataTypeBasicClipTime = "ClipTime" - // OdataTypeMicrosoftMediaAbsoluteClipTime ... - OdataTypeMicrosoftMediaAbsoluteClipTime OdataTypeBasicClipTime = "#Microsoft.Media.AbsoluteClipTime" - // OdataTypeMicrosoftMediaUtcClipTime ... - OdataTypeMicrosoftMediaUtcClipTime OdataTypeBasicClipTime = "#Microsoft.Media.UtcClipTime" -) - -// PossibleOdataTypeBasicClipTimeValues returns an array of possible values for the OdataTypeBasicClipTime const type. -func PossibleOdataTypeBasicClipTimeValues() []OdataTypeBasicClipTime { - return []OdataTypeBasicClipTime{OdataTypeClipTime, OdataTypeMicrosoftMediaAbsoluteClipTime, OdataTypeMicrosoftMediaUtcClipTime} -} - -// OdataTypeBasicCodec enumerates the values for odata type basic codec. -type OdataTypeBasicCodec string - -const ( - // OdataTypeCodec ... - OdataTypeCodec OdataTypeBasicCodec = "Codec" - // OdataTypeMicrosoftMediaAacAudio ... - OdataTypeMicrosoftMediaAacAudio OdataTypeBasicCodec = "#Microsoft.Media.AacAudio" - // OdataTypeMicrosoftMediaAudio ... - OdataTypeMicrosoftMediaAudio OdataTypeBasicCodec = "#Microsoft.Media.Audio" - // OdataTypeMicrosoftMediaCopyAudio ... - OdataTypeMicrosoftMediaCopyAudio OdataTypeBasicCodec = "#Microsoft.Media.CopyAudio" - // OdataTypeMicrosoftMediaCopyVideo ... - OdataTypeMicrosoftMediaCopyVideo OdataTypeBasicCodec = "#Microsoft.Media.CopyVideo" - // OdataTypeMicrosoftMediaH264Video ... - OdataTypeMicrosoftMediaH264Video OdataTypeBasicCodec = "#Microsoft.Media.H264Video" - // OdataTypeMicrosoftMediaH265Video ... - OdataTypeMicrosoftMediaH265Video OdataTypeBasicCodec = "#Microsoft.Media.H265Video" - // OdataTypeMicrosoftMediaImage ... - OdataTypeMicrosoftMediaImage OdataTypeBasicCodec = "#Microsoft.Media.Image" - // OdataTypeMicrosoftMediaJpgImage ... - OdataTypeMicrosoftMediaJpgImage OdataTypeBasicCodec = "#Microsoft.Media.JpgImage" - // OdataTypeMicrosoftMediaPngImage ... - OdataTypeMicrosoftMediaPngImage OdataTypeBasicCodec = "#Microsoft.Media.PngImage" - // OdataTypeMicrosoftMediaVideo ... - OdataTypeMicrosoftMediaVideo OdataTypeBasicCodec = "#Microsoft.Media.Video" -) - -// PossibleOdataTypeBasicCodecValues returns an array of possible values for the OdataTypeBasicCodec const type. -func PossibleOdataTypeBasicCodecValues() []OdataTypeBasicCodec { - return []OdataTypeBasicCodec{OdataTypeCodec, OdataTypeMicrosoftMediaAacAudio, OdataTypeMicrosoftMediaAudio, OdataTypeMicrosoftMediaCopyAudio, OdataTypeMicrosoftMediaCopyVideo, OdataTypeMicrosoftMediaH264Video, OdataTypeMicrosoftMediaH265Video, OdataTypeMicrosoftMediaImage, OdataTypeMicrosoftMediaJpgImage, OdataTypeMicrosoftMediaPngImage, OdataTypeMicrosoftMediaVideo} -} - -// OdataTypeBasicContentKeyPolicyConfiguration enumerates the values for odata type basic content key policy -// configuration. -type OdataTypeBasicContentKeyPolicyConfiguration string - -const ( - // OdataTypeContentKeyPolicyConfiguration ... - OdataTypeContentKeyPolicyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "ContentKeyPolicyConfiguration" - // OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration ... - OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" - // OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration ... - OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" - // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration ... - OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" - // OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration ... - OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" - // OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration ... - OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" -) - -// PossibleOdataTypeBasicContentKeyPolicyConfigurationValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyConfiguration const type. -func PossibleOdataTypeBasicContentKeyPolicyConfigurationValues() []OdataTypeBasicContentKeyPolicyConfiguration { - return []OdataTypeBasicContentKeyPolicyConfiguration{OdataTypeContentKeyPolicyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration, OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration} -} - -// OdataTypeBasicContentKeyPolicyRestriction enumerates the values for odata type basic content key policy -// restriction. -type OdataTypeBasicContentKeyPolicyRestriction string - -const ( - // OdataTypeContentKeyPolicyRestriction ... - OdataTypeContentKeyPolicyRestriction OdataTypeBasicContentKeyPolicyRestriction = "ContentKeyPolicyRestriction" - // OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction ... - OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyOpenRestriction" - // OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction ... - OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyTokenRestriction" - // OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction ... - OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" -) - -// PossibleOdataTypeBasicContentKeyPolicyRestrictionValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestriction const type. -func PossibleOdataTypeBasicContentKeyPolicyRestrictionValues() []OdataTypeBasicContentKeyPolicyRestriction { - return []OdataTypeBasicContentKeyPolicyRestriction{OdataTypeContentKeyPolicyRestriction, OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction} -} - -// OdataTypeBasicContentKeyPolicyRestrictionTokenKey enumerates the values for odata type basic content key -// policy restriction token key. -type OdataTypeBasicContentKeyPolicyRestrictionTokenKey string - -const ( - // OdataTypeContentKeyPolicyRestrictionTokenKey ... - OdataTypeContentKeyPolicyRestrictionTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "ContentKeyPolicyRestrictionTokenKey" - // OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey ... - OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" - // OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey ... - OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" - // OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey ... - OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" -) - -// PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestrictionTokenKey const type. -func PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues() []OdataTypeBasicContentKeyPolicyRestrictionTokenKey { - return []OdataTypeBasicContentKeyPolicyRestrictionTokenKey{OdataTypeContentKeyPolicyRestrictionTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey} -} - -// OdataTypeBasicFormat enumerates the values for odata type basic format. -type OdataTypeBasicFormat string - -const ( - // OdataTypeFormat ... - OdataTypeFormat OdataTypeBasicFormat = "Format" - // OdataTypeMicrosoftMediaImageFormat ... - OdataTypeMicrosoftMediaImageFormat OdataTypeBasicFormat = "#Microsoft.Media.ImageFormat" - // OdataTypeMicrosoftMediaJpgFormat ... - OdataTypeMicrosoftMediaJpgFormat OdataTypeBasicFormat = "#Microsoft.Media.JpgFormat" - // OdataTypeMicrosoftMediaMp4Format ... - OdataTypeMicrosoftMediaMp4Format OdataTypeBasicFormat = "#Microsoft.Media.Mp4Format" - // OdataTypeMicrosoftMediaMultiBitrateFormat ... - OdataTypeMicrosoftMediaMultiBitrateFormat OdataTypeBasicFormat = "#Microsoft.Media.MultiBitrateFormat" - // OdataTypeMicrosoftMediaPngFormat ... - OdataTypeMicrosoftMediaPngFormat OdataTypeBasicFormat = "#Microsoft.Media.PngFormat" - // OdataTypeMicrosoftMediaTransportStreamFormat ... - OdataTypeMicrosoftMediaTransportStreamFormat OdataTypeBasicFormat = "#Microsoft.Media.TransportStreamFormat" -) - -// PossibleOdataTypeBasicFormatValues returns an array of possible values for the OdataTypeBasicFormat const type. -func PossibleOdataTypeBasicFormatValues() []OdataTypeBasicFormat { - return []OdataTypeBasicFormat{OdataTypeFormat, OdataTypeMicrosoftMediaImageFormat, OdataTypeMicrosoftMediaJpgFormat, OdataTypeMicrosoftMediaMp4Format, OdataTypeMicrosoftMediaMultiBitrateFormat, OdataTypeMicrosoftMediaPngFormat, OdataTypeMicrosoftMediaTransportStreamFormat} -} - -// OdataTypeBasicInputDefinition enumerates the values for odata type basic input definition. -type OdataTypeBasicInputDefinition string - -const ( - // OdataTypeInputDefinition ... - OdataTypeInputDefinition OdataTypeBasicInputDefinition = "InputDefinition" - // OdataTypeMicrosoftMediaFromAllInputFile ... - OdataTypeMicrosoftMediaFromAllInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromAllInputFile" - // OdataTypeMicrosoftMediaFromEachInputFile ... - OdataTypeMicrosoftMediaFromEachInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromEachInputFile" - // OdataTypeMicrosoftMediaInputFile ... - OdataTypeMicrosoftMediaInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.InputFile" -) - -// PossibleOdataTypeBasicInputDefinitionValues returns an array of possible values for the OdataTypeBasicInputDefinition const type. -func PossibleOdataTypeBasicInputDefinitionValues() []OdataTypeBasicInputDefinition { - return []OdataTypeBasicInputDefinition{OdataTypeInputDefinition, OdataTypeMicrosoftMediaFromAllInputFile, OdataTypeMicrosoftMediaFromEachInputFile, OdataTypeMicrosoftMediaInputFile} -} - -// OdataTypeBasicJobInput enumerates the values for odata type basic job input. -type OdataTypeBasicJobInput string - -const ( - // OdataTypeJobInput ... - OdataTypeJobInput OdataTypeBasicJobInput = "JobInput" - // OdataTypeMicrosoftMediaJobInputAsset ... - OdataTypeMicrosoftMediaJobInputAsset OdataTypeBasicJobInput = "#Microsoft.Media.JobInputAsset" - // OdataTypeMicrosoftMediaJobInputClip ... - OdataTypeMicrosoftMediaJobInputClip OdataTypeBasicJobInput = "#Microsoft.Media.JobInputClip" - // OdataTypeMicrosoftMediaJobInputHTTP ... - OdataTypeMicrosoftMediaJobInputHTTP OdataTypeBasicJobInput = "#Microsoft.Media.JobInputHttp" - // OdataTypeMicrosoftMediaJobInputs ... - OdataTypeMicrosoftMediaJobInputs OdataTypeBasicJobInput = "#Microsoft.Media.JobInputs" - // OdataTypeMicrosoftMediaJobInputSequence ... - OdataTypeMicrosoftMediaJobInputSequence OdataTypeBasicJobInput = "#Microsoft.Media.JobInputSequence" -) - -// PossibleOdataTypeBasicJobInputValues returns an array of possible values for the OdataTypeBasicJobInput const type. -func PossibleOdataTypeBasicJobInputValues() []OdataTypeBasicJobInput { - return []OdataTypeBasicJobInput{OdataTypeJobInput, OdataTypeMicrosoftMediaJobInputAsset, OdataTypeMicrosoftMediaJobInputClip, OdataTypeMicrosoftMediaJobInputHTTP, OdataTypeMicrosoftMediaJobInputs, OdataTypeMicrosoftMediaJobInputSequence} -} - -// OdataTypeBasicJobOutput enumerates the values for odata type basic job output. -type OdataTypeBasicJobOutput string - -const ( - // OdataTypeJobOutput ... - OdataTypeJobOutput OdataTypeBasicJobOutput = "JobOutput" - // OdataTypeMicrosoftMediaJobOutputAsset ... - OdataTypeMicrosoftMediaJobOutputAsset OdataTypeBasicJobOutput = "#Microsoft.Media.JobOutputAsset" -) - -// PossibleOdataTypeBasicJobOutputValues returns an array of possible values for the OdataTypeBasicJobOutput const type. -func PossibleOdataTypeBasicJobOutputValues() []OdataTypeBasicJobOutput { - return []OdataTypeBasicJobOutput{OdataTypeJobOutput, OdataTypeMicrosoftMediaJobOutputAsset} -} - -// OdataTypeBasicLayer enumerates the values for odata type basic layer. -type OdataTypeBasicLayer string - -const ( - // OdataTypeLayer ... - OdataTypeLayer OdataTypeBasicLayer = "Layer" - // OdataTypeMicrosoftMediaH264Layer ... - OdataTypeMicrosoftMediaH264Layer OdataTypeBasicLayer = "#Microsoft.Media.H264Layer" - // OdataTypeMicrosoftMediaH265Layer ... - OdataTypeMicrosoftMediaH265Layer OdataTypeBasicLayer = "#Microsoft.Media.H265Layer" - // OdataTypeMicrosoftMediaH265VideoLayer ... - OdataTypeMicrosoftMediaH265VideoLayer OdataTypeBasicLayer = "#Microsoft.Media.H265VideoLayer" - // OdataTypeMicrosoftMediaJpgLayer ... - OdataTypeMicrosoftMediaJpgLayer OdataTypeBasicLayer = "#Microsoft.Media.JpgLayer" - // OdataTypeMicrosoftMediaPngLayer ... - OdataTypeMicrosoftMediaPngLayer OdataTypeBasicLayer = "#Microsoft.Media.PngLayer" - // OdataTypeMicrosoftMediaVideoLayer ... - OdataTypeMicrosoftMediaVideoLayer OdataTypeBasicLayer = "#Microsoft.Media.VideoLayer" -) - -// PossibleOdataTypeBasicLayerValues returns an array of possible values for the OdataTypeBasicLayer const type. -func PossibleOdataTypeBasicLayerValues() []OdataTypeBasicLayer { - return []OdataTypeBasicLayer{OdataTypeLayer, OdataTypeMicrosoftMediaH264Layer, OdataTypeMicrosoftMediaH265Layer, OdataTypeMicrosoftMediaH265VideoLayer, OdataTypeMicrosoftMediaJpgLayer, OdataTypeMicrosoftMediaPngLayer, OdataTypeMicrosoftMediaVideoLayer} -} - -// OdataTypeBasicOverlay enumerates the values for odata type basic overlay. -type OdataTypeBasicOverlay string - -const ( - // OdataTypeMicrosoftMediaAudioOverlay ... - OdataTypeMicrosoftMediaAudioOverlay OdataTypeBasicOverlay = "#Microsoft.Media.AudioOverlay" - // OdataTypeMicrosoftMediaVideoOverlay ... - OdataTypeMicrosoftMediaVideoOverlay OdataTypeBasicOverlay = "#Microsoft.Media.VideoOverlay" - // OdataTypeOverlay ... - OdataTypeOverlay OdataTypeBasicOverlay = "Overlay" -) - -// PossibleOdataTypeBasicOverlayValues returns an array of possible values for the OdataTypeBasicOverlay const type. -func PossibleOdataTypeBasicOverlayValues() []OdataTypeBasicOverlay { - return []OdataTypeBasicOverlay{OdataTypeMicrosoftMediaAudioOverlay, OdataTypeMicrosoftMediaVideoOverlay, OdataTypeOverlay} -} - -// OdataTypeBasicPreset enumerates the values for odata type basic preset. -type OdataTypeBasicPreset string - -const ( - // OdataTypeMicrosoftMediaAudioAnalyzerPreset ... - OdataTypeMicrosoftMediaAudioAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.AudioAnalyzerPreset" - // OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset ... - OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.BuiltInStandardEncoderPreset" - // OdataTypeMicrosoftMediaFaceDetectorPreset ... - OdataTypeMicrosoftMediaFaceDetectorPreset OdataTypeBasicPreset = "#Microsoft.Media.FaceDetectorPreset" - // OdataTypeMicrosoftMediaStandardEncoderPreset ... - OdataTypeMicrosoftMediaStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.StandardEncoderPreset" - // OdataTypeMicrosoftMediaVideoAnalyzerPreset ... - OdataTypeMicrosoftMediaVideoAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.VideoAnalyzerPreset" - // OdataTypePreset ... - OdataTypePreset OdataTypeBasicPreset = "Preset" -) - -// PossibleOdataTypeBasicPresetValues returns an array of possible values for the OdataTypeBasicPreset const type. -func PossibleOdataTypeBasicPresetValues() []OdataTypeBasicPreset { - return []OdataTypeBasicPreset{OdataTypeMicrosoftMediaAudioAnalyzerPreset, OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, OdataTypeMicrosoftMediaFaceDetectorPreset, OdataTypeMicrosoftMediaStandardEncoderPreset, OdataTypeMicrosoftMediaVideoAnalyzerPreset, OdataTypePreset} -} - -// OdataTypeBasicTrackDescriptor enumerates the values for odata type basic track descriptor. -type OdataTypeBasicTrackDescriptor string - -const ( - // OdataTypeMicrosoftMediaAudioTrackDescriptor ... - OdataTypeMicrosoftMediaAudioTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.AudioTrackDescriptor" - // OdataTypeMicrosoftMediaSelectAudioTrackByAttribute ... - OdataTypeMicrosoftMediaSelectAudioTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackByAttribute" - // OdataTypeMicrosoftMediaSelectAudioTrackByID ... - OdataTypeMicrosoftMediaSelectAudioTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackById" - // OdataTypeMicrosoftMediaSelectVideoTrackByAttribute ... - OdataTypeMicrosoftMediaSelectVideoTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackByAttribute" - // OdataTypeMicrosoftMediaSelectVideoTrackByID ... - OdataTypeMicrosoftMediaSelectVideoTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackById" - // OdataTypeMicrosoftMediaVideoTrackDescriptor ... - OdataTypeMicrosoftMediaVideoTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.VideoTrackDescriptor" - // OdataTypeTrackDescriptor ... - OdataTypeTrackDescriptor OdataTypeBasicTrackDescriptor = "TrackDescriptor" -) - -// PossibleOdataTypeBasicTrackDescriptorValues returns an array of possible values for the OdataTypeBasicTrackDescriptor const type. -func PossibleOdataTypeBasicTrackDescriptorValues() []OdataTypeBasicTrackDescriptor { - return []OdataTypeBasicTrackDescriptor{OdataTypeMicrosoftMediaAudioTrackDescriptor, OdataTypeMicrosoftMediaSelectAudioTrackByAttribute, OdataTypeMicrosoftMediaSelectAudioTrackByID, OdataTypeMicrosoftMediaSelectVideoTrackByAttribute, OdataTypeMicrosoftMediaSelectVideoTrackByID, OdataTypeMicrosoftMediaVideoTrackDescriptor, OdataTypeTrackDescriptor} -} - -// OnErrorType enumerates the values for on error type. -type OnErrorType string - -const ( - // ContinueJob Tells the service that if this TransformOutput fails, then allow any other TransformOutput - // to continue. - ContinueJob OnErrorType = "ContinueJob" - // StopProcessingJob Tells the service that if this TransformOutput fails, then any other incomplete - // TransformOutputs can be stopped. - StopProcessingJob OnErrorType = "StopProcessingJob" -) - -// PossibleOnErrorTypeValues returns an array of possible values for the OnErrorType const type. -func PossibleOnErrorTypeValues() []OnErrorType { - return []OnErrorType{ContinueJob, StopProcessingJob} -} - -// Priority enumerates the values for priority. -type Priority string - -const ( - // PriorityHigh Used for TransformOutputs that should take precedence over others. - PriorityHigh Priority = "High" - // PriorityLow Used for TransformOutputs that can be generated after Normal and High priority - // TransformOutputs. - PriorityLow Priority = "Low" - // PriorityNormal Used for TransformOutputs that can be generated at Normal priority. - PriorityNormal Priority = "Normal" -) - -// PossiblePriorityValues returns an array of possible values for the Priority const type. -func PossiblePriorityValues() []Priority { - return []Priority{PriorityHigh, PriorityLow, PriorityNormal} -} - -// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection -// provisioning state. -type PrivateEndpointConnectionProvisioningState string - -const ( - // PrivateEndpointConnectionProvisioningStateCreating ... - PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" - // PrivateEndpointConnectionProvisioningStateDeleting ... - PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" - // PrivateEndpointConnectionProvisioningStateFailed ... - PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" - // PrivateEndpointConnectionProvisioningStateSucceeded ... - PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" -) - -// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. -func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { - return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} -} - -// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. -type PrivateEndpointServiceConnectionStatus string - -const ( - // Approved ... - Approved PrivateEndpointServiceConnectionStatus = "Approved" - // Pending ... - Pending PrivateEndpointServiceConnectionStatus = "Pending" - // Rejected ... - Rejected PrivateEndpointServiceConnectionStatus = "Rejected" -) - -// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. -func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { - return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected} -} - -// Rotation enumerates the values for rotation. -type Rotation string - -const ( - // RotationAuto Automatically detect and rotate as needed. - RotationAuto Rotation = "Auto" - // RotationNone Do not rotate the video. If the output format supports it, any metadata about rotation is - // kept intact. - RotationNone Rotation = "None" - // RotationRotate0 Do not rotate the video but remove any metadata about the rotation. - RotationRotate0 Rotation = "Rotate0" - // RotationRotate180 Rotate 180 degrees clockwise. - RotationRotate180 Rotation = "Rotate180" - // RotationRotate270 Rotate 270 degrees clockwise. - RotationRotate270 Rotation = "Rotate270" - // RotationRotate90 Rotate 90 degrees clockwise. - RotationRotate90 Rotation = "Rotate90" -) - -// PossibleRotationValues returns an array of possible values for the Rotation const type. -func PossibleRotationValues() []Rotation { - return []Rotation{RotationAuto, RotationNone, RotationRotate0, RotationRotate180, RotationRotate270, RotationRotate90} -} - -// StorageAccountType enumerates the values for storage account type. -type StorageAccountType string - -const ( - // Primary The primary storage account for the Media Services account. - Primary StorageAccountType = "Primary" - // Secondary A secondary storage account for the Media Services account. - Secondary StorageAccountType = "Secondary" -) - -// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. -func PossibleStorageAccountTypeValues() []StorageAccountType { - return []StorageAccountType{Primary, Secondary} -} - -// StorageAuthentication enumerates the values for storage authentication. -type StorageAuthentication string - -const ( - // StorageAuthenticationManagedIdentity Managed Identity authentication. - StorageAuthenticationManagedIdentity StorageAuthentication = "ManagedIdentity" - // StorageAuthenticationSystem System authentication. - StorageAuthenticationSystem StorageAuthentication = "System" -) - -// PossibleStorageAuthenticationValues returns an array of possible values for the StorageAuthentication const type. -func PossibleStorageAuthenticationValues() []StorageAuthentication { - return []StorageAuthentication{StorageAuthenticationManagedIdentity, StorageAuthenticationSystem} -} - -// StreamingEndpointResourceState enumerates the values for streaming endpoint resource state. -type StreamingEndpointResourceState string - -const ( - // StreamingEndpointResourceStateDeleting The streaming endpoint is being deleted. - StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting" - // StreamingEndpointResourceStateRunning The streaming endpoint is running. It is able to stream content to - // clients - StreamingEndpointResourceStateRunning StreamingEndpointResourceState = "Running" - // StreamingEndpointResourceStateScaling The streaming endpoint is increasing or decreasing scale units. - StreamingEndpointResourceStateScaling StreamingEndpointResourceState = "Scaling" - // StreamingEndpointResourceStateStarting The streaming endpoint is transitioning to the running state. - StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting" - // StreamingEndpointResourceStateStopped The initial state of a streaming endpoint after creation. Content - // is not ready to be streamed from this endpoint. - StreamingEndpointResourceStateStopped StreamingEndpointResourceState = "Stopped" - // StreamingEndpointResourceStateStopping The streaming endpoint is transitioning to the stopped state. - StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping" -) - -// PossibleStreamingEndpointResourceStateValues returns an array of possible values for the StreamingEndpointResourceState const type. -func PossibleStreamingEndpointResourceStateValues() []StreamingEndpointResourceState { - return []StreamingEndpointResourceState{StreamingEndpointResourceStateDeleting, StreamingEndpointResourceStateRunning, StreamingEndpointResourceStateScaling, StreamingEndpointResourceStateStarting, StreamingEndpointResourceStateStopped, StreamingEndpointResourceStateStopping} -} - -// StreamingLocatorContentKeyType enumerates the values for streaming locator content key type. -type StreamingLocatorContentKeyType string - -const ( - // StreamingLocatorContentKeyTypeCommonEncryptionCbcs Common Encryption using CBCS - StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs" - // StreamingLocatorContentKeyTypeCommonEncryptionCenc Common Encryption using CENC - StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc" - // StreamingLocatorContentKeyTypeEnvelopeEncryption Envelope Encryption - StreamingLocatorContentKeyTypeEnvelopeEncryption StreamingLocatorContentKeyType = "EnvelopeEncryption" -) - -// PossibleStreamingLocatorContentKeyTypeValues returns an array of possible values for the StreamingLocatorContentKeyType const type. -func PossibleStreamingLocatorContentKeyTypeValues() []StreamingLocatorContentKeyType { - return []StreamingLocatorContentKeyType{StreamingLocatorContentKeyTypeCommonEncryptionCbcs, StreamingLocatorContentKeyTypeCommonEncryptionCenc, StreamingLocatorContentKeyTypeEnvelopeEncryption} -} - -// StreamingPolicyStreamingProtocol enumerates the values for streaming policy streaming protocol. -type StreamingPolicyStreamingProtocol string - -const ( - // StreamingPolicyStreamingProtocolDash DASH protocol - StreamingPolicyStreamingProtocolDash StreamingPolicyStreamingProtocol = "Dash" - // StreamingPolicyStreamingProtocolDownload Download protocol - StreamingPolicyStreamingProtocolDownload StreamingPolicyStreamingProtocol = "Download" - // StreamingPolicyStreamingProtocolHls HLS protocol - StreamingPolicyStreamingProtocolHls StreamingPolicyStreamingProtocol = "Hls" - // StreamingPolicyStreamingProtocolSmoothStreaming SmoothStreaming protocol - StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming" -) - -// PossibleStreamingPolicyStreamingProtocolValues returns an array of possible values for the StreamingPolicyStreamingProtocol const type. -func PossibleStreamingPolicyStreamingProtocolValues() []StreamingPolicyStreamingProtocol { - return []StreamingPolicyStreamingProtocol{StreamingPolicyStreamingProtocolDash, StreamingPolicyStreamingProtocolDownload, StreamingPolicyStreamingProtocolHls, StreamingPolicyStreamingProtocolSmoothStreaming} -} - -// StreamOptionsFlag enumerates the values for stream options flag. -type StreamOptionsFlag string - -const ( - // Default Live streaming with no special latency optimizations. - Default StreamOptionsFlag = "Default" - // LowLatency The live event provides lower end to end latency by reducing its internal buffers. This could - // result in more client buffering during playback if network bandwidth is low. - LowLatency StreamOptionsFlag = "LowLatency" -) - -// PossibleStreamOptionsFlagValues returns an array of possible values for the StreamOptionsFlag const type. -func PossibleStreamOptionsFlagValues() []StreamOptionsFlag { - return []StreamOptionsFlag{Default, LowLatency} -} - -// StretchMode enumerates the values for stretch mode. -type StretchMode string - -const ( - // StretchModeAutoFit Pad the output (with either letterbox or pillar box) to honor the output resolution, - // while ensuring that the active video region in the output has the same aspect ratio as the input. For - // example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be - // at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box - // regions 280 pixels wide at the left and right. - StretchModeAutoFit StretchMode = "AutoFit" - // StretchModeAutoSize Override the output resolution, and change it to match the display aspect ratio of - // the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for - // 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which - // maintains the input aspect ratio of 16:9. - StretchModeAutoSize StretchMode = "AutoSize" - // StretchModeNone Strictly respect the output resolution without considering the pixel aspect ratio or - // display aspect ratio of the input video. - StretchModeNone StretchMode = "None" -) - -// PossibleStretchModeValues returns an array of possible values for the StretchMode const type. -func PossibleStretchModeValues() []StretchMode { - return []StretchMode{StretchModeAutoFit, StretchModeAutoSize, StretchModeNone} -} - -// TrackAttribute enumerates the values for track attribute. -type TrackAttribute string - -const ( - // Bitrate The bitrate of the track. - Bitrate TrackAttribute = "Bitrate" - // Language The language of the track. - Language TrackAttribute = "Language" -) - -// PossibleTrackAttributeValues returns an array of possible values for the TrackAttribute const type. -func PossibleTrackAttributeValues() []TrackAttribute { - return []TrackAttribute{Bitrate, Language} -} - -// TrackPropertyCompareOperation enumerates the values for track property compare operation. -type TrackPropertyCompareOperation string - -const ( - // TrackPropertyCompareOperationEqual Equal operation - TrackPropertyCompareOperationEqual TrackPropertyCompareOperation = "Equal" - // TrackPropertyCompareOperationUnknown Unknown track property compare operation - TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown" -) - -// PossibleTrackPropertyCompareOperationValues returns an array of possible values for the TrackPropertyCompareOperation const type. -func PossibleTrackPropertyCompareOperationValues() []TrackPropertyCompareOperation { - return []TrackPropertyCompareOperation{TrackPropertyCompareOperationEqual, TrackPropertyCompareOperationUnknown} -} - -// TrackPropertyType enumerates the values for track property type. -type TrackPropertyType string - -const ( - // TrackPropertyTypeFourCC Track FourCC - TrackPropertyTypeFourCC TrackPropertyType = "FourCC" - // TrackPropertyTypeUnknown Unknown track property - TrackPropertyTypeUnknown TrackPropertyType = "Unknown" -) - -// PossibleTrackPropertyTypeValues returns an array of possible values for the TrackPropertyType const type. -func PossibleTrackPropertyTypeValues() []TrackPropertyType { - return []TrackPropertyType{TrackPropertyTypeFourCC, TrackPropertyTypeUnknown} -} - -// VideoSyncMode enumerates the values for video sync mode. -type VideoSyncMode string - -const ( - // VideoSyncModeAuto This is the default method. Chooses between Cfr and Vfr depending on muxer - // capabilities. For output format MP4, the default mode is Cfr. - VideoSyncModeAuto VideoSyncMode = "Auto" - // VideoSyncModeCfr Input frames will be repeated and/or dropped as needed to achieve exactly the requested - // constant frame rate. Recommended when the output frame rate is explicitly set at a specified value - VideoSyncModeCfr VideoSyncMode = "Cfr" - // VideoSyncModePassthrough The presentation timestamps on frames are passed through from the input file to - // the output file writer. Recommended when the input source has variable frame rate, and are attempting to - // produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if - // two or more frames in the input have duplicate timestamps, then the output will also have the same - // behavior - VideoSyncModePassthrough VideoSyncMode = "Passthrough" - // VideoSyncModeVfr Similar to the Passthrough mode, but if the input has frames that have duplicate - // timestamps, then only one frame is passed through to the output, and others are dropped. Recommended - // when the number of output frames is expected to be equal to the number of input frames. For example, the - // output is used to calculate a quality metric like PSNR against the input - VideoSyncModeVfr VideoSyncMode = "Vfr" -) - -// PossibleVideoSyncModeValues returns an array of possible values for the VideoSyncMode const type. -func PossibleVideoSyncModeValues() []VideoSyncMode { - return []VideoSyncMode{VideoSyncModeAuto, VideoSyncModeCfr, VideoSyncModePassthrough, VideoSyncModeVfr} -} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/CHANGELOG.md similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/CHANGELOG.md rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/CHANGELOG.md diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/_meta.json b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/_meta.json similarity index 50% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/_meta.json rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/_meta.json index 40dde62fde77..0c219d913932 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/_meta.json +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/_meta.json @@ -1,11 +1,11 @@ { - "commit": "92ab22b49bd085116af0c61fada2c6c360702e9e", + "commit": "e6ee3d4f6a29f081eddada399bd1cb373133af02", "readme": "/_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", - "tag": "package-2020-05", - "use": "@microsoft.azure/autorest.go@2.1.180", + "tag": "package-2021-05", + "use": "@microsoft.azure/autorest.go@2.1.183", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.180 --tag=package-2020-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", + "autorest_command": "autorest --use=@microsoft.azure/autorest.go@2.1.183 --tag=package-2021-05 --go-sdk-folder=/_/azure-sdk-for-go --go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix /_/azure-rest-api-specs/specification/mediaservices/resource-manager/readme.md", "additional_properties": { - "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION" + "additional_options": "--go --verbose --use-onever --version=V2 --go.license-header=MICROSOFT_MIT_NO_VERSION --enum-prefix" } } \ No newline at end of file diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/accountfilters.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/accountfilters.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/accountfilters.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/assetfilters.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/assetfilters.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/assetfilters.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/assets.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/assets.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/assets.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/assets.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/client.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/client.go similarity index 98% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/client.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/client.go index 4fb86774490c..9ff0d9c22427 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/client.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/client.go @@ -1,4 +1,4 @@ -// Package media implements the Azure ARM Media service API version 2020-05-01. +// Package media implements the Azure ARM Media service API version . // // package media diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/contentkeypolicies.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/contentkeypolicies.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/contentkeypolicies.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/enums.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/enums.go new file mode 100644 index 000000000000..c8e82cb50cc6 --- /dev/null +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/enums.go @@ -0,0 +1,1487 @@ +package media + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AacAudioProfile enumerates the values for aac audio profile. +type AacAudioProfile string + +const ( + // AacAudioProfileAacLc Specifies that the output audio is to be encoded into AAC Low Complexity profile + // (AAC-LC). + AacAudioProfileAacLc AacAudioProfile = "AacLc" + // AacAudioProfileHeAacV1 Specifies that the output audio is to be encoded into HE-AAC v1 profile. + AacAudioProfileHeAacV1 AacAudioProfile = "HeAacV1" + // AacAudioProfileHeAacV2 Specifies that the output audio is to be encoded into HE-AAC v2 profile. + AacAudioProfileHeAacV2 AacAudioProfile = "HeAacV2" +) + +// PossibleAacAudioProfileValues returns an array of possible values for the AacAudioProfile const type. +func PossibleAacAudioProfileValues() []AacAudioProfile { + return []AacAudioProfile{AacAudioProfileAacLc, AacAudioProfileHeAacV1, AacAudioProfileHeAacV2} +} + +// AccountEncryptionKeyType enumerates the values for account encryption key type. +type AccountEncryptionKeyType string + +const ( + // AccountEncryptionKeyTypeCustomerKey The Account Key is encrypted with a Customer Key. + AccountEncryptionKeyTypeCustomerKey AccountEncryptionKeyType = "CustomerKey" + // AccountEncryptionKeyTypeSystemKey The Account Key is encrypted with a System Key. + AccountEncryptionKeyTypeSystemKey AccountEncryptionKeyType = "SystemKey" +) + +// PossibleAccountEncryptionKeyTypeValues returns an array of possible values for the AccountEncryptionKeyType const type. +func PossibleAccountEncryptionKeyTypeValues() []AccountEncryptionKeyType { + return []AccountEncryptionKeyType{AccountEncryptionKeyTypeCustomerKey, AccountEncryptionKeyTypeSystemKey} +} + +// ActionType enumerates the values for action type. +type ActionType string + +const ( + // ActionTypeInternal An internal action. + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns an array of possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ActionTypeInternal} +} + +// AnalysisResolution enumerates the values for analysis resolution. +type AnalysisResolution string + +const ( + // AnalysisResolutionSourceResolution ... + AnalysisResolutionSourceResolution AnalysisResolution = "SourceResolution" + // AnalysisResolutionStandardDefinition ... + AnalysisResolutionStandardDefinition AnalysisResolution = "StandardDefinition" +) + +// PossibleAnalysisResolutionValues returns an array of possible values for the AnalysisResolution const type. +func PossibleAnalysisResolutionValues() []AnalysisResolution { + return []AnalysisResolution{AnalysisResolutionSourceResolution, AnalysisResolutionStandardDefinition} +} + +// AssetContainerPermission enumerates the values for asset container permission. +type AssetContainerPermission string + +const ( + // AssetContainerPermissionRead The SAS URL will allow read access to the container. + AssetContainerPermissionRead AssetContainerPermission = "Read" + // AssetContainerPermissionReadWrite The SAS URL will allow read and write access to the container. + AssetContainerPermissionReadWrite AssetContainerPermission = "ReadWrite" + // AssetContainerPermissionReadWriteDelete The SAS URL will allow read, write and delete access to the + // container. + AssetContainerPermissionReadWriteDelete AssetContainerPermission = "ReadWriteDelete" +) + +// PossibleAssetContainerPermissionValues returns an array of possible values for the AssetContainerPermission const type. +func PossibleAssetContainerPermissionValues() []AssetContainerPermission { + return []AssetContainerPermission{AssetContainerPermissionRead, AssetContainerPermissionReadWrite, AssetContainerPermissionReadWriteDelete} +} + +// AssetStorageEncryptionFormat enumerates the values for asset storage encryption format. +type AssetStorageEncryptionFormat string + +const ( + // AssetStorageEncryptionFormatMediaStorageClientEncryption The Asset is encrypted with Media Services + // client-side encryption. + AssetStorageEncryptionFormatMediaStorageClientEncryption AssetStorageEncryptionFormat = "MediaStorageClientEncryption" + // AssetStorageEncryptionFormatNone The Asset does not use client-side storage encryption (this is the only + // allowed value for new Assets). + AssetStorageEncryptionFormatNone AssetStorageEncryptionFormat = "None" +) + +// PossibleAssetStorageEncryptionFormatValues returns an array of possible values for the AssetStorageEncryptionFormat const type. +func PossibleAssetStorageEncryptionFormatValues() []AssetStorageEncryptionFormat { + return []AssetStorageEncryptionFormat{AssetStorageEncryptionFormatMediaStorageClientEncryption, AssetStorageEncryptionFormatNone} +} + +// AttributeFilter enumerates the values for attribute filter. +type AttributeFilter string + +const ( + // AttributeFilterAll All tracks will be included. + AttributeFilterAll AttributeFilter = "All" + // AttributeFilterBottom The first track will be included when the attribute is sorted in ascending order. + // Generally used to select the smallest bitrate. + AttributeFilterBottom AttributeFilter = "Bottom" + // AttributeFilterTop The first track will be included when the attribute is sorted in descending order. + // Generally used to select the largest bitrate. + AttributeFilterTop AttributeFilter = "Top" + // AttributeFilterValueEquals Any tracks that have an attribute equal to the value given will be included. + AttributeFilterValueEquals AttributeFilter = "ValueEquals" +) + +// PossibleAttributeFilterValues returns an array of possible values for the AttributeFilter const type. +func PossibleAttributeFilterValues() []AttributeFilter { + return []AttributeFilter{AttributeFilterAll, AttributeFilterBottom, AttributeFilterTop, AttributeFilterValueEquals} +} + +// AudioAnalysisMode enumerates the values for audio analysis mode. +type AudioAnalysisMode string + +const ( + // AudioAnalysisModeBasic This mode performs speech-to-text transcription and generation of a VTT + // subtitle/caption file. The output of this mode includes an Insights JSON file including only the + // keywords, transcription,and timing information. Automatic language detection and speaker diarization are + // not included in this mode. + AudioAnalysisModeBasic AudioAnalysisMode = "Basic" + // AudioAnalysisModeStandard Performs all operations included in the Basic mode, additionally performing + // language detection and speaker diarization. + AudioAnalysisModeStandard AudioAnalysisMode = "Standard" +) + +// PossibleAudioAnalysisModeValues returns an array of possible values for the AudioAnalysisMode const type. +func PossibleAudioAnalysisModeValues() []AudioAnalysisMode { + return []AudioAnalysisMode{AudioAnalysisModeBasic, AudioAnalysisModeStandard} +} + +// BlurType enumerates the values for blur type. +type BlurType string + +const ( + // BlurTypeBlack Black: Black out filter + BlurTypeBlack BlurType = "Black" + // BlurTypeBox Box: debug filter, bounding box only + BlurTypeBox BlurType = "Box" + // BlurTypeHigh High: Confuse blur filter + BlurTypeHigh BlurType = "High" + // BlurTypeLow Low: box-car blur filter + BlurTypeLow BlurType = "Low" + // BlurTypeMed Med: Gaussian blur filter + BlurTypeMed BlurType = "Med" +) + +// PossibleBlurTypeValues returns an array of possible values for the BlurType const type. +func PossibleBlurTypeValues() []BlurType { + return []BlurType{BlurTypeBlack, BlurTypeBox, BlurTypeHigh, BlurTypeLow, BlurTypeMed} +} + +// ChannelMapping enumerates the values for channel mapping. +type ChannelMapping string + +const ( + // ChannelMappingBackLeft The Back Left Channel. Sometimes referred to as the Left Surround Channel. + ChannelMappingBackLeft ChannelMapping = "BackLeft" + // ChannelMappingBackRight The Back Right Channel. Sometimes referred to as the Right Surround Channel. + ChannelMappingBackRight ChannelMapping = "BackRight" + // ChannelMappingCenter The Center Channel. + ChannelMappingCenter ChannelMapping = "Center" + // ChannelMappingFrontLeft The Front Left Channel. + ChannelMappingFrontLeft ChannelMapping = "FrontLeft" + // ChannelMappingFrontRight The Front Right Channel. + ChannelMappingFrontRight ChannelMapping = "FrontRight" + // ChannelMappingLowFrequencyEffects Low Frequency Effects Channel. Sometimes referred to as the + // Subwoofer. + ChannelMappingLowFrequencyEffects ChannelMapping = "LowFrequencyEffects" + // ChannelMappingStereoLeft The Left Stereo channel. Sometimes referred to as Down Mix Left. + ChannelMappingStereoLeft ChannelMapping = "StereoLeft" + // ChannelMappingStereoRight The Right Stereo channel. Sometimes referred to as Down Mix Right. + ChannelMappingStereoRight ChannelMapping = "StereoRight" +) + +// PossibleChannelMappingValues returns an array of possible values for the ChannelMapping const type. +func PossibleChannelMappingValues() []ChannelMapping { + return []ChannelMapping{ChannelMappingBackLeft, ChannelMappingBackRight, ChannelMappingCenter, ChannelMappingFrontLeft, ChannelMappingFrontRight, ChannelMappingLowFrequencyEffects, ChannelMappingStereoLeft, ChannelMappingStereoRight} +} + +// ContentKeyPolicyFairPlayRentalAndLeaseKeyType enumerates the values for content key policy fair play rental +// and lease key type. +type ContentKeyPolicyFairPlayRentalAndLeaseKeyType string + +const ( + // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry Dual expiry for offline rental. + ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "DualExpiry" + // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited Content key can be persisted and the + // valid duration is limited by the Rental Duration value + ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentLimited" + // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited Content key can be persisted with an + // unlimited duration + ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "PersistentUnlimited" + // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined Key duration is not specified. + ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Undefined" + // ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown Represents a + // ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version. + ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown ContentKeyPolicyFairPlayRentalAndLeaseKeyType = "Unknown" +) + +// PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues returns an array of possible values for the ContentKeyPolicyFairPlayRentalAndLeaseKeyType const type. +func PossibleContentKeyPolicyFairPlayRentalAndLeaseKeyTypeValues() []ContentKeyPolicyFairPlayRentalAndLeaseKeyType { + return []ContentKeyPolicyFairPlayRentalAndLeaseKeyType{ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined, ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown} +} + +// ContentKeyPolicyPlayReadyContentType enumerates the values for content key policy play ready content type. +type ContentKeyPolicyPlayReadyContentType string + +const ( + // ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload Ultraviolet download content type. + ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload ContentKeyPolicyPlayReadyContentType = "UltraVioletDownload" + // ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming Ultraviolet streaming content type. + ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming ContentKeyPolicyPlayReadyContentType = "UltraVioletStreaming" + // ContentKeyPolicyPlayReadyContentTypeUnknown Represents a ContentKeyPolicyPlayReadyContentType that is + // unavailable in current API version. + ContentKeyPolicyPlayReadyContentTypeUnknown ContentKeyPolicyPlayReadyContentType = "Unknown" + // ContentKeyPolicyPlayReadyContentTypeUnspecified Unspecified content type. + ContentKeyPolicyPlayReadyContentTypeUnspecified ContentKeyPolicyPlayReadyContentType = "Unspecified" +) + +// PossibleContentKeyPolicyPlayReadyContentTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyContentType const type. +func PossibleContentKeyPolicyPlayReadyContentTypeValues() []ContentKeyPolicyPlayReadyContentType { + return []ContentKeyPolicyPlayReadyContentType{ContentKeyPolicyPlayReadyContentTypeUltraVioletDownload, ContentKeyPolicyPlayReadyContentTypeUltraVioletStreaming, ContentKeyPolicyPlayReadyContentTypeUnknown, ContentKeyPolicyPlayReadyContentTypeUnspecified} +} + +// ContentKeyPolicyPlayReadyLicenseType enumerates the values for content key policy play ready license type. +type ContentKeyPolicyPlayReadyLicenseType string + +const ( + // ContentKeyPolicyPlayReadyLicenseTypeNonPersistent Non persistent license. + ContentKeyPolicyPlayReadyLicenseTypeNonPersistent ContentKeyPolicyPlayReadyLicenseType = "NonPersistent" + // ContentKeyPolicyPlayReadyLicenseTypePersistent Persistent license. Allows offline playback. + ContentKeyPolicyPlayReadyLicenseTypePersistent ContentKeyPolicyPlayReadyLicenseType = "Persistent" + // ContentKeyPolicyPlayReadyLicenseTypeUnknown Represents a ContentKeyPolicyPlayReadyLicenseType that is + // unavailable in current API version. + ContentKeyPolicyPlayReadyLicenseTypeUnknown ContentKeyPolicyPlayReadyLicenseType = "Unknown" +) + +// PossibleContentKeyPolicyPlayReadyLicenseTypeValues returns an array of possible values for the ContentKeyPolicyPlayReadyLicenseType const type. +func PossibleContentKeyPolicyPlayReadyLicenseTypeValues() []ContentKeyPolicyPlayReadyLicenseType { + return []ContentKeyPolicyPlayReadyLicenseType{ContentKeyPolicyPlayReadyLicenseTypeNonPersistent, ContentKeyPolicyPlayReadyLicenseTypePersistent, ContentKeyPolicyPlayReadyLicenseTypeUnknown} +} + +// ContentKeyPolicyPlayReadyUnknownOutputPassingOption enumerates the values for content key policy play ready +// unknown output passing option. +type ContentKeyPolicyPlayReadyUnknownOutputPassingOption string + +const ( + // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed Passing the video portion of protected + // content to an Unknown Output is allowed. + ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Allowed" + // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction Passing the video + // portion of protected content to an Unknown Output is allowed but with constrained resolution. + ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "AllowedWithVideoConstriction" + // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed Passing the video portion of protected + // content to an Unknown Output is not allowed. + ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "NotAllowed" + // ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown Represents a + // ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version. + ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown ContentKeyPolicyPlayReadyUnknownOutputPassingOption = "Unknown" +) + +// PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues returns an array of possible values for the ContentKeyPolicyPlayReadyUnknownOutputPassingOption const type. +func PossibleContentKeyPolicyPlayReadyUnknownOutputPassingOptionValues() []ContentKeyPolicyPlayReadyUnknownOutputPassingOption { + return []ContentKeyPolicyPlayReadyUnknownOutputPassingOption{ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionAllowedWithVideoConstriction, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionNotAllowed, ContentKeyPolicyPlayReadyUnknownOutputPassingOptionUnknown} +} + +// ContentKeyPolicyRestrictionTokenType enumerates the values for content key policy restriction token type. +type ContentKeyPolicyRestrictionTokenType string + +const ( + // ContentKeyPolicyRestrictionTokenTypeJwt JSON Web Token. + ContentKeyPolicyRestrictionTokenTypeJwt ContentKeyPolicyRestrictionTokenType = "Jwt" + // ContentKeyPolicyRestrictionTokenTypeSwt Simple Web Token. + ContentKeyPolicyRestrictionTokenTypeSwt ContentKeyPolicyRestrictionTokenType = "Swt" + // ContentKeyPolicyRestrictionTokenTypeUnknown Represents a ContentKeyPolicyRestrictionTokenType that is + // unavailable in current API version. + ContentKeyPolicyRestrictionTokenTypeUnknown ContentKeyPolicyRestrictionTokenType = "Unknown" +) + +// PossibleContentKeyPolicyRestrictionTokenTypeValues returns an array of possible values for the ContentKeyPolicyRestrictionTokenType const type. +func PossibleContentKeyPolicyRestrictionTokenTypeValues() []ContentKeyPolicyRestrictionTokenType { + return []ContentKeyPolicyRestrictionTokenType{ContentKeyPolicyRestrictionTokenTypeJwt, ContentKeyPolicyRestrictionTokenTypeSwt, ContentKeyPolicyRestrictionTokenTypeUnknown} +} + +// CreatedByType enumerates the values for created by type. +type CreatedByType string + +const ( + // CreatedByTypeApplication ... + CreatedByTypeApplication CreatedByType = "Application" + // CreatedByTypeKey ... + CreatedByTypeKey CreatedByType = "Key" + // CreatedByTypeManagedIdentity ... + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + // CreatedByTypeUser ... + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser} +} + +// DefaultAction enumerates the values for default action. +type DefaultAction string + +const ( + // DefaultActionAllow All public IP addresses are allowed. + DefaultActionAllow DefaultAction = "Allow" + // DefaultActionDeny Public IP addresses are blocked. + DefaultActionDeny DefaultAction = "Deny" +) + +// PossibleDefaultActionValues returns an array of possible values for the DefaultAction const type. +func PossibleDefaultActionValues() []DefaultAction { + return []DefaultAction{DefaultActionAllow, DefaultActionDeny} +} + +// DeinterlaceMode enumerates the values for deinterlace mode. +type DeinterlaceMode string + +const ( + // DeinterlaceModeAutoPixelAdaptive Apply automatic pixel adaptive de-interlacing on each frame in the + // input video. + DeinterlaceModeAutoPixelAdaptive DeinterlaceMode = "AutoPixelAdaptive" + // DeinterlaceModeOff Disables de-interlacing of the source video. + DeinterlaceModeOff DeinterlaceMode = "Off" +) + +// PossibleDeinterlaceModeValues returns an array of possible values for the DeinterlaceMode const type. +func PossibleDeinterlaceModeValues() []DeinterlaceMode { + return []DeinterlaceMode{DeinterlaceModeAutoPixelAdaptive, DeinterlaceModeOff} +} + +// DeinterlaceParity enumerates the values for deinterlace parity. +type DeinterlaceParity string + +const ( + // DeinterlaceParityAuto Automatically detect the order of fields + DeinterlaceParityAuto DeinterlaceParity = "Auto" + // DeinterlaceParityBottomFieldFirst Apply bottom field first processing of input video. + DeinterlaceParityBottomFieldFirst DeinterlaceParity = "BottomFieldFirst" + // DeinterlaceParityTopFieldFirst Apply top field first processing of input video. + DeinterlaceParityTopFieldFirst DeinterlaceParity = "TopFieldFirst" +) + +// PossibleDeinterlaceParityValues returns an array of possible values for the DeinterlaceParity const type. +func PossibleDeinterlaceParityValues() []DeinterlaceParity { + return []DeinterlaceParity{DeinterlaceParityAuto, DeinterlaceParityBottomFieldFirst, DeinterlaceParityTopFieldFirst} +} + +// EncoderNamedPreset enumerates the values for encoder named preset. +type EncoderNamedPreset string + +const ( + // EncoderNamedPresetAACGoodQualityAudio Produces a single MP4 file containing only stereo audio encoded at + // 192 kbps. + EncoderNamedPresetAACGoodQualityAudio EncoderNamedPreset = "AACGoodQualityAudio" + // EncoderNamedPresetAdaptiveStreaming Produces a set of GOP aligned MP4 files with H.264 video and stereo + // AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The + // auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output + // will remain 720p at best. + EncoderNamedPresetAdaptiveStreaming EncoderNamedPreset = "AdaptiveStreaming" + // EncoderNamedPresetContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware + // encoding. Given any input content, the service performs an initial lightweight analysis of the input + // content, and uses the results to determine the optimal number of layers, appropriate bitrate and + // resolution settings for delivery by adaptive streaming. This preset is particularly effective for low + // and medium complexity videos, where the output files will be at lower bitrates but at a quality that + // still delivers a good experience to viewers. The output will contain MP4 files with video and audio + // interleaved. + EncoderNamedPresetContentAwareEncoding EncoderNamedPreset = "ContentAwareEncoding" + // EncoderNamedPresetContentAwareEncodingExperimental Exposes an experimental preset for content-aware + // encoding. Given any input content, the service attempts to automatically determine the optimal number of + // layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying + // algorithms will continue to evolve over time. The output will contain MP4 files with video and audio + // interleaved. + EncoderNamedPresetContentAwareEncodingExperimental EncoderNamedPreset = "ContentAwareEncodingExperimental" + // EncoderNamedPresetCopyAllBitrateNonInterleaved Copy all video and audio streams from the input asset as + // non-interleaved video and audio output files. This preset can be used to clip an existing asset or + // convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed. + EncoderNamedPresetCopyAllBitrateNonInterleaved EncoderNamedPreset = "CopyAllBitrateNonInterleaved" + // EncoderNamedPresetH264MultipleBitrate1080p Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 + // kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p. + EncoderNamedPresetH264MultipleBitrate1080p EncoderNamedPreset = "H264MultipleBitrate1080p" + // EncoderNamedPresetH264MultipleBitrate720p Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 + // kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p. + EncoderNamedPresetH264MultipleBitrate720p EncoderNamedPreset = "H264MultipleBitrate720p" + // EncoderNamedPresetH264MultipleBitrateSD Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps + // to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p. + EncoderNamedPresetH264MultipleBitrateSD EncoderNamedPreset = "H264MultipleBitrateSD" + // EncoderNamedPresetH264SingleBitrate1080p Produces an MP4 file where the video is encoded with H.264 + // codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC + // codec at 128 kbps. + EncoderNamedPresetH264SingleBitrate1080p EncoderNamedPreset = "H264SingleBitrate1080p" + // EncoderNamedPresetH264SingleBitrate720p Produces an MP4 file where the video is encoded with H.264 codec + // at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at + // 128 kbps. + EncoderNamedPresetH264SingleBitrate720p EncoderNamedPreset = "H264SingleBitrate720p" + // EncoderNamedPresetH264SingleBitrateSD Produces an MP4 file where the video is encoded with H.264 codec + // at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at + // 128 kbps. + EncoderNamedPresetH264SingleBitrateSD EncoderNamedPreset = "H264SingleBitrateSD" + // EncoderNamedPresetH265AdaptiveStreaming Produces a set of GOP aligned MP4 files with H.265 video and + // stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. + // The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, + // output will remain 720p at best. + EncoderNamedPresetH265AdaptiveStreaming EncoderNamedPreset = "H265AdaptiveStreaming" + // EncoderNamedPresetH265ContentAwareEncoding Produces a set of GOP-aligned MP4s by using content-aware + // encoding. Given any input content, the service performs an initial lightweight analysis of the input + // content, and uses the results to determine the optimal number of layers, appropriate bitrate and + // resolution settings for delivery by adaptive streaming. This preset is particularly effective for low + // and medium complexity videos, where the output files will be at lower bitrates but at a quality that + // still delivers a good experience to viewers. The output will contain MP4 files with video and audio + // interleaved. + EncoderNamedPresetH265ContentAwareEncoding EncoderNamedPreset = "H265ContentAwareEncoding" + // EncoderNamedPresetH265SingleBitrate1080p Produces an MP4 file where the video is encoded with H.265 + // codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC + // codec at 128 kbps. + EncoderNamedPresetH265SingleBitrate1080p EncoderNamedPreset = "H265SingleBitrate1080p" + // EncoderNamedPresetH265SingleBitrate4K Produces an MP4 file where the video is encoded with H.265 codec + // at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at + // 128 kbps. + EncoderNamedPresetH265SingleBitrate4K EncoderNamedPreset = "H265SingleBitrate4K" + // EncoderNamedPresetH265SingleBitrate720p Produces an MP4 file where the video is encoded with H.265 codec + // at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at + // 128 kbps. + EncoderNamedPresetH265SingleBitrate720p EncoderNamedPreset = "H265SingleBitrate720p" +) + +// PossibleEncoderNamedPresetValues returns an array of possible values for the EncoderNamedPreset const type. +func PossibleEncoderNamedPresetValues() []EncoderNamedPreset { + return []EncoderNamedPreset{EncoderNamedPresetAACGoodQualityAudio, EncoderNamedPresetAdaptiveStreaming, EncoderNamedPresetContentAwareEncoding, EncoderNamedPresetContentAwareEncodingExperimental, EncoderNamedPresetCopyAllBitrateNonInterleaved, EncoderNamedPresetH264MultipleBitrate1080p, EncoderNamedPresetH264MultipleBitrate720p, EncoderNamedPresetH264MultipleBitrateSD, EncoderNamedPresetH264SingleBitrate1080p, EncoderNamedPresetH264SingleBitrate720p, EncoderNamedPresetH264SingleBitrateSD, EncoderNamedPresetH265AdaptiveStreaming, EncoderNamedPresetH265ContentAwareEncoding, EncoderNamedPresetH265SingleBitrate1080p, EncoderNamedPresetH265SingleBitrate4K, EncoderNamedPresetH265SingleBitrate720p} +} + +// EncryptionScheme enumerates the values for encryption scheme. +type EncryptionScheme string + +const ( + // EncryptionSchemeCommonEncryptionCbcs CommonEncryptionCbcs scheme + EncryptionSchemeCommonEncryptionCbcs EncryptionScheme = "CommonEncryptionCbcs" + // EncryptionSchemeCommonEncryptionCenc CommonEncryptionCenc scheme + EncryptionSchemeCommonEncryptionCenc EncryptionScheme = "CommonEncryptionCenc" + // EncryptionSchemeEnvelopeEncryption EnvelopeEncryption scheme + EncryptionSchemeEnvelopeEncryption EncryptionScheme = "EnvelopeEncryption" + // EncryptionSchemeNoEncryption NoEncryption scheme + EncryptionSchemeNoEncryption EncryptionScheme = "NoEncryption" +) + +// PossibleEncryptionSchemeValues returns an array of possible values for the EncryptionScheme const type. +func PossibleEncryptionSchemeValues() []EncryptionScheme { + return []EncryptionScheme{EncryptionSchemeCommonEncryptionCbcs, EncryptionSchemeCommonEncryptionCenc, EncryptionSchemeEnvelopeEncryption, EncryptionSchemeNoEncryption} +} + +// EntropyMode enumerates the values for entropy mode. +type EntropyMode string + +const ( + // EntropyModeCabac Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding. + EntropyModeCabac EntropyMode = "Cabac" + // EntropyModeCavlc Context Adaptive Variable Length Coder (CAVLC) entropy encoding. + EntropyModeCavlc EntropyMode = "Cavlc" +) + +// PossibleEntropyModeValues returns an array of possible values for the EntropyMode const type. +func PossibleEntropyModeValues() []EntropyMode { + return []EntropyMode{EntropyModeCabac, EntropyModeCavlc} +} + +// FaceRedactorMode enumerates the values for face redactor mode. +type FaceRedactorMode string + +const ( + // FaceRedactorModeAnalyze Analyze mode detects faces and outputs a metadata file with the results. Allows + // editing of the metadata file before faces are blurred with Redact mode. + FaceRedactorModeAnalyze FaceRedactorMode = "Analyze" + // FaceRedactorModeCombined Combined mode does the Analyze and Redact steps in one pass when editing the + // analyzed faces is not desired. + FaceRedactorModeCombined FaceRedactorMode = "Combined" + // FaceRedactorModeRedact Redact mode consumes the metadata file from Analyze mode and redacts the faces + // found. + FaceRedactorModeRedact FaceRedactorMode = "Redact" +) + +// PossibleFaceRedactorModeValues returns an array of possible values for the FaceRedactorMode const type. +func PossibleFaceRedactorModeValues() []FaceRedactorMode { + return []FaceRedactorMode{FaceRedactorModeAnalyze, FaceRedactorModeCombined, FaceRedactorModeRedact} +} + +// FilterTrackPropertyCompareOperation enumerates the values for filter track property compare operation. +type FilterTrackPropertyCompareOperation string + +const ( + // FilterTrackPropertyCompareOperationEqual The equal operation. + FilterTrackPropertyCompareOperationEqual FilterTrackPropertyCompareOperation = "Equal" + // FilterTrackPropertyCompareOperationNotEqual The not equal operation. + FilterTrackPropertyCompareOperationNotEqual FilterTrackPropertyCompareOperation = "NotEqual" +) + +// PossibleFilterTrackPropertyCompareOperationValues returns an array of possible values for the FilterTrackPropertyCompareOperation const type. +func PossibleFilterTrackPropertyCompareOperationValues() []FilterTrackPropertyCompareOperation { + return []FilterTrackPropertyCompareOperation{FilterTrackPropertyCompareOperationEqual, FilterTrackPropertyCompareOperationNotEqual} +} + +// FilterTrackPropertyType enumerates the values for filter track property type. +type FilterTrackPropertyType string + +const ( + // FilterTrackPropertyTypeBitrate The bitrate. + FilterTrackPropertyTypeBitrate FilterTrackPropertyType = "Bitrate" + // FilterTrackPropertyTypeFourCC The fourCC. + FilterTrackPropertyTypeFourCC FilterTrackPropertyType = "FourCC" + // FilterTrackPropertyTypeLanguage The language. + FilterTrackPropertyTypeLanguage FilterTrackPropertyType = "Language" + // FilterTrackPropertyTypeName The name. + FilterTrackPropertyTypeName FilterTrackPropertyType = "Name" + // FilterTrackPropertyTypeType The type. + FilterTrackPropertyTypeType FilterTrackPropertyType = "Type" + // FilterTrackPropertyTypeUnknown The unknown track property type. + FilterTrackPropertyTypeUnknown FilterTrackPropertyType = "Unknown" +) + +// PossibleFilterTrackPropertyTypeValues returns an array of possible values for the FilterTrackPropertyType const type. +func PossibleFilterTrackPropertyTypeValues() []FilterTrackPropertyType { + return []FilterTrackPropertyType{FilterTrackPropertyTypeBitrate, FilterTrackPropertyTypeFourCC, FilterTrackPropertyTypeLanguage, FilterTrackPropertyTypeName, FilterTrackPropertyTypeType, FilterTrackPropertyTypeUnknown} +} + +// H264Complexity enumerates the values for h264 complexity. +type H264Complexity string + +const ( + // H264ComplexityBalanced Tells the encoder to use settings that achieve a balance between speed and + // quality. + H264ComplexityBalanced H264Complexity = "Balanced" + // H264ComplexityQuality Tells the encoder to use settings that are optimized to produce higher quality + // output at the expense of slower overall encode time. + H264ComplexityQuality H264Complexity = "Quality" + // H264ComplexitySpeed Tells the encoder to use settings that are optimized for faster encoding. Quality is + // sacrificed to decrease encoding time. + H264ComplexitySpeed H264Complexity = "Speed" +) + +// PossibleH264ComplexityValues returns an array of possible values for the H264Complexity const type. +func PossibleH264ComplexityValues() []H264Complexity { + return []H264Complexity{H264ComplexityBalanced, H264ComplexityQuality, H264ComplexitySpeed} +} + +// H264VideoProfile enumerates the values for h264 video profile. +type H264VideoProfile string + +const ( + // H264VideoProfileAuto Tells the encoder to automatically determine the appropriate H.264 profile. + H264VideoProfileAuto H264VideoProfile = "Auto" + // H264VideoProfileBaseline Baseline profile + H264VideoProfileBaseline H264VideoProfile = "Baseline" + // H264VideoProfileHigh High profile. + H264VideoProfileHigh H264VideoProfile = "High" + // H264VideoProfileHigh422 High 4:2:2 profile. + H264VideoProfileHigh422 H264VideoProfile = "High422" + // H264VideoProfileHigh444 High 4:4:4 predictive profile. + H264VideoProfileHigh444 H264VideoProfile = "High444" + // H264VideoProfileMain Main profile + H264VideoProfileMain H264VideoProfile = "Main" +) + +// PossibleH264VideoProfileValues returns an array of possible values for the H264VideoProfile const type. +func PossibleH264VideoProfileValues() []H264VideoProfile { + return []H264VideoProfile{H264VideoProfileAuto, H264VideoProfileBaseline, H264VideoProfileHigh, H264VideoProfileHigh422, H264VideoProfileHigh444, H264VideoProfileMain} +} + +// H265Complexity enumerates the values for h265 complexity. +type H265Complexity string + +const ( + // H265ComplexityBalanced Tells the encoder to use settings that achieve a balance between speed and + // quality. + H265ComplexityBalanced H265Complexity = "Balanced" + // H265ComplexityQuality Tells the encoder to use settings that are optimized to produce higher quality + // output at the expense of slower overall encode time. + H265ComplexityQuality H265Complexity = "Quality" + // H265ComplexitySpeed Tells the encoder to use settings that are optimized for faster encoding. Quality is + // sacrificed to decrease encoding time. + H265ComplexitySpeed H265Complexity = "Speed" +) + +// PossibleH265ComplexityValues returns an array of possible values for the H265Complexity const type. +func PossibleH265ComplexityValues() []H265Complexity { + return []H265Complexity{H265ComplexityBalanced, H265ComplexityQuality, H265ComplexitySpeed} +} + +// H265VideoProfile enumerates the values for h265 video profile. +type H265VideoProfile string + +const ( + // H265VideoProfileAuto Tells the encoder to automatically determine the appropriate H.265 profile. + H265VideoProfileAuto H265VideoProfile = "Auto" + // H265VideoProfileMain Main profile + // (https://x265.readthedocs.io/en/default/cli.html?highlight=profile#profile-level-tier) + H265VideoProfileMain H265VideoProfile = "Main" +) + +// PossibleH265VideoProfileValues returns an array of possible values for the H265VideoProfile const type. +func PossibleH265VideoProfileValues() []H265VideoProfile { + return []H265VideoProfile{H265VideoProfileAuto, H265VideoProfileMain} +} + +// InsightsType enumerates the values for insights type. +type InsightsType string + +const ( + // InsightsTypeAllInsights Generate both audio and video insights. Fails if either audio or video Insights + // fail. + InsightsTypeAllInsights InsightsType = "AllInsights" + // InsightsTypeAudioInsightsOnly Generate audio only insights. Ignore video even if present. Fails if no + // audio is present. + InsightsTypeAudioInsightsOnly InsightsType = "AudioInsightsOnly" + // InsightsTypeVideoInsightsOnly Generate video only insights. Ignore audio if present. Fails if no video + // is present. + InsightsTypeVideoInsightsOnly InsightsType = "VideoInsightsOnly" +) + +// PossibleInsightsTypeValues returns an array of possible values for the InsightsType const type. +func PossibleInsightsTypeValues() []InsightsType { + return []InsightsType{InsightsTypeAllInsights, InsightsTypeAudioInsightsOnly, InsightsTypeVideoInsightsOnly} +} + +// JobErrorCategory enumerates the values for job error category. +type JobErrorCategory string + +const ( + // JobErrorCategoryConfiguration The error is configuration related. + JobErrorCategoryConfiguration JobErrorCategory = "Configuration" + // JobErrorCategoryContent The error is related to data in the input files. + JobErrorCategoryContent JobErrorCategory = "Content" + // JobErrorCategoryDownload The error is download related. + JobErrorCategoryDownload JobErrorCategory = "Download" + // JobErrorCategoryService The error is service related. + JobErrorCategoryService JobErrorCategory = "Service" + // JobErrorCategoryUpload The error is upload related. + JobErrorCategoryUpload JobErrorCategory = "Upload" +) + +// PossibleJobErrorCategoryValues returns an array of possible values for the JobErrorCategory const type. +func PossibleJobErrorCategoryValues() []JobErrorCategory { + return []JobErrorCategory{JobErrorCategoryConfiguration, JobErrorCategoryContent, JobErrorCategoryDownload, JobErrorCategoryService, JobErrorCategoryUpload} +} + +// JobErrorCode enumerates the values for job error code. +type JobErrorCode string + +const ( + // JobErrorCodeConfigurationUnsupported There was a problem with the combination of input files and the + // configuration settings applied, fix the configuration settings and retry with the same input, or change + // input to match the configuration. + JobErrorCodeConfigurationUnsupported JobErrorCode = "ConfigurationUnsupported" + // JobErrorCodeContentMalformed There was a problem with the input content (for example: zero byte files, + // or corrupt/non-decodable files), check the input files. + JobErrorCodeContentMalformed JobErrorCode = "ContentMalformed" + // JobErrorCodeContentUnsupported There was a problem with the format of the input (not valid media file, + // or an unsupported file/codec), check the validity of the input files. + JobErrorCodeContentUnsupported JobErrorCode = "ContentUnsupported" + // JobErrorCodeDownloadNotAccessible While trying to download the input files, the files were not + // accessible, please check the availability of the source. + JobErrorCodeDownloadNotAccessible JobErrorCode = "DownloadNotAccessible" + // JobErrorCodeDownloadTransientError While trying to download the input files, there was an issue during + // transfer (storage service, network errors), see details and check your source. + JobErrorCodeDownloadTransientError JobErrorCode = "DownloadTransientError" + // JobErrorCodeServiceError Fatal service error, please contact support. + JobErrorCodeServiceError JobErrorCode = "ServiceError" + // JobErrorCodeServiceTransientError Transient error, please retry, if retry is unsuccessful, please + // contact support. + JobErrorCodeServiceTransientError JobErrorCode = "ServiceTransientError" + // JobErrorCodeUploadNotAccessible While trying to upload the output files, the destination was not + // reachable, please check the availability of the destination. + JobErrorCodeUploadNotAccessible JobErrorCode = "UploadNotAccessible" + // JobErrorCodeUploadTransientError While trying to upload the output files, there was an issue during + // transfer (storage service, network errors), see details and check your destination. + JobErrorCodeUploadTransientError JobErrorCode = "UploadTransientError" +) + +// PossibleJobErrorCodeValues returns an array of possible values for the JobErrorCode const type. +func PossibleJobErrorCodeValues() []JobErrorCode { + return []JobErrorCode{JobErrorCodeConfigurationUnsupported, JobErrorCodeContentMalformed, JobErrorCodeContentUnsupported, JobErrorCodeDownloadNotAccessible, JobErrorCodeDownloadTransientError, JobErrorCodeServiceError, JobErrorCodeServiceTransientError, JobErrorCodeUploadNotAccessible, JobErrorCodeUploadTransientError} +} + +// JobRetry enumerates the values for job retry. +type JobRetry string + +const ( + // JobRetryDoNotRetry Issue needs to be investigated and then the job resubmitted with corrections or + // retried once the underlying issue has been corrected. + JobRetryDoNotRetry JobRetry = "DoNotRetry" + // JobRetryMayRetry Issue may be resolved after waiting for a period of time and resubmitting the same Job. + JobRetryMayRetry JobRetry = "MayRetry" +) + +// PossibleJobRetryValues returns an array of possible values for the JobRetry const type. +func PossibleJobRetryValues() []JobRetry { + return []JobRetry{JobRetryDoNotRetry, JobRetryMayRetry} +} + +// JobState enumerates the values for job state. +type JobState string + +const ( + // JobStateCanceled The job was canceled. This is a final state for the job. + JobStateCanceled JobState = "Canceled" + // JobStateCanceling The job is in the process of being canceled. This is a transient state for the job. + JobStateCanceling JobState = "Canceling" + // JobStateError The job has encountered an error. This is a final state for the job. + JobStateError JobState = "Error" + // JobStateFinished The job is finished. This is a final state for the job. + JobStateFinished JobState = "Finished" + // JobStateProcessing The job is processing. This is a transient state for the job. + JobStateProcessing JobState = "Processing" + // JobStateQueued The job is in a queued state, waiting for resources to become available. This is a + // transient state. + JobStateQueued JobState = "Queued" + // JobStateScheduled The job is being scheduled to run on an available resource. This is a transient state, + // between queued and processing states. + JobStateScheduled JobState = "Scheduled" +) + +// PossibleJobStateValues returns an array of possible values for the JobState const type. +func PossibleJobStateValues() []JobState { + return []JobState{JobStateCanceled, JobStateCanceling, JobStateError, JobStateFinished, JobStateProcessing, JobStateQueued, JobStateScheduled} +} + +// LiveEventEncodingType enumerates the values for live event encoding type. +type LiveEventEncodingType string + +const ( + // LiveEventEncodingTypeNone A contribution live encoder sends a multiple bitrate stream. The ingested + // stream passes through the live event without any further processing. It is also called the pass-through + // mode. + LiveEventEncodingTypeNone LiveEventEncodingType = "None" + // LiveEventEncodingTypePremium1080p A contribution live encoder sends a single bitrate stream to the live + // event and Media Services creates multiple bitrate streams. The output cannot exceed 1080p in resolution. + LiveEventEncodingTypePremium1080p LiveEventEncodingType = "Premium1080p" + // LiveEventEncodingTypeStandard A contribution live encoder sends a single bitrate stream to the live + // event and Media Services creates multiple bitrate streams. The output cannot exceed 720p in resolution. + LiveEventEncodingTypeStandard LiveEventEncodingType = "Standard" +) + +// PossibleLiveEventEncodingTypeValues returns an array of possible values for the LiveEventEncodingType const type. +func PossibleLiveEventEncodingTypeValues() []LiveEventEncodingType { + return []LiveEventEncodingType{LiveEventEncodingTypeNone, LiveEventEncodingTypePremium1080p, LiveEventEncodingTypeStandard} +} + +// LiveEventInputProtocol enumerates the values for live event input protocol. +type LiveEventInputProtocol string + +const ( + // LiveEventInputProtocolFragmentedMP4 Smooth Streaming input will be sent by the contribution encoder to + // the live event. + LiveEventInputProtocolFragmentedMP4 LiveEventInputProtocol = "FragmentedMP4" + // LiveEventInputProtocolRTMP RTMP input will be sent by the contribution encoder to the live event. + LiveEventInputProtocolRTMP LiveEventInputProtocol = "RTMP" +) + +// PossibleLiveEventInputProtocolValues returns an array of possible values for the LiveEventInputProtocol const type. +func PossibleLiveEventInputProtocolValues() []LiveEventInputProtocol { + return []LiveEventInputProtocol{LiveEventInputProtocolFragmentedMP4, LiveEventInputProtocolRTMP} +} + +// LiveEventResourceState enumerates the values for live event resource state. +type LiveEventResourceState string + +const ( + // LiveEventResourceStateAllocating Allocate action was called on the live event and resources are being + // provisioned for this live event. Once allocation completes successfully, the live event will transition + // to StandBy state. + LiveEventResourceStateAllocating LiveEventResourceState = "Allocating" + // LiveEventResourceStateDeleting The live event is being deleted. No billing occurs in this transient + // state. Updates or streaming are not allowed during this state. + LiveEventResourceStateDeleting LiveEventResourceState = "Deleting" + // LiveEventResourceStateRunning The live event resources have been allocated, ingest and preview URLs have + // been generated, and it is capable of receiving live streams. At this point, billing is active. You must + // explicitly call Stop on the live event resource to halt further billing. + LiveEventResourceStateRunning LiveEventResourceState = "Running" + // LiveEventResourceStateStandBy Live event resources have been provisioned and is ready to start. Billing + // occurs in this state. Most properties can still be updated, however ingest or streaming is not allowed + // during this state. + LiveEventResourceStateStandBy LiveEventResourceState = "StandBy" + // LiveEventResourceStateStarting The live event is being started and resources are being allocated. No + // billing occurs in this state. Updates or streaming are not allowed during this state. If an error + // occurs, the live event returns to the Stopped state. + LiveEventResourceStateStarting LiveEventResourceState = "Starting" + // LiveEventResourceStateStopped This is the initial state of the live event after creation (unless + // autostart was set to true.) No billing occurs in this state. In this state, the live event properties + // can be updated but streaming is not allowed. + LiveEventResourceStateStopped LiveEventResourceState = "Stopped" + // LiveEventResourceStateStopping The live event is being stopped and resources are being de-provisioned. + // No billing occurs in this transient state. Updates or streaming are not allowed during this state. + LiveEventResourceStateStopping LiveEventResourceState = "Stopping" +) + +// PossibleLiveEventResourceStateValues returns an array of possible values for the LiveEventResourceState const type. +func PossibleLiveEventResourceStateValues() []LiveEventResourceState { + return []LiveEventResourceState{LiveEventResourceStateAllocating, LiveEventResourceStateDeleting, LiveEventResourceStateRunning, LiveEventResourceStateStandBy, LiveEventResourceStateStarting, LiveEventResourceStateStopped, LiveEventResourceStateStopping} +} + +// LiveOutputResourceState enumerates the values for live output resource state. +type LiveOutputResourceState string + +const ( + // LiveOutputResourceStateCreating Live output is being created. No content is archived in the asset until + // the live output is in running state. + LiveOutputResourceStateCreating LiveOutputResourceState = "Creating" + // LiveOutputResourceStateDeleting Live output is being deleted. The live asset is being converted from + // live to on-demand asset. Any streaming URLs created on the live output asset continue to work. + LiveOutputResourceStateDeleting LiveOutputResourceState = "Deleting" + // LiveOutputResourceStateRunning Live output is running and archiving live streaming content to the asset + // if there is valid input from a contribution encoder. + LiveOutputResourceStateRunning LiveOutputResourceState = "Running" +) + +// PossibleLiveOutputResourceStateValues returns an array of possible values for the LiveOutputResourceState const type. +func PossibleLiveOutputResourceStateValues() []LiveOutputResourceState { + return []LiveOutputResourceState{LiveOutputResourceStateCreating, LiveOutputResourceStateDeleting, LiveOutputResourceStateRunning} +} + +// ManagedIdentityType enumerates the values for managed identity type. +type ManagedIdentityType string + +const ( + // ManagedIdentityTypeNone No managed identity. + ManagedIdentityTypeNone ManagedIdentityType = "None" + // ManagedIdentityTypeSystemAssigned A system-assigned managed identity. + ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" +) + +// PossibleManagedIdentityTypeValues returns an array of possible values for the ManagedIdentityType const type. +func PossibleManagedIdentityTypeValues() []ManagedIdentityType { + return []ManagedIdentityType{ManagedIdentityTypeNone, ManagedIdentityTypeSystemAssigned} +} + +// MetricAggregationType enumerates the values for metric aggregation type. +type MetricAggregationType string + +const ( + // MetricAggregationTypeAverage The average. + MetricAggregationTypeAverage MetricAggregationType = "Average" + // MetricAggregationTypeCount The count of a number of items, usually requests. + MetricAggregationTypeCount MetricAggregationType = "Count" + // MetricAggregationTypeTotal The sum. + MetricAggregationTypeTotal MetricAggregationType = "Total" +) + +// PossibleMetricAggregationTypeValues returns an array of possible values for the MetricAggregationType const type. +func PossibleMetricAggregationTypeValues() []MetricAggregationType { + return []MetricAggregationType{MetricAggregationTypeAverage, MetricAggregationTypeCount, MetricAggregationTypeTotal} +} + +// MetricUnit enumerates the values for metric unit. +type MetricUnit string + +const ( + // MetricUnitBytes The number of bytes. + MetricUnitBytes MetricUnit = "Bytes" + // MetricUnitCount The count. + MetricUnitCount MetricUnit = "Count" + // MetricUnitMilliseconds The number of milliseconds. + MetricUnitMilliseconds MetricUnit = "Milliseconds" +) + +// PossibleMetricUnitValues returns an array of possible values for the MetricUnit const type. +func PossibleMetricUnitValues() []MetricUnit { + return []MetricUnit{MetricUnitBytes, MetricUnitCount, MetricUnitMilliseconds} +} + +// OdataType enumerates the values for odata type. +type OdataType string + +const ( + // OdataTypeContentKeyPolicyPlayReadyContentKeyLocation ... + OdataTypeContentKeyPolicyPlayReadyContentKeyLocation OdataType = "ContentKeyPolicyPlayReadyContentKeyLocation" + // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader ... + OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader" + // OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier ... + OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier OdataType = "#Microsoft.Media.ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier" +) + +// PossibleOdataTypeValues returns an array of possible values for the OdataType const type. +func PossibleOdataTypeValues() []OdataType { + return []OdataType{OdataTypeContentKeyPolicyPlayReadyContentKeyLocation, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader, OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier} +} + +// OdataTypeBasicClipTime enumerates the values for odata type basic clip time. +type OdataTypeBasicClipTime string + +const ( + // OdataTypeBasicClipTimeOdataTypeClipTime ... + OdataTypeBasicClipTimeOdataTypeClipTime OdataTypeBasicClipTime = "ClipTime" + // OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime ... + OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime OdataTypeBasicClipTime = "#Microsoft.Media.AbsoluteClipTime" + // OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime ... + OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime OdataTypeBasicClipTime = "#Microsoft.Media.UtcClipTime" +) + +// PossibleOdataTypeBasicClipTimeValues returns an array of possible values for the OdataTypeBasicClipTime const type. +func PossibleOdataTypeBasicClipTimeValues() []OdataTypeBasicClipTime { + return []OdataTypeBasicClipTime{OdataTypeBasicClipTimeOdataTypeClipTime, OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime, OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime} +} + +// OdataTypeBasicCodec enumerates the values for odata type basic codec. +type OdataTypeBasicCodec string + +const ( + // OdataTypeBasicCodecOdataTypeCodec ... + OdataTypeBasicCodecOdataTypeCodec OdataTypeBasicCodec = "Codec" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio OdataTypeBasicCodec = "#Microsoft.Media.AacAudio" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio OdataTypeBasicCodec = "#Microsoft.Media.Audio" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio OdataTypeBasicCodec = "#Microsoft.Media.CopyAudio" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo OdataTypeBasicCodec = "#Microsoft.Media.CopyVideo" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video OdataTypeBasicCodec = "#Microsoft.Media.H264Video" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video OdataTypeBasicCodec = "#Microsoft.Media.H265Video" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaImage ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaImage OdataTypeBasicCodec = "#Microsoft.Media.Image" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage OdataTypeBasicCodec = "#Microsoft.Media.JpgImage" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage OdataTypeBasicCodec = "#Microsoft.Media.PngImage" + // OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo ... + OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo OdataTypeBasicCodec = "#Microsoft.Media.Video" +) + +// PossibleOdataTypeBasicCodecValues returns an array of possible values for the OdataTypeBasicCodec const type. +func PossibleOdataTypeBasicCodecValues() []OdataTypeBasicCodec { + return []OdataTypeBasicCodec{OdataTypeBasicCodecOdataTypeCodec, OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio, OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo, OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video, OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video, OdataTypeBasicCodecOdataTypeMicrosoftMediaImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage, OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo} +} + +// OdataTypeBasicContentKeyPolicyConfiguration enumerates the values for odata type basic content key policy +// configuration. +type OdataTypeBasicContentKeyPolicyConfiguration string + +const ( + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "ContentKeyPolicyConfiguration" + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration" + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyFairPlayConfiguration" + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration" + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyUnknownConfiguration" + // OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration ... + OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration OdataTypeBasicContentKeyPolicyConfiguration = "#Microsoft.Media.ContentKeyPolicyWidevineConfiguration" +) + +// PossibleOdataTypeBasicContentKeyPolicyConfigurationValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyConfiguration const type. +func PossibleOdataTypeBasicContentKeyPolicyConfigurationValues() []OdataTypeBasicContentKeyPolicyConfiguration { + return []OdataTypeBasicContentKeyPolicyConfiguration{OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration, OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration} +} + +// OdataTypeBasicContentKeyPolicyRestriction enumerates the values for odata type basic content key policy +// restriction. +type OdataTypeBasicContentKeyPolicyRestriction string + +const ( + // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction ... + OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction OdataTypeBasicContentKeyPolicyRestriction = "ContentKeyPolicyRestriction" + // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction ... + OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyOpenRestriction" + // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction ... + OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyTokenRestriction" + // OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction ... + OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction OdataTypeBasicContentKeyPolicyRestriction = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction" +) + +// PossibleOdataTypeBasicContentKeyPolicyRestrictionValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestriction const type. +func PossibleOdataTypeBasicContentKeyPolicyRestrictionValues() []OdataTypeBasicContentKeyPolicyRestriction { + return []OdataTypeBasicContentKeyPolicyRestriction{OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction} +} + +// OdataTypeBasicContentKeyPolicyRestrictionTokenKey enumerates the values for odata type basic content key +// policy restriction token key. +type OdataTypeBasicContentKeyPolicyRestrictionTokenKey string + +const ( + // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey ... + OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "ContentKeyPolicyRestrictionTokenKey" + // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey ... + OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyRsaTokenKey" + // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey ... + OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicySymmetricTokenKey" + // OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey ... + OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey OdataTypeBasicContentKeyPolicyRestrictionTokenKey = "#Microsoft.Media.ContentKeyPolicyX509CertificateTokenKey" +) + +// PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues returns an array of possible values for the OdataTypeBasicContentKeyPolicyRestrictionTokenKey const type. +func PossibleOdataTypeBasicContentKeyPolicyRestrictionTokenKeyValues() []OdataTypeBasicContentKeyPolicyRestrictionTokenKey { + return []OdataTypeBasicContentKeyPolicyRestrictionTokenKey{OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey} +} + +// OdataTypeBasicFormat enumerates the values for odata type basic format. +type OdataTypeBasicFormat string + +const ( + // OdataTypeBasicFormatOdataTypeFormat ... + OdataTypeBasicFormatOdataTypeFormat OdataTypeBasicFormat = "Format" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat OdataTypeBasicFormat = "#Microsoft.Media.ImageFormat" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat OdataTypeBasicFormat = "#Microsoft.Media.JpgFormat" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format OdataTypeBasicFormat = "#Microsoft.Media.Mp4Format" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat OdataTypeBasicFormat = "#Microsoft.Media.MultiBitrateFormat" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat OdataTypeBasicFormat = "#Microsoft.Media.PngFormat" + // OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat ... + OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat OdataTypeBasicFormat = "#Microsoft.Media.TransportStreamFormat" +) + +// PossibleOdataTypeBasicFormatValues returns an array of possible values for the OdataTypeBasicFormat const type. +func PossibleOdataTypeBasicFormatValues() []OdataTypeBasicFormat { + return []OdataTypeBasicFormat{OdataTypeBasicFormatOdataTypeFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format, OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat, OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat} +} + +// OdataTypeBasicInputDefinition enumerates the values for odata type basic input definition. +type OdataTypeBasicInputDefinition string + +const ( + // OdataTypeBasicInputDefinitionOdataTypeInputDefinition ... + OdataTypeBasicInputDefinitionOdataTypeInputDefinition OdataTypeBasicInputDefinition = "InputDefinition" + // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile ... + OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromAllInputFile" + // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile ... + OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.FromEachInputFile" + // OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile ... + OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile OdataTypeBasicInputDefinition = "#Microsoft.Media.InputFile" +) + +// PossibleOdataTypeBasicInputDefinitionValues returns an array of possible values for the OdataTypeBasicInputDefinition const type. +func PossibleOdataTypeBasicInputDefinitionValues() []OdataTypeBasicInputDefinition { + return []OdataTypeBasicInputDefinition{OdataTypeBasicInputDefinitionOdataTypeInputDefinition, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile, OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile} +} + +// OdataTypeBasicJobInput enumerates the values for odata type basic job input. +type OdataTypeBasicJobInput string + +const ( + // OdataTypeBasicJobInputOdataTypeJobInput ... + OdataTypeBasicJobInputOdataTypeJobInput OdataTypeBasicJobInput = "JobInput" + // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset ... + OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset OdataTypeBasicJobInput = "#Microsoft.Media.JobInputAsset" + // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip ... + OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip OdataTypeBasicJobInput = "#Microsoft.Media.JobInputClip" + // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP ... + OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP OdataTypeBasicJobInput = "#Microsoft.Media.JobInputHttp" + // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs ... + OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs OdataTypeBasicJobInput = "#Microsoft.Media.JobInputs" + // OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence ... + OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence OdataTypeBasicJobInput = "#Microsoft.Media.JobInputSequence" +) + +// PossibleOdataTypeBasicJobInputValues returns an array of possible values for the OdataTypeBasicJobInput const type. +func PossibleOdataTypeBasicJobInputValues() []OdataTypeBasicJobInput { + return []OdataTypeBasicJobInput{OdataTypeBasicJobInputOdataTypeJobInput, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs, OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence} +} + +// OdataTypeBasicJobOutput enumerates the values for odata type basic job output. +type OdataTypeBasicJobOutput string + +const ( + // OdataTypeBasicJobOutputOdataTypeJobOutput ... + OdataTypeBasicJobOutputOdataTypeJobOutput OdataTypeBasicJobOutput = "JobOutput" + // OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset ... + OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset OdataTypeBasicJobOutput = "#Microsoft.Media.JobOutputAsset" +) + +// PossibleOdataTypeBasicJobOutputValues returns an array of possible values for the OdataTypeBasicJobOutput const type. +func PossibleOdataTypeBasicJobOutputValues() []OdataTypeBasicJobOutput { + return []OdataTypeBasicJobOutput{OdataTypeBasicJobOutputOdataTypeJobOutput, OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset} +} + +// OdataTypeBasicLayer enumerates the values for odata type basic layer. +type OdataTypeBasicLayer string + +const ( + // OdataTypeBasicLayerOdataTypeLayer ... + OdataTypeBasicLayerOdataTypeLayer OdataTypeBasicLayer = "Layer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer OdataTypeBasicLayer = "#Microsoft.Media.H264Layer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer OdataTypeBasicLayer = "#Microsoft.Media.H265Layer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer OdataTypeBasicLayer = "#Microsoft.Media.H265VideoLayer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer OdataTypeBasicLayer = "#Microsoft.Media.JpgLayer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer OdataTypeBasicLayer = "#Microsoft.Media.PngLayer" + // OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer ... + OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer OdataTypeBasicLayer = "#Microsoft.Media.VideoLayer" +) + +// PossibleOdataTypeBasicLayerValues returns an array of possible values for the OdataTypeBasicLayer const type. +func PossibleOdataTypeBasicLayerValues() []OdataTypeBasicLayer { + return []OdataTypeBasicLayer{OdataTypeBasicLayerOdataTypeLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer, OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer, OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer} +} + +// OdataTypeBasicOverlay enumerates the values for odata type basic overlay. +type OdataTypeBasicOverlay string + +const ( + // OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay ... + OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay OdataTypeBasicOverlay = "#Microsoft.Media.AudioOverlay" + // OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay ... + OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay OdataTypeBasicOverlay = "#Microsoft.Media.VideoOverlay" + // OdataTypeBasicOverlayOdataTypeOverlay ... + OdataTypeBasicOverlayOdataTypeOverlay OdataTypeBasicOverlay = "Overlay" +) + +// PossibleOdataTypeBasicOverlayValues returns an array of possible values for the OdataTypeBasicOverlay const type. +func PossibleOdataTypeBasicOverlayValues() []OdataTypeBasicOverlay { + return []OdataTypeBasicOverlay{OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay, OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay, OdataTypeBasicOverlayOdataTypeOverlay} +} + +// OdataTypeBasicPreset enumerates the values for odata type basic preset. +type OdataTypeBasicPreset string + +const ( + // OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset ... + OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.AudioAnalyzerPreset" + // OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset ... + OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.BuiltInStandardEncoderPreset" + // OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset ... + OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset OdataTypeBasicPreset = "#Microsoft.Media.FaceDetectorPreset" + // OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset ... + OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset OdataTypeBasicPreset = "#Microsoft.Media.StandardEncoderPreset" + // OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset ... + OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset OdataTypeBasicPreset = "#Microsoft.Media.VideoAnalyzerPreset" + // OdataTypeBasicPresetOdataTypePreset ... + OdataTypeBasicPresetOdataTypePreset OdataTypeBasicPreset = "Preset" +) + +// PossibleOdataTypeBasicPresetValues returns an array of possible values for the OdataTypeBasicPreset const type. +func PossibleOdataTypeBasicPresetValues() []OdataTypeBasicPreset { + return []OdataTypeBasicPreset{OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset, OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset, OdataTypeBasicPresetOdataTypePreset} +} + +// OdataTypeBasicTrackDescriptor enumerates the values for odata type basic track descriptor. +type OdataTypeBasicTrackDescriptor string + +const ( + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.AudioTrackDescriptor" + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackByAttribute" + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectAudioTrackById" + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackByAttribute" + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID OdataTypeBasicTrackDescriptor = "#Microsoft.Media.SelectVideoTrackById" + // OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor ... + OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor OdataTypeBasicTrackDescriptor = "#Microsoft.Media.VideoTrackDescriptor" + // OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor ... + OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor OdataTypeBasicTrackDescriptor = "TrackDescriptor" +) + +// PossibleOdataTypeBasicTrackDescriptorValues returns an array of possible values for the OdataTypeBasicTrackDescriptor const type. +func PossibleOdataTypeBasicTrackDescriptorValues() []OdataTypeBasicTrackDescriptor { + return []OdataTypeBasicTrackDescriptor{OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID, OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor, OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor} +} + +// OnErrorType enumerates the values for on error type. +type OnErrorType string + +const ( + // OnErrorTypeContinueJob Tells the service that if this TransformOutput fails, then allow any other + // TransformOutput to continue. + OnErrorTypeContinueJob OnErrorType = "ContinueJob" + // OnErrorTypeStopProcessingJob Tells the service that if this TransformOutput fails, then any other + // incomplete TransformOutputs can be stopped. + OnErrorTypeStopProcessingJob OnErrorType = "StopProcessingJob" +) + +// PossibleOnErrorTypeValues returns an array of possible values for the OnErrorType const type. +func PossibleOnErrorTypeValues() []OnErrorType { + return []OnErrorType{OnErrorTypeContinueJob, OnErrorTypeStopProcessingJob} +} + +// Priority enumerates the values for priority. +type Priority string + +const ( + // PriorityHigh Used for TransformOutputs that should take precedence over others. + PriorityHigh Priority = "High" + // PriorityLow Used for TransformOutputs that can be generated after Normal and High priority + // TransformOutputs. + PriorityLow Priority = "Low" + // PriorityNormal Used for TransformOutputs that can be generated at Normal priority. + PriorityNormal Priority = "Normal" +) + +// PossiblePriorityValues returns an array of possible values for the Priority const type. +func PossiblePriorityValues() []Priority { + return []Priority{PriorityHigh, PriorityLow, PriorityNormal} +} + +// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection +// provisioning state. +type PrivateEndpointConnectionProvisioningState string + +const ( + // PrivateEndpointConnectionProvisioningStateCreating ... + PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" + // PrivateEndpointConnectionProvisioningStateDeleting ... + PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" + // PrivateEndpointConnectionProvisioningStateFailed ... + PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" + // PrivateEndpointConnectionProvisioningStateSucceeded ... + PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" +) + +// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. +func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { + return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} +} + +// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. +type PrivateEndpointServiceConnectionStatus string + +const ( + // PrivateEndpointServiceConnectionStatusApproved ... + PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved" + // PrivateEndpointServiceConnectionStatusPending ... + PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending" + // PrivateEndpointServiceConnectionStatusRejected ... + PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected" +) + +// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. +func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { + return []PrivateEndpointServiceConnectionStatus{PrivateEndpointServiceConnectionStatusApproved, PrivateEndpointServiceConnectionStatusPending, PrivateEndpointServiceConnectionStatusRejected} +} + +// Rotation enumerates the values for rotation. +type Rotation string + +const ( + // RotationAuto Automatically detect and rotate as needed. + RotationAuto Rotation = "Auto" + // RotationNone Do not rotate the video. If the output format supports it, any metadata about rotation is + // kept intact. + RotationNone Rotation = "None" + // RotationRotate0 Do not rotate the video but remove any metadata about the rotation. + RotationRotate0 Rotation = "Rotate0" + // RotationRotate180 Rotate 180 degrees clockwise. + RotationRotate180 Rotation = "Rotate180" + // RotationRotate270 Rotate 270 degrees clockwise. + RotationRotate270 Rotation = "Rotate270" + // RotationRotate90 Rotate 90 degrees clockwise. + RotationRotate90 Rotation = "Rotate90" +) + +// PossibleRotationValues returns an array of possible values for the Rotation const type. +func PossibleRotationValues() []Rotation { + return []Rotation{RotationAuto, RotationNone, RotationRotate0, RotationRotate180, RotationRotate270, RotationRotate90} +} + +// StorageAccountType enumerates the values for storage account type. +type StorageAccountType string + +const ( + // StorageAccountTypePrimary The primary storage account for the Media Services account. + StorageAccountTypePrimary StorageAccountType = "Primary" + // StorageAccountTypeSecondary A secondary storage account for the Media Services account. + StorageAccountTypeSecondary StorageAccountType = "Secondary" +) + +// PossibleStorageAccountTypeValues returns an array of possible values for the StorageAccountType const type. +func PossibleStorageAccountTypeValues() []StorageAccountType { + return []StorageAccountType{StorageAccountTypePrimary, StorageAccountTypeSecondary} +} + +// StorageAuthentication enumerates the values for storage authentication. +type StorageAuthentication string + +const ( + // StorageAuthenticationManagedIdentity Managed Identity authentication. + StorageAuthenticationManagedIdentity StorageAuthentication = "ManagedIdentity" + // StorageAuthenticationSystem System authentication. + StorageAuthenticationSystem StorageAuthentication = "System" +) + +// PossibleStorageAuthenticationValues returns an array of possible values for the StorageAuthentication const type. +func PossibleStorageAuthenticationValues() []StorageAuthentication { + return []StorageAuthentication{StorageAuthenticationManagedIdentity, StorageAuthenticationSystem} +} + +// StreamingEndpointResourceState enumerates the values for streaming endpoint resource state. +type StreamingEndpointResourceState string + +const ( + // StreamingEndpointResourceStateDeleting The streaming endpoint is being deleted. + StreamingEndpointResourceStateDeleting StreamingEndpointResourceState = "Deleting" + // StreamingEndpointResourceStateRunning The streaming endpoint is running. It is able to stream content to + // clients + StreamingEndpointResourceStateRunning StreamingEndpointResourceState = "Running" + // StreamingEndpointResourceStateScaling The streaming endpoint is increasing or decreasing scale units. + StreamingEndpointResourceStateScaling StreamingEndpointResourceState = "Scaling" + // StreamingEndpointResourceStateStarting The streaming endpoint is transitioning to the running state. + StreamingEndpointResourceStateStarting StreamingEndpointResourceState = "Starting" + // StreamingEndpointResourceStateStopped The initial state of a streaming endpoint after creation. Content + // is not ready to be streamed from this endpoint. + StreamingEndpointResourceStateStopped StreamingEndpointResourceState = "Stopped" + // StreamingEndpointResourceStateStopping The streaming endpoint is transitioning to the stopped state. + StreamingEndpointResourceStateStopping StreamingEndpointResourceState = "Stopping" +) + +// PossibleStreamingEndpointResourceStateValues returns an array of possible values for the StreamingEndpointResourceState const type. +func PossibleStreamingEndpointResourceStateValues() []StreamingEndpointResourceState { + return []StreamingEndpointResourceState{StreamingEndpointResourceStateDeleting, StreamingEndpointResourceStateRunning, StreamingEndpointResourceStateScaling, StreamingEndpointResourceStateStarting, StreamingEndpointResourceStateStopped, StreamingEndpointResourceStateStopping} +} + +// StreamingLocatorContentKeyType enumerates the values for streaming locator content key type. +type StreamingLocatorContentKeyType string + +const ( + // StreamingLocatorContentKeyTypeCommonEncryptionCbcs Common Encryption using CBCS + StreamingLocatorContentKeyTypeCommonEncryptionCbcs StreamingLocatorContentKeyType = "CommonEncryptionCbcs" + // StreamingLocatorContentKeyTypeCommonEncryptionCenc Common Encryption using CENC + StreamingLocatorContentKeyTypeCommonEncryptionCenc StreamingLocatorContentKeyType = "CommonEncryptionCenc" + // StreamingLocatorContentKeyTypeEnvelopeEncryption Envelope Encryption + StreamingLocatorContentKeyTypeEnvelopeEncryption StreamingLocatorContentKeyType = "EnvelopeEncryption" +) + +// PossibleStreamingLocatorContentKeyTypeValues returns an array of possible values for the StreamingLocatorContentKeyType const type. +func PossibleStreamingLocatorContentKeyTypeValues() []StreamingLocatorContentKeyType { + return []StreamingLocatorContentKeyType{StreamingLocatorContentKeyTypeCommonEncryptionCbcs, StreamingLocatorContentKeyTypeCommonEncryptionCenc, StreamingLocatorContentKeyTypeEnvelopeEncryption} +} + +// StreamingPolicyStreamingProtocol enumerates the values for streaming policy streaming protocol. +type StreamingPolicyStreamingProtocol string + +const ( + // StreamingPolicyStreamingProtocolDash DASH protocol + StreamingPolicyStreamingProtocolDash StreamingPolicyStreamingProtocol = "Dash" + // StreamingPolicyStreamingProtocolDownload Download protocol + StreamingPolicyStreamingProtocolDownload StreamingPolicyStreamingProtocol = "Download" + // StreamingPolicyStreamingProtocolHls HLS protocol + StreamingPolicyStreamingProtocolHls StreamingPolicyStreamingProtocol = "Hls" + // StreamingPolicyStreamingProtocolSmoothStreaming SmoothStreaming protocol + StreamingPolicyStreamingProtocolSmoothStreaming StreamingPolicyStreamingProtocol = "SmoothStreaming" +) + +// PossibleStreamingPolicyStreamingProtocolValues returns an array of possible values for the StreamingPolicyStreamingProtocol const type. +func PossibleStreamingPolicyStreamingProtocolValues() []StreamingPolicyStreamingProtocol { + return []StreamingPolicyStreamingProtocol{StreamingPolicyStreamingProtocolDash, StreamingPolicyStreamingProtocolDownload, StreamingPolicyStreamingProtocolHls, StreamingPolicyStreamingProtocolSmoothStreaming} +} + +// StreamOptionsFlag enumerates the values for stream options flag. +type StreamOptionsFlag string + +const ( + // StreamOptionsFlagDefault Live streaming with no special latency optimizations. + StreamOptionsFlagDefault StreamOptionsFlag = "Default" + // StreamOptionsFlagLowLatency The live event provides lower end to end latency by reducing its internal + // buffers. This could result in more client buffering during playback if network bandwidth is low. + StreamOptionsFlagLowLatency StreamOptionsFlag = "LowLatency" +) + +// PossibleStreamOptionsFlagValues returns an array of possible values for the StreamOptionsFlag const type. +func PossibleStreamOptionsFlagValues() []StreamOptionsFlag { + return []StreamOptionsFlag{StreamOptionsFlagDefault, StreamOptionsFlagLowLatency} +} + +// StretchMode enumerates the values for stretch mode. +type StretchMode string + +const ( + // StretchModeAutoFit Pad the output (with either letterbox or pillar box) to honor the output resolution, + // while ensuring that the active video region in the output has the same aspect ratio as the input. For + // example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be + // at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box + // regions 280 pixels wide at the left and right. + StretchModeAutoFit StretchMode = "AutoFit" + // StretchModeAutoSize Override the output resolution, and change it to match the display aspect ratio of + // the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for + // 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which + // maintains the input aspect ratio of 16:9. + StretchModeAutoSize StretchMode = "AutoSize" + // StretchModeNone Strictly respect the output resolution without considering the pixel aspect ratio or + // display aspect ratio of the input video. + StretchModeNone StretchMode = "None" +) + +// PossibleStretchModeValues returns an array of possible values for the StretchMode const type. +func PossibleStretchModeValues() []StretchMode { + return []StretchMode{StretchModeAutoFit, StretchModeAutoSize, StretchModeNone} +} + +// TrackAttribute enumerates the values for track attribute. +type TrackAttribute string + +const ( + // TrackAttributeBitrate The bitrate of the track. + TrackAttributeBitrate TrackAttribute = "Bitrate" + // TrackAttributeLanguage The language of the track. + TrackAttributeLanguage TrackAttribute = "Language" +) + +// PossibleTrackAttributeValues returns an array of possible values for the TrackAttribute const type. +func PossibleTrackAttributeValues() []TrackAttribute { + return []TrackAttribute{TrackAttributeBitrate, TrackAttributeLanguage} +} + +// TrackPropertyCompareOperation enumerates the values for track property compare operation. +type TrackPropertyCompareOperation string + +const ( + // TrackPropertyCompareOperationEqual Equal operation + TrackPropertyCompareOperationEqual TrackPropertyCompareOperation = "Equal" + // TrackPropertyCompareOperationUnknown Unknown track property compare operation + TrackPropertyCompareOperationUnknown TrackPropertyCompareOperation = "Unknown" +) + +// PossibleTrackPropertyCompareOperationValues returns an array of possible values for the TrackPropertyCompareOperation const type. +func PossibleTrackPropertyCompareOperationValues() []TrackPropertyCompareOperation { + return []TrackPropertyCompareOperation{TrackPropertyCompareOperationEqual, TrackPropertyCompareOperationUnknown} +} + +// TrackPropertyType enumerates the values for track property type. +type TrackPropertyType string + +const ( + // TrackPropertyTypeFourCC Track FourCC + TrackPropertyTypeFourCC TrackPropertyType = "FourCC" + // TrackPropertyTypeUnknown Unknown track property + TrackPropertyTypeUnknown TrackPropertyType = "Unknown" +) + +// PossibleTrackPropertyTypeValues returns an array of possible values for the TrackPropertyType const type. +func PossibleTrackPropertyTypeValues() []TrackPropertyType { + return []TrackPropertyType{TrackPropertyTypeFourCC, TrackPropertyTypeUnknown} +} + +// VideoSyncMode enumerates the values for video sync mode. +type VideoSyncMode string + +const ( + // VideoSyncModeAuto This is the default method. Chooses between Cfr and Vfr depending on muxer + // capabilities. For output format MP4, the default mode is Cfr. + VideoSyncModeAuto VideoSyncMode = "Auto" + // VideoSyncModeCfr Input frames will be repeated and/or dropped as needed to achieve exactly the requested + // constant frame rate. Recommended when the output frame rate is explicitly set at a specified value + VideoSyncModeCfr VideoSyncMode = "Cfr" + // VideoSyncModePassthrough The presentation timestamps on frames are passed through from the input file to + // the output file writer. Recommended when the input source has variable frame rate, and are attempting to + // produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if + // two or more frames in the input have duplicate timestamps, then the output will also have the same + // behavior + VideoSyncModePassthrough VideoSyncMode = "Passthrough" + // VideoSyncModeVfr Similar to the Passthrough mode, but if the input has frames that have duplicate + // timestamps, then only one frame is passed through to the output, and others are dropped. Recommended + // when the number of output frames is expected to be equal to the number of input frames. For example, the + // output is used to calculate a quality metric like PSNR against the input + VideoSyncModeVfr VideoSyncMode = "Vfr" +) + +// PossibleVideoSyncModeValues returns an array of possible values for the VideoSyncMode const type. +func PossibleVideoSyncModeValues() []VideoSyncMode { + return []VideoSyncMode{VideoSyncModeAuto, VideoSyncModeCfr, VideoSyncModePassthrough, VideoSyncModeVfr} +} diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/jobs.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/jobs.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/jobs.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/jobs.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/liveevents.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/liveevents.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/liveevents.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/liveevents.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/liveoutputs.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/liveoutputs.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/liveoutputs.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/locations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/locations.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/locations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/locations.go index 3d9bc4efdea9..bb6a143fa4ef 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/locations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/locations.go @@ -74,7 +74,7 @@ func (client LocationsClient) CheckNameAvailabilityPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/mediaservices.go similarity index 89% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/mediaservices.go index 57c0a8e70e2b..233c075f37c4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/mediaservices.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/mediaservices.go @@ -76,7 +76,7 @@ func (client MediaservicesClient) CreateOrUpdatePreparer(ctx context.Context, re "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -155,7 +155,7 @@ func (client MediaservicesClient) DeletePreparer(ctx context.Context, resourceGr "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -230,7 +230,7 @@ func (client MediaservicesClient) GetPreparer(ctx context.Context, resourceGroup "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -261,80 +261,6 @@ func (client MediaservicesClient) GetResponder(resp *http.Response) (result Serv return } -// GetBySubscription get the details of a Media Services account -// Parameters: -// accountName - the Media Services account name. -func (client MediaservicesClient) GetBySubscription(ctx context.Context, accountName string) (result Service, err error) { - if tracing.IsEnabled() { - ctx = tracing.StartSpan(ctx, fqdn+"/MediaservicesClient.GetBySubscription") - defer func() { - sc := -1 - if result.Response.Response != nil { - sc = result.Response.Response.StatusCode - } - tracing.EndSpan(ctx, sc, err) - }() - } - req, err := client.GetBySubscriptionPreparer(ctx, accountName) - if err != nil { - err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", nil, "Failure preparing request") - return - } - - resp, err := client.GetBySubscriptionSender(req) - if err != nil { - result.Response = autorest.Response{Response: resp} - err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure sending request") - return - } - - result, err = client.GetBySubscriptionResponder(resp) - if err != nil { - err = autorest.NewErrorWithError(err, "media.MediaservicesClient", "GetBySubscription", resp, "Failure responding to request") - return - } - - return -} - -// GetBySubscriptionPreparer prepares the GetBySubscription request. -func (client MediaservicesClient) GetBySubscriptionPreparer(ctx context.Context, accountName string) (*http.Request, error) { - pathParameters := map[string]interface{}{ - "accountName": autorest.Encode("path", accountName), - "subscriptionId": autorest.Encode("path", client.SubscriptionID), - } - - const APIVersion = "2020-05-01" - queryParameters := map[string]interface{}{ - "api-version": APIVersion, - } - - preparer := autorest.CreatePreparer( - autorest.AsGet(), - autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Media/mediaservices/{accountName}", pathParameters), - autorest.WithQueryParameters(queryParameters)) - return preparer.Prepare((&http.Request{}).WithContext(ctx)) -} - -// GetBySubscriptionSender sends the GetBySubscription request. The method will close the -// http.Response Body if it receives an error. -func (client MediaservicesClient) GetBySubscriptionSender(req *http.Request) (*http.Response, error) { - return client.Send(req, azure.DoRetryWithRegistration(client.Client)) -} - -// GetBySubscriptionResponder handles the response to the GetBySubscription request. The method always -// closes the http.Response Body. -func (client MediaservicesClient) GetBySubscriptionResponder(resp *http.Response) (result Service, err error) { - err = autorest.Respond( - resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), - autorest.ByUnmarshallingJSON(&result), - autorest.ByClosing()) - result.Response = autorest.Response{Response: resp} - return -} - // List list Media Services accounts in the resource group // Parameters: // resourceGroupName - the name of the resource group within the Azure subscription. @@ -383,7 +309,7 @@ func (client MediaservicesClient) ListPreparer(ctx context.Context, resourceGrou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -496,7 +422,7 @@ func (client MediaservicesClient) ListBySubscriptionPreparer(ctx context.Context "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -610,7 +536,7 @@ func (client MediaservicesClient) ListEdgePoliciesPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -689,7 +615,7 @@ func (client MediaservicesClient) SyncStorageKeysPreparer(ctx context.Context, r "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -726,7 +652,7 @@ func (client MediaservicesClient) SyncStorageKeysResponder(resp *http.Response) // resourceGroupName - the name of the resource group within the Azure subscription. // accountName - the Media Services account name. // parameters - the request parameters -func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters Service) (result Service, err error) { +func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName string, accountName string, parameters ServiceUpdate) (result Service, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/MediaservicesClient.Update") defer func() { @@ -760,19 +686,18 @@ func (client MediaservicesClient) Update(ctx context.Context, resourceGroupName } // UpdatePreparer prepares the Update request. -func (client MediaservicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters Service) (*http.Request, error) { +func (client MediaservicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, accountName string, parameters ServiceUpdate) (*http.Request, error) { pathParameters := map[string]interface{}{ "accountName": autorest.Encode("path", accountName), "resourceGroupName": autorest.Encode("path", resourceGroupName), "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } - parameters.SystemData = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/models.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/models.go similarity index 89% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/models.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/models.go index 261778b9f488..85a6214dcd99 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/models.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/models.go @@ -19,11 +19,11 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media" // AacAudio describes Advanced Audio Codec (AAC) audio encoding settings. type AacAudio struct { - // Profile - The encoding profile to be used when encoding audio with AAC. Possible values include: 'AacLc', 'HeAacV1', 'HeAacV2' + // Profile - The encoding profile to be used when encoding audio with AAC. Possible values include: 'AacAudioProfileAacLc', 'AacAudioProfileHeAacV1', 'AacAudioProfileHeAacV2' Profile AacAudioProfile `json:"profile,omitempty"` // Channels - The number of channels in the audio. Channels *int32 `json:"channels,omitempty"` @@ -33,13 +33,13 @@ type AacAudio struct { Bitrate *int32 `json:"bitrate,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for AacAudio. func (aa AacAudio) MarshalJSON() ([]byte, error) { - aa.OdataType = OdataTypeMicrosoftMediaAacAudio + aa.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio objectMap := make(map[string]interface{}) if aa.Profile != "" { objectMap["profile"] = aa.Profile @@ -143,13 +143,13 @@ func (aa AacAudio) AsBasicCodec() (BasicCodec, bool) { type AbsoluteClipTime struct { // Time - The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds. Time *string `json:"time,omitempty"` - // OdataType - Possible values include: 'OdataTypeClipTime', 'OdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeMicrosoftMediaUtcClipTime' + // OdataType - Possible values include: 'OdataTypeBasicClipTimeOdataTypeClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime' OdataType OdataTypeBasicClipTime `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for AbsoluteClipTime. func (act AbsoluteClipTime) MarshalJSON() ([]byte, error) { - act.OdataType = OdataTypeMicrosoftMediaAbsoluteClipTime + act.OdataType = OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime objectMap := make(map[string]interface{}) if act.Time != nil { objectMap["time"] = act.Time @@ -180,9 +180,17 @@ func (act AbsoluteClipTime) AsBasicClipTime() (BasicClipTime, bool) { return &act, true } +// AccessControl ... +type AccessControl struct { + // DefaultAction - The behavior for IP access control in Key Delivery. Possible values include: 'DefaultActionAllow', 'DefaultActionDeny' + DefaultAction DefaultAction `json:"defaultAction,omitempty"` + // IPAllowList - The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty. + IPAllowList *[]string `json:"ipAllowList,omitempty"` +} + // AccountEncryption ... type AccountEncryption struct { - // Type - The type of key used to encrypt the Account Key. Possible values include: 'SystemKey', 'CustomerKey' + // Type - The type of key used to encrypt the Account Key. Possible values include: 'AccountEncryptionKeyTypeSystemKey', 'AccountEncryptionKeyTypeCustomerKey' Type AccountEncryptionKeyType `json:"type,omitempty"` // KeyVaultProperties - The properties of the key used to encrypt the account. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` @@ -970,7 +978,7 @@ type AssetProperties struct { Container *string `json:"container,omitempty"` // StorageAccountName - The name of the storage account. StorageAccountName *string `json:"storageAccountName,omitempty"` - // StorageEncryptionFormat - READ-ONLY; The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: 'None', 'MediaStorageClientEncryption' + // StorageEncryptionFormat - READ-ONLY; The Asset encryption format. One of None or MediaStorageEncryption. Possible values include: 'AssetStorageEncryptionFormatNone', 'AssetStorageEncryptionFormatMediaStorageClientEncryption' StorageEncryptionFormat AssetStorageEncryptionFormat `json:"storageEncryptionFormat,omitempty"` } @@ -1012,6 +1020,12 @@ type AssetStreamingLocator struct { DefaultContentKeyPolicyName *string `json:"defaultContentKeyPolicyName,omitempty"` } +// MarshalJSON is the custom marshaler for AssetStreamingLocator. +func (asl AssetStreamingLocator) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicAudio defines the common properties for all audio codecs. type BasicAudio interface { AsAacAudio() (*AacAudio, bool) @@ -1028,7 +1042,7 @@ type Audio struct { Bitrate *int32 `json:"bitrate,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } @@ -1040,7 +1054,7 @@ func unmarshalBasicAudio(body []byte) (BasicAudio, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaAacAudio): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio): var aa AacAudio err := json.Unmarshal(body, &aa) return aa, err @@ -1071,7 +1085,7 @@ func unmarshalBasicAudioArray(body []byte) ([]BasicAudio, error) { // MarshalJSON is the custom marshaler for Audio. func (a Audio) MarshalJSON() ([]byte, error) { - a.OdataType = OdataTypeMicrosoftMediaAudio + a.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio objectMap := make(map[string]interface{}) if a.Channels != nil { objectMap["channels"] = a.Channels @@ -1179,11 +1193,11 @@ type BasicAudioAnalyzerPreset interface { type AudioAnalyzerPreset struct { // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463 AudioLanguage *string `json:"audioLanguage,omitempty"` - // Mode - Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic' + // Mode - Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. Possible values include: 'AudioAnalysisModeStandard', 'AudioAnalysisModeBasic' Mode AudioAnalysisMode `json:"mode,omitempty"` // ExperimentalOptions - Dictionary containing key value pairs for parameters not exposed in the preset itself ExperimentalOptions map[string]*string `json:"experimentalOptions"` - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } @@ -1195,7 +1209,7 @@ func unmarshalBasicAudioAnalyzerPreset(body []byte) (BasicAudioAnalyzerPreset, e } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaVideoAnalyzerPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset): var vap VideoAnalyzerPreset err := json.Unmarshal(body, &vap) return vap, err @@ -1226,7 +1240,7 @@ func unmarshalBasicAudioAnalyzerPresetArray(body []byte) ([]BasicAudioAnalyzerPr // MarshalJSON is the custom marshaler for AudioAnalyzerPreset. func (aap AudioAnalyzerPreset) MarshalJSON() ([]byte, error) { - aap.OdataType = OdataTypeMicrosoftMediaAudioAnalyzerPreset + aap.OdataType = OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset objectMap := make(map[string]interface{}) if aap.AudioLanguage != nil { objectMap["audioLanguage"] = aap.AudioLanguage @@ -1297,13 +1311,13 @@ type AudioOverlay struct { FadeOutDuration *string `json:"fadeOutDuration,omitempty"` // AudioGainLevel - The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0. AudioGainLevel *float64 `json:"audioGainLevel,omitempty"` - // OdataType - Possible values include: 'OdataTypeOverlay', 'OdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeMicrosoftMediaVideoOverlay' + // OdataType - Possible values include: 'OdataTypeBasicOverlayOdataTypeOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay' OdataType OdataTypeBasicOverlay `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for AudioOverlay. func (ao AudioOverlay) MarshalJSON() ([]byte, error) { - ao.OdataType = OdataTypeMicrosoftMediaAudioOverlay + ao.OdataType = OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay objectMap := make(map[string]interface{}) if ao.InputLabel != nil { objectMap["inputLabel"] = ao.InputLabel @@ -1358,9 +1372,9 @@ type BasicAudioTrackDescriptor interface { // AudioTrackDescriptor a TrackSelection to select audio tracks. type AudioTrackDescriptor struct { - // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'ChannelMappingFrontLeft', 'ChannelMappingFrontRight', 'ChannelMappingCenter', 'ChannelMappingLowFrequencyEffects', 'ChannelMappingBackLeft', 'ChannelMappingBackRight', 'ChannelMappingStereoLeft', 'ChannelMappingStereoRight' ChannelMapping ChannelMapping `json:"channelMapping,omitempty"` - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } @@ -1372,11 +1386,11 @@ func unmarshalBasicAudioTrackDescriptor(body []byte) (BasicAudioTrackDescriptor, } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaSelectAudioTrackByAttribute): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute): var satba SelectAudioTrackByAttribute err := json.Unmarshal(body, &satba) return satba, err - case string(OdataTypeMicrosoftMediaSelectAudioTrackByID): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID): var satbi SelectAudioTrackByID err := json.Unmarshal(body, &satbi) return satbi, err @@ -1407,7 +1421,7 @@ func unmarshalBasicAudioTrackDescriptorArray(body []byte) ([]BasicAudioTrackDesc // MarshalJSON is the custom marshaler for AudioTrackDescriptor. func (atd AudioTrackDescriptor) MarshalJSON() ([]byte, error) { - atd.OdataType = OdataTypeMicrosoftMediaAudioTrackDescriptor + atd.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor objectMap := make(map[string]interface{}) if atd.ChannelMapping != "" { objectMap["channelMapping"] = atd.ChannelMapping @@ -1480,18 +1494,24 @@ type AzureEntityResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for AzureEntityResource. +func (aer AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BuiltInStandardEncoderPreset describes a built-in preset for encoding the input video with the Standard // Encoder. type BuiltInStandardEncoderPreset struct { - // PresetName - The built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD', 'H265ContentAwareEncoding', 'H265AdaptiveStreaming', 'H265SingleBitrate720p', 'H265SingleBitrate1080p', 'H265SingleBitrate4K' + // PresetName - The built-in preset to be used for encoding videos. Possible values include: 'EncoderNamedPresetH264SingleBitrateSD', 'EncoderNamedPresetH264SingleBitrate720p', 'EncoderNamedPresetH264SingleBitrate1080p', 'EncoderNamedPresetAdaptiveStreaming', 'EncoderNamedPresetAACGoodQualityAudio', 'EncoderNamedPresetContentAwareEncodingExperimental', 'EncoderNamedPresetContentAwareEncoding', 'EncoderNamedPresetCopyAllBitrateNonInterleaved', 'EncoderNamedPresetH264MultipleBitrate1080p', 'EncoderNamedPresetH264MultipleBitrate720p', 'EncoderNamedPresetH264MultipleBitrateSD', 'EncoderNamedPresetH265ContentAwareEncoding', 'EncoderNamedPresetH265AdaptiveStreaming', 'EncoderNamedPresetH265SingleBitrate720p', 'EncoderNamedPresetH265SingleBitrate1080p', 'EncoderNamedPresetH265SingleBitrate4K' PresetName EncoderNamedPreset `json:"presetName,omitempty"` - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for BuiltInStandardEncoderPreset. func (bisep BuiltInStandardEncoderPreset) MarshalJSON() ([]byte, error) { - bisep.OdataType = OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset + bisep.OdataType = OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset objectMap := make(map[string]interface{}) if bisep.PresetName != "" { objectMap["presetName"] = bisep.PresetName @@ -1581,7 +1601,7 @@ type BasicClipTime interface { // ClipTime base class for specifying a clip time. Use sub classes of this class to specify the time position // in the media. type ClipTime struct { - // OdataType - Possible values include: 'OdataTypeClipTime', 'OdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeMicrosoftMediaUtcClipTime' + // OdataType - Possible values include: 'OdataTypeBasicClipTimeOdataTypeClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime' OdataType OdataTypeBasicClipTime `json:"@odata.type,omitempty"` } @@ -1593,11 +1613,11 @@ func unmarshalBasicClipTime(body []byte) (BasicClipTime, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaAbsoluteClipTime): + case string(OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime): var act AbsoluteClipTime err := json.Unmarshal(body, &act) return act, err - case string(OdataTypeMicrosoftMediaUtcClipTime): + case string(OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime): var uct UtcClipTime err := json.Unmarshal(body, &uct) return uct, err @@ -1628,7 +1648,7 @@ func unmarshalBasicClipTimeArray(body []byte) ([]BasicClipTime, error) { // MarshalJSON is the custom marshaler for ClipTime. func (ct ClipTime) MarshalJSON() ([]byte, error) { - ct.OdataType = OdataTypeClipTime + ct.OdataType = OdataTypeBasicClipTimeOdataTypeClipTime objectMap := make(map[string]interface{}) if ct.OdataType != "" { objectMap["@odata.type"] = ct.OdataType @@ -1678,7 +1698,7 @@ type BasicCodec interface { type Codec struct { // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } @@ -1690,43 +1710,43 @@ func unmarshalBasicCodec(body []byte) (BasicCodec, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaAudio): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio): var a Audio err := json.Unmarshal(body, &a) return a, err - case string(OdataTypeMicrosoftMediaAacAudio): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio): var aa AacAudio err := json.Unmarshal(body, &aa) return aa, err - case string(OdataTypeMicrosoftMediaVideo): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo): var vVar Video err := json.Unmarshal(body, &vVar) return vVar, err - case string(OdataTypeMicrosoftMediaH265Video): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video): var hv H265Video err := json.Unmarshal(body, &hv) return hv, err - case string(OdataTypeMicrosoftMediaCopyVideo): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo): var cv CopyVideo err := json.Unmarshal(body, &cv) return cv, err - case string(OdataTypeMicrosoftMediaImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaImage): var i Image err := json.Unmarshal(body, &i) return i, err - case string(OdataTypeMicrosoftMediaCopyAudio): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio): var ca CopyAudio err := json.Unmarshal(body, &ca) return ca, err - case string(OdataTypeMicrosoftMediaH264Video): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video): var hv H264Video err := json.Unmarshal(body, &hv) return hv, err - case string(OdataTypeMicrosoftMediaJpgImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage): var ji JpgImage err := json.Unmarshal(body, &ji) return ji, err - case string(OdataTypeMicrosoftMediaPngImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage): var pi PngImage err := json.Unmarshal(body, &pi) return pi, err @@ -1757,7 +1777,7 @@ func unmarshalBasicCodecArray(body []byte) ([]BasicCodec, error) { // MarshalJSON is the custom marshaler for Codec. func (c Codec) MarshalJSON() ([]byte, error) { - c.OdataType = OdataTypeCodec + c.OdataType = OdataTypeBasicCodecOdataTypeCodec objectMap := make(map[string]interface{}) if c.Label != nil { objectMap["label"] = c.Label @@ -1952,13 +1972,13 @@ func (ckp *ContentKeyPolicy) UnmarshalJSON(body []byte) error { // ContentKeyPolicyClearKeyConfiguration represents a configuration for non-DRM keys. type ContentKeyPolicyClearKeyConfiguration struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyClearKeyConfiguration. func (ckpckc ContentKeyPolicyClearKeyConfiguration) MarshalJSON() ([]byte, error) { - ckpckc.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration + ckpckc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration objectMap := make(map[string]interface{}) if ckpckc.OdataType != "" { objectMap["@odata.type"] = ckpckc.OdataType @@ -2174,7 +2194,7 @@ type BasicContentKeyPolicyConfiguration interface { // ContentKeyPolicyConfiguration base class for Content Key Policy configuration. A derived class must be used // to create a configuration. type ContentKeyPolicyConfiguration struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } @@ -2186,23 +2206,23 @@ func unmarshalBasicContentKeyPolicyConfiguration(body []byte) (BasicContentKeyPo } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration): + case string(OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration): var ckpckc ContentKeyPolicyClearKeyConfiguration err := json.Unmarshal(body, &ckpckc) return ckpckc, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration): + case string(OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration): var ckpuc ContentKeyPolicyUnknownConfiguration err := json.Unmarshal(body, &ckpuc) return ckpuc, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration): + case string(OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration): var ckpwc ContentKeyPolicyWidevineConfiguration err := json.Unmarshal(body, &ckpwc) return ckpwc, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration): + case string(OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration): var ckpprc ContentKeyPolicyPlayReadyConfiguration err := json.Unmarshal(body, &ckpprc) return ckpprc, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration): + case string(OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration): var ckpfpc ContentKeyPolicyFairPlayConfiguration err := json.Unmarshal(body, &ckpfpc) return ckpfpc, err @@ -2233,7 +2253,7 @@ func unmarshalBasicContentKeyPolicyConfigurationArray(body []byte) ([]BasicConte // MarshalJSON is the custom marshaler for ContentKeyPolicyConfiguration. func (ckpc ContentKeyPolicyConfiguration) MarshalJSON() ([]byte, error) { - ckpc.OdataType = OdataTypeContentKeyPolicyConfiguration + ckpc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration objectMap := make(map[string]interface{}) if ckpc.OdataType != "" { objectMap["@odata.type"] = ckpc.OdataType @@ -2284,19 +2304,19 @@ type ContentKeyPolicyFairPlayConfiguration struct { FairPlayPfxPassword *string `json:"fairPlayPfxPassword,omitempty"` // FairPlayPfx - The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key). FairPlayPfx *string `json:"fairPlayPfx,omitempty"` - // RentalAndLeaseKeyType - The rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited', 'PersistentLimited' + // RentalAndLeaseKeyType - The rental and lease key type. Possible values include: 'ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUnknown', 'ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined', 'ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry', 'ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited', 'ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited' RentalAndLeaseKeyType ContentKeyPolicyFairPlayRentalAndLeaseKeyType `json:"rentalAndLeaseKeyType,omitempty"` // RentalDuration - The rental duration. Must be greater than or equal to 0. RentalDuration *int64 `json:"rentalDuration,omitempty"` // OfflineRentalConfiguration - Offline rental policy OfflineRentalConfiguration *ContentKeyPolicyFairPlayOfflineRentalConfiguration `json:"offlineRentalConfiguration,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyFairPlayConfiguration. func (ckpfpc ContentKeyPolicyFairPlayConfiguration) MarshalJSON() ([]byte, error) { - ckpfpc.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration + ckpfpc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration objectMap := make(map[string]interface{}) if ckpfpc.Ask != nil { objectMap["ask"] = ckpfpc.Ask @@ -2368,13 +2388,13 @@ type ContentKeyPolicyFairPlayOfflineRentalConfiguration struct { // ContentKeyPolicyOpenRestriction represents an open restriction. License or key will be delivered on // every request. type ContentKeyPolicyOpenRestriction struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyOpenRestriction. func (ckpor ContentKeyPolicyOpenRestriction) MarshalJSON() ([]byte, error) { - ckpor.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction + ckpor.OdataType = OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction objectMap := make(map[string]interface{}) if ckpor.OdataType != "" { objectMap["@odata.type"] = ckpor.OdataType @@ -2485,13 +2505,13 @@ type ContentKeyPolicyPlayReadyConfiguration struct { Licenses *[]ContentKeyPolicyPlayReadyLicense `json:"licenses,omitempty"` // ResponseCustomData - The custom response data. ResponseCustomData *string `json:"responseCustomData,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyPlayReadyConfiguration. func (ckpprc ContentKeyPolicyPlayReadyConfiguration) MarshalJSON() ([]byte, error) { - ckpprc.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration + ckpprc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration objectMap := make(map[string]interface{}) if ckpprc.Licenses != nil { objectMap["licenses"] = ckpprc.Licenses @@ -2911,7 +2931,7 @@ type BasicContentKeyPolicyRestriction interface { // ContentKeyPolicyRestriction base class for Content Key Policy restrictions. A derived class must be used to // create a restriction. type ContentKeyPolicyRestriction struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"` } @@ -2923,15 +2943,15 @@ func unmarshalBasicContentKeyPolicyRestriction(body []byte) (BasicContentKeyPoli } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction): + case string(OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction): var ckpor ContentKeyPolicyOpenRestriction err := json.Unmarshal(body, &ckpor) return ckpor, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction): + case string(OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction): var ckpur ContentKeyPolicyUnknownRestriction err := json.Unmarshal(body, &ckpur) return ckpur, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction): + case string(OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction): var ckptr ContentKeyPolicyTokenRestriction err := json.Unmarshal(body, &ckptr) return ckptr, err @@ -2962,7 +2982,7 @@ func unmarshalBasicContentKeyPolicyRestrictionArray(body []byte) ([]BasicContent // MarshalJSON is the custom marshaler for ContentKeyPolicyRestriction. func (ckpr ContentKeyPolicyRestriction) MarshalJSON() ([]byte, error) { - ckpr.OdataType = OdataTypeContentKeyPolicyRestriction + ckpr.OdataType = OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction objectMap := make(map[string]interface{}) if ckpr.OdataType != "" { objectMap["@odata.type"] = ckpr.OdataType @@ -3007,7 +3027,7 @@ type BasicContentKeyPolicyRestrictionTokenKey interface { // ContentKeyPolicyRestrictionTokenKey base class for Content Key Policy key for token validation. A derived // class must be used to create a token key. type ContentKeyPolicyRestrictionTokenKey struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"` } @@ -3019,15 +3039,15 @@ func unmarshalBasicContentKeyPolicyRestrictionTokenKey(body []byte) (BasicConten } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey): + case string(OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey): var ckpstk ContentKeyPolicySymmetricTokenKey err := json.Unmarshal(body, &ckpstk) return ckpstk, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey): + case string(OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey): var ckprtk ContentKeyPolicyRsaTokenKey err := json.Unmarshal(body, &ckprtk) return ckprtk, err - case string(OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey): + case string(OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey): var ckpxctk ContentKeyPolicyX509CertificateTokenKey err := json.Unmarshal(body, &ckpxctk) return ckpxctk, err @@ -3058,7 +3078,7 @@ func unmarshalBasicContentKeyPolicyRestrictionTokenKeyArray(body []byte) ([]Basi // MarshalJSON is the custom marshaler for ContentKeyPolicyRestrictionTokenKey. func (ckprtk ContentKeyPolicyRestrictionTokenKey) MarshalJSON() ([]byte, error) { - ckprtk.OdataType = OdataTypeContentKeyPolicyRestrictionTokenKey + ckprtk.OdataType = OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey objectMap := make(map[string]interface{}) if ckprtk.OdataType != "" { objectMap["@odata.type"] = ckprtk.OdataType @@ -3097,13 +3117,13 @@ type ContentKeyPolicyRsaTokenKey struct { Exponent *[]byte `json:"exponent,omitempty"` // Modulus - The RSA Parameter modulus Modulus *[]byte `json:"modulus,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyRsaTokenKey. func (ckprtk ContentKeyPolicyRsaTokenKey) MarshalJSON() ([]byte, error) { - ckprtk.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey + ckprtk.OdataType = OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey objectMap := make(map[string]interface{}) if ckprtk.Exponent != nil { objectMap["exponent"] = ckprtk.Exponent @@ -3146,13 +3166,13 @@ func (ckprtk ContentKeyPolicyRsaTokenKey) AsBasicContentKeyPolicyRestrictionToke type ContentKeyPolicySymmetricTokenKey struct { // KeyValue - The key value of the key KeyValue *[]byte `json:"keyValue,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicySymmetricTokenKey. func (ckpstk ContentKeyPolicySymmetricTokenKey) MarshalJSON() ([]byte, error) { - ckpstk.OdataType = OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey + ckpstk.OdataType = OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey objectMap := make(map[string]interface{}) if ckpstk.KeyValue != nil { objectMap["keyValue"] = ckpstk.KeyValue @@ -3213,13 +3233,13 @@ type ContentKeyPolicyTokenRestriction struct { RestrictionTokenType ContentKeyPolicyRestrictionTokenType `json:"restrictionTokenType,omitempty"` // OpenIDConnectDiscoveryDocument - The OpenID connect discovery document. OpenIDConnectDiscoveryDocument *string `json:"openIdConnectDiscoveryDocument,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyTokenRestriction. func (ckptr ContentKeyPolicyTokenRestriction) MarshalJSON() ([]byte, error) { - ckptr.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction + ckptr.OdataType = OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction objectMap := make(map[string]interface{}) if ckptr.Issuer != nil { objectMap["issuer"] = ckptr.Issuer @@ -3359,13 +3379,13 @@ func (ckptr *ContentKeyPolicyTokenRestriction) UnmarshalJSON(body []byte) error // ContentKeyPolicyUnknownConfiguration represents a ContentKeyPolicyConfiguration that is unavailable in // the current API version. type ContentKeyPolicyUnknownConfiguration struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyUnknownConfiguration. func (ckpuc ContentKeyPolicyUnknownConfiguration) MarshalJSON() ([]byte, error) { - ckpuc.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration + ckpuc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration objectMap := make(map[string]interface{}) if ckpuc.OdataType != "" { objectMap["@odata.type"] = ckpuc.OdataType @@ -3411,13 +3431,13 @@ func (ckpuc ContentKeyPolicyUnknownConfiguration) AsBasicContentKeyPolicyConfigu // ContentKeyPolicyUnknownRestriction represents a ContentKeyPolicyRestriction that is unavailable in the // current API version. type ContentKeyPolicyUnknownRestriction struct { - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeContentKeyPolicyRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction', 'OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction' OdataType OdataTypeBasicContentKeyPolicyRestriction `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyUnknownRestriction. func (ckpur ContentKeyPolicyUnknownRestriction) MarshalJSON() ([]byte, error) { - ckpur.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction + ckpur.OdataType = OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyUnknownRestriction objectMap := make(map[string]interface{}) if ckpur.OdataType != "" { objectMap["@odata.type"] = ckpur.OdataType @@ -3454,13 +3474,13 @@ func (ckpur ContentKeyPolicyUnknownRestriction) AsBasicContentKeyPolicyRestricti type ContentKeyPolicyWidevineConfiguration struct { // WidevineTemplate - The Widevine template. WidevineTemplate *string `json:"widevineTemplate,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeContentKeyPolicyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyUnknownConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration', 'OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration' OdataType OdataTypeBasicContentKeyPolicyConfiguration `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyWidevineConfiguration. func (ckpwc ContentKeyPolicyWidevineConfiguration) MarshalJSON() ([]byte, error) { - ckpwc.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration + ckpwc.OdataType = OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration objectMap := make(map[string]interface{}) if ckpwc.WidevineTemplate != nil { objectMap["widevineTemplate"] = ckpwc.WidevineTemplate @@ -3510,13 +3530,13 @@ func (ckpwc ContentKeyPolicyWidevineConfiguration) AsBasicContentKeyPolicyConfig type ContentKeyPolicyX509CertificateTokenKey struct { // RawBody - The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET) RawBody *[]byte `json:"rawBody,omitempty"` - // OdataType - Possible values include: 'OdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' + // OdataType - Possible values include: 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeContentKeyPolicyRestrictionTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey', 'OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey' OdataType OdataTypeBasicContentKeyPolicyRestrictionTokenKey `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for ContentKeyPolicyX509CertificateTokenKey. func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) MarshalJSON() ([]byte, error) { - ckpxctk.OdataType = OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey + ckpxctk.OdataType = OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey objectMap := make(map[string]interface{}) if ckpxctk.RawBody != nil { objectMap["rawBody"] = ckpxctk.RawBody @@ -3556,13 +3576,13 @@ func (ckpxctk ContentKeyPolicyX509CertificateTokenKey) AsBasicContentKeyPolicyRe type CopyAudio struct { // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for CopyAudio. func (ca CopyAudio) MarshalJSON() ([]byte, error) { - ca.OdataType = OdataTypeMicrosoftMediaCopyAudio + ca.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio objectMap := make(map[string]interface{}) if ca.Label != nil { objectMap["label"] = ca.Label @@ -3652,13 +3672,13 @@ func (ca CopyAudio) AsBasicCodec() (BasicCodec, bool) { type CopyVideo struct { // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for CopyVideo. func (cv CopyVideo) MarshalJSON() ([]byte, error) { - cv.OdataType = OdataTypeMicrosoftMediaCopyVideo + cv.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo objectMap := make(map[string]interface{}) if cv.Label != nil { objectMap["label"] = cv.Label @@ -3762,9 +3782,9 @@ type DefaultKey struct { // Deinterlace describes the de-interlacing settings. type Deinterlace struct { - // Parity - The field parity for de-interlacing, defaults to Auto. Possible values include: 'Auto', 'TopFieldFirst', 'BottomFieldFirst' + // Parity - The field parity for de-interlacing, defaults to Auto. Possible values include: 'DeinterlaceParityAuto', 'DeinterlaceParityTopFieldFirst', 'DeinterlaceParityBottomFieldFirst' Parity DeinterlaceParity `json:"parity,omitempty"` - // Mode - The deinterlacing mode. Defaults to AutoPixelAdaptive. Possible values include: 'Off', 'AutoPixelAdaptive' + // Mode - The deinterlacing mode. Defaults to AutoPixelAdaptive. Possible values include: 'DeinterlaceModeOff', 'DeinterlaceModeAutoPixelAdaptive' Mode DeinterlaceMode `json:"mode,omitempty"` } @@ -3834,21 +3854,21 @@ type EnvelopeEncryption struct { // FaceDetectorPreset describes all the settings to be used when analyzing a video in order to detect (and // optionally redact) all the faces present. type FaceDetectorPreset struct { - // Resolution - Specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: 'SourceResolution', 'StandardDefinition' + // Resolution - Specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: 'AnalysisResolutionSourceResolution', 'AnalysisResolutionStandardDefinition' Resolution AnalysisResolution `json:"resolution,omitempty"` - // Mode - This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction. Possible values include: 'Analyze', 'Redact', 'Combined' + // Mode - This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected subset of IDs that require redaction. Possible values include: 'FaceRedactorModeAnalyze', 'FaceRedactorModeRedact', 'FaceRedactorModeCombined' Mode FaceRedactorMode `json:"mode,omitempty"` - // BlurType - Blur type. Possible values include: 'Box', 'Low', 'Med', 'High', 'Black' + // BlurType - Blur type. Possible values include: 'BlurTypeBox', 'BlurTypeLow', 'BlurTypeMed', 'BlurTypeHigh', 'BlurTypeBlack' BlurType BlurType `json:"blurType,omitempty"` // ExperimentalOptions - Dictionary containing key value pairs for parameters not exposed in the preset itself ExperimentalOptions map[string]*string `json:"experimentalOptions"` - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for FaceDetectorPreset. func (fdp FaceDetectorPreset) MarshalJSON() ([]byte, error) { - fdp.OdataType = OdataTypeMicrosoftMediaFaceDetectorPreset + fdp.OdataType = OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset objectMap := make(map[string]interface{}) if fdp.Resolution != "" { objectMap["resolution"] = fdp.Resolution @@ -3987,7 +4007,7 @@ type FilterTrackPropertyCondition struct { Property FilterTrackPropertyType `json:"property,omitempty"` // Value - The track property value. Value *string `json:"value,omitempty"` - // Operation - The track property condition operation. Possible values include: 'Equal', 'NotEqual' + // Operation - The track property condition operation. Possible values include: 'FilterTrackPropertyCompareOperationEqual', 'FilterTrackPropertyCompareOperationNotEqual' Operation FilterTrackPropertyCompareOperation `json:"operation,omitempty"` } @@ -4021,7 +4041,7 @@ type BasicFormat interface { type Format struct { // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } @@ -4033,27 +4053,27 @@ func unmarshalBasicFormat(body []byte) (BasicFormat, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaImageFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat): var ifVar ImageFormat err := json.Unmarshal(body, &ifVar) return ifVar, err - case string(OdataTypeMicrosoftMediaJpgFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat): var jf JpgFormat err := json.Unmarshal(body, &jf) return jf, err - case string(OdataTypeMicrosoftMediaPngFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat): var pf PngFormat err := json.Unmarshal(body, &pf) return pf, err - case string(OdataTypeMicrosoftMediaMultiBitrateFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat): var mbf MultiBitrateFormat err := json.Unmarshal(body, &mbf) return mbf, err - case string(OdataTypeMicrosoftMediaMp4Format): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format): var m4f Mp4Format err := json.Unmarshal(body, &m4f) return m4f, err - case string(OdataTypeMicrosoftMediaTransportStreamFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat): var tsf TransportStreamFormat err := json.Unmarshal(body, &tsf) return tsf, err @@ -4084,7 +4104,7 @@ func unmarshalBasicFormatArray(body []byte) ([]BasicFormat, error) { // MarshalJSON is the custom marshaler for Format. func (f Format) MarshalJSON() ([]byte, error) { - f.OdataType = OdataTypeFormat + f.OdataType = OdataTypeBasicFormatOdataTypeFormat objectMap := make(map[string]interface{}) if f.FilenamePattern != nil { objectMap["filenamePattern"] = f.FilenamePattern @@ -4151,13 +4171,13 @@ func (f Format) AsBasicFormat() (BasicFormat, bool) { type FromAllInputFile struct { // IncludedTracks - The list of TrackDescriptors which define the metadata and selection of tracks in the input. IncludedTracks *[]BasicTrackDescriptor `json:"includedTracks,omitempty"` - // OdataType - Possible values include: 'OdataTypeInputDefinition', 'OdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeMicrosoftMediaInputFile' + // OdataType - Possible values include: 'OdataTypeBasicInputDefinitionOdataTypeInputDefinition', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile' OdataType OdataTypeBasicInputDefinition `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for FromAllInputFile. func (faif FromAllInputFile) MarshalJSON() ([]byte, error) { - faif.OdataType = OdataTypeMicrosoftMediaFromAllInputFile + faif.OdataType = OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile objectMap := make(map[string]interface{}) if faif.IncludedTracks != nil { objectMap["includedTracks"] = faif.IncludedTracks @@ -4231,13 +4251,13 @@ func (faif *FromAllInputFile) UnmarshalJSON(body []byte) error { type FromEachInputFile struct { // IncludedTracks - The list of TrackDescriptors which define the metadata and selection of tracks in the input. IncludedTracks *[]BasicTrackDescriptor `json:"includedTracks,omitempty"` - // OdataType - Possible values include: 'OdataTypeInputDefinition', 'OdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeMicrosoftMediaInputFile' + // OdataType - Possible values include: 'OdataTypeBasicInputDefinitionOdataTypeInputDefinition', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile' OdataType OdataTypeBasicInputDefinition `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for FromEachInputFile. func (feif FromEachInputFile) MarshalJSON() ([]byte, error) { - feif.OdataType = OdataTypeMicrosoftMediaFromEachInputFile + feif.OdataType = OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile objectMap := make(map[string]interface{}) if feif.IncludedTracks != nil { objectMap["includedTracks"] = feif.IncludedTracks @@ -4316,7 +4336,7 @@ type H264Layer struct { BufferWindow *string `json:"bufferWindow,omitempty"` // ReferenceFrames - The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an appropriate number based on the encoder complexity setting. ReferenceFrames *int32 `json:"referenceFrames,omitempty"` - // EntropyMode - The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: 'Cabac', 'Cavlc' + // EntropyMode - The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate for the profile and level. Possible values include: 'EntropyModeCabac', 'EntropyModeCavlc' EntropyMode EntropyMode `json:"entropyMode,omitempty"` // Bitrate - The average bitrate in bits per second at which to encode the input video when generating this layer. This is a required field. Bitrate *int32 `json:"bitrate,omitempty"` @@ -4336,13 +4356,13 @@ type H264Layer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for H264Layer. func (hl H264Layer) MarshalJSON() ([]byte, error) { - hl.OdataType = OdataTypeMicrosoftMediaH264Layer + hl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer objectMap := make(map[string]interface{}) if hl.Profile != "" { objectMap["profile"] = hl.Profile @@ -4446,7 +4466,7 @@ func (hl H264Layer) AsBasicLayer() (BasicLayer, bool) { type H264Video struct { // SceneChangeDetection - Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. This flag should be set to true only when the encoder is being configured to produce a single output video. SceneChangeDetection *bool `json:"sceneChangeDetection,omitempty"` - // Complexity - Tells the encoder how to choose its encoding settings. The default value is Balanced. Possible values include: 'Speed', 'Balanced', 'Quality' + // Complexity - Tells the encoder how to choose its encoding settings. The default value is Balanced. Possible values include: 'H264ComplexitySpeed', 'H264ComplexityBalanced', 'H264ComplexityQuality' Complexity H264Complexity `json:"complexity,omitempty"` // Layers - The collection of output H.264 layers to be produced by the encoder. Layers *[]H264Layer `json:"layers,omitempty"` @@ -4458,13 +4478,13 @@ type H264Video struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for H264Video. func (hv H264Video) MarshalJSON() ([]byte, error) { - hv.OdataType = OdataTypeMicrosoftMediaH264Video + hv.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video objectMap := make(map[string]interface{}) if hv.SceneChangeDetection != nil { objectMap["sceneChangeDetection"] = hv.SceneChangeDetection @@ -4597,13 +4617,13 @@ type H265Layer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for H265Layer. func (hl H265Layer) MarshalJSON() ([]byte, error) { - hl.OdataType = OdataTypeMicrosoftMediaH265Layer + hl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer objectMap := make(map[string]interface{}) if hl.Profile != "" { objectMap["profile"] = hl.Profile @@ -4716,13 +4736,13 @@ type H265Video struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for H265Video. func (hv H265Video) MarshalJSON() ([]byte, error) { - hv.OdataType = OdataTypeMicrosoftMediaH265Video + hv.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video objectMap := make(map[string]interface{}) if hv.SceneChangeDetection != nil { objectMap["sceneChangeDetection"] = hv.SceneChangeDetection @@ -4854,7 +4874,7 @@ type H265VideoLayer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } @@ -4866,7 +4886,7 @@ func unmarshalBasicH265VideoLayer(body []byte) (BasicH265VideoLayer, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaH265Layer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer): var hl H265Layer err := json.Unmarshal(body, &hl) return hl, err @@ -4897,7 +4917,7 @@ func unmarshalBasicH265VideoLayerArray(body []byte) ([]BasicH265VideoLayer, erro // MarshalJSON is the custom marshaler for H265VideoLayer. func (hvl H265VideoLayer) MarshalJSON() ([]byte, error) { - hvl.OdataType = OdataTypeMicrosoftMediaH265VideoLayer + hvl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer objectMap := make(map[string]interface{}) if hvl.Bitrate != nil { objectMap["bitrate"] = hvl.Bitrate @@ -5011,7 +5031,7 @@ type Image struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } @@ -5023,11 +5043,11 @@ func unmarshalBasicImage(body []byte) (BasicImage, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaJpgImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage): var ji JpgImage err := json.Unmarshal(body, &ji) return ji, err - case string(OdataTypeMicrosoftMediaPngImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage): var pi PngImage err := json.Unmarshal(body, &pi) return pi, err @@ -5058,7 +5078,7 @@ func unmarshalBasicImageArray(body []byte) ([]BasicImage, error) { // MarshalJSON is the custom marshaler for Image. func (i Image) MarshalJSON() ([]byte, error) { - i.OdataType = OdataTypeMicrosoftMediaImage + i.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaImage objectMap := make(map[string]interface{}) if i.Start != nil { objectMap["start"] = i.Start @@ -5173,7 +5193,7 @@ type BasicImageFormat interface { type ImageFormat struct { // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } @@ -5185,11 +5205,11 @@ func unmarshalBasicImageFormat(body []byte) (BasicImageFormat, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaJpgFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat): var jf JpgFormat err := json.Unmarshal(body, &jf) return jf, err - case string(OdataTypeMicrosoftMediaPngFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat): var pf PngFormat err := json.Unmarshal(body, &pf) return pf, err @@ -5220,7 +5240,7 @@ func unmarshalBasicImageFormatArray(body []byte) ([]BasicImageFormat, error) { // MarshalJSON is the custom marshaler for ImageFormat. func (ifVar ImageFormat) MarshalJSON() ([]byte, error) { - ifVar.OdataType = OdataTypeMicrosoftMediaImageFormat + ifVar.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat objectMap := make(map[string]interface{}) if ifVar.FilenamePattern != nil { objectMap["filenamePattern"] = ifVar.FilenamePattern @@ -5295,7 +5315,7 @@ type BasicInputDefinition interface { type InputDefinition struct { // IncludedTracks - The list of TrackDescriptors which define the metadata and selection of tracks in the input. IncludedTracks *[]BasicTrackDescriptor `json:"includedTracks,omitempty"` - // OdataType - Possible values include: 'OdataTypeInputDefinition', 'OdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeMicrosoftMediaInputFile' + // OdataType - Possible values include: 'OdataTypeBasicInputDefinitionOdataTypeInputDefinition', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile' OdataType OdataTypeBasicInputDefinition `json:"@odata.type,omitempty"` } @@ -5307,15 +5327,15 @@ func unmarshalBasicInputDefinition(body []byte) (BasicInputDefinition, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaFromAllInputFile): + case string(OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile): var faif FromAllInputFile err := json.Unmarshal(body, &faif) return faif, err - case string(OdataTypeMicrosoftMediaFromEachInputFile): + case string(OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile): var feif FromEachInputFile err := json.Unmarshal(body, &feif) return feif, err - case string(OdataTypeMicrosoftMediaInputFile): + case string(OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile): var ifVar InputFile err := json.Unmarshal(body, &ifVar) return ifVar, err @@ -5346,7 +5366,7 @@ func unmarshalBasicInputDefinitionArray(body []byte) ([]BasicInputDefinition, er // MarshalJSON is the custom marshaler for InputDefinition. func (ID InputDefinition) MarshalJSON() ([]byte, error) { - ID.OdataType = OdataTypeInputDefinition + ID.OdataType = OdataTypeBasicInputDefinitionOdataTypeInputDefinition objectMap := make(map[string]interface{}) if ID.IncludedTracks != nil { objectMap["includedTracks"] = ID.IncludedTracks @@ -5420,13 +5440,13 @@ type InputFile struct { Filename *string `json:"filename,omitempty"` // IncludedTracks - The list of TrackDescriptors which define the metadata and selection of tracks in the input. IncludedTracks *[]BasicTrackDescriptor `json:"includedTracks,omitempty"` - // OdataType - Possible values include: 'OdataTypeInputDefinition', 'OdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeMicrosoftMediaInputFile' + // OdataType - Possible values include: 'OdataTypeBasicInputDefinitionOdataTypeInputDefinition', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromAllInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaFromEachInputFile', 'OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile' OdataType OdataTypeBasicInputDefinition `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for InputFile. func (ifVar InputFile) MarshalJSON() ([]byte, error) { - ifVar.OdataType = OdataTypeMicrosoftMediaInputFile + ifVar.OdataType = OdataTypeBasicInputDefinitionOdataTypeMicrosoftMediaInputFile objectMap := make(map[string]interface{}) if ifVar.Filename != nil { objectMap["filename"] = ifVar.Filename @@ -5768,18 +5788,24 @@ func NewJobCollectionPage(cur JobCollection, getNextPage func(context.Context, J // JobError details of JobOutput errors. type JobError struct { - // Code - READ-ONLY; Error code describing the error. Possible values include: 'ServiceError', 'ServiceTransientError', 'DownloadNotAccessible', 'DownloadTransientError', 'UploadNotAccessible', 'UploadTransientError', 'ConfigurationUnsupported', 'ContentMalformed', 'ContentUnsupported' + // Code - READ-ONLY; Error code describing the error. Possible values include: 'JobErrorCodeServiceError', 'JobErrorCodeServiceTransientError', 'JobErrorCodeDownloadNotAccessible', 'JobErrorCodeDownloadTransientError', 'JobErrorCodeUploadNotAccessible', 'JobErrorCodeUploadTransientError', 'JobErrorCodeConfigurationUnsupported', 'JobErrorCodeContentMalformed', 'JobErrorCodeContentUnsupported' Code JobErrorCode `json:"code,omitempty"` // Message - READ-ONLY; A human-readable language-dependent representation of the error. Message *string `json:"message,omitempty"` // Category - READ-ONLY; Helps with categorization of errors. Possible values include: 'JobErrorCategoryService', 'JobErrorCategoryDownload', 'JobErrorCategoryUpload', 'JobErrorCategoryConfiguration', 'JobErrorCategoryContent' Category JobErrorCategory `json:"category,omitempty"` - // Retry - READ-ONLY; Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'DoNotRetry', 'MayRetry' + // Retry - READ-ONLY; Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. Possible values include: 'JobRetryDoNotRetry', 'JobRetryMayRetry' Retry JobRetry `json:"retry,omitempty"` // Details - READ-ONLY; An array of details about specific errors that led to this reported error. Details *[]JobErrorDetail `json:"details,omitempty"` } +// MarshalJSON is the custom marshaler for JobError. +func (je JobError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // JobErrorDetail details of JobOutput errors. type JobErrorDetail struct { // Code - READ-ONLY; Code describing the error detail. @@ -5788,6 +5814,12 @@ type JobErrorDetail struct { Message *string `json:"message,omitempty"` } +// MarshalJSON is the custom marshaler for JobErrorDetail. +func (jed JobErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // BasicJobInput base class for inputs to a Job. type BasicJobInput interface { AsJobInputClip() (*JobInputClip, bool) @@ -5801,7 +5833,7 @@ type BasicJobInput interface { // JobInput base class for inputs to a Job. type JobInput struct { - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } @@ -5813,23 +5845,23 @@ func unmarshalBasicJobInput(body []byte) (BasicJobInput, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaJobInputClip): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip): var jic JobInputClip err := json.Unmarshal(body, &jic) return jic, err - case string(OdataTypeMicrosoftMediaJobInputs): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs): var ji JobInputs err := json.Unmarshal(body, &ji) return ji, err - case string(OdataTypeMicrosoftMediaJobInputAsset): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset): var jia JobInputAsset err := json.Unmarshal(body, &jia) return jia, err - case string(OdataTypeMicrosoftMediaJobInputHTTP): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP): var jih JobInputHTTP err := json.Unmarshal(body, &jih) return jih, err - case string(OdataTypeMicrosoftMediaJobInputSequence): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence): var jis JobInputSequence err := json.Unmarshal(body, &jis) return jis, err @@ -5860,7 +5892,7 @@ func unmarshalBasicJobInputArray(body []byte) ([]BasicJobInput, error) { // MarshalJSON is the custom marshaler for JobInput. func (ji JobInput) MarshalJSON() ([]byte, error) { - ji.OdataType = OdataTypeJobInput + ji.OdataType = OdataTypeBasicJobInputOdataTypeJobInput objectMap := make(map[string]interface{}) if ji.OdataType != "" { objectMap["@odata.type"] = ji.OdataType @@ -5922,13 +5954,13 @@ type JobInputAsset struct { Label *string `json:"label,omitempty"` // InputDefinitions - Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata. InputDefinitions *[]BasicInputDefinition `json:"inputDefinitions,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JobInputAsset. func (jia JobInputAsset) MarshalJSON() ([]byte, error) { - jia.OdataType = OdataTypeMicrosoftMediaJobInputAsset + jia.OdataType = OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset objectMap := make(map[string]interface{}) if jia.AssetName != nil { objectMap["assetName"] = jia.AssetName @@ -6084,7 +6116,7 @@ type JobInputClip struct { Label *string `json:"label,omitempty"` // InputDefinitions - Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata. InputDefinitions *[]BasicInputDefinition `json:"inputDefinitions,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } @@ -6096,11 +6128,11 @@ func unmarshalBasicJobInputClip(body []byte) (BasicJobInputClip, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaJobInputAsset): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset): var jia JobInputAsset err := json.Unmarshal(body, &jia) return jia, err - case string(OdataTypeMicrosoftMediaJobInputHTTP): + case string(OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP): var jih JobInputHTTP err := json.Unmarshal(body, &jih) return jih, err @@ -6131,7 +6163,7 @@ func unmarshalBasicJobInputClipArray(body []byte) ([]BasicJobInputClip, error) { // MarshalJSON is the custom marshaler for JobInputClip. func (jic JobInputClip) MarshalJSON() ([]byte, error) { - jic.OdataType = OdataTypeMicrosoftMediaJobInputClip + jic.OdataType = OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip objectMap := make(map[string]interface{}) if jic.Files != nil { objectMap["files"] = jic.Files @@ -6270,13 +6302,13 @@ type JobInputHTTP struct { Label *string `json:"label,omitempty"` // InputDefinitions - Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related metadata. InputDefinitions *[]BasicInputDefinition `json:"inputDefinitions,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JobInputHTTP. func (jih JobInputHTTP) MarshalJSON() ([]byte, error) { - jih.OdataType = OdataTypeMicrosoftMediaJobInputHTTP + jih.OdataType = OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP objectMap := make(map[string]interface{}) if jih.BaseURI != nil { objectMap["baseUri"] = jih.BaseURI @@ -6417,13 +6449,13 @@ func (jih *JobInputHTTP) UnmarshalJSON(body []byte) error { type JobInputs struct { // Inputs - List of inputs to a Job. Inputs *[]BasicJobInput `json:"inputs,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JobInputs. func (ji JobInputs) MarshalJSON() ([]byte, error) { - ji.OdataType = OdataTypeMicrosoftMediaJobInputs + ji.OdataType = OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs objectMap := make(map[string]interface{}) if ji.Inputs != nil { objectMap["inputs"] = ji.Inputs @@ -6511,13 +6543,13 @@ func (ji *JobInputs) UnmarshalJSON(body []byte) error { type JobInputSequence struct { // Inputs - JobInputs that make up the timeline. Inputs *[]BasicJobInputClip `json:"inputs,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobInput', 'OdataTypeMicrosoftMediaJobInputClip', 'OdataTypeMicrosoftMediaJobInputs', 'OdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeMicrosoftMediaJobInputSequence' + // OdataType - Possible values include: 'OdataTypeBasicJobInputOdataTypeJobInput', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputClip', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputs', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputAsset', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputHTTP', 'OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence' OdataType OdataTypeBasicJobInput `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JobInputSequence. func (jis JobInputSequence) MarshalJSON() ([]byte, error) { - jis.OdataType = OdataTypeMicrosoftMediaJobInputSequence + jis.OdataType = OdataTypeBasicJobInputOdataTypeMicrosoftMediaJobInputSequence objectMap := make(map[string]interface{}) if jis.Inputs != nil { objectMap["inputs"] = jis.Inputs @@ -6610,7 +6642,7 @@ type BasicJobOutput interface { type JobOutput struct { // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error. Error *JobError `json:"error,omitempty"` - // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'JobStateCanceled', 'JobStateCanceling', 'JobStateError', 'JobStateFinished', 'JobStateProcessing', 'JobStateQueued', 'JobStateScheduled' State JobState `json:"state,omitempty"` // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. Progress *int32 `json:"progress,omitempty"` @@ -6620,7 +6652,7 @@ type JobOutput struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The UTC date and time at which this Job Output finished processing. EndTime *date.Time `json:"endTime,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobOutput', 'OdataTypeMicrosoftMediaJobOutputAsset' + // OdataType - Possible values include: 'OdataTypeBasicJobOutputOdataTypeJobOutput', 'OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset' OdataType OdataTypeBasicJobOutput `json:"@odata.type,omitempty"` } @@ -6632,7 +6664,7 @@ func unmarshalBasicJobOutput(body []byte) (BasicJobOutput, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaJobOutputAsset): + case string(OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset): var joa JobOutputAsset err := json.Unmarshal(body, &joa) return joa, err @@ -6663,7 +6695,7 @@ func unmarshalBasicJobOutputArray(body []byte) ([]BasicJobOutput, error) { // MarshalJSON is the custom marshaler for JobOutput. func (jo JobOutput) MarshalJSON() ([]byte, error) { - jo.OdataType = OdataTypeJobOutput + jo.OdataType = OdataTypeBasicJobOutputOdataTypeJobOutput objectMap := make(map[string]interface{}) if jo.Label != nil { objectMap["label"] = jo.Label @@ -6695,7 +6727,7 @@ type JobOutputAsset struct { AssetName *string `json:"assetName,omitempty"` // Error - READ-ONLY; If the JobOutput is in the Error state, it contains the details of the error. Error *JobError `json:"error,omitempty"` - // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; Describes the state of the JobOutput. Possible values include: 'JobStateCanceled', 'JobStateCanceling', 'JobStateError', 'JobStateFinished', 'JobStateProcessing', 'JobStateQueued', 'JobStateScheduled' State JobState `json:"state,omitempty"` // Progress - READ-ONLY; If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the State property. Progress *int32 `json:"progress,omitempty"` @@ -6705,13 +6737,13 @@ type JobOutputAsset struct { StartTime *date.Time `json:"startTime,omitempty"` // EndTime - READ-ONLY; The UTC date and time at which this Job Output finished processing. EndTime *date.Time `json:"endTime,omitempty"` - // OdataType - Possible values include: 'OdataTypeJobOutput', 'OdataTypeMicrosoftMediaJobOutputAsset' + // OdataType - Possible values include: 'OdataTypeBasicJobOutputOdataTypeJobOutput', 'OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset' OdataType OdataTypeBasicJobOutput `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JobOutputAsset. func (joa JobOutputAsset) MarshalJSON() ([]byte, error) { - joa.OdataType = OdataTypeMicrosoftMediaJobOutputAsset + joa.OdataType = OdataTypeBasicJobOutputOdataTypeMicrosoftMediaJobOutputAsset objectMap := make(map[string]interface{}) if joa.AssetName != nil { objectMap["assetName"] = joa.AssetName @@ -6744,7 +6776,7 @@ func (joa JobOutputAsset) AsBasicJobOutput() (BasicJobOutput, bool) { type JobProperties struct { // Created - READ-ONLY; The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. Created *date.Time `json:"created,omitempty"` - // State - READ-ONLY; The current state of the job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled' + // State - READ-ONLY; The current state of the job. Possible values include: 'JobStateCanceled', 'JobStateCanceling', 'JobStateError', 'JobStateFinished', 'JobStateProcessing', 'JobStateQueued', 'JobStateScheduled' State JobState `json:"state,omitempty"` // Description - Optional customer supplied description of the Job. Description *string `json:"description,omitempty"` @@ -6890,13 +6922,13 @@ func (jp *JobProperties) UnmarshalJSON(body []byte) error { type JpgFormat struct { // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JpgFormat. func (jf JpgFormat) MarshalJSON() ([]byte, error) { - jf.OdataType = OdataTypeMicrosoftMediaJpgFormat + jf.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat objectMap := make(map[string]interface{}) if jf.FilenamePattern != nil { objectMap["filenamePattern"] = jf.FilenamePattern @@ -6977,13 +7009,13 @@ type JpgImage struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JpgImage. func (ji JpgImage) MarshalJSON() ([]byte, error) { - ji.OdataType = OdataTypeMicrosoftMediaJpgImage + ji.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage objectMap := make(map[string]interface{}) if ji.Layers != nil { objectMap["layers"] = ji.Layers @@ -7103,13 +7135,13 @@ type JpgLayer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for JpgLayer. func (jl JpgLayer) MarshalJSON() ([]byte, error) { - jl.OdataType = OdataTypeMicrosoftMediaJpgLayer + jl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer objectMap := make(map[string]interface{}) if jl.Quality != nil { objectMap["quality"] = jl.Quality @@ -7179,6 +7211,12 @@ func (jl JpgLayer) AsBasicLayer() (BasicLayer, bool) { return &jl, true } +// KeyDelivery ... +type KeyDelivery struct { + // AccessControl - The access control properties for Key Delivery. + AccessControl *AccessControl `json:"accessControl,omitempty"` +} + // KeyVaultProperties ... type KeyVaultProperties struct { // KeyIdentifier - The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey). @@ -7221,7 +7259,7 @@ type Layer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } @@ -7233,27 +7271,27 @@ func unmarshalBasicLayer(body []byte) (BasicLayer, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaH265VideoLayer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer): var hvl H265VideoLayer err := json.Unmarshal(body, &hvl) return hvl, err - case string(OdataTypeMicrosoftMediaH265Layer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer): var hl H265Layer err := json.Unmarshal(body, &hl) return hl, err - case string(OdataTypeMicrosoftMediaVideoLayer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer): var vl VideoLayer err := json.Unmarshal(body, &vl) return vl, err - case string(OdataTypeMicrosoftMediaH264Layer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer): var hl H264Layer err := json.Unmarshal(body, &hl) return hl, err - case string(OdataTypeMicrosoftMediaJpgLayer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer): var jl JpgLayer err := json.Unmarshal(body, &jl) return jl, err - case string(OdataTypeMicrosoftMediaPngLayer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer): var pl PngLayer err := json.Unmarshal(body, &pl) return pl, err @@ -7284,7 +7322,7 @@ func unmarshalBasicLayerArray(body []byte) ([]BasicLayer, error) { // MarshalJSON is the custom marshaler for Layer. func (l Layer) MarshalJSON() ([]byte, error) { - l.OdataType = OdataTypeLayer + l.OdataType = OdataTypeBasicLayerOdataTypeLayer objectMap := make(map[string]interface{}) if l.Width != nil { objectMap["width"] = l.Width @@ -7353,7 +7391,7 @@ func (l Layer) AsBasicLayer() (BasicLayer, bool) { // ListContainerSasInput the parameters to the list SAS request. type ListContainerSasInput struct { - // Permissions - The permissions to set on the SAS URL. Possible values include: 'Read', 'ReadWrite', 'ReadWriteDelete' + // Permissions - The permissions to set on the SAS URL. Possible values include: 'AssetContainerPermissionRead', 'AssetContainerPermissionReadWrite', 'AssetContainerPermissionReadWriteDelete' Permissions AssetContainerPermission `json:"permissions,omitempty"` // ExpiryTime - The SAS URL expiration time. This must be less than 24 hours from the current time. ExpiryTime *date.Time `json:"expiryTime,omitempty"` @@ -7388,6 +7426,12 @@ type ListStreamingLocatorsResponse struct { StreamingLocators *[]AssetStreamingLocator `json:"streamingLocators,omitempty"` } +// MarshalJSON is the custom marshaler for ListStreamingLocatorsResponse. +func (lslr ListStreamingLocatorsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // LiveEvent the live event. type LiveEvent struct { autorest.Response `json:"-"` @@ -7528,7 +7572,7 @@ type LiveEventEndpoint struct { // LiveEventInput the live event input. type LiveEventInput struct { - // StreamingProtocol - The input protocol for the live event. This is specified at creation time and cannot be updated. Possible values include: 'FragmentedMP4', 'RTMP' + // StreamingProtocol - The input protocol for the live event. This is specified at creation time and cannot be updated. Possible values include: 'LiveEventInputProtocolFragmentedMP4', 'LiveEventInputProtocolRTMP' StreamingProtocol LiveEventInputProtocol `json:"streamingProtocol,omitempty"` // AccessControl - Access control for live event input. AccessControl *LiveEventInputAccessControl `json:"accessControl,omitempty"` @@ -7760,7 +7804,7 @@ type LiveEventProperties struct { Transcriptions *[]LiveEventTranscription `json:"transcriptions,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the live event. ProvisioningState *string `json:"provisioningState,omitempty"` - // ResourceState - READ-ONLY; The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. Possible values include: 'Stopped', 'Allocating', 'StandBy', 'Starting', 'Running', 'Stopping', 'Deleting' + // ResourceState - READ-ONLY; The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. Possible values include: 'LiveEventResourceStateStopped', 'LiveEventResourceStateAllocating', 'LiveEventResourceStateStandBy', 'LiveEventResourceStateStarting', 'LiveEventResourceStateRunning', 'LiveEventResourceStateStopping', 'LiveEventResourceStateDeleting' ResourceState LiveEventResourceState `json:"resourceState,omitempty"` // CrossSiteAccessPolicies - Live event cross site access policies. CrossSiteAccessPolicies *CrossSiteAccessPolicies `json:"crossSiteAccessPolicies,omitempty"` @@ -8469,6 +8513,12 @@ type LogSpecification struct { BlobDuration *string `json:"blobDuration,omitempty"` } +// MarshalJSON is the custom marshaler for LogSpecification. +func (ls LogSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricDimension a metric dimension. type MetricDimension struct { // Name - READ-ONLY; The metric dimension name. @@ -8479,6 +8529,12 @@ type MetricDimension struct { ToBeExportedForShoebox *bool `json:"toBeExportedForShoebox,omitempty"` } +// MarshalJSON is the custom marshaler for MetricDimension. +func (md MetricDimension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // MetricSpecification a metric emitted by service. type MetricSpecification struct { // Name - READ-ONLY; The metric name. @@ -8489,14 +8545,22 @@ type MetricSpecification struct { DisplayDescription *string `json:"displayDescription,omitempty"` // Unit - READ-ONLY; The metric unit. Possible values include: 'MetricUnitBytes', 'MetricUnitCount', 'MetricUnitMilliseconds' Unit MetricUnit `json:"unit,omitempty"` - // AggregationType - READ-ONLY; The metric aggregation type. Possible values include: 'Average', 'Count', 'Total' + // AggregationType - READ-ONLY; The metric aggregation type. Possible values include: 'MetricAggregationTypeAverage', 'MetricAggregationTypeCount', 'MetricAggregationTypeTotal' AggregationType MetricAggregationType `json:"aggregationType,omitempty"` - // LockAggregationType - READ-ONLY; The metric lock aggregation type. Possible values include: 'Average', 'Count', 'Total' + // LockAggregationType - READ-ONLY; The metric lock aggregation type. Possible values include: 'MetricAggregationTypeAverage', 'MetricAggregationTypeCount', 'MetricAggregationTypeTotal' LockAggregationType MetricAggregationType `json:"lockAggregationType,omitempty"` // SupportedAggregationTypes - Supported aggregation types. SupportedAggregationTypes *[]string `json:"supportedAggregationTypes,omitempty"` // Dimensions - READ-ONLY; The metric dimensions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` + // EnableRegionalMdmAccount - READ-ONLY; Indicates whether regional MDM account is enabled. + EnableRegionalMdmAccount *bool `json:"enableRegionalMdmAccount,omitempty"` + // SourceMdmAccount - READ-ONLY; The source MDM account. + SourceMdmAccount *string `json:"sourceMdmAccount,omitempty"` + // SourceMdmNamespace - READ-ONLY; The source MDM namespace. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // SupportedTimeGrainTypes - READ-ONLY; The supported time grain types. + SupportedTimeGrainTypes *[]string `json:"supportedTimeGrainTypes,omitempty"` } // MarshalJSON is the custom marshaler for MetricSpecification. @@ -8514,13 +8578,13 @@ type Mp4Format struct { OutputFiles *[]OutputFile `json:"outputFiles,omitempty"` // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for Mp4Format. func (m4f Mp4Format) MarshalJSON() ([]byte, error) { - m4f.OdataType = OdataTypeMicrosoftMediaMp4Format + m4f.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format objectMap := make(map[string]interface{}) if m4f.OutputFiles != nil { objectMap["outputFiles"] = m4f.OutputFiles @@ -8601,7 +8665,7 @@ type MultiBitrateFormat struct { OutputFiles *[]OutputFile `json:"outputFiles,omitempty"` // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } @@ -8613,11 +8677,11 @@ func unmarshalBasicMultiBitrateFormat(body []byte) (BasicMultiBitrateFormat, err } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaMp4Format): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format): var m4f Mp4Format err := json.Unmarshal(body, &m4f) return m4f, err - case string(OdataTypeMicrosoftMediaTransportStreamFormat): + case string(OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat): var tsf TransportStreamFormat err := json.Unmarshal(body, &tsf) return tsf, err @@ -8648,7 +8712,7 @@ func unmarshalBasicMultiBitrateFormatArray(body []byte) ([]BasicMultiBitrateForm // MarshalJSON is the custom marshaler for MultiBitrateFormat. func (mbf MultiBitrateFormat) MarshalJSON() ([]byte, error) { - mbf.OdataType = OdataTypeMicrosoftMediaMultiBitrateFormat + mbf.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat objectMap := make(map[string]interface{}) if mbf.OutputFiles != nil { objectMap["outputFiles"] = mbf.OutputFiles @@ -8740,6 +8804,10 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties - Operation properties format. Properties *Properties `json:"properties,omitempty"` + // IsDataAction - Whether the operation applies to data-plane. + IsDataAction *bool `json:"isDataAction,omitempty"` + // ActionType - Indicates the action type. Possible values include: 'ActionTypeInternal' + ActionType ActionType `json:"actionType,omitempty"` } // OperationCollection a collection of Operation items. @@ -8940,7 +9008,7 @@ type Overlay struct { FadeOutDuration *string `json:"fadeOutDuration,omitempty"` // AudioGainLevel - The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0. AudioGainLevel *float64 `json:"audioGainLevel,omitempty"` - // OdataType - Possible values include: 'OdataTypeOverlay', 'OdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeMicrosoftMediaVideoOverlay' + // OdataType - Possible values include: 'OdataTypeBasicOverlayOdataTypeOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay' OdataType OdataTypeBasicOverlay `json:"@odata.type,omitempty"` } @@ -8952,11 +9020,11 @@ func unmarshalBasicOverlay(body []byte) (BasicOverlay, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaAudioOverlay): + case string(OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay): var ao AudioOverlay err := json.Unmarshal(body, &ao) return ao, err - case string(OdataTypeMicrosoftMediaVideoOverlay): + case string(OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay): var vo VideoOverlay err := json.Unmarshal(body, &vo) return vo, err @@ -8987,7 +9055,7 @@ func unmarshalBasicOverlayArray(body []byte) ([]BasicOverlay, error) { // MarshalJSON is the custom marshaler for Overlay. func (o Overlay) MarshalJSON() ([]byte, error) { - o.OdataType = OdataTypeOverlay + o.OdataType = OdataTypeBasicOverlayOdataTypeOverlay objectMap := make(map[string]interface{}) if o.InputLabel != nil { objectMap["inputLabel"] = o.InputLabel @@ -9037,13 +9105,13 @@ func (o Overlay) AsBasicOverlay() (BasicOverlay, bool) { type PngFormat struct { // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for PngFormat. func (pf PngFormat) MarshalJSON() ([]byte, error) { - pf.OdataType = OdataTypeMicrosoftMediaPngFormat + pf.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat objectMap := make(map[string]interface{}) if pf.FilenamePattern != nil { objectMap["filenamePattern"] = pf.FilenamePattern @@ -9122,13 +9190,13 @@ type PngImage struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for PngImage. func (pi PngImage) MarshalJSON() ([]byte, error) { - pi.OdataType = OdataTypeMicrosoftMediaPngImage + pi.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage objectMap := make(map[string]interface{}) if pi.Layers != nil { objectMap["layers"] = pi.Layers @@ -9243,13 +9311,13 @@ type PngLayer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for PngLayer. func (pl PngLayer) MarshalJSON() ([]byte, error) { - pl.OdataType = OdataTypeMicrosoftMediaPngLayer + pl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer objectMap := make(map[string]interface{}) if pl.Width != nil { objectMap["width"] = pl.Width @@ -9348,7 +9416,7 @@ type BasicPreset interface { // Preset base type for all Presets, which define the recipe or instructions on how the input media files // should be processed. type Preset struct { - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } @@ -9360,23 +9428,23 @@ func unmarshalBasicPreset(body []byte) (BasicPreset, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaFaceDetectorPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset): var fdp FaceDetectorPreset err := json.Unmarshal(body, &fdp) return fdp, err - case string(OdataTypeMicrosoftMediaAudioAnalyzerPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset): var aap AudioAnalyzerPreset err := json.Unmarshal(body, &aap) return aap, err - case string(OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset): var bisep BuiltInStandardEncoderPreset err := json.Unmarshal(body, &bisep) return bisep, err - case string(OdataTypeMicrosoftMediaStandardEncoderPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset): var sep StandardEncoderPreset err := json.Unmarshal(body, &sep) return sep, err - case string(OdataTypeMicrosoftMediaVideoAnalyzerPreset): + case string(OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset): var vap VideoAnalyzerPreset err := json.Unmarshal(body, &vap) return vap, err @@ -9407,7 +9475,7 @@ func unmarshalBasicPresetArray(body []byte) ([]BasicPreset, error) { // MarshalJSON is the custom marshaler for Preset. func (p Preset) MarshalJSON() ([]byte, error) { - p.OdataType = OdataTypePreset + p.OdataType = OdataTypeBasicPresetOdataTypePreset objectMap := make(map[string]interface{}) if p.OdataType != "" { objectMap["@odata.type"] = p.OdataType @@ -9461,6 +9529,12 @@ type PrivateEndpoint struct { ID *string `json:"id,omitempty"` } +// MarshalJSON is the custom marshaler for PrivateEndpoint. +func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // PrivateEndpointConnection the Private Endpoint Connection resource. type PrivateEndpointConnection struct { autorest.Response `json:"-"` @@ -9654,7 +9728,7 @@ func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { // PrivateLinkServiceConnectionState a collection of information about the state of the connection between // service consumer and provider. type PrivateLinkServiceConnectionState struct { - // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected' + // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'PrivateEndpointServiceConnectionStatusPending', 'PrivateEndpointServiceConnectionStatusApproved', 'PrivateEndpointServiceConnectionStatusRejected' Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` // Description - The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` @@ -9668,6 +9742,12 @@ type Properties struct { ServiceSpecification *ServiceSpecification `json:"serviceSpecification,omitempty"` } +// MarshalJSON is the custom marshaler for Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Provider a resource provider. type Provider struct { // ProviderName - The provider name. @@ -9685,6 +9765,12 @@ type ProxyResource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // Rectangle describes the properties of a rectangular window applied to the input media before processing // it. type Rectangle struct { @@ -9708,24 +9794,30 @@ type Resource struct { Type *string `json:"type,omitempty"` } +// MarshalJSON is the custom marshaler for Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // SelectAudioTrackByAttribute select audio tracks from the input by specifying an attribute and an // attribute filter. type SelectAudioTrackByAttribute struct { - // Attribute - The TrackAttribute to filter the tracks by. Possible values include: 'Bitrate', 'Language' + // Attribute - The TrackAttribute to filter the tracks by. Possible values include: 'TrackAttributeBitrate', 'TrackAttributeLanguage' Attribute TrackAttribute `json:"attribute,omitempty"` - // Filter - The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. Possible values include: 'All', 'Top', 'Bottom', 'ValueEquals' + // Filter - The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. Possible values include: 'AttributeFilterAll', 'AttributeFilterTop', 'AttributeFilterBottom', 'AttributeFilterValueEquals' Filter AttributeFilter `json:"filter,omitempty"` // FilterValue - The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. FilterValue *string `json:"filterValue,omitempty"` - // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'ChannelMappingFrontLeft', 'ChannelMappingFrontRight', 'ChannelMappingCenter', 'ChannelMappingLowFrequencyEffects', 'ChannelMappingBackLeft', 'ChannelMappingBackRight', 'ChannelMappingStereoLeft', 'ChannelMappingStereoRight' ChannelMapping ChannelMapping `json:"channelMapping,omitempty"` - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for SelectAudioTrackByAttribute. func (satba SelectAudioTrackByAttribute) MarshalJSON() ([]byte, error) { - satba.OdataType = OdataTypeMicrosoftMediaSelectAudioTrackByAttribute + satba.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute objectMap := make(map[string]interface{}) if satba.Attribute != "" { objectMap["attribute"] = satba.Attribute @@ -9799,15 +9891,15 @@ func (satba SelectAudioTrackByAttribute) AsBasicTrackDescriptor() (BasicTrackDes type SelectAudioTrackByID struct { // TrackID - Track identifier to select TrackID *int64 `json:"trackId,omitempty"` - // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'FrontLeft', 'FrontRight', 'Center', 'LowFrequencyEffects', 'BackLeft', 'BackRight', 'StereoLeft', 'StereoRight' + // ChannelMapping - Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks. Possible values include: 'ChannelMappingFrontLeft', 'ChannelMappingFrontRight', 'ChannelMappingCenter', 'ChannelMappingLowFrequencyEffects', 'ChannelMappingBackLeft', 'ChannelMappingBackRight', 'ChannelMappingStereoLeft', 'ChannelMappingStereoRight' ChannelMapping ChannelMapping `json:"channelMapping,omitempty"` - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for SelectAudioTrackByID. func (satbi SelectAudioTrackByID) MarshalJSON() ([]byte, error) { - satbi.OdataType = OdataTypeMicrosoftMediaSelectAudioTrackByID + satbi.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID objectMap := make(map[string]interface{}) if satbi.TrackID != nil { objectMap["trackId"] = satbi.TrackID @@ -9874,19 +9966,19 @@ func (satbi SelectAudioTrackByID) AsBasicTrackDescriptor() (BasicTrackDescriptor // SelectVideoTrackByAttribute select video tracks from the input by specifying an attribute and an // attribute filter. type SelectVideoTrackByAttribute struct { - // Attribute - The TrackAttribute to filter the tracks by. Possible values include: 'Bitrate', 'Language' + // Attribute - The TrackAttribute to filter the tracks by. Possible values include: 'TrackAttributeBitrate', 'TrackAttributeLanguage' Attribute TrackAttribute `json:"attribute,omitempty"` - // Filter - The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. Possible values include: 'All', 'Top', 'Bottom', 'ValueEquals' + // Filter - The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. Possible values include: 'AttributeFilterAll', 'AttributeFilterTop', 'AttributeFilterBottom', 'AttributeFilterValueEquals' Filter AttributeFilter `json:"filter,omitempty"` // FilterValue - The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks. FilterValue *string `json:"filterValue,omitempty"` - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for SelectVideoTrackByAttribute. func (svtba SelectVideoTrackByAttribute) MarshalJSON() ([]byte, error) { - svtba.OdataType = OdataTypeMicrosoftMediaSelectVideoTrackByAttribute + svtba.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute objectMap := make(map[string]interface{}) if svtba.Attribute != "" { objectMap["attribute"] = svtba.Attribute @@ -9957,13 +10049,13 @@ func (svtba SelectVideoTrackByAttribute) AsBasicTrackDescriptor() (BasicTrackDes type SelectVideoTrackByID struct { // TrackID - Track identifier to select TrackID *int64 `json:"trackId,omitempty"` - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for SelectVideoTrackByID. func (svtbi SelectVideoTrackByID) MarshalJSON() ([]byte, error) { - svtbi.OdataType = OdataTypeMicrosoftMediaSelectVideoTrackByID + svtbi.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID objectMap := make(map[string]interface{}) if svtbi.TrackID != nil { objectMap["trackId"] = svtbi.TrackID @@ -10338,6 +10430,8 @@ type ServiceProperties struct { StorageAuthentication StorageAuthentication `json:"storageAuthentication,omitempty"` // Encryption - The account encryption properties. Encryption *AccountEncryption `json:"encryption,omitempty"` + // KeyDelivery - The Key Delivery properties for Media Services account. + KeyDelivery *KeyDelivery `json:"keyDelivery,omitempty"` } // MarshalJSON is the custom marshaler for ServiceProperties. @@ -10352,6 +10446,9 @@ func (sp ServiceProperties) MarshalJSON() ([]byte, error) { if sp.Encryption != nil { objectMap["encryption"] = sp.Encryption } + if sp.KeyDelivery != nil { + objectMap["keyDelivery"] = sp.KeyDelivery + } return json.Marshal(objectMap) } @@ -10363,6 +10460,79 @@ type ServiceSpecification struct { MetricSpecifications *[]MetricSpecification `json:"metricSpecifications,omitempty"` } +// MarshalJSON is the custom marshaler for ServiceSpecification. +func (ss ServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + +// ServiceUpdate a Media Services account update. +type ServiceUpdate struct { + // Tags - Resource tags. + Tags map[string]*string `json:"tags"` + // ServiceProperties - The resource properties. + *ServiceProperties `json:"properties,omitempty"` + // Identity - The Managed Identity for the Media Services account. + Identity *ServiceIdentity `json:"identity,omitempty"` +} + +// MarshalJSON is the custom marshaler for ServiceUpdate. +func (su ServiceUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if su.Tags != nil { + objectMap["tags"] = su.Tags + } + if su.ServiceProperties != nil { + objectMap["properties"] = su.ServiceProperties + } + if su.Identity != nil { + objectMap["identity"] = su.Identity + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for ServiceUpdate struct. +func (su *ServiceUpdate) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "tags": + if v != nil { + var tags map[string]*string + err = json.Unmarshal(*v, &tags) + if err != nil { + return err + } + su.Tags = tags + } + case "properties": + if v != nil { + var serviceProperties ServiceProperties + err = json.Unmarshal(*v, &serviceProperties) + if err != nil { + return err + } + su.ServiceProperties = &serviceProperties + } + case "identity": + if v != nil { + var identity ServiceIdentity + err = json.Unmarshal(*v, &identity) + if err != nil { + return err + } + su.Identity = &identity + } + } + } + + return nil +} + // StandardEncoderPreset describes all the settings to be used when encoding the input video with the // Standard Encoder. type StandardEncoderPreset struct { @@ -10372,13 +10542,13 @@ type StandardEncoderPreset struct { Codecs *[]BasicCodec `json:"codecs,omitempty"` // Formats - The list of outputs to be produced by the encoder. Formats *[]BasicFormat `json:"formats,omitempty"` - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for StandardEncoderPreset. func (sep StandardEncoderPreset) MarshalJSON() ([]byte, error) { - sep.OdataType = OdataTypeMicrosoftMediaStandardEncoderPreset + sep.OdataType = OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset objectMap := make(map[string]interface{}) if sep.Filters != nil { objectMap["filters"] = sep.Filters @@ -10488,7 +10658,7 @@ func (sep *StandardEncoderPreset) UnmarshalJSON(body []byte) error { type StorageAccount struct { // ID - The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts. ID *string `json:"id,omitempty"` - // Type - The type of the storage account. Possible values include: 'Primary', 'Secondary' + // Type - The type of the storage account. Possible values include: 'StorageAccountTypePrimary', 'StorageAccountTypeSecondary' Type StorageAccountType `json:"type,omitempty"` } @@ -11764,13 +11934,13 @@ type SyncStorageKeysInput struct { type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` - // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + // CreatedByType - The type of identity that created the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'CreatedByTypeUser', 'CreatedByTypeApplication', 'CreatedByTypeManagedIdentity', 'CreatedByTypeKey' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` @@ -11793,7 +11963,7 @@ type BasicTrackDescriptor interface { // TrackDescriptor base type for all TrackDescriptor types, which define the metadata and selection for tracks // that should be processed by a Job type TrackDescriptor struct { - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } @@ -11805,27 +11975,27 @@ func unmarshalBasicTrackDescriptor(body []byte) (BasicTrackDescriptor, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaAudioTrackDescriptor): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor): var atd AudioTrackDescriptor err := json.Unmarshal(body, &atd) return atd, err - case string(OdataTypeMicrosoftMediaSelectAudioTrackByAttribute): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute): var satba SelectAudioTrackByAttribute err := json.Unmarshal(body, &satba) return satba, err - case string(OdataTypeMicrosoftMediaSelectAudioTrackByID): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID): var satbi SelectAudioTrackByID err := json.Unmarshal(body, &satbi) return satbi, err - case string(OdataTypeMicrosoftMediaVideoTrackDescriptor): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor): var vtd VideoTrackDescriptor err := json.Unmarshal(body, &vtd) return vtd, err - case string(OdataTypeMicrosoftMediaSelectVideoTrackByAttribute): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute): var svtba SelectVideoTrackByAttribute err := json.Unmarshal(body, &svtba) return svtba, err - case string(OdataTypeMicrosoftMediaSelectVideoTrackByID): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID): var svtbi SelectVideoTrackByID err := json.Unmarshal(body, &svtbi) return svtbi, err @@ -11856,7 +12026,7 @@ func unmarshalBasicTrackDescriptorArray(body []byte) ([]BasicTrackDescriptor, er // MarshalJSON is the custom marshaler for TrackDescriptor. func (td TrackDescriptor) MarshalJSON() ([]byte, error) { - td.OdataType = OdataTypeTrackDescriptor + td.OdataType = OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor objectMap := make(map[string]interface{}) if td.OdataType != "" { objectMap["@odata.type"] = td.OdataType @@ -12205,7 +12375,7 @@ func NewTransformCollectionPage(cur TransformCollection, getNextPage func(contex // TransformOutput describes the properties of a TransformOutput, which are the rules to be applied while // generating the desired output. type TransformOutput struct { - // OnError - A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'. Possible values include: 'StopProcessingJob', 'ContinueJob' + // OnError - A Transform can define more than one outputs. This property defines what the service should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'. Possible values include: 'OnErrorTypeStopProcessingJob', 'OnErrorTypeContinueJob' OnError OnErrorType `json:"onError,omitempty"` // RelativePriority - Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service uses for processing TransformOutputs. The default priority is Normal. Possible values include: 'PriorityLow', 'PriorityNormal', 'PriorityHigh' RelativePriority Priority `json:"relativePriority,omitempty"` @@ -12285,13 +12455,13 @@ type TransportStreamFormat struct { OutputFiles *[]OutputFile `json:"outputFiles,omitempty"` // FilenamePattern - The pattern of the file names for the generated output files. The following macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, the base name of input video files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the filename. FilenamePattern *string `json:"filenamePattern,omitempty"` - // OdataType - Possible values include: 'OdataTypeFormat', 'OdataTypeMicrosoftMediaImageFormat', 'OdataTypeMicrosoftMediaJpgFormat', 'OdataTypeMicrosoftMediaPngFormat', 'OdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeMicrosoftMediaMp4Format', 'OdataTypeMicrosoftMediaTransportStreamFormat' + // OdataType - Possible values include: 'OdataTypeBasicFormatOdataTypeFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaImageFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaJpgFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaPngFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMultiBitrateFormat', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaMp4Format', 'OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat' OdataType OdataTypeBasicFormat `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for TransportStreamFormat. func (tsf TransportStreamFormat) MarshalJSON() ([]byte, error) { - tsf.OdataType = OdataTypeMicrosoftMediaTransportStreamFormat + tsf.OdataType = OdataTypeBasicFormatOdataTypeMicrosoftMediaTransportStreamFormat objectMap := make(map[string]interface{}) if tsf.OutputFiles != nil { objectMap["outputFiles"] = tsf.OutputFiles @@ -12360,13 +12530,13 @@ func (tsf TransportStreamFormat) AsBasicFormat() (BasicFormat, bool) { type UtcClipTime struct { // Time - The time position on the timeline of the input media based on Utc time. Time *date.Time `json:"time,omitempty"` - // OdataType - Possible values include: 'OdataTypeClipTime', 'OdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeMicrosoftMediaUtcClipTime' + // OdataType - Possible values include: 'OdataTypeBasicClipTimeOdataTypeClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaAbsoluteClipTime', 'OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime' OdataType OdataTypeBasicClipTime `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for UtcClipTime. func (uct UtcClipTime) MarshalJSON() ([]byte, error) { - uct.OdataType = OdataTypeMicrosoftMediaUtcClipTime + uct.OdataType = OdataTypeBasicClipTimeOdataTypeMicrosoftMediaUtcClipTime objectMap := make(map[string]interface{}) if uct.Time != nil { objectMap["time"] = uct.Time @@ -12418,7 +12588,7 @@ type Video struct { SyncMode VideoSyncMode `json:"syncMode,omitempty"` // Label - An optional label for the codec. The label can be used to control muxing behavior. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeCodec', 'OdataTypeMicrosoftMediaAudio', 'OdataTypeMicrosoftMediaAacAudio', 'OdataTypeMicrosoftMediaVideo', 'OdataTypeMicrosoftMediaH265Video', 'OdataTypeMicrosoftMediaCopyVideo', 'OdataTypeMicrosoftMediaImage', 'OdataTypeMicrosoftMediaCopyAudio', 'OdataTypeMicrosoftMediaH264Video', 'OdataTypeMicrosoftMediaJpgImage', 'OdataTypeMicrosoftMediaPngImage' + // OdataType - Possible values include: 'OdataTypeBasicCodecOdataTypeCodec', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaAacAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyVideo', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaCopyAudio', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage', 'OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage' OdataType OdataTypeBasicCodec `json:"@odata.type,omitempty"` } @@ -12430,23 +12600,23 @@ func unmarshalBasicVideo(body []byte) (BasicVideo, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaH265Video): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaH265Video): var hv H265Video err := json.Unmarshal(body, &hv) return hv, err - case string(OdataTypeMicrosoftMediaImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaImage): var i Image err := json.Unmarshal(body, &i) return i, err - case string(OdataTypeMicrosoftMediaH264Video): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaH264Video): var hv H264Video err := json.Unmarshal(body, &hv) return hv, err - case string(OdataTypeMicrosoftMediaJpgImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaJpgImage): var ji JpgImage err := json.Unmarshal(body, &ji) return ji, err - case string(OdataTypeMicrosoftMediaPngImage): + case string(OdataTypeBasicCodecOdataTypeMicrosoftMediaPngImage): var pi PngImage err := json.Unmarshal(body, &pi) return pi, err @@ -12477,7 +12647,7 @@ func unmarshalBasicVideoArray(body []byte) ([]BasicVideo, error) { // MarshalJSON is the custom marshaler for Video. func (vVar Video) MarshalJSON() ([]byte, error) { - vVar.OdataType = OdataTypeMicrosoftMediaVideo + vVar.OdataType = OdataTypeBasicCodecOdataTypeMicrosoftMediaVideo objectMap := make(map[string]interface{}) if vVar.KeyFrameInterval != nil { objectMap["keyFrameInterval"] = vVar.KeyFrameInterval @@ -12575,21 +12745,21 @@ func (vVar Video) AsBasicCodec() (BasicCodec, bool) { // VideoAnalyzerPreset a video analyzer preset that extracts insights (rich metadata) from both audio and // video, and outputs a JSON format file. type VideoAnalyzerPreset struct { - // InsightsToExtract - Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights' + // InsightsToExtract - Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'InsightsTypeAudioInsightsOnly', 'InsightsTypeVideoInsightsOnly', 'InsightsTypeAllInsights' InsightsToExtract InsightsType `json:"insightsToExtract,omitempty"` // AudioLanguage - The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463 AudioLanguage *string `json:"audioLanguage,omitempty"` - // Mode - Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. Possible values include: 'Standard', 'Basic' + // Mode - Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode would be chosen. Possible values include: 'AudioAnalysisModeStandard', 'AudioAnalysisModeBasic' Mode AudioAnalysisMode `json:"mode,omitempty"` // ExperimentalOptions - Dictionary containing key value pairs for parameters not exposed in the preset itself ExperimentalOptions map[string]*string `json:"experimentalOptions"` - // OdataType - Possible values include: 'OdataTypePreset', 'OdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeMicrosoftMediaVideoAnalyzerPreset' + // OdataType - Possible values include: 'OdataTypeBasicPresetOdataTypePreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaStandardEncoderPreset', 'OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset' OdataType OdataTypeBasicPreset `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for VideoAnalyzerPreset. func (vap VideoAnalyzerPreset) MarshalJSON() ([]byte, error) { - vap.OdataType = OdataTypeMicrosoftMediaVideoAnalyzerPreset + vap.OdataType = OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset objectMap := make(map[string]interface{}) if vap.InsightsToExtract != "" { objectMap["insightsToExtract"] = vap.InsightsToExtract @@ -12676,7 +12846,7 @@ type VideoLayer struct { Height *string `json:"height,omitempty"` // Label - The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file. Label *string `json:"label,omitempty"` - // OdataType - Possible values include: 'OdataTypeLayer', 'OdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeMicrosoftMediaH265Layer', 'OdataTypeMicrosoftMediaVideoLayer', 'OdataTypeMicrosoftMediaH264Layer', 'OdataTypeMicrosoftMediaJpgLayer', 'OdataTypeMicrosoftMediaPngLayer' + // OdataType - Possible values include: 'OdataTypeBasicLayerOdataTypeLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265VideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH265Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaJpgLayer', 'OdataTypeBasicLayerOdataTypeMicrosoftMediaPngLayer' OdataType OdataTypeBasicLayer `json:"@odata.type,omitempty"` } @@ -12688,7 +12858,7 @@ func unmarshalBasicVideoLayer(body []byte) (BasicVideoLayer, error) { } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaH264Layer): + case string(OdataTypeBasicLayerOdataTypeMicrosoftMediaH264Layer): var hl H264Layer err := json.Unmarshal(body, &hl) return hl, err @@ -12719,7 +12889,7 @@ func unmarshalBasicVideoLayerArray(body []byte) ([]BasicVideoLayer, error) { // MarshalJSON is the custom marshaler for VideoLayer. func (vl VideoLayer) MarshalJSON() ([]byte, error) { - vl.OdataType = OdataTypeMicrosoftMediaVideoLayer + vl.OdataType = OdataTypeBasicLayerOdataTypeMicrosoftMediaVideoLayer objectMap := make(map[string]interface{}) if vl.Bitrate != nil { objectMap["bitrate"] = vl.Bitrate @@ -12824,13 +12994,13 @@ type VideoOverlay struct { FadeOutDuration *string `json:"fadeOutDuration,omitempty"` // AudioGainLevel - The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0. AudioGainLevel *float64 `json:"audioGainLevel,omitempty"` - // OdataType - Possible values include: 'OdataTypeOverlay', 'OdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeMicrosoftMediaVideoOverlay' + // OdataType - Possible values include: 'OdataTypeBasicOverlayOdataTypeOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaAudioOverlay', 'OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay' OdataType OdataTypeBasicOverlay `json:"@odata.type,omitempty"` } // MarshalJSON is the custom marshaler for VideoOverlay. func (vo VideoOverlay) MarshalJSON() ([]byte, error) { - vo.OdataType = OdataTypeMicrosoftMediaVideoOverlay + vo.OdataType = OdataTypeBasicOverlayOdataTypeMicrosoftMediaVideoOverlay objectMap := make(map[string]interface{}) if vo.Position != nil { objectMap["position"] = vo.Position @@ -12894,7 +13064,7 @@ type BasicVideoTrackDescriptor interface { // VideoTrackDescriptor a TrackSelection to select video tracks. type VideoTrackDescriptor struct { - // OdataType - Possible values include: 'OdataTypeTrackDescriptor', 'OdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeMicrosoftMediaSelectVideoTrackByID' + // OdataType - Possible values include: 'OdataTypeBasicTrackDescriptorOdataTypeTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaAudioTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectAudioTrackByID', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute', 'OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID' OdataType OdataTypeBasicTrackDescriptor `json:"@odata.type,omitempty"` } @@ -12906,11 +13076,11 @@ func unmarshalBasicVideoTrackDescriptor(body []byte) (BasicVideoTrackDescriptor, } switch m["@odata.type"] { - case string(OdataTypeMicrosoftMediaSelectVideoTrackByAttribute): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByAttribute): var svtba SelectVideoTrackByAttribute err := json.Unmarshal(body, &svtba) return svtba, err - case string(OdataTypeMicrosoftMediaSelectVideoTrackByID): + case string(OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaSelectVideoTrackByID): var svtbi SelectVideoTrackByID err := json.Unmarshal(body, &svtbi) return svtbi, err @@ -12941,7 +13111,7 @@ func unmarshalBasicVideoTrackDescriptorArray(body []byte) ([]BasicVideoTrackDesc // MarshalJSON is the custom marshaler for VideoTrackDescriptor. func (vtd VideoTrackDescriptor) MarshalJSON() ([]byte, error) { - vtd.OdataType = OdataTypeMicrosoftMediaVideoTrackDescriptor + vtd.OdataType = OdataTypeBasicTrackDescriptorOdataTypeMicrosoftMediaVideoTrackDescriptor objectMap := make(map[string]interface{}) if vtd.OdataType != "" { objectMap["@odata.type"] = vtd.OdataType diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/operations.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/operations.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/operations.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/operations.go index 8113b06cdf17..a4eaa54b555d 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/operations.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/operations.go @@ -71,7 +71,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationCollec // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privateendpointconnections.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privateendpointconnections.go index a5fc53ce51f0..bd24cbb4b5e1 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privateendpointconnections.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privateendpointconnections.go @@ -86,7 +86,7 @@ func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -165,7 +165,7 @@ func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Contex "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -241,7 +241,7 @@ func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -317,7 +317,7 @@ func (client PrivateEndpointConnectionsClient) ListPreparer(ctx context.Context, "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privatelinkresources.go similarity index 99% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privatelinkresources.go index 67d42683f8e9..f3eadf8154a8 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/privatelinkresources.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/privatelinkresources.go @@ -77,7 +77,7 @@ func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resour "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } @@ -153,7 +153,7 @@ func (client PrivateLinkResourcesClient) ListPreparer(ctx context.Context, resou "subscriptionId": autorest.Encode("path", client.SubscriptionID), } - const APIVersion = "2020-05-01" + const APIVersion = "2021-05-01" queryParameters := map[string]interface{}{ "api-version": APIVersion, } diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streamingendpoints.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streamingendpoints.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streamingendpoints.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streaminglocators.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streaminglocators.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streaminglocators.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streamingpolicies.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/streamingpolicies.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/streamingpolicies.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/transforms.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/transforms.go similarity index 100% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/transforms.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/transforms.go diff --git a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/version.go b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/version.go similarity index 90% rename from vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/version.go rename to vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/version.go index 8f8718563033..20e40a08c9c4 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media/version.go @@ -10,7 +10,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + Version() + " media/2020-05-01" + return "Azure-SDK-For-Go/" + Version() + " media/2021-05-01" } // Version returns the semantic version (see http://semver.org) of the client. diff --git a/vendor/modules.txt b/vendor/modules.txt index 5286693f7762..7df996238f3f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -59,7 +59,7 @@ github.com/Azure/azure-sdk-for-go/services/managedservices/mgmt/2019-06-01/manag github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2021-02-01/maps github.com/Azure/azure-sdk-for-go/services/mariadb/mgmt/2018-06-01/mariadb github.com/Azure/azure-sdk-for-go/services/marketplaceordering/mgmt/2015-06-01/marketplaceordering -github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2020-05-01/media +github.com/Azure/azure-sdk-for-go/services/mediaservices/mgmt/2021-05-01/media github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2020-10-01/insights github.com/Azure/azure-sdk-for-go/services/msi/mgmt/2018-11-30/msi github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2020-01-01/mysql From 8cca5aa8e325ae1d5d8a2899163dbf3a377edbee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJavier?= Date: Thu, 13 May 2021 17:27:42 -0600 Subject: [PATCH 2/5] Update enums used in new API version --- .../media/media_asset_filter_resource.go | 4 +- .../media_content_key_policy_resource.go | 62 ++++++++--------- .../media/media_services_account_resource.go | 6 +- .../media_streaming_live_event_resource.go | 6 +- .../media/media_transform_resource.go | 68 +++++++++---------- 5 files changed, 73 insertions(+), 73 deletions(-) diff --git a/azurerm/internal/services/media/media_asset_filter_resource.go b/azurerm/internal/services/media/media_asset_filter_resource.go index 46b405f233ce..11019669a440 100644 --- a/azurerm/internal/services/media/media_asset_filter_resource.go +++ b/azurerm/internal/services/media/media_asset_filter_resource.go @@ -124,8 +124,8 @@ func resourceMediaAssetFilter() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.Equal), - string(media.NotEqual), + string(media.FilterTrackPropertyCompareOperationEqual), + string(media.FilterTrackPropertyCompareOperationNotEqual), }, false), }, diff --git a/azurerm/internal/services/media/media_content_key_policy_resource.go b/azurerm/internal/services/media/media_content_key_policy_resource.go index 8ddeca8a41a6..16426c63c2f1 100644 --- a/azurerm/internal/services/media/media_content_key_policy_resource.go +++ b/azurerm/internal/services/media/media_content_key_policy_resource.go @@ -292,10 +292,10 @@ func resourceMediaContentKeyPolicy() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.DualExpiry), - string(media.PersistentLimited), - string(media.PersistentUnlimited), - string(media.Undefined), + string(media.ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeDualExpiry), + string(media.ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentLimited), + string(media.ContentKeyPolicyFairPlayRentalAndLeaseKeyTypePersistentUnlimited), + string(media.ContentKeyPolicyFairPlayRentalAndLeaseKeyTypeUndefined), }, false), }, "rental_duration_seconds": { @@ -611,11 +611,11 @@ func expandRestriction(option map[string]interface{}) (media.BasicContentKeyPoli restrictionType := "" if option["open_restriction_enabled"] != nil && option["open_restriction_enabled"].(bool) { restrictionCount++ - restrictionType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction) + restrictionType = string(media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction) } if option["token_restriction"] != nil && len(option["token_restriction"].([]interface{})) > 0 && option["token_restriction"].([]interface{})[0] != nil { restrictionCount++ - restrictionType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction) + restrictionType = string(media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction) } if restrictionCount == 0 { @@ -627,16 +627,16 @@ func expandRestriction(option map[string]interface{}) (media.BasicContentKeyPoli } switch restrictionType { - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction): + case string(media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction): openRestriction := &media.ContentKeyPolicyOpenRestriction{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, + OdataType: media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyOpenRestriction, } return openRestriction, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction): + case string(media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction): tokenRestrictions := option["token_restriction"].([]interface{}) tokenRestriction := tokenRestrictions[0].(map[string]interface{}) contentKeyPolicyTokenRestriction := &media.ContentKeyPolicyTokenRestriction{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, + OdataType: media.OdataTypeBasicContentKeyPolicyRestrictionOdataTypeMicrosoftMediaContentKeyPolicyTokenRestriction, } if tokenRestriction["audience"] != nil && tokenRestriction["audience"].(string) != "" { contentKeyPolicyTokenRestriction.Audience = utils.String(tokenRestriction["audience"].(string)) @@ -749,20 +749,20 @@ func expandConfiguration(input map[string]interface{}) (media.BasicContentKeyPol configurationType := "" if input["clear_key_configuration_enabled"] != nil && input["clear_key_configuration_enabled"].(bool) { configurationCount++ - configurationType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration) + configurationType = string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration) } if input["widevine_configuration_template"] != nil && input["widevine_configuration_template"].(string) != "" { configurationCount++ - configurationType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration) + configurationType = string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration) } if input["fairplay_configuration"] != nil && len(input["fairplay_configuration"].([]interface{})) > 0 && input["fairplay_configuration"].([]interface{})[0] != nil { configurationCount++ - configurationType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration) + configurationType = string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration) } if input["playready_configuration_license"] != nil && len(input["playready_configuration_license"].([]interface{})) > 0 { configurationCount++ - configurationType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration) + configurationType = string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration) } if configurationCount == 0 { @@ -774,26 +774,26 @@ func expandConfiguration(input map[string]interface{}) (media.BasicContentKeyPol } switch configurationType { - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration): + case string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration): clearKeyConfiguration := &media.ContentKeyPolicyClearKeyConfiguration{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, + OdataType: media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyClearKeyConfiguration, } return clearKeyConfiguration, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration): + case string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration): wideVineConfiguration := &media.ContentKeyPolicyWidevineConfiguration{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration, + OdataType: media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration, WidevineTemplate: utils.String(input["widevine_configuration_template"].(string)), } return wideVineConfiguration, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration): + case string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration): fairplayConfiguration, err := expandFairplayConfiguration(input["fairplay_configuration"].([]interface{})) if err != nil { return nil, err } return fairplayConfiguration, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration): + case string(media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration): playReadyConfiguration := &media.ContentKeyPolicyPlayReadyConfiguration{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, + OdataType: media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyPlayReadyConfiguration, } if input["playready_configuration_license"] != nil { @@ -815,16 +815,16 @@ func expandVerificationKey(input map[string]interface{}) (media.BasicContentKeyP verificationKeyType := "" if input["primary_symmetric_token_key"] != nil && input["primary_symmetric_token_key"].(string) != "" { verificationKeyCount++ - verificationKeyType = string(media.OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey) + verificationKeyType = string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey) } if (input["primary_rsa_token_key_exponent"] != nil && input["primary_rsa_token_key_exponent"].(string) != "") || (input["primary_rsa_token_key_modulus"] != nil && input["primary_rsa_token_key_modulus"].(string) != "") { verificationKeyCount++ - verificationKeyType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey) + verificationKeyType = string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey) } if input["primary_x509_token_key_raw"] != nil && input["primary_x509_token_key_raw"].(string) != "" { verificationKeyCount++ - verificationKeyType = string(media.OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey) + verificationKeyType = string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey) } if verificationKeyCount > 1 { @@ -832,9 +832,9 @@ func expandVerificationKey(input map[string]interface{}) (media.BasicContentKeyP } switch verificationKeyType { - case string(media.OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey): + case string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey): symmetricTokenKey := &media.ContentKeyPolicySymmetricTokenKey{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, + OdataType: media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicySymmetricTokenKey, } if input["primary_symmetric_token_key"] != nil && input["primary_symmetric_token_key"].(string) != "" { @@ -842,9 +842,9 @@ func expandVerificationKey(input map[string]interface{}) (media.BasicContentKeyP symmetricTokenKey.KeyValue = &keyValue } return symmetricTokenKey, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey): + case string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey): rsaTokenKey := &media.ContentKeyPolicyRsaTokenKey{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, + OdataType: media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyRsaTokenKey, } if input["primary_rsa_token_key_exponent"] != nil && input["primary_rsa_token_key_exponent"].(string) != "" { exponent := []byte(input["primary_rsa_token_key_exponent"].(string)) @@ -855,9 +855,9 @@ func expandVerificationKey(input map[string]interface{}) (media.BasicContentKeyP rsaTokenKey.Modulus = &modulus } return rsaTokenKey, nil - case string(media.OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey): + case string(media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey): x509CertificateTokenKey := &media.ContentKeyPolicyX509CertificateTokenKey{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey, + OdataType: media.OdataTypeBasicContentKeyPolicyRestrictionTokenKeyOdataTypeMicrosoftMediaContentKeyPolicyX509CertificateTokenKey, } if input["primary_x509_token_key_raw"] != nil && input["primary_x509_token_key_raw"].(string) != "" { @@ -963,7 +963,7 @@ func flattenRentalConfiguration(input *media.ContentKeyPolicyFairPlayOfflineRent func expandFairplayConfiguration(input []interface{}) (*media.ContentKeyPolicyFairPlayConfiguration, error) { fairplayConfiguration := &media.ContentKeyPolicyFairPlayConfiguration{ - OdataType: media.OdataTypeMicrosoftMediaContentKeyPolicyWidevineConfiguration, + OdataType: media.OdataTypeBasicContentKeyPolicyConfigurationOdataTypeMicrosoftMediaContentKeyPolicyFairPlayConfiguration, } fairplay := input[0].(map[string]interface{}) diff --git a/azurerm/internal/services/media/media_services_account_resource.go b/azurerm/internal/services/media/media_services_account_resource.go index 64d18fb1ee43..f122d8d57e28 100644 --- a/azurerm/internal/services/media/media_services_account_resource.go +++ b/azurerm/internal/services/media/media_services_account_resource.go @@ -245,13 +245,13 @@ func expandMediaServicesAccountStorageAccounts(input []interface{}) (*[]media.St id := accountMap["id"].(string) - storageType := media.Secondary + storageType := media.StorageAccountTypeSecondary if accountMap["is_primary"].(bool) { if foundPrimary { return nil, fmt.Errorf("Only one Storage Account can be set as Primary") } - storageType = media.Primary + storageType = media.StorageAccountTypePrimary foundPrimary = true } @@ -279,7 +279,7 @@ func flattenMediaServicesAccountStorageAccounts(input *[]media.StorageAccount) [ output["id"] = *storageAccount.ID } - output["is_primary"] = storageAccount.Type == media.Primary + output["is_primary"] = storageAccount.Type == media.StorageAccountTypePrimary results = append(results, output) } diff --git a/azurerm/internal/services/media/media_streaming_live_event_resource.go b/azurerm/internal/services/media/media_streaming_live_event_resource.go index 2da9f016976f..607538efd0c2 100644 --- a/azurerm/internal/services/media/media_streaming_live_event_resource.go +++ b/azurerm/internal/services/media/media_streaming_live_event_resource.go @@ -140,8 +140,8 @@ func resourceMediaLiveEvent() *schema.Resource { Optional: true, ForceNew: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.RTMP), - string(media.FragmentedMP4), + string(media.LiveEventInputProtocolRTMP), + string(media.LiveEventInputProtocolFragmentedMP4), }, false), AtLeastOneOf: []string{"input.0.ip_access_control_allow", "input.0.access_token", "input.0.key_frame_interval_duration", "input.0.streaming_protocol", @@ -513,7 +513,7 @@ func resourceMediaLiveEventDelete(d *schema.ResourceData, meta interface{}) erro return fmt.Errorf("reading %s: %+v", id, err) } if props := resp.LiveEventProperties; props != nil { - if props.ResourceState == media.Running { + if props.ResourceState == media.LiveEventResourceStateRunning { stopFuture, err := client.Stop(ctx, id.ResourceGroup, id.MediaserviceName, id.Name, media.LiveEventActionInput{RemoveOutputsOnStop: utils.Bool(false)}) if err != nil { return fmt.Errorf("stopping %s: %+v", id, err) diff --git a/azurerm/internal/services/media/media_transform_resource.go b/azurerm/internal/services/media/media_transform_resource.go index f31d090c8112..2f63fdfc7ba9 100644 --- a/azurerm/internal/services/media/media_transform_resource.go +++ b/azurerm/internal/services/media/media_transform_resource.go @@ -78,8 +78,8 @@ func resourceMediaTransform() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.ContinueJob), - string(media.StopProcessingJob), + string(media.OnErrorTypeContinueJob), + string(media.OnErrorTypeStopProcessingJob), }, false), }, //lintignore:XS003 @@ -93,17 +93,17 @@ func resourceMediaTransform() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.AACGoodQualityAudio), - string(media.AdaptiveStreaming), - string(media.ContentAwareEncoding), - string(media.ContentAwareEncodingExperimental), - string(media.CopyAllBitrateNonInterleaved), - string(media.H264MultipleBitrate1080p), - string(media.H264MultipleBitrate720p), - string(media.H264MultipleBitrateSD), - string(media.H264SingleBitrate1080p), - string(media.H264SingleBitrate720p), - string(media.H264MultipleBitrateSD), + string(media.EncoderNamedPresetAACGoodQualityAudio), + string(media.EncoderNamedPresetAdaptiveStreaming), + string(media.EncoderNamedPresetContentAwareEncoding), + string(media.EncoderNamedPresetContentAwareEncodingExperimental), + string(media.EncoderNamedPresetCopyAllBitrateNonInterleaved), + string(media.EncoderNamedPresetH264MultipleBitrate1080p), + string(media.EncoderNamedPresetH264MultipleBitrate720p), + string(media.EncoderNamedPresetH264MultipleBitrateSD), + string(media.EncoderNamedPresetH264SingleBitrate1080p), + string(media.EncoderNamedPresetH264SingleBitrate720p), + string(media.EncoderNamedPresetH264SingleBitrateSD), }, false), }, }, @@ -142,8 +142,8 @@ func resourceMediaTransform() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.Basic), - string(media.Standard), + string(media.AudioAnalysisModeBasic), + string(media.AudioAnalysisModeStandard), }, false), }, }, @@ -182,17 +182,17 @@ func resourceMediaTransform() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.Basic), - string(media.Standard), + string(media.AudioAnalysisModeBasic), + string(media.AudioAnalysisModeStandard), }, false), }, "insights_type": { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.AllInsights), - string(media.AudioInsightsOnly), - string(media.VideoInsightsOnly), + string(media.InsightsTypeAllInsights), + string(media.InsightsTypeAudioInsightsOnly), + string(media.InsightsTypeVideoInsightsOnly), }, false), }, }, @@ -209,8 +209,8 @@ func resourceMediaTransform() *schema.Resource { Type: schema.TypeString, Optional: true, ValidateFunc: validation.StringInSlice([]string{ - string(media.SourceResolution), - string(media.StandardDefinition), + string(media.AnalysisResolutionSourceResolution), + string(media.AnalysisResolutionStandardDefinition), }, false), }, }, @@ -391,19 +391,19 @@ func expandPreset(transform map[string]interface{}) (media.BasicPreset, error) { presetType := "" if transform["builtin_preset"] != nil && len(transform["builtin_preset"].([]interface{})) > 0 && transform["builtin_preset"].([]interface{})[0] != nil { presetsCount++ - presetType = string(media.OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset) + presetType = string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset) } if transform["audio_analyzer_preset"] != nil && len(transform["audio_analyzer_preset"].([]interface{})) > 0 && transform["audio_analyzer_preset"].([]interface{})[0] != nil { presetsCount++ - presetType = string(media.OdataTypeMicrosoftMediaAudioAnalyzerPreset) + presetType = string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset) } if transform["video_analyzer_preset"] != nil && len(transform["video_analyzer_preset"].([]interface{})) > 0 && transform["video_analyzer_preset"].([]interface{})[0] != nil { presetsCount++ - presetType = string(media.OdataTypeMicrosoftMediaVideoAnalyzerPreset) + presetType = string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset) } if transform["face_detector_preset"] != nil && len(transform["face_detector_preset"].([]interface{})) > 0 && transform["face_detector_preset"].([]interface{})[0] != nil { presetsCount++ - presetType = string(media.OdataTypeMicrosoftMediaFaceDetectorPreset) + presetType = string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset) } if presetsCount == 0 { @@ -415,7 +415,7 @@ func expandPreset(transform map[string]interface{}) (media.BasicPreset, error) { } switch presetType { - case string(media.OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset): + case string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset): presets := transform["builtin_preset"].([]interface{}) preset := presets[0].(map[string]interface{}) if preset["preset_name"] == nil { @@ -424,14 +424,14 @@ func expandPreset(transform map[string]interface{}) (media.BasicPreset, error) { presetName := preset["preset_name"].(string) builtInPreset := &media.BuiltInStandardEncoderPreset{ PresetName: media.EncoderNamedPreset(presetName), - OdataType: media.OdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, + OdataType: media.OdataTypeBasicPresetOdataTypeMicrosoftMediaBuiltInStandardEncoderPreset, } return builtInPreset, nil - case string(media.OdataTypeMicrosoftMediaAudioAnalyzerPreset): + case string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset): presets := transform["audio_analyzer_preset"].([]interface{}) preset := presets[0].(map[string]interface{}) audioAnalyzerPreset := &media.AudioAnalyzerPreset{ - OdataType: media.OdataTypeMicrosoftMediaAudioAnalyzerPreset, + OdataType: media.OdataTypeBasicPresetOdataTypeMicrosoftMediaAudioAnalyzerPreset, } if preset["audio_language"] != nil && preset["audio_language"].(string) != "" { audioAnalyzerPreset.AudioLanguage = utils.String(preset["audio_language"].(string)) @@ -440,21 +440,21 @@ func expandPreset(transform map[string]interface{}) (media.BasicPreset, error) { audioAnalyzerPreset.Mode = media.AudioAnalysisMode(preset["audio_analysis_mode"].(string)) } return audioAnalyzerPreset, nil - case string(media.OdataTypeMicrosoftMediaFaceDetectorPreset): + case string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset): presets := transform["face_detector_preset"].([]interface{}) preset := presets[0].(map[string]interface{}) faceDetectorPreset := &media.FaceDetectorPreset{ - OdataType: media.OdataTypeMicrosoftMediaFaceDetectorPreset, + OdataType: media.OdataTypeBasicPresetOdataTypeMicrosoftMediaFaceDetectorPreset, } if preset["analysis_resolution"] != nil { faceDetectorPreset.Resolution = media.AnalysisResolution(preset["analysis_resolution"].(string)) } return faceDetectorPreset, nil - case string(media.OdataTypeMicrosoftMediaVideoAnalyzerPreset): + case string(media.OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset): presets := transform["video_analyzer_preset"].([]interface{}) preset := presets[0].(map[string]interface{}) videoAnalyzerPreset := &media.VideoAnalyzerPreset{ - OdataType: media.OdataTypeMicrosoftMediaVideoAnalyzerPreset, + OdataType: media.OdataTypeBasicPresetOdataTypeMicrosoftMediaVideoAnalyzerPreset, } if preset["audio_language"] != nil { videoAnalyzerPreset.AudioLanguage = utils.String(preset["audio_language"].(string)) From a9c3d7f47198a535577465f604c043574e21e3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJavier?= Date: Fri, 14 May 2021 10:12:17 -0600 Subject: [PATCH 3/5] Including new property key_delivery_access_control --- .../media/media_services_account_resource.go | 71 +++++++++++++++++++ .../media_services_account_resource_test.go | 17 +++-- .../r/media_services_account.html.markdown | 23 ++++-- 3 files changed, 101 insertions(+), 10 deletions(-) diff --git a/azurerm/internal/services/media/media_services_account_resource.go b/azurerm/internal/services/media/media_services_account_resource.go index f122d8d57e28..79f35e3469b1 100644 --- a/azurerm/internal/services/media/media_services_account_resource.go +++ b/azurerm/internal/services/media/media_services_account_resource.go @@ -115,6 +115,34 @@ func resourceMediaServicesAccount() *schema.Resource { }, true), }, + "key_delivery_access_control": { + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "default_action": { + Type: schema.TypeString, + Optional: true, + ValidateFunc: validation.StringInSlice([]string{ + string(media.DefaultActionDeny), + string(media.DefaultActionAllow), + }, true), + }, + + "ip_allow_list": { + Type: schema.TypeSet, + Optional: true, + Elem: &schema.Schema{ + Type: schema.TypeString, + ValidateFunc: validation.StringIsNotEmpty, + }, + }, + }, + }, + }, + "tags": tags.Schema(), }, } @@ -164,6 +192,10 @@ func resourceMediaServicesAccountCreateUpdate(d *schema.ResourceData, meta inter parameters.StorageAuthentication = media.StorageAuthentication(v.(string)) } + if keyDelivery, ok := d.GetOk("key_delivery_access_control"); ok { + parameters.KeyDelivery = expandKeyDelivery(keyDelivery.([]interface{})) + } + if _, err := client.CreateOrUpdate(ctx, resourceId.ResourceGroup, resourceId.Name, parameters); err != nil { return fmt.Errorf("creating %s: %+v", resourceId, err) } @@ -212,6 +244,10 @@ func resourceMediaServicesAccountRead(d *schema.ResourceData, meta interface{}) return fmt.Errorf("flattening `identity`: %s", err) } + if err := d.Set("key_delivery_access_control", flattenKeyDelivery(resp.KeyDelivery)); err != nil { + return fmt.Errorf("flattening `key_delivery_access_control`: %s", err) + } + return tags.FlattenAndSet(d, resp.Tags) } @@ -315,3 +351,38 @@ func flattenAzureRmMediaServicedentity(identity *media.ServiceIdentity) []interf return []interface{}{result} } + +func expandKeyDelivery(input []interface{}) *media.KeyDelivery { + if len(input) == 0 { + return nil + } + + keyDelivery := input[0].(map[string]interface{}) + defaultAction := keyDelivery["default_action"].(string) + + var ipAllowList *[]string + if v := keyDelivery["ip_allow_list"]; v != nil { + ips := keyDelivery["ip_allow_list"].(*schema.Set).List() + ipAllowList = utils.ExpandStringSlice(ips) + } + + return &media.KeyDelivery{ + AccessControl: &media.AccessControl{ + DefaultAction: media.DefaultAction(defaultAction), + IPAllowList: ipAllowList, + }, + } +} + +func flattenKeyDelivery(input *media.KeyDelivery) []interface{} { + if input == nil && input.AccessControl != nil { + return make([]interface{}, 0) + } + + return []interface{}{ + map[string]interface{}{ + "default_action": string(input.AccessControl.DefaultAction), + "ip_allow_list": utils.FlattenStringSlice(input.AccessControl.IPAllowList), + }, + } +} diff --git a/azurerm/internal/services/media/media_services_account_resource_test.go b/azurerm/internal/services/media/media_services_account_resource_test.go index ebf92a487130..023069289f1f 100644 --- a/azurerm/internal/services/media/media_services_account_resource_test.go +++ b/azurerm/internal/services/media/media_services_account_resource_test.go @@ -81,13 +81,13 @@ func TestAccMediaServicesAccount_multiplePrimaries(t *testing.T) { }) } -func TestAccMediaServicesAccount_identitySystemAssigned(t *testing.T) { +func TestAccMediaServicesAccount_complete(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_media_services_account", "test") r := MediaServicesAccountResource{} data.ResourceTest(t, r, []resource.TestStep{ { - Config: r.identitySystemAssigned(data), + Config: r.complete(data), Check: resource.ComposeAggregateTestCheckFunc( check.That(data.ResourceName).Key("identity.0.type").HasValue("SystemAssigned"), ), @@ -247,8 +247,8 @@ resource "azurerm_media_services_account" "test" { `, template, data.RandomString, data.RandomString) } -func (MediaServicesAccountResource) identitySystemAssigned(data acceptance.TestData) string { - template := MediaServicesAccountResource{}.template(data) +func (r MediaServicesAccountResource) complete(data acceptance.TestData) string { + template := r.template(data) return fmt.Sprintf(` %s @@ -262,9 +262,18 @@ resource "azurerm_media_services_account" "test" { is_primary = true } + tags = { + environment = "staging" + } + identity { type = "SystemAssigned" } + + key_delivery_access_control { + default_action = "Deny" + ip_allow_list = ["0.0.0.0/0"] + } } `, template, data.RandomString) } diff --git a/website/docs/r/media_services_account.html.markdown b/website/docs/r/media_services_account.html.markdown index a033514713e1..0da723bbb9dc 100644 --- a/website/docs/r/media_services_account.html.markdown +++ b/website/docs/r/media_services_account.html.markdown @@ -50,6 +50,15 @@ The following arguments are supported: * `storage_account` - (Required) One or more `storage_account` blocks as defined below. +* `identity` - (Optional) An `identity` block is documented below. + +* `storage_authentication_type` - (Optional) Specifies the storage authentication type. +Possible value is `ManagedIdentity` or `System`. + +* `key_delivery_access_control` - (Optional) An `key_delivery_access_control` block is documented below. + +* `tags` - (Optional) A mapping of tags assigned to the resource. + --- A `storage_account` block supports the following: @@ -60,12 +69,6 @@ A `storage_account` block supports the following: ~> **NOTE:** Whilst multiple `storage_account` blocks can be specified - one of them must be set to the primary -* `identity` - (Optional) An `identity` block is documented below. - -* `storage_authentication_type` - (Optional) Specifies the storage authentication type. -Possible value is `ManagedIdentity` or `System`. - -* `tags` - (Optional) A mapping of tags assigned to the resource. --- A `identity` block supports the following: @@ -74,6 +77,14 @@ A `identity` block supports the following: --- +A `key_delivery_access_control` block supports the following: + +* `default_action` - (Optional) The Default Action to use when no rules match from `ip_allow_list`. Possible values are `Allow` and `Deny`. + +* `ip_allow_list` - (Optional) One or more IP Addresses, or CIDR Blocks which should be able to access the Key Delivery. + +--- + ## Attributes Reference From 56f36787a763d418a1a16c4033900593d70deee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJavier?= Date: Fri, 14 May 2021 10:52:06 -0600 Subject: [PATCH 4/5] Updating dependencies --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 2bc774aaedc4..d593413de4d5 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-azurerm require ( - github.com/Azure/azure-sdk-for-go v54.0.0+incompatible + github.com/Azure/azure-sdk-for-go v54.2.0+incompatible github.com/Azure/go-autorest/autorest v0.11.18 github.com/Azure/go-autorest/autorest/date v0.3.0 github.com/Azure/go-autorest/autorest/validation v0.3.1 diff --git a/go.sum b/go.sum index eab0b2dea353..6ba274f5e15a 100644 --- a/go.sum +++ b/go.sum @@ -38,8 +38,8 @@ github.com/Azure/azure-sdk-for-go v42.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9mo github.com/Azure/azure-sdk-for-go v45.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v47.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/azure-sdk-for-go v51.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v54.0.0+incompatible h1:Bq3L9LF0DHCexlT0fccwxgrOMfjHx8LGz+d+L7gGQv4= -github.com/Azure/azure-sdk-for-go v54.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v54.2.0+incompatible h1:LYKBbC9PubUJnrkLZttkPmtOPNEQDhtzTjw114FJKBQ= +github.com/Azure/azure-sdk-for-go v54.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= From a4f07683f17b44623eb9755aa31c3d255220fed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJavier?= Date: Fri, 14 May 2021 10:56:29 -0600 Subject: [PATCH 5/5] Update vendor modules --- vendor/github.com/Azure/azure-sdk-for-go/version/version.go | 2 +- vendor/modules.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go index 5c99f7cd687e..2d5192c22a23 100644 --- a/vendor/github.com/Azure/azure-sdk-for-go/version/version.go +++ b/vendor/github.com/Azure/azure-sdk-for-go/version/version.go @@ -4,4 +4,4 @@ package version // Licensed under the MIT License. See License.txt in the project root for license information. // Number contains the semantic version of this SDK. -const Number = "v54.0.0" +const Number = "v54.2.0" diff --git a/vendor/modules.txt b/vendor/modules.txt index 7df996238f3f..91bc2e844a57 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -8,7 +8,7 @@ cloud.google.com/go/internal/trace cloud.google.com/go/internal/version # cloud.google.com/go/storage v1.10.0 cloud.google.com/go/storage -# github.com/Azure/azure-sdk-for-go v54.0.0+incompatible +# github.com/Azure/azure-sdk-for-go v54.2.0+incompatible ## explicit github.com/Azure/azure-sdk-for-go/profiles/2017-03-09/resources/mgmt/resources github.com/Azure/azure-sdk-for-go/services/aad/mgmt/2017-04-01/aad