From 07dc4a22618cbb03f1db77509d51734ba5573f83 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 16 Oct 2020 19:05:39 +0000 Subject: [PATCH] Generated from 83616cf20d8a0614ee5b1b3b3be9c0ccb450e1e3 MediaServices: update readme.java.md --- .../src/Generated/AzureMediaServicesClient.cs | 20 +- .../Generated/IAzureMediaServicesClient.cs | 12 +- .../src/Generated/ILiveEventsOperations.cs | 142 ++- .../src/Generated/ILiveOutputsOperations.cs | 38 +- .../src/Generated/IMediaservicesOperations.cs | 6 +- .../IPrivateEndpointConnectionsOperations.cs | 145 +++ .../IPrivateLinkResourcesOperations.cs | 85 ++ .../IStreamingEndpointsOperations.cs | 68 +- .../src/Generated/LiveEventsOperations.cs | 315 ++++++- .../LiveEventsOperationsExtensions.cs | 270 ++++-- .../src/Generated/LiveOutputsOperations.cs | 42 +- .../LiveOutputsOperationsExtensions.cs | 76 +- .../src/Generated/MediaservicesOperations.cs | 24 +- .../MediaservicesOperationsExtensions.cs | 12 +- .../src/Generated/Models/AccountEncryption.cs | 68 ++ .../Models/AccountEncryptionKeyType.cs | 111 +++ .../AccountEncryptionKeyTypeConverter.cs | 54 ++ .../src/Generated/Models/AccountFilter.cs | 10 +- .../src/Generated/Models/ApiError.cs | 7 +- .../src/Generated/Models/Asset.cs | 10 +- .../src/Generated/Models/AssetFilter.cs | 10 +- .../src/Generated/Models/AudioAnalysisMode.cs | 116 +++ .../Models/AudioAnalysisModeConverter.cs | 53 ++ .../Generated/Models/AudioAnalyzerPreset.cs | 41 +- .../src/Generated/Models/AudioOverlay.cs | 17 +- .../Generated/Models/AzureEntityResource.cs | 59 ++ .../Models/BuiltInStandardEncoderPreset.cs | 8 +- .../src/Generated/Models/ContentKeyPolicy.cs | 10 +- ...dyContentEncryptionKeyFromKeyIdentifier.cs | 12 +- .../Generated/Models/EncoderNamedPreset.cs | 30 +- .../src/Generated/Models/Format.cs | 26 +- .../src/Generated/Models/H264Video.cs | 16 +- .../src/Generated/Models/Hls.cs | 13 +- .../src/Generated/Models/Image.cs | 105 ++- .../src/Generated/Models/ImageFormat.cs | 7 +- .../src/Generated/Models/Job.cs | 26 +- .../src/Generated/Models/JpgFormat.cs | 7 +- .../src/Generated/Models/JpgImage.cs | 80 +- .../Generated/Models/KeyVaultProperties.cs | 64 ++ .../src/Generated/Models/LiveEvent.cs | 150 ++- .../Generated/Models/LiveEventActionInput.cs | 9 +- .../src/Generated/Models/LiveEventEncoding.cs | 78 +- .../Generated/Models/LiveEventEncodingType.cs | 17 +- .../src/Generated/Models/LiveEventEndpoint.cs | 2 +- .../src/Generated/Models/LiveEventInput.cs | 46 +- .../Models/LiveEventInputAccessControl.cs | 2 +- .../Models/LiveEventInputProtocol.cs | 8 + .../Models/LiveEventInputTrackSelection.cs | 79 ++ .../LiveEventOutputTranscriptionTrack.cs | 72 ++ .../src/Generated/Models/LiveEventPreview.cs | 40 +- .../Models/LiveEventPreviewAccessControl.cs | 2 +- .../Models/LiveEventResourceState.cs | 42 + .../Models/LiveEventTranscription.cs | 106 +++ .../src/Generated/Models/LiveOutput.cs | 76 +- .../Models/LiveOutputResourceState.cs | 13 + .../src/Generated/Models/LogSpecification.cs | 69 ++ .../Generated/Models/ManagedIdentityType.cs | 111 +++ .../Models/ManagedIdentityTypeConverter.cs | 53 ++ .../src/Generated/Models/MediaService.cs | 71 +- .../Generated/Models/MediaServiceIdentity.cs | 75 ++ .../{Metric.cs => MetricSpecification.cs} | 19 +- .../src/Generated/Models/Mp4Format.cs | 7 +- .../Generated/Models/MultiBitrateFormat.cs | 7 +- .../src/Generated/Models/Operation.cs | 4 +- .../src/Generated/Models/Overlay.cs | 33 +- .../src/Generated/Models/PngFormat.cs | 7 +- .../src/Generated/Models/PngImage.cs | 61 +- .../src/Generated/Models/PrivateEndpoint.cs | 51 ++ .../Models/PrivateEndpointConnection.cs | 98 ++ .../PrivateEndpointConnectionListResult.cs | 56 ++ ...vateEndpointConnectionProvisioningState.cs | 115 +++ ...intConnectionProvisioningStateConverter.cs | 55 ++ .../PrivateEndpointServiceConnectionStatus.cs | 113 +++ ...ndpointServiceConnectionStatusConverter.cs | 55 ++ .../Generated/Models/PrivateLinkResource.cs | 81 ++ .../Models/PrivateLinkResourceListResult.cs | 55 ++ .../PrivateLinkServiceConnectionState.cs | 77 ++ .../{MetricProperties.cs => Properties.cs} | 12 +- .../src/Generated/Models/ProxyResource.cs | 13 +- .../src/Generated/Models/Resource.cs | 22 +- .../Generated/Models/ServiceSpecification.cs | 12 +- .../Generated/Models/StorageAuthentication.cs | 111 +++ .../Models/StorageAuthenticationConverter.cs | 53 ++ .../src/Generated/Models/StreamOptionsFlag.cs | 8 + .../src/Generated/Models/StreamingEndpoint.cs | 78 +- .../Models/StreamingEndpointAccessControl.cs | 8 +- .../Models/StreamingEndpointResourceState.cs | 20 + .../Models/StreamingEntityScaleUnit.cs | 6 +- .../src/Generated/Models/StreamingLocator.cs | 10 +- .../src/Generated/Models/StreamingPolicy.cs | 10 +- .../Models/SubscriptionMediaService.cs | 72 -- .../src/Generated/Models/TrackedResource.cs | 33 +- .../src/Generated/Models/Transform.cs | 10 +- .../Generated/Models/TransportStreamFormat.cs | 7 +- .../src/Generated/Models/UtcClipTime.cs | 66 ++ .../src/Generated/Models/Video.cs | 31 +- .../Generated/Models/VideoAnalyzerPreset.cs | 28 +- .../src/Generated/Models/VideoOverlay.cs | 17 +- .../src/Generated/Models/VideoSyncMode.cs | 136 +++ .../Models/VideoSyncModeConverter.cs | 53 ++ .../PrivateEndpointConnectionsOperations.cs | 851 ++++++++++++++++++ ...EndpointConnectionsOperationsExtensions.cs | 224 +++++ .../PrivateLinkResourcesOperations.cs | 450 +++++++++ ...rivateLinkResourcesOperationsExtensions.cs | 121 +++ .../Generated/SdkInfo_AzureMediaServices.cs | 41 +- .../Generated/StreamingEndpointsOperations.cs | 72 +- .../StreamingEndpointsOperationsExtensions.cs | 136 +-- 107 files changed, 6012 insertions(+), 929 deletions(-) create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateEndpointConnectionsOperations.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateLinkResourcesOperations.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryption.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyType.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyTypeConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisMode.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisModeConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/KeyVaultProperties.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputTrackSelection.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventOutputTranscriptionTrack.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventTranscription.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LogSpecification.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityType.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityTypeConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaServiceIdentity.cs rename sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/{Metric.cs => MetricSpecification.cs} (75%) create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpoint.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionListResult.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningStateConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatusConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResourceListResult.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkServiceConnectionState.cs rename sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/{MetricProperties.cs => Properties.cs} (78%) create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthentication.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthenticationConverter.cs delete mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SubscriptionMediaService.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/UtcClipTime.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncMode.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncModeConverter.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperations.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperations.cs create mode 100644 sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperationsExtensions.cs diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs index d4b58906a31a..68ea56fef6d6 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/AzureMediaServicesClient.cs @@ -49,7 +49,7 @@ public partial class AzureMediaServicesClient : ServiceClient - /// The Version of the API to be used with the client request. + /// The version of the API to be used with the client request. /// public string ApiVersion { get; private set; } @@ -86,6 +86,16 @@ public partial class AzureMediaServicesClient : ServiceClient public virtual IMediaservicesOperations Mediaservices { get; private set; } + /// + /// Gets the IPrivateLinkResourcesOperations. + /// + public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; } + + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; } + /// /// Gets the ILocationsOperations. /// @@ -385,6 +395,8 @@ private void Initialize() AccountFilters = new AccountFiltersOperations(this); Operations = new Operations(this); Mediaservices = new MediaservicesOperations(this); + PrivateLinkResources = new PrivateLinkResourcesOperations(this); + PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); Locations = new LocationsOperations(this); Assets = new AssetsOperations(this); AssetFilters = new AssetFiltersOperations(this); @@ -397,7 +409,7 @@ private void Initialize() LiveOutputs = new LiveOutputsOperations(this); StreamingEndpoints = new StreamingEndpointsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-07-01"; + ApiVersion = "2020-05-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -439,12 +451,12 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("@odata.type")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("@odata.type")); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IAzureMediaServicesClient.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IAzureMediaServicesClient.cs index 94dd4c27835b..5d08c04bfe72 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IAzureMediaServicesClient.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IAzureMediaServicesClient.cs @@ -45,7 +45,7 @@ public partial interface IAzureMediaServicesClient : System.IDisposable string SubscriptionId { get; set; } /// - /// The Version of the API to be used with the client request. + /// The version of the API to be used with the client request. /// string ApiVersion { get; } @@ -83,6 +83,16 @@ public partial interface IAzureMediaServicesClient : System.IDisposable /// IMediaservicesOperations Mediaservices { get; } + /// + /// Gets the IPrivateLinkResourcesOperations. + /// + IPrivateLinkResourcesOperations PrivateLinkResources { get; } + + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; } + /// /// Gets the ILocationsOperations. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveEventsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveEventsOperations.cs index ba08b6e5eabc..a9e1280440f0 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveEventsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveEventsOperations.cs @@ -24,10 +24,10 @@ namespace Microsoft.Azure.Management.Media public partial interface ILiveEventsOperations { /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The name of the resource group within the Azure subscription. @@ -55,7 +55,7 @@ public partial interface ILiveEventsOperations /// Get Live Event /// /// - /// Gets a Live Event. + /// Gets properties of a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -64,7 +64,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -86,7 +86,7 @@ public partial interface ILiveEventsOperations /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The name of the resource group within the Azure subscription. @@ -95,10 +95,10 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started @@ -121,7 +121,7 @@ public partial interface ILiveEventsOperations /// Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters, bool? autoStart = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The name of the resource group within the Azure subscription. @@ -130,10 +130,10 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// The headers that will be added to request. @@ -155,7 +155,7 @@ public partial interface ILiveEventsOperations /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -164,7 +164,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -180,10 +180,40 @@ public partial interface ILiveEventsOperations /// Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is + /// ready to start. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task AllocateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state + /// after the start operation completes. /// /// /// The name of the resource group within the Azure subscription. @@ -192,7 +222,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -211,7 +241,7 @@ public partial interface ILiveEventsOperations /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The name of the resource group within the Azure subscription. @@ -220,10 +250,12 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted + /// when live event is being stopped. Deleting live outputs do not + /// delete the underlying assets. /// /// /// The headers that will be added to request. @@ -242,7 +274,10 @@ public partial interface ILiveEventsOperations /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event + /// are deleted and the live event is stopped and will be started + /// again. All assets used by the live outputs and streaming locators + /// created on these assets are unaffected. /// /// /// The name of the resource group within the Azure subscription. @@ -251,7 +286,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -270,7 +305,7 @@ public partial interface ILiveEventsOperations /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The name of the resource group within the Azure subscription. @@ -279,10 +314,10 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started @@ -305,7 +340,7 @@ public partial interface ILiveEventsOperations /// Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters, bool? autoStart = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The name of the resource group within the Azure subscription. @@ -314,10 +349,10 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// The headers that will be added to request. @@ -339,7 +374,7 @@ public partial interface ILiveEventsOperations /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -348,7 +383,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -364,10 +399,40 @@ public partial interface ILiveEventsOperations /// Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is + /// ready to start. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginAllocateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state + /// after the start operation completes. /// /// /// The name of the resource group within the Azure subscription. @@ -376,7 +441,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -395,7 +460,7 @@ public partial interface ILiveEventsOperations /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The name of the resource group within the Azure subscription. @@ -404,10 +469,12 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted + /// when live event is being stopped. Deleting live outputs do not + /// delete the underlying assets. /// /// /// The headers that will be added to request. @@ -426,7 +493,10 @@ public partial interface ILiveEventsOperations /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event + /// are deleted and the live event is stopped and will be started + /// again. All assets used by the live outputs and streaming locators + /// created on these assets are unaffected. /// /// /// The name of the resource group within the Azure subscription. @@ -435,7 +505,7 @@ public partial interface ILiveEventsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -451,10 +521,10 @@ public partial interface ILiveEventsOperations /// Task BeginResetWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveOutputsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveOutputsOperations.cs index b155d2639728..224bb03e5d7d 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveOutputsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/ILiveOutputsOperations.cs @@ -27,7 +27,7 @@ public partial interface ILiveOutputsOperations /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -36,7 +36,7 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -58,7 +58,7 @@ public partial interface ILiveOutputsOperations /// Get Live Output /// /// - /// Gets a Live Output. + /// Gets a live output. /// /// /// The name of the resource group within the Azure subscription. @@ -67,10 +67,10 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The headers that will be added to request. @@ -92,7 +92,7 @@ public partial interface ILiveOutputsOperations /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The name of the resource group within the Azure subscription. @@ -101,10 +101,10 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -129,7 +129,8 @@ public partial interface ILiveOutputsOperations /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the + /// asset the live output is writing to. /// /// /// The name of the resource group within the Azure subscription. @@ -138,10 +139,10 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The headers that will be added to request. @@ -160,7 +161,7 @@ public partial interface ILiveOutputsOperations /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The name of the resource group within the Azure subscription. @@ -169,10 +170,10 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -197,7 +198,8 @@ public partial interface ILiveOutputsOperations /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the + /// asset the live output is writing to. /// /// /// The name of the resource group within the Azure subscription. @@ -206,10 +208,10 @@ public partial interface ILiveOutputsOperations /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The headers that will be added to request. @@ -228,7 +230,7 @@ public partial interface ILiveOutputsOperations /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IMediaservicesOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IMediaservicesOperations.cs index 9668cc95d6b7..0732121fcb99 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IMediaservicesOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IMediaservicesOperations.cs @@ -246,7 +246,7 @@ public partial interface IMediaservicesOperations /// /// Thrown when a required parameter is null /// - Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a Media Services account /// @@ -271,7 +271,7 @@ public partial interface IMediaservicesOperations /// /// Thrown when a required parameter is null /// - Task> GetBySubscriptionWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetBySubscriptionWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List Media Services accounts /// @@ -321,6 +321,6 @@ public partial interface IMediaservicesOperations /// /// Thrown when a required parameter is null /// - Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateEndpointConnectionsOperations.cs new file mode 100644 index 000000000000..d603da1f27c6 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateEndpointConnectionsOperations.cs @@ -0,0 +1,145 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateEndpointConnectionsOperations operations. + /// + public partial interface IPrivateEndpointConnectionsOperations + { + /// + /// Get all private endpoint connections. + /// + /// + /// Get all private endpoint connections. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get private endpoint connection. + /// + /// + /// Get private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Update private endpoint connection. + /// + /// + /// Update private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The request parameters + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete private endpoint connection. + /// + /// + /// Delete private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateLinkResourcesOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateLinkResourcesOperations.cs new file mode 100644 index 000000000000..755c6339fcbb --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IPrivateLinkResourcesOperations.cs @@ -0,0 +1,85 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateLinkResourcesOperations operations. + /// + public partial interface IPrivateLinkResourcesOperations + { + /// + /// Get list of group IDs. + /// + /// + /// Get list of group IDs. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Get group ID. + /// + /// + /// Get group ID. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IStreamingEndpointsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IStreamingEndpointsOperations.cs index 13ff5e525a93..4a02e7025d36 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IStreamingEndpointsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/IStreamingEndpointsOperations.cs @@ -27,7 +27,7 @@ public partial interface IStreamingEndpointsOperations /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The name of the resource group within the Azure subscription. @@ -55,7 +55,7 @@ public partial interface IStreamingEndpointsOperations /// Get StreamingEndpoint /// /// - /// Gets a StreamingEndpoint. + /// Gets a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -64,7 +64,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -86,7 +86,7 @@ public partial interface IStreamingEndpointsOperations /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -95,10 +95,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started @@ -124,7 +124,7 @@ public partial interface IStreamingEndpointsOperations /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -133,10 +133,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The headers that will be added to request. @@ -158,7 +158,7 @@ public partial interface IStreamingEndpointsOperations /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -167,7 +167,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -186,7 +186,7 @@ public partial interface IStreamingEndpointsOperations /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -195,7 +195,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -214,7 +214,7 @@ public partial interface IStreamingEndpointsOperations /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -223,7 +223,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -242,7 +242,7 @@ public partial interface IStreamingEndpointsOperations /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -251,10 +251,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// The headers that will be added to request. @@ -273,7 +273,7 @@ public partial interface IStreamingEndpointsOperations /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -282,10 +282,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started @@ -311,7 +311,7 @@ public partial interface IStreamingEndpointsOperations /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -320,10 +320,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The headers that will be added to request. @@ -345,7 +345,7 @@ public partial interface IStreamingEndpointsOperations /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -354,7 +354,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -373,7 +373,7 @@ public partial interface IStreamingEndpointsOperations /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -382,7 +382,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -401,7 +401,7 @@ public partial interface IStreamingEndpointsOperations /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -410,7 +410,7 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -429,7 +429,7 @@ public partial interface IStreamingEndpointsOperations /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -438,10 +438,10 @@ public partial interface IStreamingEndpointsOperations /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// The headers that will be added to request. @@ -460,7 +460,7 @@ public partial interface IStreamingEndpointsOperations /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperations.cs index 616b5872956d..3ccee4f2c46e 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperations.cs @@ -51,10 +51,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) public AzureMediaServicesClient Client { get; private set; } /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The name of the resource group within the Azure subscription. @@ -248,7 +248,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Get Live Event /// /// - /// Gets a Live Event. + /// Gets properties of a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -257,7 +257,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// Headers that will be added to request. @@ -466,7 +466,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The name of the resource group within the Azure subscription. @@ -475,10 +475,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -498,7 +498,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The name of the resource group within the Azure subscription. @@ -507,10 +507,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// The headers that will be added to request. @@ -529,7 +529,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -538,7 +538,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -553,11 +553,41 @@ internal LiveEventsOperations(AzureMediaServicesClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task AllocateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginAllocateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The name of the resource group within the Azure subscription. @@ -566,7 +596,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -585,7 +615,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The name of the resource group within the Azure subscription. @@ -594,10 +624,12 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// /// /// The headers that will be added to request. @@ -616,7 +648,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The name of the resource group within the Azure subscription. @@ -625,7 +660,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The headers that will be added to request. @@ -644,7 +679,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The name of the resource group within the Azure subscription. @@ -653,10 +688,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -823,7 +858,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -879,7 +914,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) } } // Deserialize Response - if ((int)_statusCode == 202) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -904,7 +939,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The name of the resource group within the Azure subscription. @@ -913,10 +948,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// Headers that will be added to request. @@ -1154,7 +1189,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -1163,7 +1198,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// Headers that will be added to request. @@ -1347,11 +1382,210 @@ internal LiveEventsOperations(AzureMediaServicesClient client) return _result; } + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginAllocateWithHttpMessagesAsync(string resourceGroupName, string accountName, string liveEventName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (liveEventName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "liveEventName"); + } + if (liveEventName != null) + { + if (liveEventName.Length > 32) + { + throw new ValidationException(ValidationRules.MaxLength, "liveEventName", 32); + } + if (liveEventName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "liveEventName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(liveEventName, "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$")) + { + throw new ValidationException(ValidationRules.Pattern, "liveEventName", "^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"); + } + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("liveEventName", liveEventName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginAllocate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/allocate").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{liveEventName}", System.Uri.EscapeDataString(liveEventName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The name of the resource group within the Azure subscription. @@ -1360,7 +1594,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// Headers that will be added to request. @@ -1548,7 +1782,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The name of the resource group within the Azure subscription. @@ -1557,10 +1791,12 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// /// /// Headers that will be added to request. @@ -1760,7 +1996,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The name of the resource group within the Azure subscription. @@ -1769,7 +2008,7 @@ internal LiveEventsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// Headers that will be added to request. @@ -1954,10 +2193,10 @@ internal LiveEventsOperations(AzureMediaServicesClient client) } /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperationsExtensions.cs index c3ea6a85a5c8..fe17a008b1ff 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperationsExtensions.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveEventsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.Media public static partial class LiveEventsOperationsExtensions { /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The operations group for this extension method. @@ -42,10 +42,10 @@ public static IPage List(this ILiveEventsOperations operations, strin } /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The operations group for this extension method. @@ -71,7 +71,7 @@ public static IPage List(this ILiveEventsOperations operations, strin /// Get Live Event /// /// - /// Gets a Live Event. + /// Gets properties of a live event. /// /// /// The operations group for this extension method. @@ -83,7 +83,7 @@ public static IPage List(this ILiveEventsOperations operations, strin /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static LiveEvent Get(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -94,7 +94,7 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// Get Live Event /// /// - /// Gets a Live Event. + /// Gets properties of a live event. /// /// /// The operations group for this extension method. @@ -106,7 +106,7 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -123,7 +123,7 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The operations group for this extension method. @@ -135,10 +135,10 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -153,7 +153,7 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The operations group for this extension method. @@ -165,10 +165,10 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -186,7 +186,7 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The operations group for this extension method. @@ -198,10 +198,10 @@ public static LiveEvent Get(this ILiveEventsOperations operations, string resour /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// public static LiveEvent Update(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters) { @@ -209,7 +209,7 @@ public static LiveEvent Update(this ILiveEventsOperations operations, string res } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The operations group for this extension method. @@ -221,10 +221,10 @@ public static LiveEvent Update(this ILiveEventsOperations operations, string res /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// The cancellation token. @@ -241,7 +241,7 @@ public static LiveEvent Update(this ILiveEventsOperations operations, string res /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The operations group for this extension method. @@ -253,7 +253,7 @@ public static LiveEvent Update(this ILiveEventsOperations operations, string res /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void Delete(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -264,7 +264,7 @@ public static void Delete(this ILiveEventsOperations operations, string resource /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The operations group for this extension method. @@ -276,7 +276,7 @@ public static void Delete(this ILiveEventsOperations operations, string resource /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -286,11 +286,63 @@ public static void Delete(this ILiveEventsOperations operations, string resource (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + public static void Allocate(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) + { + operations.AllocateAsync(resourceGroupName, accountName, liveEventName).GetAwaiter().GetResult(); + } + + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// The cancellation token. + /// + public static async Task AllocateAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.AllocateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The operations group for this extension method. @@ -302,7 +354,7 @@ public static void Delete(this ILiveEventsOperations operations, string resource /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void Start(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -313,7 +365,8 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The operations group for this extension method. @@ -325,7 +378,7 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -339,7 +392,7 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The operations group for this extension method. @@ -351,10 +404,12 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// public static void Stop(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool? removeOutputsOnStop = default(bool?)) { @@ -365,7 +420,7 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The operations group for this extension method. @@ -377,10 +432,12 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// /// /// The cancellation token. @@ -394,7 +451,10 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The operations group for this extension method. @@ -406,7 +466,7 @@ public static void Start(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void Reset(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -417,7 +477,10 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The operations group for this extension method. @@ -429,7 +492,7 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -443,7 +506,7 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The operations group for this extension method. @@ -455,10 +518,10 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -473,7 +536,7 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// Create Live Event /// /// - /// Creates a Live Event. + /// Creates a new live event. /// /// /// The operations group for this extension method. @@ -485,10 +548,10 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -506,7 +569,7 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The operations group for this extension method. @@ -518,10 +581,10 @@ public static void Reset(this ILiveEventsOperations operations, string resourceG /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, LiveEvent parameters) { @@ -529,7 +592,7 @@ public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, strin } /// - /// Updates a existing Live Event. + /// Updates settings on an existing live event. /// /// /// The operations group for this extension method. @@ -541,10 +604,10 @@ public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, strin /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// Live Event properties needed for creation. + /// Live event properties needed for patch. /// /// /// The cancellation token. @@ -561,7 +624,7 @@ public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, strin /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The operations group for this extension method. @@ -573,7 +636,7 @@ public static LiveEvent BeginUpdate(this ILiveEventsOperations operations, strin /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void BeginDelete(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -584,7 +647,7 @@ public static void BeginDelete(this ILiveEventsOperations operations, string res /// Delete Live Event /// /// - /// Deletes a Live Event. + /// Deletes a live event. /// /// /// The operations group for this extension method. @@ -596,7 +659,7 @@ public static void BeginDelete(this ILiveEventsOperations operations, string res /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -606,11 +669,63 @@ public static void BeginDelete(this ILiveEventsOperations operations, string res (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + public static void BeginAllocate(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) + { + operations.BeginAllocateAsync(resourceGroupName, accountName, liveEventName).GetAwaiter().GetResult(); + } + + /// + /// Allocate resources for a live event + /// + /// + /// A live event is in StandBy state after allocation completes, and is ready + /// to start. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The name of the live event, maximum length is 32. + /// + /// + /// The cancellation token. + /// + public static async Task BeginAllocateAsync(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginAllocateWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The operations group for this extension method. @@ -622,7 +737,7 @@ public static void BeginDelete(this ILiveEventsOperations operations, string res /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void BeginStart(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -633,7 +748,8 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// Start Live Event /// /// - /// Starts an existing Live Event. + /// A live event in Stopped or StandBy state will be in Running state after the + /// start operation completes. /// /// /// The operations group for this extension method. @@ -645,7 +761,7 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -659,7 +775,7 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The operations group for this extension method. @@ -671,10 +787,12 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// public static void BeginStop(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName, bool? removeOutputsOnStop = default(bool?)) { @@ -685,7 +803,7 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// Stop Live Event /// /// - /// Stops an existing Live Event. + /// Stops a running live event. /// /// /// The operations group for this extension method. @@ -697,10 +815,12 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The flag indicates if remove LiveOutputs on Stop. + /// The flag indicates whether live outputs are automatically deleted when live + /// event is being stopped. Deleting live outputs do not delete the underlying + /// assets. /// /// /// The cancellation token. @@ -714,7 +834,10 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The operations group for this extension method. @@ -726,7 +849,7 @@ public static void BeginStart(this ILiveEventsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static void BeginReset(this ILiveEventsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -737,7 +860,10 @@ public static void BeginReset(this ILiveEventsOperations operations, string reso /// Reset Live Event /// /// - /// Resets an existing Live Event. + /// Resets an existing live event. All live outputs for the live event are + /// deleted and the live event is stopped and will be started again. All assets + /// used by the live outputs and streaming locators created on these assets are + /// unaffected. /// /// /// The operations group for this extension method. @@ -749,7 +875,7 @@ public static void BeginReset(this ILiveEventsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -760,10 +886,10 @@ public static void BeginReset(this ILiveEventsOperations operations, string reso } /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The operations group for this extension method. @@ -777,10 +903,10 @@ public static IPage ListNext(this ILiveEventsOperations operations, s } /// - /// List Live Events + /// List live events /// /// - /// Lists the Live Events in the account. + /// Lists all the live events in the account. /// /// /// The operations group for this extension method. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperations.cs index 226ead84d613..42242b62412d 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperations.cs @@ -54,7 +54,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The name of the resource group within the Azure subscription. @@ -63,7 +63,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// Headers that will be added to request. @@ -272,7 +272,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// Get Live Output /// /// - /// Gets a Live Output. + /// Gets a live output. /// /// /// The name of the resource group within the Azure subscription. @@ -281,10 +281,10 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Headers that will be added to request. @@ -514,7 +514,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The name of the resource group within the Azure subscription. @@ -523,10 +523,10 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -548,7 +548,8 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The name of the resource group within the Azure subscription. @@ -557,10 +558,10 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The headers that will be added to request. @@ -579,7 +580,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The name of the resource group within the Azure subscription. @@ -588,10 +589,10 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -773,7 +774,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -829,7 +830,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) } } // Deserialize Response - if ((int)_statusCode == 202) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -857,7 +858,8 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The name of the resource group within the Azure subscription. @@ -866,10 +868,10 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Headers that will be added to request. @@ -1078,7 +1080,7 @@ internal LiveOutputsOperations(AzureMediaServicesClient client) /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperationsExtensions.cs index a7f1b08e4123..712797b3f07a 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperationsExtensions.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/LiveOutputsOperationsExtensions.cs @@ -25,7 +25,7 @@ public static partial class LiveOutputsOperationsExtensions /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The operations group for this extension method. @@ -37,7 +37,7 @@ public static partial class LiveOutputsOperationsExtensions /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// public static IPage List(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName) { @@ -48,7 +48,7 @@ public static IPage List(this ILiveOutputsOperations operations, str /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The operations group for this extension method. @@ -60,7 +60,7 @@ public static IPage List(this ILiveOutputsOperations operations, str /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// /// The cancellation token. @@ -77,7 +77,7 @@ public static IPage List(this ILiveOutputsOperations operations, str /// Get Live Output /// /// - /// Gets a Live Output. + /// Gets a live output. /// /// /// The operations group for this extension method. @@ -89,10 +89,10 @@ public static IPage List(this ILiveOutputsOperations operations, str /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// public static LiveOutput Get(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) { @@ -103,7 +103,7 @@ public static LiveOutput Get(this ILiveOutputsOperations operations, string reso /// Get Live Output /// /// - /// Gets a Live Output. + /// Gets a live output. /// /// /// The operations group for this extension method. @@ -115,10 +115,10 @@ public static LiveOutput Get(this ILiveOutputsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The cancellation token. @@ -135,7 +135,7 @@ public static LiveOutput Get(this ILiveOutputsOperations operations, string reso /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The operations group for this extension method. @@ -147,10 +147,10 @@ public static LiveOutput Get(this ILiveOutputsOperations operations, string reso /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -164,7 +164,7 @@ public static LiveOutput Create(this ILiveOutputsOperations operations, string r /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The operations group for this extension method. @@ -176,10 +176,10 @@ public static LiveOutput Create(this ILiveOutputsOperations operations, string r /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -199,7 +199,8 @@ public static LiveOutput Create(this ILiveOutputsOperations operations, string r /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The operations group for this extension method. @@ -211,10 +212,10 @@ public static LiveOutput Create(this ILiveOutputsOperations operations, string r /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// public static void Delete(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) { @@ -225,7 +226,8 @@ public static void Delete(this ILiveOutputsOperations operations, string resourc /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The operations group for this extension method. @@ -237,10 +239,10 @@ public static void Delete(this ILiveOutputsOperations operations, string resourc /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The cancellation token. @@ -254,7 +256,7 @@ public static void Delete(this ILiveOutputsOperations operations, string resourc /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The operations group for this extension method. @@ -266,10 +268,10 @@ public static void Delete(this ILiveOutputsOperations operations, string resourc /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -283,7 +285,7 @@ public static LiveOutput BeginCreate(this ILiveOutputsOperations operations, str /// Create Live Output /// /// - /// Creates a Live Output. + /// Creates a new live output. /// /// /// The operations group for this extension method. @@ -295,10 +297,10 @@ public static LiveOutput BeginCreate(this ILiveOutputsOperations operations, str /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// Live Output properties needed for creation. @@ -318,7 +320,8 @@ public static LiveOutput BeginCreate(this ILiveOutputsOperations operations, str /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The operations group for this extension method. @@ -330,10 +333,10 @@ public static LiveOutput BeginCreate(this ILiveOutputsOperations operations, str /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// public static void BeginDelete(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName) { @@ -344,7 +347,8 @@ public static void BeginDelete(this ILiveOutputsOperations operations, string re /// Delete Live Output /// /// - /// Deletes a Live Output. + /// Deletes a live output. Deleting a live output does not delete the asset the + /// live output is writing to. /// /// /// The operations group for this extension method. @@ -356,10 +360,10 @@ public static void BeginDelete(this ILiveOutputsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the Live Event. + /// The name of the live event, maximum length is 32. /// /// - /// The name of the Live Output. + /// The name of the live output. /// /// /// The cancellation token. @@ -373,7 +377,7 @@ public static void BeginDelete(this ILiveOutputsOperations operations, string re /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The operations group for this extension method. @@ -390,7 +394,7 @@ public static IPage ListNext(this ILiveOutputsOperations operations, /// List Live Outputs /// /// - /// Lists the Live Outputs in the Live Event. + /// Lists the live outputs of a live event. /// /// /// The operations group for this extension method. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperations.cs index 33b4decc8343..ae77b603e6d6 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperations.cs @@ -483,6 +483,10 @@ internal MediaservicesOperations(AzureMediaServicesClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } + if (parameters != null) + { + parameters.Validate(); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -784,7 +788,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1461,7 +1465,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1578,7 +1582,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1591,7 +1595,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1640,7 +1644,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetBySubscriptionWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetBySubscriptionWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1763,7 +1767,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1776,7 +1780,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1996,7 +2000,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2105,7 +2109,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -2118,7 +2122,7 @@ internal MediaservicesOperations(AzureMediaServicesClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperationsExtensions.cs index 6f802a64b40c..64024fc7b781 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperationsExtensions.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/MediaservicesOperationsExtensions.cs @@ -366,7 +366,7 @@ public static MediaService Update(this IMediaservicesOperations operations, stri /// /// The operations group for this extension method. /// - public static IPage ListBySubscription(this IMediaservicesOperations operations) + public static IPage ListBySubscription(this IMediaservicesOperations operations) { return operations.ListBySubscriptionAsync().GetAwaiter().GetResult(); } @@ -383,7 +383,7 @@ public static IPage ListBySubscription(this IMediaserv /// /// The cancellation token. /// - public static async Task> ListBySubscriptionAsync(this IMediaservicesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListBySubscriptionAsync(this IMediaservicesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -403,7 +403,7 @@ public static IPage ListBySubscription(this IMediaserv /// /// The Media Services account name. /// - public static SubscriptionMediaService GetBySubscription(this IMediaservicesOperations operations, string accountName) + public static MediaService GetBySubscription(this IMediaservicesOperations operations, string accountName) { return operations.GetBySubscriptionAsync(accountName).GetAwaiter().GetResult(); } @@ -423,7 +423,7 @@ public static SubscriptionMediaService GetBySubscription(this IMediaservicesOper /// /// The cancellation token. /// - public static async Task GetBySubscriptionAsync(this IMediaservicesOperations operations, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetBySubscriptionAsync(this IMediaservicesOperations operations, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetBySubscriptionWithHttpMessagesAsync(accountName, null, cancellationToken).ConfigureAwait(false)) { @@ -483,7 +483,7 @@ public static IPage ListNext(this IMediaservicesOperations operati /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListBySubscriptionNext(this IMediaservicesOperations operations, string nextPageLink) + public static IPage ListBySubscriptionNext(this IMediaservicesOperations operations, string nextPageLink) { return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult(); } @@ -503,7 +503,7 @@ public static IPage ListBySubscriptionNext(this IMedia /// /// The cancellation token. /// - public static async Task> ListBySubscriptionNextAsync(this IMediaservicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListBySubscriptionNextAsync(this IMediaservicesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryption.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryption.cs new file mode 100644 index 000000000000..2a144a0a0cee --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryption.cs @@ -0,0 +1,68 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class AccountEncryption + { + /// + /// Initializes a new instance of the AccountEncryption class. + /// + public AccountEncryption() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AccountEncryption class. + /// + /// The type of key used to encrypt the Account Key. + /// Possible values include: 'SystemKey', 'CustomerKey' + /// The properties of the key used to + /// encrypt the account. + public AccountEncryption(AccountEncryptionKeyType type, KeyVaultProperties keyVaultProperties = default(KeyVaultProperties)) + { + Type = type; + KeyVaultProperties = keyVaultProperties; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of key used to encrypt the Account Key. + /// Possible values include: 'SystemKey', 'CustomerKey' + /// + [JsonProperty(PropertyName = "type")] + public AccountEncryptionKeyType Type { get; set; } + + /// + /// Gets or sets the properties of the key used to encrypt the account. + /// + [JsonProperty(PropertyName = "keyVaultProperties")] + public KeyVaultProperties KeyVaultProperties { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyType.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyType.cs new file mode 100644 index 000000000000..c7e5ee630b4b --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyType.cs @@ -0,0 +1,111 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for AccountEncryptionKeyType. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(AccountEncryptionKeyTypeConverter))] + public struct AccountEncryptionKeyType : System.IEquatable + { + private AccountEncryptionKeyType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// The Account Key is encrypted with a System Key. + /// + public static readonly AccountEncryptionKeyType SystemKey = "SystemKey"; + + /// + /// The Account Key is encrypted with a Customer Key. + /// + public static readonly AccountEncryptionKeyType CustomerKey = "CustomerKey"; + + + /// + /// Underlying value of enum AccountEncryptionKeyType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for AccountEncryptionKeyType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type AccountEncryptionKeyType + /// + public bool Equals(AccountEncryptionKeyType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to AccountEncryptionKeyType + /// + public static implicit operator AccountEncryptionKeyType(string value) + { + return new AccountEncryptionKeyType(value); + } + + /// + /// Implicit operator to convert AccountEncryptionKeyType to string + /// + public static implicit operator string(AccountEncryptionKeyType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum AccountEncryptionKeyType + /// + public static bool operator == (AccountEncryptionKeyType e1, AccountEncryptionKeyType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum AccountEncryptionKeyType + /// + public static bool operator != (AccountEncryptionKeyType e1, AccountEncryptionKeyType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for AccountEncryptionKeyType + /// + public override bool Equals(object obj) + { + return obj is AccountEncryptionKeyType && Equals((AccountEncryptionKeyType)obj); + } + + /// + /// Returns for hashCode AccountEncryptionKeyType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyTypeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyTypeConverter.cs new file mode 100644 index 000000000000..82f363c8f686 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountEncryptionKeyTypeConverter.cs @@ -0,0 +1,54 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for AccountEncryptionKeyType. + /// + public sealed class AccountEncryptionKeyTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to AccountEncryptionKeyType + /// by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(AccountEncryptionKeyType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to AccountEncryptionKeyType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (AccountEncryptionKeyType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for AccountEncryptionKeyType for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs index 1fedde5086e9..8357d0cdfdba 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AccountFilter.cs @@ -34,10 +34,12 @@ public AccountFilter() /// /// Initializes a new instance of the AccountFilter class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The presentation time /// range. /// The first quality. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ApiError.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ApiError.cs index 3eb830ba3f13..f13722e16aa2 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ApiError.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ApiError.cs @@ -29,7 +29,7 @@ public ApiError() /// /// Initializes a new instance of the ApiError class. /// - /// ApiError + /// The error properties. public ApiError(ODataError error = default(ODataError)) { Error = error; @@ -42,11 +42,8 @@ public ApiError() partial void CustomInit(); /// - /// Gets or sets apiError + /// Gets or sets the error properties. /// - /// - /// The error properties. - /// [JsonProperty(PropertyName = "error")] public ODataError Error { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs index 75ed1edebd4c..5b7820cc3c19 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Asset.cs @@ -32,10 +32,12 @@ public Asset() /// /// Initializes a new instance of the Asset class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The Asset ID. /// The creation date of the Asset. /// The last modified date of the diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs index 24ee96b7d063..af7a3aed280f 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AssetFilter.cs @@ -34,10 +34,12 @@ public AssetFilter() /// /// Initializes a new instance of the AssetFilter class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The presentation time /// range. /// The first quality. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisMode.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisMode.cs new file mode 100644 index 000000000000..cb9f7a1c7e00 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisMode.cs @@ -0,0 +1,116 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for AudioAnalysisMode. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(AudioAnalysisModeConverter))] + public struct AudioAnalysisMode : System.IEquatable + { + private AudioAnalysisMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// Performs all operations included in the Basic mode, additionally + /// performing language detection and speaker diarization. + /// + public static readonly AudioAnalysisMode Standard = "Standard"; + + /// + /// 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. + /// + public static readonly AudioAnalysisMode Basic = "Basic"; + + + /// + /// Underlying value of enum AudioAnalysisMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for AudioAnalysisMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type AudioAnalysisMode + /// + public bool Equals(AudioAnalysisMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to AudioAnalysisMode + /// + public static implicit operator AudioAnalysisMode(string value) + { + return new AudioAnalysisMode(value); + } + + /// + /// Implicit operator to convert AudioAnalysisMode to string + /// + public static implicit operator string(AudioAnalysisMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum AudioAnalysisMode + /// + public static bool operator == (AudioAnalysisMode e1, AudioAnalysisMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum AudioAnalysisMode + /// + public static bool operator != (AudioAnalysisMode e1, AudioAnalysisMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for AudioAnalysisMode + /// + public override bool Equals(object obj) + { + return obj is AudioAnalysisMode && Equals((AudioAnalysisMode)obj); + } + + /// + /// Returns for hashCode AudioAnalysisMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisModeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisModeConverter.cs new file mode 100644 index 000000000000..d0fa1451ff32 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalysisModeConverter.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for AudioAnalysisMode. + /// + public sealed class AudioAnalysisModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to AudioAnalysisMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(AudioAnalysisMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to AudioAnalysisMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (AudioAnalysisMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for AudioAnalysisMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalyzerPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalyzerPreset.cs index 1d2aa8d2ca77..ffbed5c48821 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalyzerPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioAnalyzerPreset.cs @@ -37,21 +37,28 @@ public AudioAnalyzerPreset() /// 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. 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: + /// 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 + /// Determines the set of audio analysis operations + /// to be performed. If unspecified, the Standard AudioAnalysisMode + /// would be chosen. Possible values include: 'Standard', + /// 'Basic' /// Dictionary containing key value /// pairs for parameters not exposed in the preset itself - public AudioAnalyzerPreset(string audioLanguage = default(string), IDictionary experimentalOptions = default(IDictionary)) + public AudioAnalyzerPreset(string audioLanguage = default(string), AudioAnalysisMode? mode = default(AudioAnalysisMode?), IDictionary experimentalOptions = default(IDictionary)) { AudioLanguage = audioLanguage; + Mode = mode; ExperimentalOptions = experimentalOptions; CustomInit(); } @@ -65,8 +72,10 @@ public AudioAnalyzerPreset() /// Gets or sets 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. If the language isn't specified or set to null, - /// automatic language detection will choose the first language + /// 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 @@ -79,6 +88,14 @@ public AudioAnalyzerPreset() [JsonProperty(PropertyName = "audioLanguage")] public string AudioLanguage { get; set; } + /// + /// Gets or sets determines the set of audio analysis operations to be + /// performed. If unspecified, the Standard AudioAnalysisMode would be + /// chosen. Possible values include: 'Standard', 'Basic' + /// + [JsonProperty(PropertyName = "mode")] + public AudioAnalysisMode? Mode { get; set; } + /// /// Gets or sets dictionary containing key value pairs for parameters /// not exposed in the preset itself diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs index 6234d8cdcd60..8a5e018f2a4c 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AudioOverlay.cs @@ -38,16 +38,17 @@ public AudioOverlay() /// and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 - /// format. For example, PT05S to start the overlay at 5 seconds in to + /// format. For example, PT05S to start the overlay at 5 seconds into /// the input video. If not specified the overlay starts from the /// beginning of the input video. - /// The position in the input video at which the - /// overlay ends. The value should be in ISO 8601 duration format. For - /// example, PT30S to end the overlay at 30 seconds in to the input - /// video. If not specified the overlay will be applied until the end - /// of the input video if inputLoop is true. Else, if inputLoop is - /// false, then overlay will last as long as the duration of the - /// overlay media. + /// The end position, with reference to the input + /// video, at which the overlay ends. The value should be in ISO 8601 + /// format. For example, PT30S to end the overlay at 30 seconds into + /// the input video. If not specified or the value is greater than the + /// input video duration, the overlay will be applied until the end of + /// the input video if the overlay media duration is greater than the + /// input video duration, else the overlay will last as long as the + /// overlay media duration. /// The duration over which the overlay /// fades in onto the input video. The value should be in ISO 8601 /// duration format. If not specified the default behavior is to have diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs new file mode 100644 index 000000000000..5c2b5280b0cb --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/AzureEntityResource.cs @@ -0,0 +1,59 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource model definition for a Azure Resource Manager resource + /// with an etag. + /// + public partial class AzureEntityResource : Resource + { + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + public AzureEntityResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// Resource Etag. + public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) + : base(id, name, type) + { + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource Etag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs index 5a51dc64374b..a4d87f4fe3be 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/BuiltInStandardEncoderPreset.cs @@ -38,8 +38,8 @@ public BuiltInStandardEncoderPreset() /// 'H264SingleBitrate720p', 'H264SingleBitrate1080p', /// 'AdaptiveStreaming', 'AACGoodQualityAudio', /// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', - /// 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', - /// 'H264MultipleBitrateSD' + /// 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', + /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName) { PresetName = presetName; @@ -57,8 +57,8 @@ public BuiltInStandardEncoderPreset(EncoderNamedPreset presetName) /// 'H264SingleBitrate720p', 'H264SingleBitrate1080p', /// 'AdaptiveStreaming', 'AACGoodQualityAudio', /// 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', - /// 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', - /// 'H264MultipleBitrateSD' + /// 'CopyAllBitrateNonInterleaved', 'H264MultipleBitrate1080p', + /// 'H264MultipleBitrate720p', 'H264MultipleBitrateSD' /// [JsonProperty(PropertyName = "presetName")] public EncoderNamedPreset PresetName { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs index 86ac41966269..8fb5b07613d0 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicy.cs @@ -35,10 +35,12 @@ public ContentKeyPolicy() /// Initializes a new instance of the ContentKeyPolicy class. /// /// The Key Policy options. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The legacy Policy ID. /// The creation date of the Policy /// The last modified date of the diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.cs index 0421427613d2..93009d403950 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.Media.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -36,7 +37,7 @@ public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() /// class. /// /// The content key ID. - public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(System.Guid keyId) + public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(System.Guid? keyId) { KeyId = keyId; CustomInit(); @@ -51,17 +52,20 @@ public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier(System.Gui /// Gets or sets the content key ID. /// [JsonProperty(PropertyName = "keyId")] - public System.Guid KeyId { get; set; } + public System.Guid? KeyId { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - //Nothing to validate + if (KeyId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "KeyId"); + } } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs index 901797126a5e..36a0dd85328a 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/EncoderNamedPreset.cs @@ -30,32 +30,30 @@ private EncoderNamedPreset(string underlyingValue) /// /// 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 64 kbps. + /// is encoded with AAC-LC codec at 128 kbps. /// public static readonly EncoderNamedPreset H264SingleBitrateSD = "H264SingleBitrateSD"; /// /// 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 64 kbps. + /// is encoded with AAC-LC codec at 128 kbps. /// public static readonly EncoderNamedPreset H264SingleBitrate720p = "H264SingleBitrate720p"; /// /// 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 64 kbps. + /// is encoded with AAC-LC codec at 128 kbps. /// public static readonly EncoderNamedPreset H264SingleBitrate1080p = "H264SingleBitrate1080p"; /// /// 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 and bitrate. The auto-generated preset will never exceed - /// the input resolution and bitrate. For example, if the input is 720p - /// at 3 Mbps, output will remain 720p at best, and will start at rates - /// lower than 3 Mbps. The output will have video and audio in separate - /// MP4 files, which is optimal for adaptive streaming. + /// 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. /// public static readonly EncoderNamedPreset AdaptiveStreaming = "AdaptiveStreaming"; @@ -88,24 +86,32 @@ private EncoderNamedPreset(string underlyingValue) /// public static readonly EncoderNamedPreset ContentAwareEncoding = "ContentAwareEncoding"; + /// + /// 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. + /// + public static readonly EncoderNamedPreset CopyAllBitrateNonInterleaved = "CopyAllBitrateNonInterleaved"; + /// /// 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 360p. + /// goes down to 180p. /// public static readonly EncoderNamedPreset H264MultipleBitrate1080p = "H264MultipleBitrate1080p"; /// /// 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 360p. + /// goes down to 180p. /// public static readonly EncoderNamedPreset H264MultipleBitrate720p = "H264MultipleBitrate720p"; /// - /// Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to + /// 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 360p. + /// down to 240p. /// public static readonly EncoderNamedPreset H264MultipleBitrateSD = "H264MultipleBitrateSD"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs index 4db5cacf646d..16b4ad0ee6fe 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Format.cs @@ -32,7 +32,12 @@ public Format() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 @@ -53,13 +58,18 @@ public Format(string filenamePattern) /// /// Gets or sets the pattern of the file names for the generated output /// files. The following macros are supported in the file name: - /// {Basename} - The base name of the input video {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. Any unsubstituted macros will be collapsed and removed from - /// the filename. + /// {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. Any unsubstituted macros will be + /// collapsed and removed from the filename. /// [JsonProperty(PropertyName = "filenamePattern")] public string FilenamePattern { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H264Video.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H264Video.cs index 3a07135fa8a1..b841e52c2b8e 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H264Video.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/H264Video.cs @@ -34,14 +34,18 @@ public H264Video() /// /// An optional label for the codec. The label can /// be used to control muxing behavior. - /// The distance between two key frames, - /// thereby defining a group of pictures (GOP). The value should be a - /// non-zero integer in the range [1, 30] seconds, specified in ISO - /// 8601 format. The default is 2 seconds (PT2S). + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. /// The resizing mode - how the input video /// will be resized to fit the desired output resolution(s). Default is /// AutoSize. Possible values include: 'None', 'AutoSize', /// 'AutoFit' + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' /// 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 @@ -52,8 +56,8 @@ public H264Video() /// include: 'Speed', 'Balanced', 'Quality' /// The collection of output H.264 layers to be /// produced by the encoder. - public H264Video(string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), bool? sceneChangeDetection = default(bool?), H264Complexity? complexity = default(H264Complexity?), IList layers = default(IList)) - : base(label, keyFrameInterval, stretchMode) + public H264Video(string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?), bool? sceneChangeDetection = default(bool?), H264Complexity? complexity = default(H264Complexity?), IList layers = default(IList)) + : base(label, keyFrameInterval, stretchMode, syncMode) { SceneChangeDetection = sceneChangeDetection; Complexity = complexity; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Hls.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Hls.cs index e6b6ef5e0497..25aab2bb5176 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Hls.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Hls.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The HLS configuration. + /// HTTP Live Streaming (HLS) packing setting for the live output. /// public partial class Hls { @@ -29,8 +29,10 @@ public Hls() /// /// Initializes a new instance of the Hls class. /// - /// The amount of fragments per - /// HTTP Live Streaming (HLS) segment. + /// The number of fragments in an + /// HTTP Live Streaming (HLS) TS segment in the output of the live + /// event. This value does not affect the packing ratio for HLS CMAF + /// output. public Hls(int? fragmentsPerTsSegment = default(int?)) { FragmentsPerTsSegment = fragmentsPerTsSegment; @@ -43,8 +45,9 @@ public Hls() partial void CustomInit(); /// - /// Gets or sets the amount of fragments per HTTP Live Streaming (HLS) - /// segment. + /// Gets or sets the number of fragments in an HTTP Live Streaming + /// (HLS) TS segment in the output of the live event. This value does + /// not affect the packing ratio for HLS CMAF output. /// [JsonProperty(PropertyName = "fragmentsPerTsSegment")] public int? FragmentsPerTsSegment { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Image.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Image.cs index 8da5adee0557..46cdbdf30090 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Image.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Image.cs @@ -33,32 +33,55 @@ public Image() /// Initializes a new instance of the Image class. /// /// The position in the input video from where to - /// start generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the - /// 10th frame), or a relative value (For example, 1%). Also supports a - /// macro {Best}, which tells the encoder to select the best thumbnail - /// from the first few seconds of the video. + /// start generating thumbnails. The value can be in ISO 8601 format + /// (For example, PT05S to start at 5 seconds), or a frame count (For + /// example, 10 to start at the 10th frame), or a relative value to + /// stream duration (For example, 10% to start at 10% of stream + /// duration). Also supports a macro {Best}, which tells the encoder to + /// select the best thumbnail from the first few seconds of the video + /// and will only produce one thumbnail, no matter what other settings + /// are for Step and Range. The default value is macro {Best}. /// An optional label for the codec. The label can /// be used to control muxing behavior. - /// The distance between two key frames, - /// thereby defining a group of pictures (GOP). The value should be a - /// non-zero integer in the range [1, 30] seconds, specified in ISO - /// 8601 format. The default is 2 seconds (PT2S). + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. /// The resizing mode - how the input video /// will be resized to fit the desired output resolution(s). Default is /// AutoSize. Possible values include: 'None', 'AutoSize', /// 'AutoFit' + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' /// The intervals at which thumbnails are generated. - /// The value can be in absolute timestamp (ISO 8601, e.g: PT05S for - /// one image every 5 seconds), or a frame count (For example, 30 for - /// every 30 frames), or a relative value (For example, 1%). - /// The position in the input video at which to - /// stop generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a - /// frame count (For example, 300 to stop at the 300th frame), or a - /// relative value (For example, 100%). - public Image(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), string step = default(string), string range = default(string)) - : base(label, keyFrameInterval, stretchMode) + /// The value can be in ISO 8601 format (For example, PT05S for one + /// image every 5 seconds), or a frame count (For example, 30 for one + /// image every 30 frames), or a relative value to stream duration (For + /// example, 10% for one image every 10% of stream duration). Note: + /// Step value will affect the first generated thumbnail, which may not + /// be exactly the one specified at transform preset start time. This + /// is due to the encoder, which tries to select the best thumbnail + /// between start time and Step position from start time as the first + /// output. As the default value is 10%, it means if stream has long + /// duration, the first generated thumbnail might be far away from the + /// one specified at start time. Try to select reasonable value for + /// Step if the first thumbnail is expected close to start time, or set + /// Range value at 1 if only one thumbnail is needed at start + /// time. + /// The position relative to transform preset start + /// time in the input video at which to stop generating thumbnails. The + /// value can be in ISO 8601 format (For example, PT5M30S to stop at 5 + /// minutes and 30 seconds from start time), or a frame count (For + /// example, 300 to stop at the 300th frame from the frame at start + /// time. If this value is 1, it means only producing one thumbnail at + /// start time), or a relative value to the stream duration (For + /// example, 50% to stop at half of stream duration from start time). + /// The default value is 100%, which means to stop at the end of the + /// stream. + public Image(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?), string step = default(string), string range = default(string)) + : base(label, keyFrameInterval, stretchMode, syncMode) { Start = start; Step = step; @@ -73,30 +96,48 @@ public Image() /// /// Gets or sets the position in the input video from where to start - /// generating thumbnails. The value can be in absolute timestamp (ISO - /// 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th - /// frame), or a relative value (For example, 1%). Also supports a - /// macro {Best}, which tells the encoder to select the best thumbnail - /// from the first few seconds of the video. + /// generating thumbnails. The value can be in ISO 8601 format (For + /// example, PT05S to start at 5 seconds), or a frame count (For + /// example, 10 to start at the 10th frame), or a relative value to + /// stream duration (For example, 10% to start at 10% of stream + /// duration). Also supports a macro {Best}, which tells the encoder to + /// select the best thumbnail from the first few seconds of the video + /// and will only produce one thumbnail, no matter what other settings + /// are for Step and Range. The default value is macro {Best}. /// [JsonProperty(PropertyName = "start")] public string Start { get; set; } /// /// Gets or sets the intervals at which thumbnails are generated. The - /// value can be in absolute timestamp (ISO 8601, e.g: PT05S for one - /// image every 5 seconds), or a frame count (For example, 30 for every - /// 30 frames), or a relative value (For example, 1%). + /// value can be in ISO 8601 format (For example, PT05S for one image + /// every 5 seconds), or a frame count (For example, 30 for one image + /// every 30 frames), or a relative value to stream duration (For + /// example, 10% for one image every 10% of stream duration). Note: + /// Step value will affect the first generated thumbnail, which may not + /// be exactly the one specified at transform preset start time. This + /// is due to the encoder, which tries to select the best thumbnail + /// between start time and Step position from start time as the first + /// output. As the default value is 10%, it means if stream has long + /// duration, the first generated thumbnail might be far away from the + /// one specified at start time. Try to select reasonable value for + /// Step if the first thumbnail is expected close to start time, or set + /// Range value at 1 if only one thumbnail is needed at start time. /// [JsonProperty(PropertyName = "step")] public string Step { get; set; } /// - /// Gets or sets the position in the input video at which to stop - /// generating thumbnails. The value can be in absolute timestamp (ISO - /// 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a frame - /// count (For example, 300 to stop at the 300th frame), or a relative - /// value (For example, 100%). + /// Gets or sets the position relative to transform preset start time + /// in the input video at which to stop generating thumbnails. The + /// value can be in ISO 8601 format (For example, PT5M30S to stop at 5 + /// minutes and 30 seconds from start time), or a frame count (For + /// example, 300 to stop at the 300th frame from the frame at start + /// time. If this value is 1, it means only producing one thumbnail at + /// start time), or a relative value to the stream duration (For + /// example, 50% to stop at half of stream duration from start time). + /// The default value is 100%, which means to stop at the end of the + /// stream. /// [JsonProperty(PropertyName = "range")] public string Range { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs index 23551dc0f2c5..ee4da91574e5 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ImageFormat.cs @@ -32,7 +32,12 @@ public ImageFormat() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs index a34d1f31dfab..760e95a6de0b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Job.cs @@ -37,19 +37,21 @@ public Job() /// /// The inputs for the Job. /// The outputs for the Job. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. - /// The UTC date and time when the Job was - /// created, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// The UTC date and time when the customer has + /// created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. /// The current state of the job. Possible values /// include: 'Canceled', 'Canceling', 'Error', 'Finished', /// 'Processing', 'Queued', 'Scheduled' /// Optional customer supplied description of /// the Job. - /// The UTC date and time when the Job was - /// last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. + /// The UTC date and time when the customer + /// has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. /// Priority with which the job should be /// processed. Higher priority jobs are processed before lower priority /// jobs. If not set, the default is normal. Possible values include: @@ -82,8 +84,8 @@ public Job() partial void CustomInit(); /// - /// Gets the UTC date and time when the Job was created, in - /// 'YYYY-MM-DDThh:mm:ssZ' format. + /// Gets the UTC date and time when the customer has created the Job, + /// in 'YYYY-MM-DDThh:mm:ssZ' format. /// [JsonProperty(PropertyName = "properties.created")] public System.DateTime Created { get; private set; } @@ -109,8 +111,8 @@ public Job() public JobInput Input { get; set; } /// - /// Gets the UTC date and time when the Job was last updated, in - /// 'YYYY-MM-DDThh:mm:ssZ' format. + /// Gets the UTC date and time when the customer has last updated the + /// Job, in 'YYYY-MM-DDThh:mm:ssZ' format. /// [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime LastModified { get; private set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs index 6b8f9d6f27e8..a38f06386afa 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgFormat.cs @@ -32,7 +32,12 @@ public JpgFormat() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgImage.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgImage.cs index 331bd4673973..17554a0b3d58 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgImage.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/JpgImage.cs @@ -34,36 +34,67 @@ public JpgImage() /// Initializes a new instance of the JpgImage class. /// /// The position in the input video from where to - /// start generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the - /// 10th frame), or a relative value (For example, 1%). Also supports a - /// macro {Best}, which tells the encoder to select the best thumbnail - /// from the first few seconds of the video. + /// start generating thumbnails. The value can be in ISO 8601 format + /// (For example, PT05S to start at 5 seconds), or a frame count (For + /// example, 10 to start at the 10th frame), or a relative value to + /// stream duration (For example, 10% to start at 10% of stream + /// duration). Also supports a macro {Best}, which tells the encoder to + /// select the best thumbnail from the first few seconds of the video + /// and will only produce one thumbnail, no matter what other settings + /// are for Step and Range. The default value is macro {Best}. /// An optional label for the codec. The label can /// be used to control muxing behavior. - /// The distance between two key frames, - /// thereby defining a group of pictures (GOP). The value should be a - /// non-zero integer in the range [1, 30] seconds, specified in ISO - /// 8601 format. The default is 2 seconds (PT2S). + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. /// The resizing mode - how the input video /// will be resized to fit the desired output resolution(s). Default is /// AutoSize. Possible values include: 'None', 'AutoSize', /// 'AutoFit' + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' /// The intervals at which thumbnails are generated. - /// The value can be in absolute timestamp (ISO 8601, e.g: PT05S for - /// one image every 5 seconds), or a frame count (For example, 30 for - /// every 30 frames), or a relative value (For example, 1%). - /// The position in the input video at which to - /// stop generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a - /// frame count (For example, 300 to stop at the 300th frame), or a - /// relative value (For example, 100%). + /// The value can be in ISO 8601 format (For example, PT05S for one + /// image every 5 seconds), or a frame count (For example, 30 for one + /// image every 30 frames), or a relative value to stream duration (For + /// example, 10% for one image every 10% of stream duration). Note: + /// Step value will affect the first generated thumbnail, which may not + /// be exactly the one specified at transform preset start time. This + /// is due to the encoder, which tries to select the best thumbnail + /// between start time and Step position from start time as the first + /// output. As the default value is 10%, it means if stream has long + /// duration, the first generated thumbnail might be far away from the + /// one specified at start time. Try to select reasonable value for + /// Step if the first thumbnail is expected close to start time, or set + /// Range value at 1 if only one thumbnail is needed at start + /// time. + /// The position relative to transform preset start + /// time in the input video at which to stop generating thumbnails. The + /// value can be in ISO 8601 format (For example, PT5M30S to stop at 5 + /// minutes and 30 seconds from start time), or a frame count (For + /// example, 300 to stop at the 300th frame from the frame at start + /// time. If this value is 1, it means only producing one thumbnail at + /// start time), or a relative value to the stream duration (For + /// example, 50% to stop at half of stream duration from start time). + /// The default value is 100%, which means to stop at the end of the + /// stream. /// A collection of output JPEG image layers to be /// produced by the encoder. - public JpgImage(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), string step = default(string), string range = default(string), IList layers = default(IList)) - : base(start, label, keyFrameInterval, stretchMode, step, range) + /// Sets the number of columns used in + /// thumbnail sprite image. The number of rows are automatically + /// calculated and a VTT file is generated with the coordinate mappings + /// for each thumbnail in the sprite. Note: this value should be a + /// positive integer and a proper value is recommended so that the + /// output image resolution will not go beyond JPEG maximum pixel + /// resolution limit 65535x65535. + public JpgImage(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?), string step = default(string), string range = default(string), IList layers = default(IList), int? spriteColumn = default(int?)) + : base(start, label, keyFrameInterval, stretchMode, syncMode, step, range) { Layers = layers; + SpriteColumn = spriteColumn; CustomInit(); } @@ -79,6 +110,17 @@ public JpgImage() [JsonProperty(PropertyName = "layers")] public IList Layers { get; set; } + /// + /// Gets or sets sets the number of columns used in thumbnail sprite + /// image. The number of rows are automatically calculated and a VTT + /// file is generated with the coordinate mappings for each thumbnail + /// in the sprite. Note: this value should be a positive integer and a + /// proper value is recommended so that the output image resolution + /// will not go beyond JPEG maximum pixel resolution limit 65535x65535. + /// + [JsonProperty(PropertyName = "spriteColumn")] + public int? SpriteColumn { get; set; } + /// /// Validate the object. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/KeyVaultProperties.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/KeyVaultProperties.cs new file mode 100644 index 000000000000..db0ff037e638 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/KeyVaultProperties.cs @@ -0,0 +1,64 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class KeyVaultProperties + { + /// + /// Initializes a new instance of the KeyVaultProperties class. + /// + public KeyVaultProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KeyVaultProperties class. + /// + /// 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). + /// The current key used to encrypt + /// the Media Services account, including the key version. + public KeyVaultProperties(string keyIdentifier = default(string), string currentKeyIdentifier = default(string)) + { + KeyIdentifier = keyIdentifier; + CurrentKeyIdentifier = currentKeyIdentifier; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets 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). + /// + [JsonProperty(PropertyName = "keyIdentifier")] + public string KeyIdentifier { get; set; } + + /// + /// Gets the current key used to encrypt the Media Services account, + /// including the key version. + /// + [JsonProperty(PropertyName = "currentKeyIdentifier")] + public string CurrentKeyIdentifier { get; private set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs index 17e62aa57182..58383ec79422 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEvent.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The Live Event. + /// The live event. /// [Rest.Serialization.JsonTransformation] public partial class LiveEvent : TrackedResource @@ -34,44 +34,65 @@ public LiveEvent() /// /// Initializes a new instance of the LiveEvent class. /// - /// The Live Event input. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Live event input settings. It defines how the + /// live event receives input from a contribution encoder. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// Resource tags. - /// The Azure Region of the resource. - /// The Live Event description. - /// The Live Event preview. - /// The Live Event encoding. - /// The provisioning state of the Live - /// Event. - /// The resource state of the Live Event. - /// Possible values include: 'Stopped', 'Starting', 'Running', - /// 'Stopping', 'Deleting' - /// The Live Event access + /// A description for the live event. + /// Live event preview settings. Preview allows + /// live event producers to preview the live streaming content without + /// creating any live output. + /// Encoding settings for the live event. It + /// configures whether a live encoder is used for the live event and + /// settings for the live encoder if it is used. + /// Live transcription settings for the + /// live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for + /// more information about the live transcription feature. + /// The provisioning state of the live + /// event. + /// 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' + /// Live event cross site access /// policies. - /// Specifies whether to use a vanity url with - /// the Live Event. This value is specified at creation time and - /// cannot be updated. + /// Specifies whether a static hostname + /// would be assigned to the live event preview and ingest endpoints. + /// This value can only be updated if the live event is in Standby + /// state + /// When useStaticHostname is set to true, + /// the hostnamePrefix specifies the first part of the hostname + /// assigned to the live event preview and ingest endpoints. The final + /// hostname would be a combination of this prefix, the media service + /// account name and a short code for the Azure Media Services data + /// center. /// The options to use for the LiveEvent. - /// This value is specified at creation time and cannot be - /// updated. - /// The exact time the Live Event was - /// created. - /// The exact time the Live Event was last - /// modified. - public LiveEvent(LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), string provisioningState = default(string), LiveEventResourceState? resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool? vanityUrl = default(bool?), IList streamOptions = default(IList), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) - : base(id, name, type, tags, location) + /// This value is specified at creation time and cannot be updated. The + /// valid values for the array entry values are 'Default' and + /// 'LowLatency'. + /// The creation time for the live event + /// The last modified time of the live + /// event. + public LiveEvent(string location, LiveEventInput input, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), LiveEventPreview preview = default(LiveEventPreview), LiveEventEncoding encoding = default(LiveEventEncoding), IList transcriptions = default(IList), string provisioningState = default(string), LiveEventResourceState? resourceState = default(LiveEventResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), bool? useStaticHostname = default(bool?), string hostnamePrefix = default(string), IList streamOptions = default(IList), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) + : base(location, id, name, type, tags) { Description = description; Input = input; Preview = preview; Encoding = encoding; + Transcriptions = transcriptions; ProvisioningState = provisioningState; ResourceState = resourceState; CrossSiteAccessPolicies = crossSiteAccessPolicies; - VanityUrl = vanityUrl; + UseStaticHostname = useStaticHostname; + HostnamePrefix = hostnamePrefix; StreamOptions = streamOptions; Created = created; LastModified = lastModified; @@ -84,71 +105,97 @@ public LiveEvent() partial void CustomInit(); /// - /// Gets or sets the Live Event description. + /// Gets or sets a description for the live event. /// [JsonProperty(PropertyName = "properties.description")] public string Description { get; set; } /// - /// Gets or sets the Live Event input. + /// Gets or sets live event input settings. It defines how the live + /// event receives input from a contribution encoder. /// [JsonProperty(PropertyName = "properties.input")] public LiveEventInput Input { get; set; } /// - /// Gets or sets the Live Event preview. + /// Gets or sets live event preview settings. Preview allows live event + /// producers to preview the live streaming content without creating + /// any live output. /// [JsonProperty(PropertyName = "properties.preview")] public LiveEventPreview Preview { get; set; } /// - /// Gets or sets the Live Event encoding. + /// Gets or sets encoding settings for the live event. It configures + /// whether a live encoder is used for the live event and settings for + /// the live encoder if it is used. /// [JsonProperty(PropertyName = "properties.encoding")] public LiveEventEncoding Encoding { get; set; } /// - /// Gets the provisioning state of the Live Event. + /// Gets or sets live transcription settings for the live event. See + /// https://go.microsoft.com/fwlink/?linkid=2133742 for more + /// information about the live transcription feature. + /// + [JsonProperty(PropertyName = "properties.transcriptions")] + public IList Transcriptions { get; set; } + + /// + /// Gets the provisioning state of the live event. /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets the resource state of the Live Event. Possible values include: - /// 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting' + /// Gets 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' /// [JsonProperty(PropertyName = "properties.resourceState")] public LiveEventResourceState? ResourceState { get; private set; } /// - /// Gets or sets the Live Event access policies. + /// Gets or sets live event cross site access policies. /// [JsonProperty(PropertyName = "properties.crossSiteAccessPolicies")] public CrossSiteAccessPolicies CrossSiteAccessPolicies { get; set; } /// - /// Gets or sets specifies whether to use a vanity url with the Live - /// Event. This value is specified at creation time and cannot be - /// updated. + /// Gets or sets specifies whether a static hostname would be assigned + /// to the live event preview and ingest endpoints. This value can only + /// be updated if the live event is in Standby state + /// + [JsonProperty(PropertyName = "properties.useStaticHostname")] + public bool? UseStaticHostname { get; set; } + + /// + /// Gets or sets when useStaticHostname is set to true, the + /// hostnamePrefix specifies the first part of the hostname assigned to + /// the live event preview and ingest endpoints. The final hostname + /// would be a combination of this prefix, the media service account + /// name and a short code for the Azure Media Services data center. /// - [JsonProperty(PropertyName = "properties.vanityUrl")] - public bool? VanityUrl { get; set; } + [JsonProperty(PropertyName = "properties.hostnamePrefix")] + public string HostnamePrefix { get; set; } /// - /// Gets or sets the options to use for the LiveEvent. This value is - /// specified at creation time and cannot be updated. + /// Gets or sets the options to use for the LiveEvent. This value is + /// specified at creation time and cannot be updated. The valid values + /// for the array entry values are 'Default' and 'LowLatency'. /// [JsonProperty(PropertyName = "properties.streamOptions")] public IList StreamOptions { get; set; } /// - /// Gets the exact time the Live Event was created. + /// Gets the creation time for the live event /// [JsonProperty(PropertyName = "properties.created")] public System.DateTime? Created { get; private set; } /// - /// Gets the exact time the Live Event was last modified. + /// Gets the last modified time of the live event. /// [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime? LastModified { get; private set; } @@ -159,8 +206,9 @@ public LiveEvent() /// /// Thrown if validation fails /// - public virtual void Validate() + public override void Validate() { + base.Validate(); if (Input == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Input"); @@ -169,6 +217,16 @@ public virtual void Validate() { Input.Validate(); } + if (Transcriptions != null) + { + foreach (var element in Transcriptions) + { + if (element != null) + { + element.Validate(); + } + } + } } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventActionInput.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventActionInput.cs index f2001f3f92e3..45035e8e66b6 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventActionInput.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventActionInput.cs @@ -29,8 +29,9 @@ public LiveEventActionInput() /// /// Initializes a new instance of the LiveEventActionInput class. /// - /// The flag indicates if remove - /// LiveOutputs on Stop. + /// The flag indicates whether live + /// outputs are automatically deleted when live event is being stopped. + /// Deleting live outputs do not delete the underlying assets. public LiveEventActionInput(bool? removeOutputsOnStop = default(bool?)) { RemoveOutputsOnStop = removeOutputsOnStop; @@ -43,7 +44,9 @@ public LiveEventActionInput() partial void CustomInit(); /// - /// Gets or sets the flag indicates if remove LiveOutputs on Stop. + /// Gets or sets the flag indicates whether live outputs are + /// automatically deleted when live event is being stopped. Deleting + /// live outputs do not delete the underlying assets. /// [JsonProperty(PropertyName = "removeOutputsOnStop")] public bool? RemoveOutputsOnStop { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncoding.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncoding.cs index e851d5b15be6..7b5a5495f775 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncoding.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncoding.cs @@ -14,7 +14,8 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The Live Event encoding. + /// Specifies the live event type and optional encoding settings for + /// encoding live events. /// public partial class LiveEventEncoding { @@ -29,15 +30,38 @@ public LiveEventEncoding() /// /// Initializes a new instance of the LiveEventEncoding class. /// - /// The encoding type for Live Event. This - /// value is specified at creation time and cannot be updated. Possible - /// values include: 'None', 'Basic', 'Standard', 'Premium1080p' - /// The encoding preset name. This value is - /// specified at creation time and cannot be updated. - public LiveEventEncoding(LiveEventEncodingType? encodingType = default(LiveEventEncodingType?), string presetName = default(string)) + /// Live event type. When encodingType is + /// set to None, the service simply passes through the incoming video + /// and audio layer(s) to the output. When encodingType is set to + /// Standard or Premium1080p, a live encoder transcodes the incoming + /// stream into multiple bitrates or layers. See + /// https://go.microsoft.com/fwlink/?linkid=2095101 for more + /// information. This property cannot be modified after the live event + /// is created. Possible values include: 'None', 'Standard', + /// 'Premium1080p' + /// The optional encoding preset name, used + /// when encodingType is not None. This value is specified at creation + /// time and cannot be updated. If the encodingType is set to Standard, + /// then the default preset name is ‘Default720p’. Else if the + /// encodingType is set to Premium1080p, the default preset is + /// ‘Default1080p’. + /// Specifies how the input video will be + /// resized to fit the desired output resolution(s). Default is None. + /// Possible values include: 'None', 'AutoSize', 'AutoFit' + /// Use an ISO 8601 time value between + /// 0.5 to 20 seconds to specify the output fragment length for the + /// video and audio tracks of an encoding live event. For example, use + /// PT2S to indicate 2 seconds. For the video track it also defines the + /// key frame interval, or the length of a GoP (group of pictures). + /// If this value is not set for an encoding live event, the fragment + /// duration defaults to 2 seconds. The value cannot be set for + /// pass-through live events. + public LiveEventEncoding(LiveEventEncodingType? encodingType = default(LiveEventEncodingType?), string presetName = default(string), StretchMode? stretchMode = default(StretchMode?), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?)) { EncodingType = encodingType; PresetName = presetName; + StretchMode = stretchMode; + KeyFrameInterval = keyFrameInterval; CustomInit(); } @@ -47,19 +71,49 @@ public LiveEventEncoding() partial void CustomInit(); /// - /// Gets or sets the encoding type for Live Event. This value is - /// specified at creation time and cannot be updated. Possible values - /// include: 'None', 'Basic', 'Standard', 'Premium1080p' + /// Gets or sets live event type. When encodingType is set to None, the + /// service simply passes through the incoming video and audio layer(s) + /// to the output. When encodingType is set to Standard or + /// Premium1080p, a live encoder transcodes the incoming stream into + /// multiple bitrates or layers. See + /// https://go.microsoft.com/fwlink/?linkid=2095101 for more + /// information. This property cannot be modified after the live event + /// is created. Possible values include: 'None', 'Standard', + /// 'Premium1080p' /// [JsonProperty(PropertyName = "encodingType")] public LiveEventEncodingType? EncodingType { get; set; } /// - /// Gets or sets the encoding preset name. This value is specified at - /// creation time and cannot be updated. + /// Gets or sets the optional encoding preset name, used when + /// encodingType is not None. This value is specified at creation time + /// and cannot be updated. If the encodingType is set to Standard, then + /// the default preset name is ‘Default720p’. Else if the encodingType + /// is set to Premium1080p, the default preset is ‘Default1080p’. /// [JsonProperty(PropertyName = "presetName")] public string PresetName { get; set; } + /// + /// Gets or sets specifies how the input video will be resized to fit + /// the desired output resolution(s). Default is None. Possible values + /// include: 'None', 'AutoSize', 'AutoFit' + /// + [JsonProperty(PropertyName = "stretchMode")] + public StretchMode? StretchMode { get; set; } + + /// + /// Gets or sets use an ISO 8601 time value between 0.5 to 20 seconds + /// to specify the output fragment length for the video and audio + /// tracks of an encoding live event. For example, use PT2S to indicate + /// 2 seconds. For the video track it also defines the key frame + /// interval, or the length of a GoP (group of pictures). If this + /// value is not set for an encoding live event, the fragment duration + /// defaults to 2 seconds. The value cannot be set for pass-through + /// live events. + /// + [JsonProperty(PropertyName = "keyFrameInterval")] + public System.TimeSpan? KeyFrameInterval { get; set; } + } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncodingType.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncodingType.cs index f8e4b9275c22..e20e6dd5c42c 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncodingType.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEncodingType.cs @@ -27,12 +27,25 @@ private LiveEventEncodingType(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// 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. + /// public static readonly LiveEventEncodingType None = "None"; - public static readonly LiveEventEncodingType Basic = "Basic"; - + /// + /// 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. + /// public static readonly LiveEventEncodingType Standard = "Standard"; + /// + /// 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. + /// public static readonly LiveEventEncodingType Premium1080p = "Premium1080p"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEndpoint.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEndpoint.cs index e5ee9b3d3158..659af9f6f102 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEndpoint.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventEndpoint.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The Live Event endpoint. + /// The live event endpoint. /// public partial class LiveEventEndpoint { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInput.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInput.cs index a2de02ba8cbf..e23dc7a175b2 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInput.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInput.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The Live Event input. + /// The live event input. /// public partial class LiveEventInput { @@ -31,18 +31,22 @@ public LiveEventInput() /// /// Initializes a new instance of the LiveEventInput class. /// - /// The streaming protocol for the Live - /// Event. This is specified at creation time and cannot be updated. + /// The input protocol for the live + /// event. This is specified at creation time and cannot be updated. /// Possible values include: 'FragmentedMP4', 'RTMP' - /// The access control for LiveEvent - /// Input. - /// ISO 8601 timespan duration - /// of the key frame interval duration. - /// A unique identifier for a stream. This - /// can be specified at creation time but cannot be updated. If - /// omitted, the service will generate a unique value. - /// The input endpoints for the Live - /// Event. + /// Access control for live event + /// input. + /// ISO 8601 time duration of + /// the key frame interval duration of the input. This value sets the + /// EXT-X-TARGETDURATION property in the HLS output. For example, use + /// PT2S to indicate 2 seconds. Leave the value empty for encoding live + /// events. + /// A UUID in string form to uniquely + /// identify the stream. This can be specified at creation time but + /// cannot be updated. If omitted, the service will generate a unique + /// value. + /// The input endpoints for the live + /// event. public LiveEventInput(LiveEventInputProtocol streamingProtocol, LiveEventInputAccessControl accessControl = default(LiveEventInputAccessControl), string keyFrameIntervalDuration = default(string), string accessToken = default(string), IList endpoints = default(IList)) { StreamingProtocol = streamingProtocol; @@ -59,7 +63,7 @@ public LiveEventInput() partial void CustomInit(); /// - /// Gets or sets the streaming protocol for the Live Event. This is + /// Gets or sets the input protocol for the live event. This is /// specified at creation time and cannot be updated. Possible values /// include: 'FragmentedMP4', 'RTMP' /// @@ -67,28 +71,30 @@ public LiveEventInput() public LiveEventInputProtocol StreamingProtocol { get; set; } /// - /// Gets or sets the access control for LiveEvent Input. + /// Gets or sets access control for live event input. /// [JsonProperty(PropertyName = "accessControl")] public LiveEventInputAccessControl AccessControl { get; set; } /// - /// Gets or sets ISO 8601 timespan duration of the key frame interval - /// duration. + /// Gets or sets ISO 8601 time duration of the key frame interval + /// duration of the input. This value sets the EXT-X-TARGETDURATION + /// property in the HLS output. For example, use PT2S to indicate 2 + /// seconds. Leave the value empty for encoding live events. /// [JsonProperty(PropertyName = "keyFrameIntervalDuration")] public string KeyFrameIntervalDuration { get; set; } /// - /// Gets or sets a unique identifier for a stream. This can be - /// specified at creation time but cannot be updated. If omitted, the - /// service will generate a unique value. + /// Gets or sets a UUID in string form to uniquely identify the stream. + /// This can be specified at creation time but cannot be updated. If + /// omitted, the service will generate a unique value. /// [JsonProperty(PropertyName = "accessToken")] public string AccessToken { get; set; } /// - /// Gets or sets the input endpoints for the Live Event. + /// Gets or sets the input endpoints for the live event. /// [JsonProperty(PropertyName = "endpoints")] public IList Endpoints { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputAccessControl.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputAccessControl.cs index 54892965b192..21d1a43dd5a5 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputAccessControl.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputAccessControl.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The IP access control for Live Event Input. + /// The IP access control for live event input. /// public partial class LiveEventInputAccessControl { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputProtocol.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputProtocol.cs index 40a2f1615718..fd34adc54289 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputProtocol.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputProtocol.cs @@ -27,8 +27,16 @@ private LiveEventInputProtocol(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// Smooth Streaming input will be sent by the contribution encoder to + /// the live event. + /// public static readonly LiveEventInputProtocol FragmentedMP4 = "FragmentedMP4"; + /// + /// RTMP input will be sent by the contribution encoder to the live + /// event. + /// public static readonly LiveEventInputProtocol RTMP = "RTMP"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputTrackSelection.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputTrackSelection.cs new file mode 100644 index 000000000000..63b6e64d6ed6 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventInputTrackSelection.cs @@ -0,0 +1,79 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A track selection condition. This property is reserved for future use, + /// any value set on this property will be ignored. + /// + public partial class LiveEventInputTrackSelection + { + /// + /// Initializes a new instance of the LiveEventInputTrackSelection + /// class. + /// + public LiveEventInputTrackSelection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LiveEventInputTrackSelection + /// class. + /// + /// Property name to select. This property is + /// reserved for future use, any value set on this property will be + /// ignored. + /// Comparing operation. This property is + /// reserved for future use, any value set on this property will be + /// ignored. + /// Property value to select. This property is + /// reserved for future use, any value set on this property will be + /// ignored. + public LiveEventInputTrackSelection(string property = default(string), string operation = default(string), string value = default(string)) + { + Property = property; + Operation = operation; + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets property name to select. This property is reserved for + /// future use, any value set on this property will be ignored. + /// + [JsonProperty(PropertyName = "property")] + public string Property { get; set; } + + /// + /// Gets or sets comparing operation. This property is reserved for + /// future use, any value set on this property will be ignored. + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; set; } + + /// + /// Gets or sets property value to select. This property is reserved + /// for future use, any value set on this property will be ignored. + /// + [JsonProperty(PropertyName = "value")] + public string Value { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventOutputTranscriptionTrack.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventOutputTranscriptionTrack.cs new file mode 100644 index 000000000000..f3de67313275 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventOutputTranscriptionTrack.cs @@ -0,0 +1,72 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Describes a transcription track in the output of a live event, + /// generated using speech-to-text transcription. This property is reserved + /// for future use, any value set on this property will be ignored. + /// + public partial class LiveEventOutputTranscriptionTrack + { + /// + /// Initializes a new instance of the LiveEventOutputTranscriptionTrack + /// class. + /// + public LiveEventOutputTranscriptionTrack() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LiveEventOutputTranscriptionTrack + /// class. + /// + /// The output track name. This property is + /// reserved for future use, any value set on this property will be + /// ignored. + public LiveEventOutputTranscriptionTrack(string trackName) + { + TrackName = trackName; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the output track name. This property is reserved for + /// future use, any value set on this property will be ignored. + /// + [JsonProperty(PropertyName = "trackName")] + public string TrackName { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (TrackName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TrackName"); + } + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreview.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreview.cs index 5f7e25a2f033..3be5bf86499b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreview.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreview.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The Live Event preview. + /// Live event preview settings. /// public partial class LiveEventPreview { @@ -31,20 +31,21 @@ public LiveEventPreview() /// /// Initializes a new instance of the LiveEventPreview class. /// - /// The endpoints for preview. - /// The access control for LiveEvent + /// The endpoints for preview. Do not share the + /// preview URL with the live event audience. + /// The access control for live event /// preview. /// The identifier of the preview locator - /// in Guid format. Specifying this at creation time allows the caller - /// to know the preview locator url before the event is created. If - /// omitted, the service will generate a random identifier. This value + /// in Guid format. Specifying this at creation time allows the caller + /// to know the preview locator url before the event is created. If + /// omitted, the service will generate a random identifier. This value /// cannot be updated once the live event is created. /// The name of streaming policy used - /// for the LiveEvent preview. This value is specified at creation + /// for the live event preview. This value is specified at creation /// time and cannot be updated. - /// An Alternative Media Identifier - /// associated with the StreamingLocator created for the preview. This - /// value is specified at creation time and cannot be updated. The + /// An alternative media identifier + /// associated with the streaming locator created for the preview. This + /// value is specified at creation time and cannot be updated. The /// identifier can be used in the CustomLicenseAcquisitionUrlTemplate /// or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy /// specified in the StreamingPolicyName field. @@ -64,13 +65,14 @@ public LiveEventPreview() partial void CustomInit(); /// - /// Gets or sets the endpoints for preview. + /// Gets or sets the endpoints for preview. Do not share the preview + /// URL with the live event audience. /// [JsonProperty(PropertyName = "endpoints")] public IList Endpoints { get; set; } /// - /// Gets or sets the access control for LiveEvent preview. + /// Gets or sets the access control for live event preview. /// [JsonProperty(PropertyName = "accessControl")] public LiveEventPreviewAccessControl AccessControl { get; set; } @@ -78,25 +80,25 @@ public LiveEventPreview() /// /// Gets or sets the identifier of the preview locator in Guid format. /// Specifying this at creation time allows the caller to know the - /// preview locator url before the event is created. If omitted, the - /// service will generate a random identifier. This value cannot be + /// preview locator url before the event is created. If omitted, the + /// service will generate a random identifier. This value cannot be /// updated once the live event is created. /// [JsonProperty(PropertyName = "previewLocator")] public string PreviewLocator { get; set; } /// - /// Gets or sets the name of streaming policy used for the LiveEvent - /// preview. This value is specified at creation time and cannot be + /// Gets or sets the name of streaming policy used for the live event + /// preview. This value is specified at creation time and cannot be /// updated. /// [JsonProperty(PropertyName = "streamingPolicyName")] public string StreamingPolicyName { get; set; } /// - /// Gets or sets an Alternative Media Identifier associated with the - /// StreamingLocator created for the preview. This value is specified - /// at creation time and cannot be updated. The identifier can be used + /// Gets or sets an alternative media identifier associated with the + /// streaming locator created for the preview. This value is specified + /// at creation time and cannot be updated. The identifier can be used /// in the CustomLicenseAcquisitionUrlTemplate or the /// CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in /// the StreamingPolicyName field. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreviewAccessControl.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreviewAccessControl.cs index 3dadb77ca74a..fed397bfbc90 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreviewAccessControl.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventPreviewAccessControl.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The IP access control for Live Event preview. + /// The IP access control for the live event preview endpoint. /// public partial class LiveEventPreviewAccessControl { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventResourceState.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventResourceState.cs index 37a76e49418a..773216d7928e 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventResourceState.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventResourceState.cs @@ -27,14 +27,56 @@ private LiveEventResourceState(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// 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. + /// public static readonly LiveEventResourceState Stopped = "Stopped"; + /// + /// 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. + /// + public static readonly LiveEventResourceState Allocating = "Allocating"; + + /// + /// 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. + /// + public static readonly LiveEventResourceState StandBy = "StandBy"; + + /// + /// 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. + /// public static readonly LiveEventResourceState Starting = "Starting"; + /// + /// 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. + /// public static readonly LiveEventResourceState Running = "Running"; + /// + /// 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. + /// public static readonly LiveEventResourceState Stopping = "Stopping"; + /// + /// The live event is being deleted. No billing occurs in this + /// transient state. Updates or streaming are not allowed during this + /// state. + /// public static readonly LiveEventResourceState Deleting = "Deleting"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventTranscription.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventTranscription.cs new file mode 100644 index 000000000000..b57d1c81b9dd --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveEventTranscription.cs @@ -0,0 +1,106 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes the transcription tracks in the output of a live event, + /// generated using speech-to-text transcription. This property is reserved + /// for future use, any value set on this property will be ignored. + /// + public partial class LiveEventTranscription + { + /// + /// Initializes a new instance of the LiveEventTranscription class. + /// + public LiveEventTranscription() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LiveEventTranscription class. + /// + /// Specifies the language (locale) to be used + /// for speech-to-text transcription – it should match the spoken + /// language in the audio track. The value should be in BCP-47 format + /// (e.g: 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 + /// for more information about the live transcription feature and the + /// list of supported languages. + /// Provides a mechanism to select + /// the audio track in the input live feed, to which speech-to-text + /// transcription is applied. This property is reserved for future use, + /// any value set on this property will be ignored. + /// Describes a transcription + /// track in the output of a live event, generated using speech-to-text + /// transcription. This property is reserved for future use, any value + /// set on this property will be ignored. + public LiveEventTranscription(string language = default(string), IList inputTrackSelection = default(IList), LiveEventOutputTranscriptionTrack outputTranscriptionTrack = default(LiveEventOutputTranscriptionTrack)) + { + Language = language; + InputTrackSelection = inputTrackSelection; + OutputTranscriptionTrack = outputTranscriptionTrack; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies the language (locale) to be used for + /// speech-to-text transcription – it should match the spoken language + /// in the audio track. The value should be in BCP-47 format (e.g: + /// 'en-US'). See https://go.microsoft.com/fwlink/?linkid=2133742 for + /// more information about the live transcription feature and the list + /// of supported languages. + /// + [JsonProperty(PropertyName = "language")] + public string Language { get; set; } + + /// + /// Gets or sets provides a mechanism to select the audio track in the + /// input live feed, to which speech-to-text transcription is applied. + /// This property is reserved for future use, any value set on this + /// property will be ignored. + /// + [JsonProperty(PropertyName = "inputTrackSelection")] + public IList InputTrackSelection { get; set; } + + /// + /// Gets or sets describes a transcription track in the output of a + /// live event, generated using speech-to-text transcription. This + /// property is reserved for future use, any value set on this property + /// will be ignored. + /// + [JsonProperty(PropertyName = "outputTranscriptionTrack")] + public LiveEventOutputTranscriptionTrack OutputTranscriptionTrack { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (OutputTranscriptionTrack != null) + { + OutputTranscriptionTrack.Validate(); + } + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs index 89b384817e7d..807353ad7f18 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutput.cs @@ -32,27 +32,35 @@ public LiveOutput() /// /// Initializes a new instance of the LiveOutput class. /// - /// The asset name. - /// ISO 8601 timespan duration of the - /// archive window length. This is duration that customer want to - /// retain the recorded content. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. - /// The description of the Live - /// Output. - /// The manifest file name. If not - /// provided, the service will generate one automatically. - /// The HLS configuration. - /// The output snapshot time. - /// The exact time the Live Output was - /// created. - /// The exact time the Live Output was last + /// The asset that the live output will write + /// to. + /// ISO 8601 time between 1 minute to + /// 25 hours to indicate the maximum content length that can be + /// archived in the asset for this live output. This also sets the + /// maximum content length for the rewind window. For example, use + /// PT1H30M to indicate 1 hour and 30 minutes of archive + /// window. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// The description of the live + /// output. + /// The manifest file name. If not provided, + /// the service will generate one automatically. + /// HTTP Live Streaming (HLS) packing setting for the + /// live output. + /// The initial timestamp that the live + /// output will start at, any content before this value will not be + /// archived. + /// The creation time the live output. + /// The time the live output was last /// modified. - /// The provisioning state of the Live - /// Output. - /// The resource state of the Live Output. + /// The provisioning state of the live + /// output. + /// The resource state of the live output. /// Possible values include: 'Creating', 'Running', 'Deleting' public LiveOutput(string assetName, System.TimeSpan archiveWindowLength, string id = default(string), string name = default(string), string type = default(string), string description = default(string), string manifestName = default(string), Hls hls = default(Hls), long? outputSnapTime = default(long?), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?), string provisioningState = default(string), LiveOutputResourceState? resourceState = default(LiveOutputResourceState?)) : base(id, name, type) @@ -76,64 +84,68 @@ public LiveOutput() partial void CustomInit(); /// - /// Gets or sets the description of the Live Output. + /// Gets or sets the description of the live output. /// [JsonProperty(PropertyName = "properties.description")] public string Description { get; set; } /// - /// Gets or sets the asset name. + /// Gets or sets the asset that the live output will write to. /// [JsonProperty(PropertyName = "properties.assetName")] public string AssetName { get; set; } /// - /// Gets or sets ISO 8601 timespan duration of the archive window - /// length. This is duration that customer want to retain the recorded - /// content. + /// Gets or sets ISO 8601 time between 1 minute to 25 hours to indicate + /// the maximum content length that can be archived in the asset for + /// this live output. This also sets the maximum content length for the + /// rewind window. For example, use PT1H30M to indicate 1 hour and 30 + /// minutes of archive window. /// [JsonProperty(PropertyName = "properties.archiveWindowLength")] public System.TimeSpan ArchiveWindowLength { get; set; } /// - /// Gets or sets the manifest file name. If not provided, the service + /// Gets or sets the manifest file name. If not provided, the service /// will generate one automatically. /// [JsonProperty(PropertyName = "properties.manifestName")] public string ManifestName { get; set; } /// - /// Gets or sets the HLS configuration. + /// Gets or sets HTTP Live Streaming (HLS) packing setting for the live + /// output. /// [JsonProperty(PropertyName = "properties.hls")] public Hls Hls { get; set; } /// - /// Gets or sets the output snapshot time. + /// Gets or sets the initial timestamp that the live output will start + /// at, any content before this value will not be archived. /// [JsonProperty(PropertyName = "properties.outputSnapTime")] public long? OutputSnapTime { get; set; } /// - /// Gets the exact time the Live Output was created. + /// Gets the creation time the live output. /// [JsonProperty(PropertyName = "properties.created")] public System.DateTime? Created { get; private set; } /// - /// Gets the exact time the Live Output was last modified. + /// Gets the time the live output was last modified. /// [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime? LastModified { get; private set; } /// - /// Gets the provisioning state of the Live Output. + /// Gets the provisioning state of the live output. /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets the resource state of the Live Output. Possible values + /// Gets the resource state of the live output. Possible values /// include: 'Creating', 'Running', 'Deleting' /// [JsonProperty(PropertyName = "properties.resourceState")] diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutputResourceState.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutputResourceState.cs index 85eff788af97..a2febf630627 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutputResourceState.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LiveOutputResourceState.cs @@ -27,10 +27,23 @@ private LiveOutputResourceState(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// Live output is being created. No content is archived in the asset + /// until the live output is in running state. + /// public static readonly LiveOutputResourceState Creating = "Creating"; + /// + /// Live output is running and archiving live streaming content to the + /// asset if there is valid input from a contribution encoder. + /// public static readonly LiveOutputResourceState Running = "Running"; + /// + /// 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. + /// public static readonly LiveOutputResourceState Deleting = "Deleting"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LogSpecification.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LogSpecification.cs new file mode 100644 index 000000000000..75eead9445f8 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/LogSpecification.cs @@ -0,0 +1,69 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A diagnostic log emitted by service. + /// + public partial class LogSpecification + { + /// + /// Initializes a new instance of the LogSpecification class. + /// + public LogSpecification() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the LogSpecification class. + /// + /// The diagnostic log category name. + /// The diagnostic log category display + /// name. + /// The time range for requests in each + /// blob. + public LogSpecification(string name = default(string), string displayName = default(string), string blobDuration = default(string)) + { + Name = name; + DisplayName = displayName; + BlobDuration = blobDuration; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the diagnostic log category name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the diagnostic log category display name. + /// + [JsonProperty(PropertyName = "displayName")] + public string DisplayName { get; private set; } + + /// + /// Gets the time range for requests in each blob. + /// + [JsonProperty(PropertyName = "blobDuration")] + public string BlobDuration { get; private set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityType.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityType.cs new file mode 100644 index 000000000000..8bf17a402048 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityType.cs @@ -0,0 +1,111 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for ManagedIdentityType. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(ManagedIdentityTypeConverter))] + public struct ManagedIdentityType : System.IEquatable + { + private ManagedIdentityType(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// A system-assigned managed identity. + /// + public static readonly ManagedIdentityType SystemAssigned = "SystemAssigned"; + + /// + /// No managed identity. + /// + public static readonly ManagedIdentityType None = "None"; + + + /// + /// Underlying value of enum ManagedIdentityType + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for ManagedIdentityType + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type ManagedIdentityType + /// + public bool Equals(ManagedIdentityType e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to ManagedIdentityType + /// + public static implicit operator ManagedIdentityType(string value) + { + return new ManagedIdentityType(value); + } + + /// + /// Implicit operator to convert ManagedIdentityType to string + /// + public static implicit operator string(ManagedIdentityType e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum ManagedIdentityType + /// + public static bool operator == (ManagedIdentityType e1, ManagedIdentityType e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum ManagedIdentityType + /// + public static bool operator != (ManagedIdentityType e1, ManagedIdentityType e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for ManagedIdentityType + /// + public override bool Equals(object obj) + { + return obj is ManagedIdentityType && Equals((ManagedIdentityType)obj); + } + + /// + /// Returns for hashCode ManagedIdentityType + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityTypeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityTypeConverter.cs new file mode 100644 index 000000000000..366f0cfd9937 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ManagedIdentityTypeConverter.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for ManagedIdentityType. + /// + public sealed class ManagedIdentityTypeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to ManagedIdentityType by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(ManagedIdentityType).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to ManagedIdentityType. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (ManagedIdentityType)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for ManagedIdentityType for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs index f15f0b2e10be..8371b85533ed 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaService.cs @@ -34,20 +34,31 @@ public MediaService() /// /// Initializes a new instance of the MediaService class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// Resource tags. - /// The Azure Region of the resource. /// The Media Services account ID. /// The storage accounts for this /// resource. - public MediaService(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), System.Guid mediaServiceId = default(System.Guid), IList storageAccounts = default(IList)) - : base(id, name, type, tags, location) + /// Possible values include: + /// 'System', 'ManagedIdentity' + /// The account encryption properties. + /// The Managed Identity for the Media Services + /// account. + public MediaService(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), System.Guid mediaServiceId = default(System.Guid), IList storageAccounts = default(IList), StorageAuthentication? storageAuthentication = default(StorageAuthentication?), AccountEncryption encryption = default(AccountEncryption), MediaServiceIdentity identity = default(MediaServiceIdentity)) + : base(location, id, name, type, tags) { MediaServiceId = mediaServiceId; StorageAccounts = storageAccounts; + StorageAuthentication = storageAuthentication; + Encryption = encryption; + Identity = identity; CustomInit(); } @@ -68,5 +79,51 @@ public MediaService() [JsonProperty(PropertyName = "properties.storageAccounts")] public IList StorageAccounts { get; set; } + /// + /// Gets or sets possible values include: 'System', 'ManagedIdentity' + /// + [JsonProperty(PropertyName = "properties.storageAuthentication")] + public StorageAuthentication? StorageAuthentication { get; set; } + + /// + /// Gets or sets the account encryption properties. + /// + [JsonProperty(PropertyName = "properties.encryption")] + public AccountEncryption Encryption { get; set; } + + /// + /// Gets or sets the Managed Identity for the Media Services account. + /// + [JsonProperty(PropertyName = "identity")] + public MediaServiceIdentity Identity { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public override void Validate() + { + base.Validate(); + if (StorageAccounts != null) + { + foreach (var element in StorageAccounts) + { + if (element != null) + { + element.Validate(); + } + } + } + if (Encryption != null) + { + Encryption.Validate(); + } + if (Identity != null) + { + Identity.Validate(); + } + } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaServiceIdentity.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaServiceIdentity.cs new file mode 100644 index 000000000000..c193c28b768e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MediaServiceIdentity.cs @@ -0,0 +1,75 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + public partial class MediaServiceIdentity + { + /// + /// Initializes a new instance of the MediaServiceIdentity class. + /// + public MediaServiceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the MediaServiceIdentity class. + /// + /// The identity type. Possible values include: + /// 'SystemAssigned', 'None' + /// The Principal ID of the identity. + /// The Tenant ID of the identity. + public MediaServiceIdentity(ManagedIdentityType type, string principalId = default(string), string tenantId = default(string)) + { + Type = type; + PrincipalId = principalId; + TenantId = tenantId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the identity type. Possible values include: + /// 'SystemAssigned', 'None' + /// + [JsonProperty(PropertyName = "type")] + public ManagedIdentityType Type { get; set; } + + /// + /// Gets the Principal ID of the identity. + /// + [JsonProperty(PropertyName = "principalId")] + public string PrincipalId { get; private set; } + + /// + /// Gets the Tenant ID of the identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public string TenantId { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Metric.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs similarity index 75% rename from sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Metric.cs rename to sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs index 54bf56b6e8ed..a697749e7599 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Metric.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricSpecification.cs @@ -18,18 +18,18 @@ namespace Microsoft.Azure.Management.Media.Models /// /// A metric emitted by service. /// - public partial class Metric + public partial class MetricSpecification { /// - /// Initializes a new instance of the Metric class. + /// Initializes a new instance of the MetricSpecification class. /// - public Metric() + public MetricSpecification() { CustomInit(); } /// - /// Initializes a new instance of the Metric class. + /// Initializes a new instance of the MetricSpecification class. /// /// The metric name. /// The metric display name. @@ -39,14 +39,17 @@ public Metric() /// 'Bytes', 'Count', 'Milliseconds' /// The metric aggregation type. Possible /// values include: 'Average', 'Count', 'Total' + /// Supported aggregation + /// types. /// The metric dimensions. - public Metric(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), IList dimensions = default(IList)) + public MetricSpecification(string name = default(string), string displayName = default(string), string displayDescription = default(string), MetricUnit unit = default(MetricUnit), MetricAggregationType aggregationType = default(MetricAggregationType), IList supportedAggregationTypes = default(IList), IList dimensions = default(IList)) { Name = name; DisplayName = displayName; DisplayDescription = displayDescription; Unit = unit; AggregationType = aggregationType; + SupportedAggregationTypes = supportedAggregationTypes; Dimensions = dimensions; CustomInit(); } @@ -88,6 +91,12 @@ public Metric() [JsonProperty(PropertyName = "aggregationType")] public MetricAggregationType AggregationType { get; private set; } + /// + /// Gets or sets supported aggregation types. + /// + [JsonProperty(PropertyName = "supportedAggregationTypes")] + public IList SupportedAggregationTypes { get; set; } + /// /// Gets the metric dimensions. /// diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs index e7ab6e39eeae..16cb4764cf17 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Mp4Format.cs @@ -34,7 +34,12 @@ public Mp4Format() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs index cf0d6aaebb6c..5db430525553 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MultiBitrateFormat.cs @@ -38,7 +38,12 @@ public MultiBitrateFormat() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Operation.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Operation.cs index 7e74e59f6b4d..b436ed4d9d12 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Operation.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Operation.cs @@ -34,7 +34,7 @@ public Operation() /// The operation display name. /// Origin of the operation. /// Operation properties format. - public Operation(string name, OperationDisplay display = default(OperationDisplay), string origin = default(string), MetricProperties properties = default(MetricProperties)) + public Operation(string name, OperationDisplay display = default(OperationDisplay), string origin = default(string), Properties properties = default(Properties)) { Name = name; Display = display; @@ -70,7 +70,7 @@ public Operation() /// Gets or sets operation properties format. /// [JsonProperty(PropertyName = "properties")] - public MetricProperties Properties { get; set; } + public Properties Properties { get; set; } /// /// Validate the object. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs index 2cf4cdbb69eb..5e8c7f7992ea 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Overlay.cs @@ -38,16 +38,17 @@ public Overlay() /// and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 - /// format. For example, PT05S to start the overlay at 5 seconds in to + /// format. For example, PT05S to start the overlay at 5 seconds into /// the input video. If not specified the overlay starts from the /// beginning of the input video. - /// The position in the input video at which the - /// overlay ends. The value should be in ISO 8601 duration format. For - /// example, PT30S to end the overlay at 30 seconds in to the input - /// video. If not specified the overlay will be applied until the end - /// of the input video if inputLoop is true. Else, if inputLoop is - /// false, then overlay will last as long as the duration of the - /// overlay media. + /// The end position, with reference to the input + /// video, at which the overlay ends. The value should be in ISO 8601 + /// format. For example, PT30S to end the overlay at 30 seconds into + /// the input video. If not specified or the value is greater than the + /// input video duration, the overlay will be applied until the end of + /// the input video if the overlay media duration is greater than the + /// input video duration, else the overlay will last as long as the + /// overlay media duration. /// The duration over which the overlay /// fades in onto the input video. The value should be in ISO 8601 /// duration format. If not specified the default behavior is to have @@ -89,7 +90,7 @@ public Overlay() /// /// Gets or sets the start position, with reference to the input video, /// at which the overlay starts. The value should be in ISO 8601 - /// format. For example, PT05S to start the overlay at 5 seconds in to + /// format. For example, PT05S to start the overlay at 5 seconds into /// the input video. If not specified the overlay starts from the /// beginning of the input video. /// @@ -97,12 +98,14 @@ public Overlay() public System.TimeSpan? Start { get; set; } /// - /// Gets or sets the position in the input video at which the overlay - /// ends. The value should be in ISO 8601 duration format. For example, - /// PT30S to end the overlay at 30 seconds in to the input video. If - /// not specified the overlay will be applied until the end of the - /// input video if inputLoop is true. Else, if inputLoop is false, then - /// overlay will last as long as the duration of the overlay media. + /// Gets or sets the end position, with reference to the input video, + /// at which the overlay ends. The value should be in ISO 8601 format. + /// For example, PT30S to end the overlay at 30 seconds into the input + /// video. If not specified or the value is greater than the input + /// video duration, the overlay will be applied until the end of the + /// input video if the overlay media duration is greater than the input + /// video duration, else the overlay will last as long as the overlay + /// media duration. /// [JsonProperty(PropertyName = "end")] public System.TimeSpan? End { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs index 6776df04195f..80881f9b42ec 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngFormat.cs @@ -32,7 +32,12 @@ public PngFormat() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngImage.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngImage.cs index e439fa8675b1..a746fedcd81f 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngImage.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PngImage.cs @@ -34,34 +34,57 @@ public PngImage() /// Initializes a new instance of the PngImage class. /// /// The position in the input video from where to - /// start generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT05S), or a frame count (For example, 10 for the - /// 10th frame), or a relative value (For example, 1%). Also supports a - /// macro {Best}, which tells the encoder to select the best thumbnail - /// from the first few seconds of the video. + /// start generating thumbnails. The value can be in ISO 8601 format + /// (For example, PT05S to start at 5 seconds), or a frame count (For + /// example, 10 to start at the 10th frame), or a relative value to + /// stream duration (For example, 10% to start at 10% of stream + /// duration). Also supports a macro {Best}, which tells the encoder to + /// select the best thumbnail from the first few seconds of the video + /// and will only produce one thumbnail, no matter what other settings + /// are for Step and Range. The default value is macro {Best}. /// An optional label for the codec. The label can /// be used to control muxing behavior. - /// The distance between two key frames, - /// thereby defining a group of pictures (GOP). The value should be a - /// non-zero integer in the range [1, 30] seconds, specified in ISO - /// 8601 format. The default is 2 seconds (PT2S). + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. /// The resizing mode - how the input video /// will be resized to fit the desired output resolution(s). Default is /// AutoSize. Possible values include: 'None', 'AutoSize', /// 'AutoFit' + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' /// The intervals at which thumbnails are generated. - /// The value can be in absolute timestamp (ISO 8601, e.g: PT05S for - /// one image every 5 seconds), or a frame count (For example, 30 for - /// every 30 frames), or a relative value (For example, 1%). - /// The position in the input video at which to - /// stop generating thumbnails. The value can be in absolute timestamp - /// (ISO 8601, e.g: PT5M30S to stop at 5 minutes and 30 seconds), or a - /// frame count (For example, 300 to stop at the 300th frame), or a - /// relative value (For example, 100%). + /// The value can be in ISO 8601 format (For example, PT05S for one + /// image every 5 seconds), or a frame count (For example, 30 for one + /// image every 30 frames), or a relative value to stream duration (For + /// example, 10% for one image every 10% of stream duration). Note: + /// Step value will affect the first generated thumbnail, which may not + /// be exactly the one specified at transform preset start time. This + /// is due to the encoder, which tries to select the best thumbnail + /// between start time and Step position from start time as the first + /// output. As the default value is 10%, it means if stream has long + /// duration, the first generated thumbnail might be far away from the + /// one specified at start time. Try to select reasonable value for + /// Step if the first thumbnail is expected close to start time, or set + /// Range value at 1 if only one thumbnail is needed at start + /// time. + /// The position relative to transform preset start + /// time in the input video at which to stop generating thumbnails. The + /// value can be in ISO 8601 format (For example, PT5M30S to stop at 5 + /// minutes and 30 seconds from start time), or a frame count (For + /// example, 300 to stop at the 300th frame from the frame at start + /// time. If this value is 1, it means only producing one thumbnail at + /// start time), or a relative value to the stream duration (For + /// example, 50% to stop at half of stream duration from start time). + /// The default value is 100%, which means to stop at the end of the + /// stream. /// A collection of output PNG image layers to be /// produced by the encoder. - public PngImage(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), string step = default(string), string range = default(string), IList layers = default(IList)) - : base(start, label, keyFrameInterval, stretchMode, step, range) + public PngImage(string start, string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?), string step = default(string), string range = default(string), IList layers = default(IList)) + : base(start, label, keyFrameInterval, stretchMode, syncMode, step, range) { Layers = layers; CustomInit(); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpoint.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 000000000000..e98cb13f085d --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,51 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Private Endpoint resource. + /// + public partial class PrivateEndpoint + { + /// + /// Initializes a new instance of the PrivateEndpoint class. + /// + public PrivateEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateEndpoint class. + /// + /// The ARM identifier for Private Endpoint + public PrivateEndpoint(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ARM identifier for Private Endpoint + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs new file mode 100644 index 000000000000..f2f14245f503 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnection.cs @@ -0,0 +1,98 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Private Endpoint Connection resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class PrivateEndpointConnection : Resource + { + /// + /// Initializes a new instance of the PrivateEndpointConnection class. + /// + public PrivateEndpointConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateEndpointConnection class. + /// + /// A collection of + /// information about the state of the connection between service + /// consumer and provider. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// The resource of private end + /// point. + /// The provisioning state of the + /// private endpoint connection resource. Possible values include: + /// 'Succeeded', 'Creating', 'Deleting', 'Failed' + public PrivateEndpointConnection(PrivateLinkServiceConnectionState privateLinkServiceConnectionState, string id = default(string), string name = default(string), string type = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), PrivateEndpointConnectionProvisioningState? provisioningState = default(PrivateEndpointConnectionProvisioningState?)) + : base(id, name, type) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of private end point. + /// + [JsonProperty(PropertyName = "properties.privateEndpoint")] + public PrivateEndpoint PrivateEndpoint { get; set; } + + /// + /// Gets or sets a collection of information about the state of the + /// connection between service consumer and provider. + /// + [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")] + public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + + /// + /// Gets or sets the provisioning state of the private endpoint + /// connection resource. Possible values include: 'Succeeded', + /// 'Creating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public PrivateEndpointConnectionProvisioningState? ProvisioningState { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (PrivateLinkServiceConnectionState == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "PrivateLinkServiceConnectionState"); + } + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionListResult.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionListResult.cs new file mode 100644 index 000000000000..686edf81c38c --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionListResult.cs @@ -0,0 +1,56 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// List of private endpoint connection associated with the specified + /// storage account + /// + public partial class PrivateEndpointConnectionListResult + { + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionListResult class. + /// + public PrivateEndpointConnectionListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// PrivateEndpointConnectionListResult class. + /// + /// Array of private endpoint connections + public PrivateEndpointConnectionListResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array of private endpoint connections + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..66e4fe36ce0d --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,115 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for PrivateEndpointConnectionProvisioningState. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateEndpointConnectionProvisioningStateConverter))] + public struct PrivateEndpointConnectionProvisioningState : System.IEquatable + { + private PrivateEndpointConnectionProvisioningState(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateEndpointConnectionProvisioningState Succeeded = "Succeeded"; + + public static readonly PrivateEndpointConnectionProvisioningState Creating = "Creating"; + + public static readonly PrivateEndpointConnectionProvisioningState Deleting = "Deleting"; + + public static readonly PrivateEndpointConnectionProvisioningState Failed = "Failed"; + + + /// + /// Underlying value of enum PrivateEndpointConnectionProvisioningState + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateEndpointConnectionProvisioningState + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateEndpointConnectionProvisioningState + /// + public bool Equals(PrivateEndpointConnectionProvisioningState e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateEndpointConnectionProvisioningState + /// + public static implicit operator PrivateEndpointConnectionProvisioningState(string value) + { + return new PrivateEndpointConnectionProvisioningState(value); + } + + /// + /// Implicit operator to convert + /// PrivateEndpointConnectionProvisioningState to string + /// + public static implicit operator string(PrivateEndpointConnectionProvisioningState e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateEndpointConnectionProvisioningState + /// + public static bool operator == (PrivateEndpointConnectionProvisioningState e1, PrivateEndpointConnectionProvisioningState e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateEndpointConnectionProvisioningState + /// + public static bool operator != (PrivateEndpointConnectionProvisioningState e1, PrivateEndpointConnectionProvisioningState e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateEndpointConnectionProvisioningState + /// + public override bool Equals(object obj) + { + return obj is PrivateEndpointConnectionProvisioningState && Equals((PrivateEndpointConnectionProvisioningState)obj); + } + + /// + /// Returns for hashCode PrivateEndpointConnectionProvisioningState + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningStateConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningStateConverter.cs new file mode 100644 index 000000000000..314f7f238f27 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointConnectionProvisioningStateConverter.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateEndpointConnectionProvisioningState. + /// + public sealed class PrivateEndpointConnectionProvisioningStateConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateEndpointConnectionProvisioningState by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateEndpointConnectionProvisioningState).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateEndpointConnectionProvisioningState. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateEndpointConnectionProvisioningState)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateEndpointConnectionProvisioningState + /// for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..04824400c633 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,113 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for PrivateEndpointServiceConnectionStatus. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(PrivateEndpointServiceConnectionStatusConverter))] + public struct PrivateEndpointServiceConnectionStatus : System.IEquatable + { + private PrivateEndpointServiceConnectionStatus(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + public static readonly PrivateEndpointServiceConnectionStatus Pending = "Pending"; + + public static readonly PrivateEndpointServiceConnectionStatus Approved = "Approved"; + + public static readonly PrivateEndpointServiceConnectionStatus Rejected = "Rejected"; + + + /// + /// Underlying value of enum PrivateEndpointServiceConnectionStatus + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for + /// PrivateEndpointServiceConnectionStatus + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type PrivateEndpointServiceConnectionStatus + /// + public bool Equals(PrivateEndpointServiceConnectionStatus e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to + /// PrivateEndpointServiceConnectionStatus + /// + public static implicit operator PrivateEndpointServiceConnectionStatus(string value) + { + return new PrivateEndpointServiceConnectionStatus(value); + } + + /// + /// Implicit operator to convert PrivateEndpointServiceConnectionStatus + /// to string + /// + public static implicit operator string(PrivateEndpointServiceConnectionStatus e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum + /// PrivateEndpointServiceConnectionStatus + /// + public static bool operator == (PrivateEndpointServiceConnectionStatus e1, PrivateEndpointServiceConnectionStatus e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum + /// PrivateEndpointServiceConnectionStatus + /// + public static bool operator != (PrivateEndpointServiceConnectionStatus e1, PrivateEndpointServiceConnectionStatus e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for + /// PrivateEndpointServiceConnectionStatus + /// + public override bool Equals(object obj) + { + return obj is PrivateEndpointServiceConnectionStatus && Equals((PrivateEndpointServiceConnectionStatus)obj); + } + + /// + /// Returns for hashCode PrivateEndpointServiceConnectionStatus + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatusConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatusConverter.cs new file mode 100644 index 000000000000..733b3cbd4327 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateEndpointServiceConnectionStatusConverter.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for PrivateEndpointServiceConnectionStatus. + /// + public sealed class PrivateEndpointServiceConnectionStatusConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to + /// PrivateEndpointServiceConnectionStatus by the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(PrivateEndpointServiceConnectionStatus).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to + /// PrivateEndpointServiceConnectionStatus. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (PrivateEndpointServiceConnectionStatus)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for PrivateEndpointServiceConnectionStatus for + /// serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs new file mode 100644 index 000000000000..29a6abef0b78 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResource.cs @@ -0,0 +1,81 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A private link resource + /// + [Rest.Serialization.JsonTransformation] + public partial class PrivateLinkResource : Resource + { + /// + /// Initializes a new instance of the PrivateLinkResource class. + /// + public PrivateLinkResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateLinkResource class. + /// + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. + /// The private link resource group id. + /// The private link resource required + /// member names. + /// The private link resource Private + /// link DNS zone name. + public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList)) + : base(id, name, type) + { + GroupId = groupId; + RequiredMembers = requiredMembers; + RequiredZoneNames = requiredZoneNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the private link resource group id. + /// + [JsonProperty(PropertyName = "properties.groupId")] + public string GroupId { get; private set; } + + /// + /// Gets the private link resource required member names. + /// + [JsonProperty(PropertyName = "properties.requiredMembers")] + public IList RequiredMembers { get; private set; } + + /// + /// Gets or sets the private link resource Private link DNS zone name. + /// + [JsonProperty(PropertyName = "properties.requiredZoneNames")] + public IList RequiredZoneNames { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResourceListResult.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResourceListResult.cs new file mode 100644 index 000000000000..471538cf8019 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkResourceListResult.cs @@ -0,0 +1,55 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A list of private link resources + /// + public partial class PrivateLinkResourceListResult + { + /// + /// Initializes a new instance of the PrivateLinkResourceListResult + /// class. + /// + public PrivateLinkResourceListResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateLinkResourceListResult + /// class. + /// + /// Array of private link resources + public PrivateLinkResourceListResult(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets array of private link resources + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkServiceConnectionState.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..e13cc9edafcc --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/PrivateLinkServiceConnectionState.cs @@ -0,0 +1,77 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A collection of information about the state of the connection between + /// service consumer and provider. + /// + public partial class PrivateLinkServiceConnectionState + { + /// + /// Initializes a new instance of the PrivateLinkServiceConnectionState + /// class. + /// + public PrivateLinkServiceConnectionState() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateLinkServiceConnectionState + /// class. + /// + /// Indicates whether the connection has been + /// Approved/Rejected/Removed by the owner of the service. Possible + /// values include: 'Pending', 'Approved', 'Rejected' + /// The reason for approval/rejection of the + /// connection. + /// A message indicating if changes on + /// the service provider require any updates on the consumer. + public PrivateLinkServiceConnectionState(PrivateEndpointServiceConnectionStatus? status = default(PrivateEndpointServiceConnectionStatus?), string description = default(string), string actionsRequired = default(string)) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets indicates whether the connection has been + /// Approved/Rejected/Removed by the owner of the service. Possible + /// values include: 'Pending', 'Approved', 'Rejected' + /// + [JsonProperty(PropertyName = "status")] + public PrivateEndpointServiceConnectionStatus? Status { get; set; } + + /// + /// Gets or sets the reason for approval/rejection of the connection. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets a message indicating if changes on the service + /// provider require any updates on the consumer. + /// + [JsonProperty(PropertyName = "actionsRequired")] + public string ActionsRequired { get; set; } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricProperties.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Properties.cs similarity index 78% rename from sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricProperties.cs rename to sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Properties.cs index ff40e67732c7..f42ac82fd5bd 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/MetricProperties.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Properties.cs @@ -14,24 +14,24 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// Metric properties. + /// The service specification property. /// - public partial class MetricProperties + public partial class Properties { /// - /// Initializes a new instance of the MetricProperties class. + /// Initializes a new instance of the Properties class. /// - public MetricProperties() + public Properties() { CustomInit(); } /// - /// Initializes a new instance of the MetricProperties class. + /// Initializes a new instance of the Properties class. /// /// The service /// specifications. - public MetricProperties(ServiceSpecification serviceSpecification = default(ServiceSpecification)) + public Properties(ServiceSpecification serviceSpecification = default(ServiceSpecification)) { ServiceSpecification = serviceSpecification; CustomInit(); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs index b9bdc8847bb9..fdef04bebc2b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ProxyResource.cs @@ -13,7 +13,8 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The resource model definition for a ARM proxy resource. + /// The resource model definition for a ARM proxy resource. It will have + /// everything other than required location and tags /// public partial class ProxyResource : Resource { @@ -28,10 +29,12 @@ public ProxyResource() /// /// Initializes a new instance of the ProxyResource class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) : base(id, name, type) { diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs index 925b77b440f9..2ecc902265b9 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Resource.cs @@ -15,9 +15,6 @@ namespace Microsoft.Azure.Management.Media.Models using Newtonsoft.Json; using System.Linq; - /// - /// The core properties of ARM resources. - /// public partial class Resource : IResource { /// @@ -31,10 +28,12 @@ public Resource() /// /// Initializes a new instance of the Resource class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. public Resource(string id = default(string), string name = default(string), string type = default(string)) { Id = id; @@ -49,19 +48,22 @@ public Resource() partial void CustomInit(); /// - /// Gets fully qualified resource ID for the resource. + /// Gets fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} /// [JsonProperty(PropertyName = "id")] public string Id { get; private set; } /// - /// Gets the name of the resource. + /// Gets the name of the resource /// [JsonProperty(PropertyName = "name")] public string Name { get; private set; } /// - /// Gets the type of the resource. + /// Gets the type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// [JsonProperty(PropertyName = "type")] public string Type { get; private set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ServiceSpecification.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ServiceSpecification.cs index 38ee748499a6..c3b6ae87bb83 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ServiceSpecification.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/ServiceSpecification.cs @@ -31,10 +31,12 @@ public ServiceSpecification() /// /// Initializes a new instance of the ServiceSpecification class. /// + /// List of log specifications. /// List of metric /// specifications. - public ServiceSpecification(IList metricSpecifications = default(IList)) + public ServiceSpecification(IList logSpecifications = default(IList), IList metricSpecifications = default(IList)) { + LogSpecifications = logSpecifications; MetricSpecifications = metricSpecifications; CustomInit(); } @@ -44,11 +46,17 @@ public ServiceSpecification() /// partial void CustomInit(); + /// + /// Gets list of log specifications. + /// + [JsonProperty(PropertyName = "logSpecifications")] + public IList LogSpecifications { get; private set; } + /// /// Gets list of metric specifications. /// [JsonProperty(PropertyName = "metricSpecifications")] - public IList MetricSpecifications { get; private set; } + public IList MetricSpecifications { get; private set; } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthentication.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthentication.cs new file mode 100644 index 000000000000..874c2e4dd57e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthentication.cs @@ -0,0 +1,111 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for StorageAuthentication. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(StorageAuthenticationConverter))] + public struct StorageAuthentication : System.IEquatable + { + private StorageAuthentication(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// System authentication. + /// + public static readonly StorageAuthentication System = "System"; + + /// + /// Managed Identity authentication. + /// + public static readonly StorageAuthentication ManagedIdentity = "ManagedIdentity"; + + + /// + /// Underlying value of enum StorageAuthentication + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for StorageAuthentication + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type StorageAuthentication + /// + public bool Equals(StorageAuthentication e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to StorageAuthentication + /// + public static implicit operator StorageAuthentication(string value) + { + return new StorageAuthentication(value); + } + + /// + /// Implicit operator to convert StorageAuthentication to string + /// + public static implicit operator string(StorageAuthentication e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum StorageAuthentication + /// + public static bool operator == (StorageAuthentication e1, StorageAuthentication e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum StorageAuthentication + /// + public static bool operator != (StorageAuthentication e1, StorageAuthentication e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for StorageAuthentication + /// + public override bool Equals(object obj) + { + return obj is StorageAuthentication && Equals((StorageAuthentication)obj); + } + + /// + /// Returns for hashCode StorageAuthentication + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthenticationConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthenticationConverter.cs new file mode 100644 index 000000000000..d5552960fe4d --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StorageAuthenticationConverter.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for StorageAuthentication. + /// + public sealed class StorageAuthenticationConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to StorageAuthentication by + /// the converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(StorageAuthentication).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to StorageAuthentication. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (StorageAuthentication)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for StorageAuthentication for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamOptionsFlag.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamOptionsFlag.cs index c6dbd179fc69..7eecc3a36a95 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamOptionsFlag.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamOptionsFlag.cs @@ -27,8 +27,16 @@ private StreamOptionsFlag(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// Live streaming with no special latency optimizations. + /// public static readonly StreamOptionsFlag Default = "Default"; + /// + /// 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. + /// public static readonly StreamOptionsFlag LowLatency = "LowLatency"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs index 7b7478fb50dd..46deabe4edd2 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpoint.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// The StreamingEndpoint. + /// The streaming endpoint. /// [Rest.Serialization.JsonTransformation] public partial class StreamingEndpoint : TrackedResource @@ -34,43 +34,45 @@ public StreamingEndpoint() /// /// Initializes a new instance of the StreamingEndpoint class. /// - /// The number of scale units. Use the Scale + /// The geo-location where the resource + /// lives + /// The number of scale units. Use the Scale /// operation to adjust this value. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// Resource tags. - /// The Azure Region of the resource. - /// The StreamingEndpoint + /// The streaming endpoint /// description. - /// The name of the AvailabilitySet - /// used with this StreamingEndpoint for high availability streaming. - /// This value can only be set at creation time. + /// This feature is deprecated, do + /// not set a value for this property. /// The access control definition of the - /// StreamingEndpoint. + /// streaming endpoint. /// Max cache age /// The custom host names of the - /// StreamingEndpoint - /// The StreamingEndpoint host name. + /// streaming endpoint + /// The streaming endpoint host name. /// The CDN enabled flag. /// The CDN provider name. /// The CDN profile name. /// The provisioning state of the - /// StreamingEndpoint. - /// The resource state of the - /// StreamingEndpoint. Possible values include: 'Stopped', 'Starting', + /// streaming endpoint. + /// The resource state of the streaming + /// endpoint. Possible values include: 'Stopped', 'Starting', /// 'Running', 'Stopping', 'Deleting', 'Scaling' - /// The StreamingEndpoint access + /// The streaming endpoint access /// policies. /// The free trial expiration /// time. - /// The exact time the StreamingEndpoint was + /// The exact time the streaming endpoint was /// created. - /// The exact time the StreamingEndpoint was - /// last modified. - public StreamingEndpoint(int scaleUnits, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), string description = default(string), string availabilitySetName = default(string), StreamingEndpointAccessControl accessControl = default(StreamingEndpointAccessControl), long? maxCacheAge = default(long?), IList customHostNames = default(IList), string hostName = default(string), bool? cdnEnabled = default(bool?), string cdnProvider = default(string), string cdnProfile = default(string), string provisioningState = default(string), StreamingEndpointResourceState? resourceState = default(StreamingEndpointResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), System.DateTime? freeTrialEndTime = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) - : base(id, name, type, tags, location) + /// The exact time the streaming endpoint + /// was last modified. + public StreamingEndpoint(string location, int scaleUnits, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string description = default(string), string availabilitySetName = default(string), StreamingEndpointAccessControl accessControl = default(StreamingEndpointAccessControl), long? maxCacheAge = default(long?), IList customHostNames = default(IList), string hostName = default(string), bool? cdnEnabled = default(bool?), string cdnProvider = default(string), string cdnProfile = default(string), string provisioningState = default(string), StreamingEndpointResourceState? resourceState = default(StreamingEndpointResourceState?), CrossSiteAccessPolicies crossSiteAccessPolicies = default(CrossSiteAccessPolicies), System.DateTime? freeTrialEndTime = default(System.DateTime?), System.DateTime? created = default(System.DateTime?), System.DateTime? lastModified = default(System.DateTime?)) + : base(location, id, name, type, tags) { Description = description; ScaleUnits = scaleUnits; @@ -97,29 +99,28 @@ public StreamingEndpoint() partial void CustomInit(); /// - /// Gets or sets the StreamingEndpoint description. + /// Gets or sets the streaming endpoint description. /// [JsonProperty(PropertyName = "properties.description")] public string Description { get; set; } /// - /// Gets or sets the number of scale units. Use the Scale operation to + /// Gets or sets the number of scale units. Use the Scale operation to /// adjust this value. /// [JsonProperty(PropertyName = "properties.scaleUnits")] public int ScaleUnits { get; set; } /// - /// Gets or sets the name of the AvailabilitySet used with this - /// StreamingEndpoint for high availability streaming. This value can - /// only be set at creation time. + /// Gets or sets this feature is deprecated, do not set a value for + /// this property. /// [JsonProperty(PropertyName = "properties.availabilitySetName")] public string AvailabilitySetName { get; set; } /// - /// Gets or sets the access control definition of the - /// StreamingEndpoint. + /// Gets or sets the access control definition of the streaming + /// endpoint. /// [JsonProperty(PropertyName = "properties.accessControl")] public StreamingEndpointAccessControl AccessControl { get; set; } @@ -131,13 +132,13 @@ public StreamingEndpoint() public long? MaxCacheAge { get; set; } /// - /// Gets or sets the custom host names of the StreamingEndpoint + /// Gets or sets the custom host names of the streaming endpoint /// [JsonProperty(PropertyName = "properties.customHostNames")] public IList CustomHostNames { get; set; } /// - /// Gets the StreamingEndpoint host name. + /// Gets the streaming endpoint host name. /// [JsonProperty(PropertyName = "properties.hostName")] public string HostName { get; private set; } @@ -161,13 +162,13 @@ public StreamingEndpoint() public string CdnProfile { get; set; } /// - /// Gets the provisioning state of the StreamingEndpoint. + /// Gets the provisioning state of the streaming endpoint. /// [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; private set; } /// - /// Gets the resource state of the StreamingEndpoint. Possible values + /// Gets the resource state of the streaming endpoint. Possible values /// include: 'Stopped', 'Starting', 'Running', 'Stopping', 'Deleting', /// 'Scaling' /// @@ -175,7 +176,7 @@ public StreamingEndpoint() public StreamingEndpointResourceState? ResourceState { get; private set; } /// - /// Gets or sets the StreamingEndpoint access policies. + /// Gets or sets the streaming endpoint access policies. /// [JsonProperty(PropertyName = "properties.crossSiteAccessPolicies")] public CrossSiteAccessPolicies CrossSiteAccessPolicies { get; set; } @@ -187,13 +188,13 @@ public StreamingEndpoint() public System.DateTime? FreeTrialEndTime { get; private set; } /// - /// Gets the exact time the StreamingEndpoint was created. + /// Gets the exact time the streaming endpoint was created. /// [JsonProperty(PropertyName = "properties.created")] public System.DateTime? Created { get; private set; } /// - /// Gets the exact time the StreamingEndpoint was last modified. + /// Gets the exact time the streaming endpoint was last modified. /// [JsonProperty(PropertyName = "properties.lastModified")] public System.DateTime? LastModified { get; private set; } @@ -204,8 +205,9 @@ public StreamingEndpoint() /// /// Thrown if validation fails /// - public virtual void Validate() + public override void Validate() { + base.Validate(); } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointAccessControl.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointAccessControl.cs index 7a97a698d0f7..3d11669c5f61 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointAccessControl.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointAccessControl.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.Media.Models using System.Linq; /// - /// StreamingEndpoint access control definition. + /// Streaming endpoint access control definition. /// public partial class StreamingEndpointAccessControl { @@ -32,8 +32,8 @@ public StreamingEndpointAccessControl() /// class. /// /// The access control of Akamai - /// The IP access control of the - /// StreamingEndpoint. + /// The IP access control of the streaming + /// endpoint. public StreamingEndpointAccessControl(AkamaiAccessControl akamai = default(AkamaiAccessControl), IPAccessControl ip = default(IPAccessControl)) { Akamai = akamai; @@ -53,7 +53,7 @@ public StreamingEndpointAccessControl() public AkamaiAccessControl Akamai { get; set; } /// - /// Gets or sets the IP access control of the StreamingEndpoint. + /// Gets or sets the IP access control of the streaming endpoint. /// [JsonProperty(PropertyName = "ip")] public IPAccessControl Ip { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointResourceState.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointResourceState.cs index c04013de5d9e..a5318c182e9f 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointResourceState.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEndpointResourceState.cs @@ -27,16 +27,36 @@ private StreamingEndpointResourceState(string underlyingValue) UnderlyingValue=underlyingValue; } + /// + /// The initial state of a streaming endpoint after creation. Content + /// is not ready to be streamed from this endpoint. + /// public static readonly StreamingEndpointResourceState Stopped = "Stopped"; + /// + /// The streaming endpoint is transitioning to the running state. + /// public static readonly StreamingEndpointResourceState Starting = "Starting"; + /// + /// The streaming endpoint is running. It is able to stream content to + /// clients + /// public static readonly StreamingEndpointResourceState Running = "Running"; + /// + /// The streaming endpoint is transitioning to the stopped state. + /// public static readonly StreamingEndpointResourceState Stopping = "Stopping"; + /// + /// The streaming endpoint is being deleted. + /// public static readonly StreamingEndpointResourceState Deleting = "Deleting"; + /// + /// The streaming endpoint is increasing or decreasing scale units. + /// public static readonly StreamingEndpointResourceState Scaling = "Scaling"; diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEntityScaleUnit.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEntityScaleUnit.cs index b0ab826e0f8a..662af31ea250 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEntityScaleUnit.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingEntityScaleUnit.cs @@ -29,8 +29,8 @@ public StreamingEntityScaleUnit() /// /// Initializes a new instance of the StreamingEntityScaleUnit class. /// - /// The scale unit number of the - /// StreamingEndpoint. + /// The scale unit number of the streaming + /// endpoint. public StreamingEntityScaleUnit(int? scaleUnit = default(int?)) { ScaleUnit = scaleUnit; @@ -43,7 +43,7 @@ public StreamingEntityScaleUnit() partial void CustomInit(); /// - /// Gets or sets the scale unit number of the StreamingEndpoint. + /// Gets or sets the scale unit number of the streaming endpoint. /// [JsonProperty(PropertyName = "scaleUnit")] public int? ScaleUnit { get; set; } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs index 85b68174ef3d..3cf552b1a19e 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingLocator.cs @@ -43,10 +43,12 @@ public StreamingLocator() /// 'Predefined_DownloadAndClearStreaming', 'Predefined_ClearKey', /// 'Predefined_MultiDrmCencStreaming' and /// 'Predefined_MultiDrmStreaming' - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The creation time of the Streaming /// Locator. /// The start time of the Streaming diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs index f93f1b7db62b..f19a86e6b57b 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/StreamingPolicy.cs @@ -32,10 +32,12 @@ public StreamingPolicy() /// /// Initializes a new instance of the StreamingPolicy class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// Creation time of Streaming Policy /// Default ContentKey used /// by current Streaming Policy diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SubscriptionMediaService.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SubscriptionMediaService.cs deleted file mode 100644 index 8cdde5ff017a..000000000000 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/SubscriptionMediaService.cs +++ /dev/null @@ -1,72 +0,0 @@ -// -// 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. -// - -namespace Microsoft.Azure.Management.Media.Models -{ - using Microsoft.Rest; - using Microsoft.Rest.Serialization; - using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; - using System.Linq; - - /// - /// A Media Services account. - /// - [Rest.Serialization.JsonTransformation] - public partial class SubscriptionMediaService : TrackedResource - { - /// - /// Initializes a new instance of the SubscriptionMediaService class. - /// - public SubscriptionMediaService() - { - CustomInit(); - } - - /// - /// Initializes a new instance of the SubscriptionMediaService class. - /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. - /// Resource tags. - /// The Azure Region of the resource. - /// The Media Services account ID. - /// The storage accounts for this - /// resource. - public SubscriptionMediaService(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), System.Guid mediaServiceId = default(System.Guid), IList storageAccounts = default(IList)) - : base(id, name, type, tags, location) - { - MediaServiceId = mediaServiceId; - StorageAccounts = storageAccounts; - CustomInit(); - } - - /// - /// An initialization method that performs custom operations like setting defaults - /// - partial void CustomInit(); - - /// - /// Gets the Media Services account ID. - /// - [JsonProperty(PropertyName = "properties.mediaServiceId")] - public System.Guid MediaServiceId { get; private set; } - - /// - /// Gets or sets the storage accounts for this resource. - /// - [JsonProperty(PropertyName = "properties.storageAccounts")] - public IList StorageAccounts { get; set; } - - } -} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs index fed74ee38ac1..b9632fc43d23 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TrackedResource.cs @@ -10,13 +10,14 @@ namespace Microsoft.Azure.Management.Media.Models { + using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; /// - /// The resource model definition for a ARM tracked resource. + /// The resource model definition for a ARM tracked top level resource /// public partial class TrackedResource : Resource { @@ -31,13 +32,16 @@ public TrackedResource() /// /// Initializes a new instance of the TrackedResource class. /// - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// The geo-location where the resource + /// lives + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// Resource tags. - /// The Azure Region of the resource. - public TrackedResource(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string)) + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) : base(id, name, type) { Tags = tags; @@ -57,10 +61,23 @@ public TrackedResource() public IDictionary Tags { get; set; } /// - /// Gets or sets the Azure Region of the resource. + /// Gets or sets the geo-location where the resource lives /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); + } + } } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs index 119a6691a5ae..d4491c9b7a4f 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Transform.cs @@ -39,10 +39,12 @@ public Transform() /// /// An array of one or more TransformOutputs that /// the Transform should generate. - /// Fully qualified resource ID for the - /// resource. - /// The name of the resource. - /// The type of the resource. + /// Fully qualified resource Id for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. Ex- + /// Microsoft.Compute/virtualMachines or + /// Microsoft.Storage/storageAccounts. /// The UTC date and time when the Transform was /// created, in 'YYYY-MM-DDThh:mm:ssZ' format. /// An optional verbose description of the diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs index 6d1febeab429..da94ba4624b0 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/TransportStreamFormat.cs @@ -35,7 +35,12 @@ public TransportStreamFormat() /// /// The pattern of the file names for the /// generated output files. The following macros are supported in the - /// file name: {Basename} - The base name of the input video + /// 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 diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/UtcClipTime.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/UtcClipTime.cs new file mode 100644 index 000000000000..cc8a6fb8b398 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/UtcClipTime.cs @@ -0,0 +1,66 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Specifies the clip time as a Utc time position in the media file. The + /// Utc time can point to a different position depending on whether the + /// media file starts from a timestamp of zero or not. + /// + [Newtonsoft.Json.JsonObject("#Microsoft.Media.UtcClipTime")] + public partial class UtcClipTime : ClipTime + { + /// + /// Initializes a new instance of the UtcClipTime class. + /// + public UtcClipTime() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UtcClipTime class. + /// + /// The time position on the timeline of the input + /// media based on Utc time. + public UtcClipTime(System.DateTime time) + { + Time = time; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the time position on the timeline of the input media + /// based on Utc time. + /// + [JsonProperty(PropertyName = "time")] + public System.DateTime Time { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + //Nothing to validate + } + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Video.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Video.cs index 1e0687b9a930..2458de4e13b4 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Video.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/Video.cs @@ -32,19 +32,24 @@ public Video() /// /// An optional label for the codec. The label can /// be used to control muxing behavior. - /// The distance between two key frames, - /// thereby defining a group of pictures (GOP). The value should be a - /// non-zero integer in the range [1, 30] seconds, specified in ISO - /// 8601 format. The default is 2 seconds (PT2S). + /// The distance between two key frames. + /// The value should be non-zero in the range [0.5, 20] seconds, + /// specified in ISO 8601 format. The default is 2 seconds(PT2S). Note + /// that this setting is ignored if VideoSyncMode.Passthrough is set, + /// where the KeyFrameInterval value will follow the input source + /// setting. /// The resizing mode - how the input video /// will be resized to fit the desired output resolution(s). Default is /// AutoSize. Possible values include: 'None', 'AutoSize', /// 'AutoFit' - public Video(string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?)) + /// The Video Sync Mode. Possible values + /// include: 'Auto', 'Passthrough', 'Cfr', 'Vfr' + public Video(string label = default(string), System.TimeSpan? keyFrameInterval = default(System.TimeSpan?), StretchMode? stretchMode = default(StretchMode?), VideoSyncMode? syncMode = default(VideoSyncMode?)) : base(label) { KeyFrameInterval = keyFrameInterval; StretchMode = stretchMode; + SyncMode = syncMode; CustomInit(); } @@ -54,10 +59,11 @@ public Video() partial void CustomInit(); /// - /// Gets or sets the distance between two key frames, thereby defining - /// a group of pictures (GOP). The value should be a non-zero integer - /// in the range [1, 30] seconds, specified in ISO 8601 format. The - /// default is 2 seconds (PT2S). + /// Gets or sets the distance between two key frames. The value should + /// be non-zero in the range [0.5, 20] seconds, specified in ISO 8601 + /// format. The default is 2 seconds(PT2S). Note that this setting is + /// ignored if VideoSyncMode.Passthrough is set, where the + /// KeyFrameInterval value will follow the input source setting. /// [JsonProperty(PropertyName = "keyFrameInterval")] public System.TimeSpan? KeyFrameInterval { get; set; } @@ -70,5 +76,12 @@ public Video() [JsonProperty(PropertyName = "stretchMode")] public StretchMode? StretchMode { get; set; } + /// + /// Gets or sets the Video Sync Mode. Possible values include: 'Auto', + /// 'Passthrough', 'Cfr', 'Vfr' + /// + [JsonProperty(PropertyName = "syncMode")] + public VideoSyncMode? SyncMode { get; set; } + } } diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoAnalyzerPreset.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoAnalyzerPreset.cs index 6781a3391110..f9c96595102c 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoAnalyzerPreset.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoAnalyzerPreset.cs @@ -36,16 +36,22 @@ public VideoAnalyzerPreset() /// 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. 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: + /// 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 + /// Determines the set of audio analysis operations + /// to be performed. If unspecified, the Standard AudioAnalysisMode + /// would be chosen. Possible values include: 'Standard', + /// 'Basic' /// Dictionary containing key value /// pairs for parameters not exposed in the preset itself /// Defines the type of insights that @@ -60,8 +66,8 @@ public VideoAnalyzerPreset() /// only. Your Jobs in such conditions would error out. Possible values /// include: 'AudioInsightsOnly', 'VideoInsightsOnly', /// 'AllInsights' - public VideoAnalyzerPreset(string audioLanguage = default(string), IDictionary experimentalOptions = default(IDictionary), InsightsType? insightsToExtract = default(InsightsType?)) - : base(audioLanguage, experimentalOptions) + public VideoAnalyzerPreset(string audioLanguage = default(string), AudioAnalysisMode? mode = default(AudioAnalysisMode?), IDictionary experimentalOptions = default(IDictionary), InsightsType? insightsToExtract = default(InsightsType?)) + : base(audioLanguage, mode, experimentalOptions) { InsightsToExtract = insightsToExtract; CustomInit(); diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs index 22a1f2396659..e2b144a0241e 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoOverlay.cs @@ -38,16 +38,17 @@ public VideoOverlay() /// and video file formats. /// The start position, with reference to the input /// video, at which the overlay starts. The value should be in ISO 8601 - /// format. For example, PT05S to start the overlay at 5 seconds in to + /// format. For example, PT05S to start the overlay at 5 seconds into /// the input video. If not specified the overlay starts from the /// beginning of the input video. - /// The position in the input video at which the - /// overlay ends. The value should be in ISO 8601 duration format. For - /// example, PT30S to end the overlay at 30 seconds in to the input - /// video. If not specified the overlay will be applied until the end - /// of the input video if inputLoop is true. Else, if inputLoop is - /// false, then overlay will last as long as the duration of the - /// overlay media. + /// The end position, with reference to the input + /// video, at which the overlay ends. The value should be in ISO 8601 + /// format. For example, PT30S to end the overlay at 30 seconds into + /// the input video. If not specified or the value is greater than the + /// input video duration, the overlay will be applied until the end of + /// the input video if the overlay media duration is greater than the + /// input video duration, else the overlay will last as long as the + /// overlay media duration. /// The duration over which the overlay /// fades in onto the input video. The value should be in ISO 8601 /// duration format. If not specified the default behavior is to have diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncMode.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncMode.cs new file mode 100644 index 000000000000..814f587c7bd6 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncMode.cs @@ -0,0 +1,136 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + /// + /// Defines values for VideoSyncMode. + /// + /// + /// Determine base value for a given allowed value if exists, else return + /// the value itself + /// + [JsonConverter(typeof(VideoSyncModeConverter))] + public struct VideoSyncMode : System.IEquatable + { + private VideoSyncMode(string underlyingValue) + { + UnderlyingValue=underlyingValue; + } + + /// + /// This is the default method. Chooses between Cfr and Vfr depending + /// on muxer capabilities. For output format MP4, the default mode is + /// Cfr. + /// + public static readonly VideoSyncMode Auto = "Auto"; + + /// + /// 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 + /// + public static readonly VideoSyncMode Passthrough = "Passthrough"; + + /// + /// 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 + /// + public static readonly VideoSyncMode Cfr = "Cfr"; + + /// + /// 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 + /// + public static readonly VideoSyncMode Vfr = "Vfr"; + + + /// + /// Underlying value of enum VideoSyncMode + /// + private readonly string UnderlyingValue; + + /// + /// Returns string representation for VideoSyncMode + /// + public override string ToString() + { + return UnderlyingValue == null ? null : UnderlyingValue.ToString(); + } + + /// + /// Compares enums of type VideoSyncMode + /// + public bool Equals(VideoSyncMode e) + { + return UnderlyingValue.Equals(e.UnderlyingValue); + } + + /// + /// Implicit operator to convert string to VideoSyncMode + /// + public static implicit operator VideoSyncMode(string value) + { + return new VideoSyncMode(value); + } + + /// + /// Implicit operator to convert VideoSyncMode to string + /// + public static implicit operator string(VideoSyncMode e) + { + return e.UnderlyingValue; + } + + /// + /// Overriding == operator for enum VideoSyncMode + /// + public static bool operator == (VideoSyncMode e1, VideoSyncMode e2) + { + return e2.Equals(e1); + } + + /// + /// Overriding != operator for enum VideoSyncMode + /// + public static bool operator != (VideoSyncMode e1, VideoSyncMode e2) + { + return !e2.Equals(e1); + } + + /// + /// Overrides Equals operator for VideoSyncMode + /// + public override bool Equals(object obj) + { + return obj is VideoSyncMode && Equals((VideoSyncMode)obj); + } + + /// + /// Returns for hashCode VideoSyncMode + /// + public override int GetHashCode() + { + return UnderlyingValue.GetHashCode(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncModeConverter.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncModeConverter.cs new file mode 100644 index 000000000000..3e5c033edf18 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/Models/VideoSyncModeConverter.cs @@ -0,0 +1,53 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media.Models +{ + using Newtonsoft.Json; + + using System.Reflection; + + /// + /// Defines values for VideoSyncMode. + /// + public sealed class VideoSyncModeConverter : JsonConverter + { + + /// + /// Returns if objectType can be converted to VideoSyncMode by the + /// converter. + /// + public override bool CanConvert(System.Type objectType) + { + return typeof(VideoSyncMode).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo()); + } + + /// + /// Overrides ReadJson and converts token to VideoSyncMode. + /// + public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) + { + if (reader.TokenType == Newtonsoft.Json.JsonToken.Null) + { + return null; + } + return (VideoSyncMode)serializer.Deserialize(reader); + } + + /// + /// Overriding WriteJson for VideoSyncMode for serialization. + /// + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + writer.WriteValue(value.ToString()); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperations.cs new file mode 100644 index 000000000000..346fdd9b4ec2 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperations.cs @@ -0,0 +1,851 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateEndpointConnectionsOperations operations. + /// + internal partial class PrivateEndpointConnectionsOperations : IServiceOperations, IPrivateEndpointConnectionsOperations + { + /// + /// Initializes a new instance of the PrivateEndpointConnectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PrivateEndpointConnectionsOperations(AzureMediaServicesClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AzureMediaServicesClient + /// + public AzureMediaServicesClient Client { get; private set; } + + /// + /// Get all private endpoint connections. + /// + /// + /// Get all private endpoint connections. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get private endpoint connection. + /// + /// + /// Get private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("name", name); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Update private endpoint connection. + /// + /// + /// Update private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The request parameters + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("name", name); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(parameters != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); + _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Delete private endpoint connection. + /// + /// + /// Delete private endpoint connection. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("name", name); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateEndpointConnections/{name}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs new file mode 100644 index 000000000000..146c0c6271d2 --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs @@ -0,0 +1,224 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PrivateEndpointConnectionsOperations. + /// + public static partial class PrivateEndpointConnectionsOperationsExtensions + { + /// + /// Get all private endpoint connections. + /// + /// + /// Get all private endpoint connections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + public static PrivateEndpointConnectionListResult List(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName) + { + return operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + } + + /// + /// Get all private endpoint connections. + /// + /// + /// Get all private endpoint connections. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get private endpoint connection. + /// + /// + /// Get private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + public static PrivateEndpointConnection Get(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name) + { + return operations.GetAsync(resourceGroupName, accountName, name).GetAwaiter().GetResult(); + } + + /// + /// Get private endpoint connection. + /// + /// + /// Get private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, name, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Update private endpoint connection. + /// + /// + /// Update private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The request parameters + /// + public static PrivateEndpointConnection CreateOrUpdate(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters) + { + return operations.CreateOrUpdateAsync(resourceGroupName, accountName, name, parameters).GetAwaiter().GetResult(); + } + + /// + /// Update private endpoint connection. + /// + /// + /// Update private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The request parameters + /// + /// + /// The cancellation token. + /// + public static async Task CreateOrUpdateAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, PrivateEndpointConnection parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, name, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete private endpoint connection. + /// + /// + /// Delete private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + public static void Delete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name) + { + operations.DeleteAsync(resourceGroupName, accountName, name).GetAwaiter().GetResult(); + } + + /// + /// Delete private endpoint connection. + /// + /// + /// Delete private endpoint connection. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string accountName, string name, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperations.cs new file mode 100644 index 000000000000..73748e3d175f --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperations.cs @@ -0,0 +1,450 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateLinkResourcesOperations operations. + /// + internal partial class PrivateLinkResourcesOperations : IServiceOperations, IPrivateLinkResourcesOperations + { + /// + /// Initializes a new instance of the PrivateLinkResourcesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PrivateLinkResourcesOperations(AzureMediaServicesClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the AzureMediaServicesClient + /// + public AzureMediaServicesClient Client { get; private set; } + + /// + /// Get list of group IDs. + /// + /// + /// Get list of group IDs. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Get group ID. + /// + /// + /// Get group ID. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string name, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (accountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); + } + if (name == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "name"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("name", name); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/privateLinkResources/{name}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); + _url = _url.Replace("{name}", System.Uri.EscapeDataString(name)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ApiError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperationsExtensions.cs new file mode 100644 index 000000000000..c96dc86af35e --- /dev/null +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/PrivateLinkResourcesOperationsExtensions.cs @@ -0,0 +1,121 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Media +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PrivateLinkResourcesOperations. + /// + public static partial class PrivateLinkResourcesOperationsExtensions + { + /// + /// Get list of group IDs. + /// + /// + /// Get list of group IDs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + public static PrivateLinkResourceListResult List(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName) + { + return operations.ListAsync(resourceGroupName, accountName).GetAwaiter().GetResult(); + } + + /// + /// Get list of group IDs. + /// + /// + /// Get list of group IDs. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// The cancellation token. + /// + public static async Task ListAsync(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Get group ID. + /// + /// + /// Get group ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + public static PrivateLinkResource Get(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName, string name) + { + return operations.GetAsync(resourceGroupName, accountName, name).GetAwaiter().GetResult(); + } + + /// + /// Get group ID. + /// + /// + /// Get group ID. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group within the Azure subscription. + /// + /// + /// The Media Services account name. + /// + /// + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string accountName, string name, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, name, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs index 748abf138f05..4c0964651247 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/SdkInfo_AzureMediaServices.cs @@ -19,33 +19,24 @@ public static IEnumerable> ApiInfo_AzureMediaServi { return new Tuple[] { - new Tuple("Media", "AccountFilters", "2018-07-01"), - new Tuple("Media", "AssetFilters", "2018-07-01"), - new Tuple("Media", "Assets", "2018-07-01"), - new Tuple("Media", "ContentKeyPolicies", "2018-07-01"), - new Tuple("Media", "Jobs", "2018-07-01"), - new Tuple("Media", "LiveEvents", "2018-07-01"), - new Tuple("Media", "LiveOutputs", "2018-07-01"), - new Tuple("Media", "Locations", "2018-07-01"), - new Tuple("Media", "Mediaservices", "2018-07-01"), - new Tuple("Media", "Operations", "2018-07-01"), - new Tuple("Media", "StreamingEndpoints", "2018-07-01"), - new Tuple("Media", "StreamingLocators", "2018-07-01"), - new Tuple("Media", "StreamingPolicies", "2018-07-01"), - new Tuple("Media", "Transforms", "2018-07-01"), + new Tuple("Media", "AccountFilters", "2020-05-01"), + new Tuple("Media", "AssetFilters", "2020-05-01"), + new Tuple("Media", "Assets", "2020-05-01"), + new Tuple("Media", "ContentKeyPolicies", "2020-05-01"), + new Tuple("Media", "Jobs", "2020-05-01"), + new Tuple("Media", "LiveEvents", "2020-05-01"), + new Tuple("Media", "LiveOutputs", "2020-05-01"), + new Tuple("Media", "Locations", "2020-05-01"), + new Tuple("Media", "Mediaservices", "2020-05-01"), + new Tuple("Media", "Operations", "2020-05-01"), + new Tuple("Media", "PrivateEndpointConnections", "2020-05-01"), + new Tuple("Media", "PrivateLinkResources", "2020-05-01"), + new Tuple("Media", "StreamingEndpoints", "2020-05-01"), + new Tuple("Media", "StreamingLocators", "2020-05-01"), + new Tuple("Media", "StreamingPolicies", "2020-05-01"), + new Tuple("Media", "Transforms", "2020-05-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/mediaservices/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --opt-in-extensible-enums --csharp-sdks-folder=D:\\GitHub\\giakasRepros\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "48960215c4923808168e134563f726851b0f5128"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperations.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperations.cs index e94c94aaed27..18e31953994a 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperations.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperations.cs @@ -54,7 +54,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The name of the resource group within the Azure subscription. @@ -248,7 +248,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Get StreamingEndpoint /// /// - /// Gets a StreamingEndpoint. + /// Gets a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -257,7 +257,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// Headers that will be added to request. @@ -466,7 +466,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -475,10 +475,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -501,7 +501,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -510,10 +510,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The headers that will be added to request. @@ -532,7 +532,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -541,7 +541,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -560,7 +560,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -569,7 +569,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -588,7 +588,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -597,7 +597,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The headers that will be added to request. @@ -616,7 +616,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -625,10 +625,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// The headers that will be added to request. @@ -647,7 +647,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -656,10 +656,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -826,7 +826,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ApiErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -882,7 +882,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) } } // Deserialize Response - if ((int)_statusCode == 202) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -910,7 +910,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -919,10 +919,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// Headers that will be added to request. @@ -1160,7 +1160,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -1169,7 +1169,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// Headers that will be added to request. @@ -1357,7 +1357,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -1366,7 +1366,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// Headers that will be added to request. @@ -1554,7 +1554,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -1563,7 +1563,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// Headers that will be added to request. @@ -1751,7 +1751,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The name of the resource group within the Azure subscription. @@ -1760,10 +1760,10 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// Headers that will be added to request. @@ -1963,7 +1963,7 @@ internal StreamingEndpointsOperations(AzureMediaServicesClient client) /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperationsExtensions.cs b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperationsExtensions.cs index ba7701322ea9..07846cdc16aa 100644 --- a/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperationsExtensions.cs +++ b/sdk/mediaservices/Microsoft.Azure.Management.Media/src/Generated/StreamingEndpointsOperationsExtensions.cs @@ -25,7 +25,7 @@ public static partial class StreamingEndpointsOperationsExtensions /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The operations group for this extension method. @@ -45,7 +45,7 @@ public static IPage List(this IStreamingEndpointsOperations o /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The operations group for this extension method. @@ -71,7 +71,7 @@ public static IPage List(this IStreamingEndpointsOperations o /// Get StreamingEndpoint /// /// - /// Gets a StreamingEndpoint. + /// Gets a streaming endpoint. /// /// /// The operations group for this extension method. @@ -83,7 +83,7 @@ public static IPage List(this IStreamingEndpointsOperations o /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static StreamingEndpoint Get(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -94,7 +94,7 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// Get StreamingEndpoint /// /// - /// Gets a StreamingEndpoint. + /// Gets a streaming endpoint. /// /// /// The operations group for this extension method. @@ -106,7 +106,7 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -123,7 +123,7 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The operations group for this extension method. @@ -135,10 +135,10 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -153,7 +153,7 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The operations group for this extension method. @@ -165,10 +165,10 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -189,7 +189,7 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -201,10 +201,10 @@ public static StreamingEndpoint Get(this IStreamingEndpointsOperations operation /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// public static StreamingEndpoint Update(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpoint parameters) { @@ -215,7 +215,7 @@ public static StreamingEndpoint Update(this IStreamingEndpointsOperations operat /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -227,10 +227,10 @@ public static StreamingEndpoint Update(this IStreamingEndpointsOperations operat /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The cancellation token. @@ -247,7 +247,7 @@ public static StreamingEndpoint Update(this IStreamingEndpointsOperations operat /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The operations group for this extension method. @@ -259,7 +259,7 @@ public static StreamingEndpoint Update(this IStreamingEndpointsOperations operat /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void Delete(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -270,7 +270,7 @@ public static void Delete(this IStreamingEndpointsOperations operations, string /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The operations group for this extension method. @@ -282,7 +282,7 @@ public static void Delete(this IStreamingEndpointsOperations operations, string /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -296,7 +296,7 @@ public static void Delete(this IStreamingEndpointsOperations operations, string /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -308,7 +308,7 @@ public static void Delete(this IStreamingEndpointsOperations operations, string /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void Start(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -319,7 +319,7 @@ public static void Start(this IStreamingEndpointsOperations operations, string r /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -331,7 +331,7 @@ public static void Start(this IStreamingEndpointsOperations operations, string r /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -345,7 +345,7 @@ public static void Start(this IStreamingEndpointsOperations operations, string r /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -357,7 +357,7 @@ public static void Start(this IStreamingEndpointsOperations operations, string r /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void Stop(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -368,7 +368,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -380,7 +380,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -394,7 +394,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -406,10 +406,10 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// public static void Scale(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName, int? scaleUnit = default(int?)) { @@ -420,7 +420,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -432,10 +432,10 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// The cancellation token. @@ -449,7 +449,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The operations group for this extension method. @@ -461,10 +461,10 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -479,7 +479,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Create StreamingEndpoint /// /// - /// Creates a StreamingEndpoint. + /// Creates a streaming endpoint. /// /// /// The operations group for this extension method. @@ -491,10 +491,10 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The flag indicates if the resource should be automatically started on @@ -515,7 +515,7 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -527,10 +527,10 @@ public static void Stop(this IStreamingEndpointsOperations operations, string re /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// public static StreamingEndpoint BeginUpdate(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName, StreamingEndpoint parameters) { @@ -541,7 +541,7 @@ public static StreamingEndpoint BeginUpdate(this IStreamingEndpointsOperations o /// Update StreamingEndpoint /// /// - /// Updates a existing StreamingEndpoint. + /// Updates a existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -553,10 +553,10 @@ public static StreamingEndpoint BeginUpdate(this IStreamingEndpointsOperations o /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// StreamingEndpoint properties needed for creation. + /// Streaming endpoint properties needed for creation. /// /// /// The cancellation token. @@ -573,7 +573,7 @@ public static StreamingEndpoint BeginUpdate(this IStreamingEndpointsOperations o /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The operations group for this extension method. @@ -585,7 +585,7 @@ public static StreamingEndpoint BeginUpdate(this IStreamingEndpointsOperations o /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void BeginDelete(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -596,7 +596,7 @@ public static void BeginDelete(this IStreamingEndpointsOperations operations, st /// Delete StreamingEndpoint /// /// - /// Deletes a StreamingEndpoint. + /// Deletes a streaming endpoint. /// /// /// The operations group for this extension method. @@ -608,7 +608,7 @@ public static void BeginDelete(this IStreamingEndpointsOperations operations, st /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -622,7 +622,7 @@ public static void BeginDelete(this IStreamingEndpointsOperations operations, st /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -634,7 +634,7 @@ public static void BeginDelete(this IStreamingEndpointsOperations operations, st /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void BeginStart(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -645,7 +645,7 @@ public static void BeginStart(this IStreamingEndpointsOperations operations, str /// Start StreamingEndpoint /// /// - /// Starts an existing StreamingEndpoint. + /// Starts an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -657,7 +657,7 @@ public static void BeginStart(this IStreamingEndpointsOperations operations, str /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -671,7 +671,7 @@ public static void BeginStart(this IStreamingEndpointsOperations operations, str /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -683,7 +683,7 @@ public static void BeginStart(this IStreamingEndpointsOperations operations, str /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// public static void BeginStop(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName) { @@ -694,7 +694,7 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// Stop StreamingEndpoint /// /// - /// Stops an existing StreamingEndpoint. + /// Stops an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -706,7 +706,7 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// /// The cancellation token. @@ -720,7 +720,7 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -732,10 +732,10 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// public static void BeginScale(this IStreamingEndpointsOperations operations, string resourceGroupName, string accountName, string streamingEndpointName, int? scaleUnit = default(int?)) { @@ -746,7 +746,7 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// Scale StreamingEndpoint /// /// - /// Scales an existing StreamingEndpoint. + /// Scales an existing streaming endpoint. /// /// /// The operations group for this extension method. @@ -758,10 +758,10 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// The Media Services account name. /// /// - /// The name of the StreamingEndpoint. + /// The name of the streaming endpoint, maximum length is 24. /// /// - /// The scale unit number of the StreamingEndpoint. + /// The scale unit number of the streaming endpoint. /// /// /// The cancellation token. @@ -775,7 +775,7 @@ public static void BeginStop(this IStreamingEndpointsOperations operations, stri /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The operations group for this extension method. @@ -792,7 +792,7 @@ public static IPage ListNext(this IStreamingEndpointsOperatio /// List StreamingEndpoints /// /// - /// Lists the StreamingEndpoints in the account. + /// Lists the streaming endpoints in the account. /// /// /// The operations group for this extension method.