Package: azure-mgmt-media
Microsoft Azure SDK for PythonThis is the Microsoft Azure Media Services Client Library.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see theazure sdk python release.DisclaimerAzure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer tohttps://github.com/Azure/azure-sdk-for-python/issues/20691Getting startedPrerequisitesPython 3.7+ is required to use this package.Azure subscriptionInstall the packagepipinstallazure-mgmt-media
pipinstallazure-identityAuthenticationBy default,Azure Active Directorytoken authentication depends on correct configure of following environment variables.AZURE_CLIENT_IDfor Azure client ID.AZURE_TENANT_IDfor Azure tenant ID.AZURE_CLIENT_SECRETfor Azure client secret.In addition, Azure subscription ID can be configured via environment variableAZURE_SUBSCRIPTION_ID.With above configuration, client can be authenticated by following code:fromazure.identityimportDefaultAzureCredentialfromazure.mgmt.mediaimportMediaManagementClientimportossub_id=os.getenv("AZURE_SUBSCRIPTION_ID")client=MediaManagementClient(credential=DefaultAzureCredential(),subscription_id=sub_id)ExamplesCode samples for this package can be found atMedia Serviceson docs.microsoft.com andSamples RepoTroubleshootingNext stepsProvide FeedbackIf you encounter any bugs or have suggestions, please file an issue in theIssuessection of the project.Release History10.2.0 (2023-01-12)Features AddedModel Filters has a new parameter fade_inModel Filters has a new parameter fade_outModel StandardEncoderPreset has a new parameter experimental_options10.2.0b1 (2022-12-27)Other ChangesAdded generated samples in github repoDrop support for python<3.7.010.1.0 (2022-09-14)Features AddedAdded operation LiveEventsOperations.async_operationAdded operation LiveEventsOperations.operation_locationAdded operation LiveOutputsOperations.async_operationAdded operation LiveOutputsOperations.operation_locationAdded operation StreamingEndpointsOperations.async_operationAdded operation StreamingEndpointsOperations.operation_locationModel AudioTrack has a new parameter bit_rateModel AudioTrack has a new parameter dash_settingsModel AudioTrack has a new parameter display_nameModel AudioTrack has a new parameter file_nameModel AudioTrack has a new parameter hls_settingsModel AudioTrack has a new parameter language_codeModel AudioTrack has a new parameter mpeg4_track_idModel CommonEncryptionCbcs has a new parameter clear_key_encryption_configurationModel CommonEncryptionCenc has a new parameter clear_key_encryption_configurationModel ContentKeyPolicyPlayReadyLicense has a new parameter security_levelModel LiveOutput has a new parameter rewind_window_length10.0.0 (2022-07-01)FeaturesAdded operation MediaservicesOperations.begin_create_or_updateAdded operation MediaservicesOperations.begin_updateAdded operation group MediaServicesOperationResultsOperationsAdded operation group MediaServicesOperationStatusesOperationsModel MediaService has a new parameter private_endpoint_connectionsModel MediaService has a new parameter provisioning_stateModel MediaServiceUpdate has a new parameter private_endpoint_connectionsModel MediaServiceUpdate has a new parameter provisioning_stateBreaking changesRemoved operation MediaservicesOperations.create_or_updateRemoved operation MediaservicesOperations.update9.0.0 (2022-03-30)FeaturesAdded operation StreamingEndpointsOperations.skusAdded operation group OperationResultsOperationsAdded operation group OperationStatusesOperationsAdded operation group TracksOperationsModel H264Layer has a new parameter crfModel H264Video has a new parameter rate_control_modeModel H265Layer has a new parameter crfModel StreamingEndpoint has a new parameter skuBreaking changesModel H264Layer no longer has parameter odata_typeModel H265Layer no longer has parameter odata_typeModel H265VideoLayer no longer has parameter odata_typeModel JpgLayer no longer has parameter odata_typeModel Layer no longer has parameter odata_typeModel PngLayer no longer has parameter odata_typeModel VideoLayer no longer has parameter odata_type8.0.0 (2021-07-15)FeaturesModel JobOutput has a new parameter preset_overrideModel BuiltInStandardEncoderPreset has a new parameter configurationsModel MediaServiceIdentity has a new parameter user_assigned_identitiesModel JobOutputAsset has a new parameter preset_overrideModel MediaService has a new parameter public_network_accessModel MediaServiceUpdate has a new parameter public_network_accessModel StorageAccount has a new parameter statusModel StorageAccount has a new parameter identityModel AccountEncryption has a new parameter statusModel AccountEncryption has a new parameter identityModel LiveOutput has a new parameter system_dataBreaking changesModel OperationCollection no longer has parameter odata_next_link7.0.0 (2021-06-03)FeaturesModel Asset has a new parameter system_dataModel StreamingPolicy has a new parameter system_dataModel Operation has a new parameter action_typeModel Operation has a new parameter is_data_actionModel JobInputAsset has a new parameter input_definitionsModel AccountFilter has a new parameter system_dataModel FaceDetectorPreset has a new parameter modeModel FaceDetectorPreset has a new parameter blur_typeModel LiveEvent has a new parameter system_dataModel MediaService has a new parameter key_deliveryModel MediaService has a new parameter system_dataModel Job has a new parameter system_dataModel StreamingLocator has a new parameter system_dataModel StreamingEndpoint has a new parameter system_dataModel ContentKeyPolicy has a new parameter system_dataModel JobInputClip has a new parameter input_definitionsModel JobInputHttp has a new parameter input_definitionsModel MetricSpecification has a new parameter lock_aggregation_typeModel MetricSpecification has a new parameter supported_time_grain_typesModel MetricSpecification has a new parameter source_mdm_namespaceModel MetricSpecification has a new parameter source_mdm_accountModel MetricSpecification has a new parameter enable_regional_mdm_accountModel AssetFilter has a new parameter system_dataModel Transform has a new parameter system_dataBreaking changesRemoved operation MediaservicesOperations.get_by_subscription7.0.0b1 (2020-12-01)This is beta preview version.This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).General breaking changesCredential system has been completly revamped:azure.common.credentialsormsrestazure.azure_active_directoryinstances are no longer supported, use theazure-identityclasses instead:https://pypi.org/project/azure-identity/credentialsparameter has been renamedcredentialTheconfigattribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True). For a complete set of
supported options, see theparameters accept in init documentation of azure-coreYou can't import aversionmodule anymore, use__version__insteadOperations that used to return amsrest.polling.LROPollernow returns aazure.core.polling.LROPollerand are prefixed withbegin_.Exceptions tree have been simplified and most exceptions are nowazure.core.exceptions.HttpResponseError(CloudErrorhas been removed).Most of the operation kwarg have changed. Some of the most noticeable:rawhas been removed. Equivalent feature can be found usingcls, a callback that will give access to internal HTTP response for advanced userFor a complete set of
supported options, see theparameters accept in Request documentation of azure-coreGeneral new featuresType annotations support usingtyping. SDKs are mypy ready.This client has now stable and official support for async. Check theaionamespace of your package to find the async client.This client now support natively tracing library like OpenCensus or OpenTelemetry. See thistracing quickstartfor an overview.2.2.0 (2020-05-29)FeaturesAdded operation MediaservicesOperations.list_edge_policies2.1.0 (2019-12-31)FeaturesModel VideoAnalyzerPreset has a new parameter experimental_optionsModel JobOutputAsset has a new parameter start_timeModel JobOutputAsset has a new parameter end_timeModel Job has a new parameter start_timeModel Job has a new parameter end_timeModel AudioAnalyzerPreset has a new parameter experimental_optionsModel ContentKeyPolicyFairPlayConfiguration has a new parameter
offline_rental_configurationModel FaceDetectorPreset has a new parameter experimental_optionsModel JobOutput has a new parameter start_timeModel JobOutput has a new parameter end_time2.0.0 (2019-12-04)FeaturesModel JobInputClip has a new parameter startModel JobInputClip has a new parameter endModel JobInputAsset has a new parameter startModel JobInputAsset has a new parameter endModel JobInputHttp has a new parameter startModel JobInputHttp has a new parameter endGeneral Breaking changesThis version uses a next-generation code generator that might introduce
breaking changes if from some import. In summary, some modules were
incorrectly visible/importable and have been renamed. This fixed several
issues caused by usage of classes that were not supposed to be used in
the first place. AzureMediaServices cannot be imported from
azure.mgmt.media.azure_media_services anymore (import from
azure.mgmt.media works like before) AzureMediaServicesConfiguration
import has been moved from azure.mgmt.media.azure_media_services to
azure.mgmt.media A model MyClass from a "models" sub-module cannot be
imported anymore using azure.mgmt.media.models.my_class (import from
azure.mgmt.media.models works like before) An operation class
MyClassOperations from an operations sub-module cannot be imported
anymore using azure.mgmt.media.operations.my_class_operations (import
from azure.mgmt.media.operations works like before) Last but not least,
HTTP connection pooling is now enabled by default. You should always use
a client as a context manager, or call close(), or use no more than one
client per process.1.1.1 (2018-03-26)FeaturesModel StreamingLocator has a new parameter filtersBugfixesParameter start of model JpgImage is now requiredParameter filename_pattern of model Mp4Format is now requiredParameter start of model Image is now requiredParameter input_label of model AudioOverlay is now requiredParameter input_label of model Overlay is now requiredParameter filename_pattern of model PngFormat is now requiredParameter bitrate of model H264Layer is now requiredParameter start of model PngImage is now requiredParameter bitrate of model VideoLayer is now requiredParameter formats of model StandardEncoderPreset is now requiredParameter codecs of model StandardEncoderPreset is now requiredParameter filename_pattern of model MultiBitrateFormat is now
requiredParameter filename_pattern of model TransportStreamFormat is now
requiredParameter filename_pattern of model Format is now requiredParameter filename_pattern of model ImageFormat is now requiredParameter filename_pattern of model JpgFormat is now requiredParameter input_label of model VideoOverlay is now requiredParameter labels of model OutputFile is now required1.1.0 (2018-01-02)BugfixesOperation JobsOperations.list has the correct list of optional
parametersOperation TransformsOperations.list has the correct list of optional
parametersOperation TransformsOperations.list has the correct list of optional
parametersOperation JobsOperations.list has the correct list of optional
parameters1.0.1 (2018-10-16)BugfixFix sdist broken in 1.0.0. No code change.1.0.0 (2018-10-03)FeaturesModel JobOutput has a new parameter labelModel StreamingLocatorContentKey has a new parameter
label_reference_in_streaming_policyModel Operation has a new parameter originModel Operation has a new parameter propertiesModel VideoAnalyzerPreset has a new parameter insights_to_extractModel LiveEventInput has a new parameter access_controlModel JobOutputAsset has a new parameter labelAdded operation AssetsOperations.list_streaming_locatorsAdded operation JobsOperations.updateAdded operation group AssetFiltersOperationsAdded operation group AccountFiltersOperationsBreaking changesParameter scale_units of model StreamingEndpoint is now requiredModel StreamingLocatorContentKey no longer has parameter labelModel VideoAnalyzerPreset no longer has parameter
audio_insights_onlyModel JobInput no longer has parameter labelModel JobInputs no longer has parameter labelAPI version endpoint is now 2018-07-01Noteazure-mgmt-nspkg is not installed anymore on Python 3 (PEP420-based
namespace package)1.0.0rc2 (2018-07-19)FeaturesModel LiveEventPreview has a new parameter alternative_media_idModel StreamingLocator has a new parameter alternative_media_idModel EnvelopeEncryption has a new parameter
custom_key_acquisition_url_templateModel Job has a new parameter correlation_dataBreaking changesModel EnvelopeEncryption no longer has parameter
custom_license_acquisition_url_templateAPI version endpoint is now 2018-06-01-preview1.0.0rc1 (2018-04-23)DisclaimerThis is a complete rewriting of the package and a completly new RestAPI,
and no compatibility at all is possible.API version endpoint is now 2018-03-30-preview0.2.0 (2017-09-14)Bug fixesFix deserialization issue with check_name_availabilityFeaturesAdds operations.listBreaking changesOperations will now throw a ValidationError if input string is
longer than 24 characters (not CloudError)Some keyword arguments have been renamed "parameters"0.1.2 (2016-06-27)This wheel package is built with the azure wheel extension0.1.1 (2016-12-12)Best parameters check (you might experience exception change from
CloudError to TypeError)Delete account operation fix (random exception)Create account operation fix (random exception)0.1.0 (2016-11-07)Initial preview release