From 2ecca98c37755cfbc09302d8a240625f5b3d3a8a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 9 Aug 2022 01:00:52 +0000 Subject: [PATCH] CodeGen from PR 19891 in Azure/azure-rest-api-specs Merge a7d44f1ea0985443414729879ddfffad7579d7ab into 7473936304533e6716fc4563401bf265dda4cb64 --- .../CHANGELOG.md | 4 +- .../README.md | 4 +- .../SAMPLE.md | 214 ++++- .../pom.xml | 3 +- .../mediaservices/MediaServicesManager.java | 2 +- .../fluent/AccountFiltersClient.java | 40 +- .../fluent/AssetFiltersClient.java | 40 +- .../mediaservices/fluent/AssetsClient.java | 68 +- .../fluent/AzureMediaServices.java | 7 - .../fluent/ContentKeyPoliciesClient.java | 48 +- .../mediaservices/fluent/JobsClient.java | 52 +- .../fluent/LiveEventsClient.java | 196 ++++- .../fluent/LiveOutputsClient.java | 127 ++- .../mediaservices/fluent/LocationsClient.java | 8 +- .../MediaServicesOperationResultsClient.java | 8 +- .../MediaServicesOperationStatusesClient.java | 8 +- .../fluent/MediaservicesClient.java | 80 +- .../fluent/OperationResultsClient.java | 8 +- .../fluent/OperationStatusesClient.java | 8 +- .../fluent/OperationsClient.java | 8 +- .../PrivateEndpointConnectionsClient.java | 32 +- .../fluent/PrivateLinkResourcesClient.java | 16 +- .../fluent/StreamingEndpointsClient.java | 200 ++++- .../fluent/StreamingLocatorsClient.java | 48 +- .../fluent/StreamingPoliciesClient.java | 32 +- .../mediaservices/fluent/TracksClient.java | 104 ++- .../fluent/TransformsClient.java | 40 +- .../models/AsyncOperationResultInner.java | 100 +++ .../fluent/models/JobProperties.java | 14 +- .../fluent/models/LiveEventProperties.java | 38 +- .../fluent/models/LiveOutputInner.java | 31 + .../fluent/models/LiveOutputProperties.java | 51 +- .../fluent/models/MediaServiceProperties.java | 3 +- .../PrivateEndpointConnectionProperties.java | 3 +- .../models/StreamingLocatorProperties.java | 11 +- .../fluent/models/TransformProperties.java | 9 +- .../AccountFiltersClientImpl.java | 134 ++- .../AssetFiltersClientImpl.java | 134 ++- .../implementation/AssetsClientImpl.java | 226 ++++-- .../AsyncOperationResultImpl.java | 43 + .../AzureMediaServicesBuilder.java | 34 +- .../AzureMediaServicesImpl.java | 13 - .../ContentKeyPoliciesClientImpl.java | 164 +++- .../implementation/JobsClientImpl.java | 174 ++-- .../implementation/LiveEventsClientImpl.java | 751 ++++++++++++++--- .../implementation/LiveEventsImpl.java | 55 ++ .../implementation/LiveOutputImpl.java | 9 + .../implementation/LiveOutputsClientImpl.java | 561 ++++++++++++- .../implementation/LiveOutputsImpl.java | 63 ++ .../implementation/LocationsClientImpl.java | 26 +- ...diaServicesOperationResultsClientImpl.java | 26 +- ...iaServicesOperationStatusesClientImpl.java | 26 +- .../MediaservicesClientImpl.java | 266 ++++-- .../OperationResultsClientImpl.java | 26 +- .../OperationStatusesClientImpl.java | 26 +- .../implementation/OperationsClientImpl.java | 27 +- .../PrivateEndpointConnectionsClientImpl.java | 104 ++- .../PrivateLinkResourcesClientImpl.java | 52 +- .../StreamingEndpointsClientImpl.java | 766 +++++++++++++++--- .../StreamingEndpointsImpl.java | 60 ++ .../StreamingLocatorsClientImpl.java | 164 +++- .../StreamingPoliciesClientImpl.java | 112 ++- .../implementation/TracksClientImpl.java | 300 ++++--- .../implementation/TransformsClientImpl.java | 138 +++- .../models/AbsoluteClipTime.java | 4 +- .../mediaservices/models/AccessControl.java | 4 +- .../models/AccountFilterCollection.java | 4 +- .../mediaservices/models/AccountFilters.java | 40 +- .../mediaservices/models/Asset.java | 28 +- .../mediaservices/models/AssetCollection.java | 4 +- .../models/AssetFilterCollection.java | 4 +- .../mediaservices/models/AssetFilters.java | 40 +- .../mediaservices/models/AssetTrack.java | 20 +- .../mediaservices/models/Assets.java | 68 +- .../models/AsyncOperationResult.java | 39 + .../models/AsyncOperationStatus.java | 41 + .../models/AudioAnalyzerPreset.java | 28 +- .../models/AudioTrackDescriptor.java | 4 +- .../models/BuiltInStandardEncoderPreset.java | 5 +- .../models/CheckNameAvailabilityInput.java | 3 +- .../mediaservices/models/Codec.java | 3 +- .../models/CommonEncryptionCbcs.java | 3 +- .../models/CommonEncryptionCenc.java | 3 +- .../models/ContentKeyPolicies.java | 48 +- .../models/ContentKeyPolicy.java | 8 +- .../models/ContentKeyPolicyCollection.java | 4 +- ...ContentKeyPolicyFairPlayConfiguration.java | 3 +- .../models/ContentKeyPolicyOption.java | 3 +- ...dyExplicitAnalogTelevisionRestriction.java | 3 +- .../ContentKeyPolicyPlayReadyPlayRight.java | 22 +- ...ntentKeyPolicyX509CertificateTokenKey.java | 3 +- .../mediaservices/models/DefaultKey.java | 3 +- .../models/EdgeUsageDataCollectionPolicy.java | 9 +- .../models/EnvelopeEncryption.java | 15 +- .../models/FaceDetectorPreset.java | 38 +- .../mediaservices/models/Filters.java | 9 +- .../mediaservices/models/Format.java | 22 +- .../mediaservices/models/H264Layer.java | 33 +- .../mediaservices/models/H264Video.java | 9 +- .../mediaservices/models/H265Layer.java | 26 +- .../mediaservices/models/H265Video.java | 14 +- .../mediaservices/models/H265VideoLayer.java | 36 +- .../mediaservices/models/Hls.java | 5 +- .../mediaservices/models/Image.java | 48 +- .../mediaservices/models/InputDefinition.java | 3 +- .../mediaservices/models/Job.java | 8 +- .../mediaservices/models/JobCollection.java | 4 +- .../mediaservices/models/JobError.java | 7 +- .../mediaservices/models/JobInputClip.java | 27 +- .../mediaservices/models/JobInputHttp.java | 8 +- .../mediaservices/models/JobOutput.java | 34 +- .../mediaservices/models/Jobs.java | 48 +- .../mediaservices/models/JpgImage.java | 10 +- .../mediaservices/models/JpgLayer.java | 3 +- .../models/KeyVaultProperties.java | 9 +- .../mediaservices/models/Layer.java | 14 +- .../models/ListContainerSasInput.java | 3 +- .../mediaservices/models/LiveEvent.java | 36 +- .../models/LiveEventActionInput.java | 5 +- .../models/LiveEventEncoding.java | 35 +- .../mediaservices/models/LiveEventInput.java | 15 +- .../models/LiveEventInputTrackSelection.java | 11 +- .../models/LiveEventListResult.java | 9 +- .../LiveEventOutputTranscriptionTrack.java | 3 +- .../models/LiveEventPreview.java | 24 +- .../models/LiveEventTranscription.java | 20 +- .../mediaservices/models/LiveEvents.java | 142 +++- .../mediaservices/models/LiveOutput.java | 30 + .../models/LiveOutputListResult.java | 9 +- .../mediaservices/models/LiveOutputs.java | 114 ++- .../mediaservices/models/Locations.java | 8 +- .../mediaservices/models/MediaService.java | 16 +- .../models/MediaServiceCollection.java | 4 +- .../models/MediaServicesOperationResults.java | 8 +- .../MediaServicesOperationStatuses.java | 8 +- .../mediaservices/models/Mediaservices.java | 64 +- .../models/MultiBitrateFormat.java | 4 +- .../models/OperationResults.java | 8 +- .../models/OperationStatuses.java | 8 +- .../mediaservices/models/Operations.java | 8 +- .../mediaservices/models/OutputFile.java | 10 +- .../mediaservices/models/Overlay.java | 40 +- .../models/PresetConfigurations.java | 40 +- .../models/PrivateEndpointConnections.java | 40 +- .../models/PrivateLinkResources.java | 16 +- .../PrivateLinkServiceConnectionState.java | 6 +- .../mediaservices/models/Rectangle.java | 20 +- .../models/ResourceIdentity.java | 6 +- .../models/SelectAudioTrackByAttribute.java | 7 +- .../models/SelectVideoTrackByAttribute.java | 11 +- .../models/StandardEncoderPreset.java | 3 +- .../mediaservices/models/StorageAccount.java | 8 +- .../models/StreamingEndpoint.java | 24 +- .../models/StreamingEndpointListResult.java | 9 +- .../models/StreamingEndpoints.java | 143 +++- .../models/StreamingLocator.java | 16 +- .../models/StreamingLocatorCollection.java | 4 +- .../models/StreamingLocators.java | 56 +- .../models/StreamingPolicies.java | 40 +- .../models/StreamingPolicyCollection.java | 4 +- .../models/StreamingPolicyContentKey.java | 3 +- .../StreamingPolicyFairPlayConfiguration.java | 13 +- ...StreamingPolicyPlayReadyConfiguration.java | 13 +- .../StreamingPolicyWidevineConfiguration.java | 13 +- .../mediaservices/models/TextTrack.java | 13 +- .../mediaservices/models/TrackSelection.java | 3 +- .../mediaservices/models/Tracks.java | 60 +- .../models/TransformCollection.java | 4 +- .../mediaservices/models/TransformOutput.java | 18 +- .../mediaservices/models/Transforms.java | 40 +- .../mediaservices/models/Video.java | 12 +- .../models/VideoAnalyzerPreset.java | 15 +- .../mediaservices/models/VideoLayer.java | 34 +- .../mediaservices/models/VideoOverlay.java | 4 +- .../generated/LiveEventsAllocateSamples.java | 2 +- .../LiveEventsAsyncOperationSamples.java | 26 + .../generated/LiveEventsCreateSamples.java | 2 +- .../generated/LiveEventsDeleteSamples.java | 2 +- .../generated/LiveEventsGetSamples.java | 2 +- .../generated/LiveEventsListSamples.java | 2 +- .../LiveEventsOperationLocationSamples.java | 30 + .../generated/LiveEventsResetSamples.java | 2 +- .../generated/LiveEventsStartSamples.java | 2 +- .../generated/LiveEventsStopSamples.java | 2 +- .../generated/LiveEventsUpdateSamples.java | 2 +- .../LiveOutputsAsyncOperationSamples.java | 26 + .../generated/LiveOutputsCreateSamples.java | 3 +- .../generated/LiveOutputsDeleteSamples.java | 2 +- .../generated/LiveOutputsGetSamples.java | 2 +- .../generated/LiveOutputsListSamples.java | 2 +- .../LiveOutputsOperationLocationSamples.java | 31 + ...reamingEndpointsAsyncOperationSamples.java | 26 + .../StreamingEndpointsCreateSamples.java | 2 +- .../StreamingEndpointsDeleteSamples.java | 2 +- .../StreamingEndpointsGetSamples.java | 2 +- .../StreamingEndpointsListSamples.java | 2 +- ...mingEndpointsOperationLocationSamples.java | 30 + .../StreamingEndpointsScaleSamples.java | 2 +- .../StreamingEndpointsSkusSamples.java | 2 +- .../StreamingEndpointsStartSamples.java | 2 +- .../StreamingEndpointsStopSamples.java | 2 +- .../StreamingEndpointsUpdateSamples.java | 2 +- 202 files changed, 6549 insertions(+), 2031 deletions(-) create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AsyncOperationResultImpl.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationResult.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md index c709efdb5015..d8081752fb38 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 2.2.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2022-08-09) + +- Azure Resource Manager MediaServices client library for Java. This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md index 035a52881a17..ee8d29e7ad14 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager MediaServices client library for Java. -This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-account-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for MediaServices Management SDK. This Swagger was generated by the API Framework. Package tag package-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mediaservices - 2.1.0 + 2.2.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md index e6e654e91f3b..e8295fc59ae3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md @@ -49,10 +49,12 @@ ## LiveEvents - [Allocate](#liveevents_allocate) +- [AsyncOperation](#liveevents_asyncoperation) - [Create](#liveevents_create) - [Delete](#liveevents_delete) - [Get](#liveevents_get) - [List](#liveevents_list) +- [OperationLocation](#liveevents_operationlocation) - [Reset](#liveevents_reset) - [Start](#liveevents_start) - [Stop](#liveevents_stop) @@ -60,10 +62,12 @@ ## LiveOutputs +- [AsyncOperation](#liveoutputs_asyncoperation) - [Create](#liveoutputs_create) - [Delete](#liveoutputs_delete) - [Get](#liveoutputs_get) - [List](#liveoutputs_list) +- [OperationLocation](#liveoutputs_operationlocation) ## Locations @@ -114,10 +118,12 @@ ## StreamingEndpoints +- [AsyncOperation](#streamingendpoints_asyncoperation) - [Create](#streamingendpoints_create) - [Delete](#streamingendpoints_delete) - [Get](#streamingendpoints_get) - [List](#streamingendpoints_list) +- [OperationLocation](#streamingendpoints_operationlocation) - [Scale](#streamingendpoints_scale) - [Skus](#streamingendpoints_skus) - [Start](#streamingendpoints_start) @@ -1398,7 +1404,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Allocate. */ public final class LiveEventsAllocateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. @@ -1411,6 +1417,31 @@ public final class LiveEventsAllocateSamples { } ``` +### LiveEvents_AsyncOperation + +```java +import com.azure.core.util.Context; + +/** Samples for LiveEvents AsyncOperation. */ +public final class LiveEventsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the LiveEvent operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveEventOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveEvents() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} +``` + ### LiveEvents_Create ```java @@ -1428,7 +1459,7 @@ import java.util.Map; /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. @@ -1495,7 +1526,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Delete. */ public final class LiveEventsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. @@ -1516,7 +1547,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Get. */ public final class LiveEventsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. @@ -1537,7 +1568,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents List. */ public final class LiveEventsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. @@ -1550,6 +1581,35 @@ public final class LiveEventsListSamples { } ``` +### LiveEvents_OperationLocation + +```java +import com.azure.core.util.Context; + +/** Samples for LiveEvents OperationLocation. */ +public final class LiveEventsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + */ + /** + * Sample code: Get the LiveEvent operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveEventOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveEvents() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myLiveEvent1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} +``` + ### LiveEvents_Reset ```java @@ -1558,7 +1618,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Reset. */ public final class LiveEventsResetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. @@ -1579,7 +1639,7 @@ import com.azure.core.util.Context; /** Samples for LiveEvents Start. */ public final class LiveEventsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. @@ -1601,7 +1661,7 @@ import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput; /** Samples for LiveEvents Stop. */ public final class LiveEventsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. @@ -1640,7 +1700,7 @@ import java.util.Map; /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. @@ -1691,6 +1751,31 @@ public final class LiveEventsUpdateSamples { } ``` +### LiveOutputs_AsyncOperation + +```java +import com.azure.core.util.Context; + +/** Samples for LiveOutputs AsyncOperation. */ +public final class LiveOutputsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the LiveOutput operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveOutputOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveOutputs() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} +``` + ### LiveOutputs_Create ```java @@ -1700,7 +1785,7 @@ import java.time.Duration; /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. @@ -1715,6 +1800,7 @@ public final class LiveOutputsCreateSamples { .withDescription("test live output 1") .withAssetName("6f3264f5-a189-48b4-a29a-a40f22575212") .withArchiveWindowLength(Duration.parse("PT5M")) + .withRewindWindowLength(Duration.parse("PT4M")) .withManifestName("testmanifest") .withHls(new Hls().withFragmentsPerTsSegment(5)) .create(); @@ -1730,7 +1816,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs Delete. */ public final class LiveOutputsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. @@ -1751,7 +1837,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs Get. */ public final class LiveOutputsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. @@ -1774,7 +1860,7 @@ import com.azure.core.util.Context; /** Samples for LiveOutputs List. */ public final class LiveOutputsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. @@ -1787,6 +1873,36 @@ public final class LiveOutputsListSamples { } ``` +### LiveOutputs_OperationLocation + +```java +import com.azure.core.util.Context; + +/** Samples for LiveOutputs OperationLocation. */ +public final class LiveOutputsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + */ + /** + * Sample code: Get the LiveOutput operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveOutputOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveOutputs() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myLiveEvent1", + "myLiveOutput1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} +``` + ### Locations_CheckNameAvailability ```java @@ -2429,6 +2545,31 @@ public final class PrivateLinkResourcesListSamples { } ``` +### StreamingEndpoints_AsyncOperation + +```java +import com.azure.core.util.Context; + +/** Samples for StreamingEndpoints AsyncOperation. */ +public final class StreamingEndpointsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the streaming endpoint operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheStreamingEndpointOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .streamingEndpoints() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} +``` + ### StreamingEndpoints_Create ```java @@ -2445,7 +2586,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. @@ -2505,7 +2646,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Delete. */ public final class StreamingEndpointsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. @@ -2526,7 +2667,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Get. */ public final class StreamingEndpointsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. @@ -2550,7 +2691,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints List. */ public final class StreamingEndpointsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. @@ -2563,6 +2704,35 @@ public final class StreamingEndpointsListSamples { } ``` +### StreamingEndpoints_OperationLocation + +```java +import com.azure.core.util.Context; + +/** Samples for StreamingEndpoints OperationLocation. */ +public final class StreamingEndpointsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + */ + /** + * Sample code: Get the streaming endpoint operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheStreamingEndpointOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .streamingEndpoints() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myStreamingEndpoint1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} +``` + ### StreamingEndpoints_Scale ```java @@ -2572,7 +2742,7 @@ import com.azure.resourcemanager.mediaservices.models.StreamingEntityScaleUnit; /** Samples for StreamingEndpoints Scale. */ public final class StreamingEndpointsScaleSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. @@ -2600,7 +2770,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Skus. */ public final class StreamingEndpointsSkusSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. @@ -2623,7 +2793,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Start. */ public final class StreamingEndpointsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. @@ -2644,7 +2814,7 @@ import com.azure.core.util.Context; /** Samples for StreamingEndpoints Stop. */ public final class StreamingEndpointsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. @@ -2668,7 +2838,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml index 093345c6c32f..dcd3a963fbda 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml @@ -13,7 +13,7 @@ jar Microsoft Azure SDK for MediaServices Management - This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2021-11. + This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-2022-08. https://github.com/Azure/azure-sdk-for-java @@ -39,7 +39,6 @@ UTF-8 true - true diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java index 34b11fd3b807..398e2f1b320b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java @@ -283,7 +283,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil .append("-") .append("com.azure.resourcemanager.mediaservices") .append("/") - .append("2.1.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java index 591ed7b404a4..aec462332713 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in AccountFiltersClient. */ public interface AccountFiltersClient { /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -27,7 +29,9 @@ public interface AccountFiltersClient { PagedIterable list(String resourceGroupName, String accountName); /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -41,7 +45,9 @@ public interface AccountFiltersClient { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -55,7 +61,9 @@ public interface AccountFiltersClient { AccountFilterInner get(String resourceGroupName, String accountName, String filterName); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -71,7 +79,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context); /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -87,7 +97,9 @@ AccountFilterInner createOrUpdate( String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -108,7 +120,9 @@ Response createOrUpdateWithResponse( Context context); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -121,7 +135,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String filterName); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -136,7 +152,9 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -152,7 +170,9 @@ AccountFilterInner update( String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java index 15680d867a7c..e8e448e825ec 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetFiltersClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in AssetFiltersClient. */ public interface AssetFiltersClient { /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -28,7 +30,9 @@ public interface AssetFiltersClient { PagedIterable list(String resourceGroupName, String accountName, String assetName); /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -44,7 +48,9 @@ PagedIterable list( String resourceGroupName, String accountName, String assetName, Context context); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -59,7 +65,9 @@ PagedIterable list( AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +84,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -93,7 +103,9 @@ AssetFilterInner createOrUpdate( String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -116,7 +128,9 @@ Response createOrUpdateWithResponse( Context context); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -130,7 +144,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -147,7 +163,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -164,7 +182,9 @@ AssetFilterInner update( String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java index 0d7aaad08e5a..9c35e9aa5285 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AssetsClient.java @@ -18,7 +18,9 @@ /** An instance of this class provides access to all the operations defined in AssetsClient. */ public interface AssetsClient { /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -31,7 +33,9 @@ public interface AssetsClient { PagedIterable list(String resourceGroupName, String accountName); /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -50,7 +54,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -64,7 +70,9 @@ PagedIterable list( AssetInner get(String resourceGroupName, String accountName, String assetName); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -80,7 +88,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -95,7 +105,9 @@ Response getWithResponse( AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -112,7 +124,9 @@ Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -125,7 +139,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String assetName); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -140,7 +156,9 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -155,7 +173,9 @@ Response createOrUpdateWithResponse( AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -172,8 +192,10 @@ Response updateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -189,8 +211,10 @@ AssetContainerSasInner listContainerSas( String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -211,7 +235,9 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -226,7 +252,9 @@ StorageEncryptedAssetDecryptionDataInner getEncryptionKey( String resourceGroupName, String accountName, String assetName); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -243,7 +271,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -258,7 +288,9 @@ ListStreamingLocatorsResponseInner listStreamingLocators( String resourceGroupName, String accountName, String assetName); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AzureMediaServices.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AzureMediaServices.java index caabc9ff9ea0..f23ff15e2863 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AzureMediaServices.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AzureMediaServices.java @@ -23,13 +23,6 @@ public interface AzureMediaServices { */ String getEndpoint(); - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - String getApiVersion(); - /** * Gets The HTTP pipeline to send requests through. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java index 890713f7ffed..397f799b7a1a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/ContentKeyPoliciesClient.java @@ -15,7 +15,9 @@ /** An instance of this class provides access to all the operations defined in ContentKeyPoliciesClient. */ public interface ContentKeyPoliciesClient { /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -28,7 +30,9 @@ public interface ContentKeyPoliciesClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -47,7 +51,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -61,7 +67,9 @@ PagedIterable list( ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -77,7 +85,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -93,7 +103,9 @@ ContentKeyPolicyInner createOrUpdate( String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -114,7 +126,9 @@ Response createOrUpdateWithResponse( Context context); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -127,7 +141,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -143,7 +159,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -159,7 +177,9 @@ ContentKeyPolicyInner update( String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -180,7 +200,9 @@ Response updateWithResponse( Context context); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -195,7 +217,9 @@ ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java index 19dd448f271c..f5d919f2b364 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/JobsClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in JobsClient. */ public interface JobsClient { /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -28,7 +30,9 @@ public interface JobsClient { PagedIterable list(String resourceGroupName, String accountName, String transformName); /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -51,7 +55,9 @@ PagedIterable list( Context context); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -66,7 +72,9 @@ PagedIterable list( JobInner get(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -83,7 +91,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -100,7 +110,9 @@ JobInner create( String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -123,7 +135,9 @@ Response createWithResponse( Context context); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -137,7 +151,9 @@ Response createWithResponse( void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -154,8 +170,10 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -172,8 +190,10 @@ JobInner update( String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -196,7 +216,9 @@ Response updateWithResponse( Context context); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -210,7 +232,9 @@ Response updateWithResponse( void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java index d2b91b5fcc51..23f14b074fa6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveEventsClient.java @@ -11,13 +11,16 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner; import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput; /** An instance of this class provides access to all the operations defined in LiveEventsClient. */ public interface LiveEventsClient { /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -30,7 +33,9 @@ public interface LiveEventsClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -44,7 +49,9 @@ public interface LiveEventsClient { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -58,7 +65,9 @@ public interface LiveEventsClient { LiveEventInner get(String resourceGroupName, String accountName, String liveEventName); /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -74,7 +83,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -95,7 +106,9 @@ SyncPoller, LiveEventInner> beginCreate( Boolean autoStart); /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -118,7 +131,9 @@ SyncPoller, LiveEventInner> beginCreate( Context context); /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -139,7 +154,9 @@ LiveEventInner create( Boolean autoStart); /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -155,7 +172,9 @@ LiveEventInner create( String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters); /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -244,7 +263,9 @@ LiveEventInner update( String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters, Context context); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -258,7 +279,9 @@ LiveEventInner update( SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String liveEventName); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -274,7 +297,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -287,7 +312,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String liveEventName); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -301,7 +328,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -316,7 +345,9 @@ SyncPoller, Void> beginAllocate( String resourceGroupName, String accountName, String liveEventName); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -332,7 +363,9 @@ SyncPoller, Void> beginAllocate( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -345,7 +378,9 @@ SyncPoller, Void> beginAllocate( void allocate(String resourceGroupName, String accountName, String liveEventName); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -359,7 +394,9 @@ SyncPoller, Void> beginAllocate( void allocate(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -373,7 +410,9 @@ SyncPoller, Void> beginAllocate( SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String liveEventName); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -389,7 +428,9 @@ SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -402,7 +443,9 @@ SyncPoller, Void> beginStart( void start(String resourceGroupName, String accountName, String liveEventName); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -416,7 +459,9 @@ SyncPoller, Void> beginStart( void start(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -432,7 +477,9 @@ SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -453,7 +500,9 @@ SyncPoller, Void> beginStop( Context context); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -467,7 +516,9 @@ SyncPoller, Void> beginStop( void stop(String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -487,8 +538,10 @@ void stop( Context context); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -503,8 +556,10 @@ void stop( SyncPoller, Void> beginReset(String resourceGroupName, String accountName, String liveEventName); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -521,8 +576,10 @@ SyncPoller, Void> beginReset( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -536,8 +593,10 @@ SyncPoller, Void> beginReset( void reset(String resourceGroupName, String accountName, String liveEventName); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -550,4 +609,75 @@ SyncPoller, Void> beginReset( */ @ServiceMethod(returns = ReturnType.SINGLE) void reset(String resourceGroupName, String accountName, String liveEventName, Context context); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java index 9866a05b01ae..ba1afabd8109 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LiveOutputsClient.java @@ -11,12 +11,15 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveOutputInner; /** An instance of this class provides access to all the operations defined in LiveOutputsClient. */ public interface LiveOutputsClient { /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -30,7 +33,9 @@ public interface LiveOutputsClient { PagedIterable list(String resourceGroupName, String accountName, String liveEventName); /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -46,7 +51,9 @@ PagedIterable list( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -61,7 +68,9 @@ PagedIterable list( LiveOutputInner get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -78,7 +87,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -99,7 +110,9 @@ SyncPoller, LiveOutputInner> beginCreate( LiveOutputInner parameters); /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -122,7 +135,9 @@ SyncPoller, LiveOutputInner> beginCreate( Context context); /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -143,7 +158,9 @@ LiveOutputInner create( LiveOutputInner parameters); /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -166,7 +183,9 @@ LiveOutputInner create( Context context); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -182,7 +201,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -199,7 +220,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -213,7 +236,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -227,4 +252,82 @@ SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.SINGLE) void delete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java index d8f330a914d3..a648c8ef1f48 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/LocationsClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in LocationsClient. */ public interface LocationsClient { /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -28,7 +30,9 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability( String locationName, CheckNameAvailabilityInput parameters); /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java index d386c8daa6eb..79bfb376866b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in MediaServicesOperationResultsClient. */ public interface MediaServicesOperationResultsClient { /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -26,7 +28,9 @@ public interface MediaServicesOperationResultsClient { MediaServiceInner get(String locationName, String operationId); /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java index 52d0f0e2bb76..d01953576ccc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in MediaServicesOperationStatusesClient. */ public interface MediaServicesOperationStatusesClient { /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -26,7 +28,9 @@ public interface MediaServicesOperationStatusesClient { MediaServiceOperationStatusInner get(String locationName, String operationId); /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java index 5a8dc5945db0..5408e2dfb442 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaservicesClient.java @@ -20,7 +20,9 @@ /** An instance of this class provides access to all the operations defined in MediaservicesClient. */ public interface MediaservicesClient { /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -32,7 +34,9 @@ public interface MediaservicesClient { PagedIterable listByResourceGroup(String resourceGroupName); /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param context The context to associate with this operation. @@ -45,7 +49,9 @@ public interface MediaservicesClient { PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -58,7 +64,9 @@ public interface MediaservicesClient { MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -73,7 +81,9 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context); /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -88,7 +98,9 @@ SyncPoller, MediaServiceInner> beginCreateOrUpdate String resourceGroupName, String accountName, MediaServiceInner parameters); /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -104,7 +116,9 @@ SyncPoller, MediaServiceInner> beginCreateOrUpdate String resourceGroupName, String accountName, MediaServiceInner parameters, Context context); /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -118,7 +132,9 @@ SyncPoller, MediaServiceInner> beginCreateOrUpdate MediaServiceInner createOrUpdate(String resourceGroupName, String accountName, MediaServiceInner parameters); /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -134,7 +150,9 @@ MediaServiceInner createOrUpdate( String resourceGroupName, String accountName, MediaServiceInner parameters, Context context); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -146,7 +164,9 @@ MediaServiceInner createOrUpdate( void delete(String resourceGroupName, String accountName); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -160,7 +180,9 @@ MediaServiceInner createOrUpdate( Response deleteWithResponse(String resourceGroupName, String accountName, Context context); /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -175,7 +197,9 @@ SyncPoller, MediaServiceInner> beginUpdate( String resourceGroupName, String accountName, MediaServiceUpdate parameters); /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -191,7 +215,9 @@ SyncPoller, MediaServiceInner> beginUpdate( String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context); /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -205,7 +231,9 @@ SyncPoller, MediaServiceInner> beginUpdate( MediaServiceInner update(String resourceGroupName, String accountName, MediaServiceUpdate parameters); /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -221,7 +249,9 @@ MediaServiceInner update( String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -234,7 +264,9 @@ MediaServiceInner update( void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -250,7 +282,9 @@ Response syncStorageKeysWithResponse( String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -264,7 +298,9 @@ Response syncStorageKeysWithResponse( EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -280,7 +316,9 @@ Response listEdgePoliciesWithResponse( String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -290,7 +328,9 @@ Response listEdgePoliciesWithResponse( PagedIterable list(); /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java index 8d23cbbee49f..bc9e66f81e84 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in OperationResultsClient. */ public interface OperationResultsClient { /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -30,7 +32,9 @@ AssetTrackInner get( String resourceGroupName, String accountName, String assetName, String trackName, String operationId); /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java index eb0632e13917..130ec62a46c8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in OperationStatusesClient. */ public interface OperationStatusesClient { /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -30,7 +32,9 @@ AssetTrackOperationStatusInner get( String resourceGroupName, String accountName, String assetName, String trackName, String operationId); /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java index d6b96940e475..6afa1d17403b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationsClient.java @@ -13,7 +13,9 @@ /** An instance of this class provides access to all the operations defined in OperationsClient. */ public interface OperationsClient { /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -23,7 +25,9 @@ public interface OperationsClient { OperationCollectionInner list(); /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java index 4b15ea4d7191..a351f3db07ad 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateEndpointConnectionsClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ public interface PrivateEndpointConnectionsClient { /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -27,7 +29,9 @@ public interface PrivateEndpointConnectionsClient { PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName); /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -43,7 +47,9 @@ Response listWithResponse( String resourceGroupName, String accountName, Context context); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -57,7 +63,9 @@ Response listWithResponse( PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -73,7 +81,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String name, Context context); /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -89,7 +99,9 @@ PrivateEndpointConnectionInner createOrUpdate( String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters); /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -110,7 +122,9 @@ Response createOrUpdateWithResponse( Context context); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -123,7 +137,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String name); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java index 49947daadede..1229eef90c37 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ public interface PrivateLinkResourcesClient { /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -27,7 +29,9 @@ public interface PrivateLinkResourcesClient { PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName); /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -42,7 +46,9 @@ Response listWithResponse( String resourceGroupName, String accountName, Context context); /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -56,7 +62,9 @@ Response listWithResponse( PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name); /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java index 44a417e478c1..1de41352d9a7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java @@ -11,6 +11,7 @@ import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointSkuInfoListResultInner; import com.azure.resourcemanager.mediaservices.models.StreamingEntityScaleUnit; @@ -18,7 +19,9 @@ /** An instance of this class provides access to all the operations defined in StreamingEndpointsClient. */ public interface StreamingEndpointsClient { /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -31,7 +34,9 @@ public interface StreamingEndpointsClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -45,7 +50,9 @@ public interface StreamingEndpointsClient { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -59,7 +66,9 @@ public interface StreamingEndpointsClient { StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -75,7 +84,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +107,9 @@ SyncPoller, StreamingEndpointInner> beginCrea Boolean autoStart); /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -119,7 +132,9 @@ SyncPoller, StreamingEndpointInner> beginCrea Context context); /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -140,7 +155,9 @@ StreamingEndpointInner create( Boolean autoStart); /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -156,7 +173,9 @@ StreamingEndpointInner create( String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters); /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -179,7 +198,9 @@ StreamingEndpointInner create( Context context); /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -195,7 +216,9 @@ SyncPoller, StreamingEndpointInner> beginUpda String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters); /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -216,7 +239,9 @@ SyncPoller, StreamingEndpointInner> beginUpda Context context); /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -232,7 +257,9 @@ StreamingEndpointInner update( String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters); /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -253,7 +280,9 @@ StreamingEndpointInner update( Context context); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -268,7 +297,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String streamingEndpointName); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -284,7 +315,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -297,7 +330,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -311,7 +346,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -326,7 +363,9 @@ StreamingEndpointSkuInfoListResultInner skus( String resourceGroupName, String accountName, String streamingEndpointName); /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -342,7 +381,9 @@ Response skusWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -357,7 +398,9 @@ SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String streamingEndpointName); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -373,7 +416,9 @@ SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -386,7 +431,9 @@ SyncPoller, Void> beginStart( void start(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -400,7 +447,9 @@ SyncPoller, Void> beginStart( void start(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -415,7 +464,9 @@ SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String streamingEndpointName); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -431,7 +482,9 @@ SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -444,7 +497,9 @@ SyncPoller, Void> beginStop( void stop(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -458,7 +513,9 @@ SyncPoller, Void> beginStop( void stop(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -477,7 +534,9 @@ SyncPoller, Void> beginScale( StreamingEntityScaleUnit parameters); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -498,7 +557,9 @@ SyncPoller, Void> beginScale( Context context); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -516,7 +577,9 @@ void scale( StreamingEntityScaleUnit parameters); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -534,4 +597,79 @@ void scale( String streamingEndpointName, StreamingEntityScaleUnit parameters, Context context); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java index 51a0e89ea3ff..7f427fdb3c2f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingLocatorsClient.java @@ -16,7 +16,9 @@ /** An instance of this class provides access to all the operations defined in StreamingLocatorsClient. */ public interface StreamingLocatorsClient { /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -29,7 +31,9 @@ public interface StreamingLocatorsClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -48,7 +52,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -62,7 +68,9 @@ PagedIterable list( StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -78,7 +86,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -94,7 +104,9 @@ StreamingLocatorInner create( String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters); /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -115,7 +127,9 @@ Response createWithResponse( Context context); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -128,7 +142,9 @@ Response createWithResponse( void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -144,7 +160,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -159,7 +177,9 @@ ListContentKeysResponseInner listContentKeys( String resourceGroupName, String accountName, String streamingLocatorName); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -175,7 +195,9 @@ Response listContentKeysWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -189,7 +211,9 @@ Response listContentKeysWithResponse( ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java index d3426f6d3af7..26253116c8f5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingPoliciesClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in StreamingPoliciesClient. */ public interface StreamingPoliciesClient { /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -27,7 +29,9 @@ public interface StreamingPoliciesClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -46,7 +50,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -60,7 +66,9 @@ PagedIterable list( StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +84,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -92,7 +102,9 @@ StreamingPolicyInner create( String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters); /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -113,7 +125,9 @@ Response createWithResponse( Context context); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -126,7 +140,9 @@ Response createWithResponse( void delete(String resourceGroupName, String accountName, String streamingPolicyName); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java index 29b7a01c5806..0c7fead19204 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java @@ -16,7 +16,9 @@ /** An instance of this class provides access to all the operations defined in TracksClient. */ public interface TracksClient { /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -30,7 +32,9 @@ public interface TracksClient { PagedIterable list(String resourceGroupName, String accountName, String assetName); /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -46,7 +50,9 @@ PagedIterable list( String resourceGroupName, String accountName, String assetName, Context context); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -61,7 +67,9 @@ PagedIterable list( AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -78,7 +86,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -95,7 +105,9 @@ SyncPoller, AssetTrackInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters); /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -118,7 +130,9 @@ SyncPoller, AssetTrackInner> beginCreateOrUpdate( Context context); /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -135,7 +149,9 @@ AssetTrackInner createOrUpdate( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters); /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -158,7 +174,9 @@ AssetTrackInner createOrUpdate( Context context); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -174,7 +192,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String assetName, String trackName); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -191,7 +211,9 @@ SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -205,7 +227,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -220,7 +244,9 @@ SyncPoller, Void> beginDelete( void delete(String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -237,7 +263,9 @@ SyncPoller, AssetTrackInner> beginUpdate( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters); /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -260,7 +288,9 @@ SyncPoller, AssetTrackInner> beginUpdate( Context context); /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -277,7 +307,9 @@ AssetTrackInner update( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters); /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -300,10 +332,12 @@ AssetTrackInner update( Context context); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -319,10 +353,12 @@ SyncPoller, Void> beginUpdateTrackData( String resourceGroupName, String accountName, String assetName, String trackName); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -339,10 +375,12 @@ SyncPoller, Void> beginUpdateTrackData( String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -356,10 +394,12 @@ SyncPoller, Void> beginUpdateTrackData( void updateTrackData(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java index 28032f59d691..8b850c20d3e8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TransformsClient.java @@ -14,7 +14,9 @@ /** An instance of this class provides access to all the operations defined in TransformsClient. */ public interface TransformsClient { /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -27,7 +29,9 @@ public interface TransformsClient { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -44,7 +48,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, String orderby, Context context); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -58,7 +64,9 @@ PagedIterable list( TransformInner get(String resourceGroupName, String accountName, String transformName); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -74,7 +82,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, Context context); /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -91,7 +101,9 @@ TransformInner createOrUpdate( String resourceGroupName, String accountName, String transformName, TransformInner parameters); /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -109,7 +121,9 @@ Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -122,7 +136,9 @@ Response createOrUpdateWithResponse( void delete(String resourceGroupName, String accountName, String transformName); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -138,7 +154,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, Context context); /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -155,7 +173,9 @@ TransformInner update( String resourceGroupName, String accountName, String transformName, TransformInner parameters); /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java new file mode 100644 index 000000000000..444bd5ac9db4 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationStatus; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** The status of an async operation. */ +@Fluent +public final class AsyncOperationResultInner { + /* + * The error object + */ + @JsonProperty(value = "error") + private ManagementError error; + + /* + * Operation Id of the async operation. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Operation status of the async operation. + */ + @JsonProperty(value = "status") + private AsyncOperationStatus status; + + /** + * Get the error property: The error object. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Set the error property: The error object. + * + * @param error the error value to set. + * @return the AsyncOperationResultInner object itself. + */ + public AsyncOperationResultInner withError(ManagementError error) { + this.error = error; + return this; + } + + /** + * Get the name property: Operation Id of the async operation. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: Operation Id of the async operation. + * + * @param name the name value to set. + * @return the AsyncOperationResultInner object itself. + */ + public AsyncOperationResultInner withName(String name) { + this.name = name; + return this; + } + + /** + * Get the status property: Operation status of the async operation. + * + * @return the status value. + */ + public AsyncOperationStatus status() { + return this.status; + } + + /** + * Set the status property: Operation status of the async operation. + * + * @param status the status value to set. + * @return the AsyncOperationResultInner object itself. + */ + public AsyncOperationResultInner withStatus(AsyncOperationStatus status) { + this.status = status; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java index b7221cb36111..250a6ac656da 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java @@ -20,8 +20,7 @@ @Fluent public final class JobProperties { /* - * The UTC date and time when the customer has created the Job, in - * 'YYYY-MM-DDThh:mm:ssZ' format. + * The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. */ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime created; @@ -45,8 +44,7 @@ public final class JobProperties { private JobInput input; /* - * The UTC date and time when the customer has last updated the Job, 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. */ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; @@ -58,16 +56,14 @@ public final class JobProperties { private List outputs; /* - * Priority with which the job should be processed. Higher priority jobs - * are processed before lower priority jobs. If not set, the default is - * normal. + * Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. + * If not set, the default is normal. */ @JsonProperty(value = "priority") private Priority priority; /* - * Customer provided key, value pairs that will be returned in Job and - * JobOutput state events. + * Customer provided key, value pairs that will be returned in Job and JobOutput state events. */ @JsonProperty(value = "correlationData") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java index 245f9d344482..83cae0d56801 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java @@ -27,31 +27,28 @@ public final class LiveEventProperties { private String description; /* - * Live event input settings. It defines how the live event receives input - * from a contribution encoder. + * Live event input settings. It defines how the live event receives input from a contribution encoder. */ @JsonProperty(value = "input", required = true) private LiveEventInput input; /* - * Live event preview settings. Preview allows live event producers to - * preview the live streaming content without creating any live output. + * Live event preview settings. Preview allows live event producers to preview the live streaming content without + * creating any live output. */ @JsonProperty(value = "preview") private LiveEventPreview preview; /* - * 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. + * 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(value = "encoding") private LiveEventEncoding encoding; /* - * Live transcription settings for the live event. See - * https://go.microsoft.com/fwlink/?linkid=2133742 for more information - * about the live transcription feature. + * Live transcription settings for the live event. See https://go.microsoft.com/fwlink/?linkid=2133742 for more + * information about the live transcription feature. */ @JsonProperty(value = "transcriptions") private List transcriptions; @@ -63,8 +60,7 @@ public final class LiveEventProperties { private String provisioningState; /* - * The resource state of the live event. See - * https://go.microsoft.com/fwlink/?linkid=2139012 for more information. + * The resource state of the live event. See https://go.microsoft.com/fwlink/?linkid=2139012 for more information. */ @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY) private LiveEventResourceState resourceState; @@ -76,27 +72,23 @@ public final class LiveEventProperties { private CrossSiteAccessPolicies crossSiteAccessPolicies; /* - * 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 + * 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(value = "useStaticHostname") private Boolean useStaticHostname; /* - * 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. + * 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(value = "hostnamePrefix") private String hostnamePrefix; /* - * 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'. + * 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(value = "streamOptions") private List streamOptions; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java index 74b5c1ae0a85..f3247a69ba71 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java @@ -119,6 +119,37 @@ public LiveOutputInner withArchiveWindowLength(Duration archiveWindowLength) { return this; } + /** + * Get the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput stops. The + * archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 + * hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event + * enables LL. + * + * @return the rewindWindowLength value. + */ + public Duration rewindWindowLength() { + return this.innerProperties() == null ? null : this.innerProperties().rewindWindowLength(); + } + + /** + * Set the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput stops. The + * archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 + * hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event + * enables LL. + * + * @param rewindWindowLength the rewindWindowLength value to set. + * @return the LiveOutputInner object itself. + */ + public LiveOutputInner withRewindWindowLength(Duration rewindWindowLength) { + if (this.innerProperties() == null) { + this.innerProperties = new LiveOutputProperties(); + } + this.innerProperties().withRewindWindowLength(rewindWindowLength); + return this; + } + /** * Get the manifestName property: The manifest file name. If not provided, the service will generate one * automatically. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java index 4371f9c07ce2..29fb1f6e455d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java @@ -28,18 +28,24 @@ public final class LiveOutputProperties { private String assetName; /* - * 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. + * 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(value = "archiveWindowLength", required = true) private Duration archiveWindowLength; /* - * The manifest file name. If not provided, the service will generate one - * automatically. + * ISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during + * Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with + * original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window + * length. Service will use implicit default value 30m only if Live Event enables LL. + */ + @JsonProperty(value = "rewindWindowLength") + private Duration rewindWindowLength; + + /* + * The manifest file name. If not provided, the service will generate one automatically. */ @JsonProperty(value = "manifestName") private String manifestName; @@ -51,8 +57,7 @@ public final class LiveOutputProperties { private Hls hls; /* - * The initial timestamp that the live output will start at, any content - * before this value will not be archived. + * The initial timestamp that the live output will start at, any content before this value will not be archived. */ @JsonProperty(value = "outputSnapTime") private Long outputSnapTime; @@ -145,6 +150,34 @@ public LiveOutputProperties withArchiveWindowLength(Duration archiveWindowLength return this; } + /** + * Get the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput stops. The + * archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 + * hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event + * enables LL. + * + * @return the rewindWindowLength value. + */ + public Duration rewindWindowLength() { + return this.rewindWindowLength; + } + + /** + * Set the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput stops. The + * archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 + * hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event + * enables LL. + * + * @param rewindWindowLength the rewindWindowLength value to set. + * @return the LiveOutputProperties object itself. + */ + public LiveOutputProperties withRewindWindowLength(Duration rewindWindowLength) { + this.rewindWindowLength = rewindWindowLength; + return this; + } + /** * Get the manifestName property: The manifest file name. If not provided, the service will generate one * automatically. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java index 0ecab79fdb8c..2ef1846a4597 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java @@ -49,8 +49,7 @@ public final class MediaServiceProperties { private KeyDelivery keyDelivery; /* - * Whether or not public network access is allowed for resources under the - * Media Services account. + * Whether or not public network access is allowed for resources under the Media Services account. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java index ac9a8f70d335..416902d7e3b6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java @@ -21,8 +21,7 @@ public final class PrivateEndpointConnectionProperties { private PrivateEndpoint privateEndpoint; /* - * A collection of information about the state of the connection between - * service consumer and provider. + * A collection of information about the state of the connection between service consumer and provider. */ @JsonProperty(value = "privateLinkServiceConnectionState", required = true) private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java index 1a33466cccef..a6d1198b3da5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java @@ -46,13 +46,10 @@ public final class StreamingLocatorProperties { private UUID streamingLocatorId; /* - * Name of the Streaming Policy used by this Streaming Locator. Either - * specify the name of Streaming Policy you created or use one of the - * predefined Streaming Policies. The predefined Streaming Policies - * available are: 'Predefined_DownloadOnly', - * 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', - * 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and - * 'Predefined_MultiDrmStreaming' + * Name of the Streaming Policy used by this Streaming Locator. Either specify the name of Streaming Policy you + * created or use one of the predefined Streaming Policies. The predefined Streaming Policies available are: + * 'Predefined_DownloadOnly', 'Predefined_ClearStreamingOnly', 'Predefined_DownloadAndClearStreaming', + * 'Predefined_ClearKey', 'Predefined_MultiDrmCencStreaming' and 'Predefined_MultiDrmStreaming' */ @JsonProperty(value = "streamingPolicyName", required = true) private String streamingPolicyName; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java index 544f9c4413b2..3150f1734f7e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java @@ -15,8 +15,7 @@ @Fluent public final class TransformProperties { /* - * The UTC date and time when the Transform was created, in - * 'YYYY-MM-DDThh:mm:ssZ' format. + * The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. */ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime created; @@ -28,15 +27,13 @@ public final class TransformProperties { private String description; /* - * The UTC date and time when the Transform was last updated, in - * 'YYYY-MM-DDThh:mm:ssZ' format. + * The UTC date and time when the Transform was last updated, in 'YYYY-MM-DDThh:mm:ssZ' format. */ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; /* - * An array of one or more TransformOutputs that the Transform should - * generate. + * An array of one or more TransformOutputs that the Transform should generate. */ @JsonProperty(value = "outputs", required = true) private List outputs; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java index dbe20a405704..b75702da6f3f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java @@ -153,7 +153,9 @@ Mono> listNext( } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -184,6 +186,7 @@ private Mono> listSinglePageAsync(String resou if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -194,7 +197,7 @@ private Mono> listSinglePageAsync(String resou this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -210,7 +213,9 @@ private Mono> listSinglePageAsync(String resou } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -243,6 +248,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -251,7 +257,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -266,7 +272,9 @@ private Mono> listSinglePageAsync( } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -282,7 +290,9 @@ private PagedFlux listAsync(String resourceGroupName, String } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -300,7 +310,9 @@ private PagedFlux listAsync(String resourceGroupName, String } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -315,7 +327,9 @@ public PagedIterable list(String resourceGroupName, String a } /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -331,7 +345,9 @@ public PagedIterable list(String resourceGroupName, String a } /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -367,6 +383,7 @@ private Mono> getWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -378,14 +395,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -422,6 +441,7 @@ private Mono> getWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -431,13 +451,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -454,7 +476,9 @@ private Mono getAsync(String resourceGroupName, String accou } /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -470,7 +494,9 @@ public AccountFilterInner get(String resourceGroupName, String accountName, Stri } /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -488,7 +514,9 @@ public Response getWithResponse( } /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -529,6 +557,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -540,7 +569,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -548,7 +577,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -594,6 +625,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -603,14 +635,16 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -629,7 +663,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -647,7 +683,9 @@ public AccountFilterInner createOrUpdate( } /** - * Creates or updates an Account Filter in the Media Services account. + * Create or update an Account Filter + * + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -670,7 +708,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -705,6 +745,7 @@ private Mono> deleteWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -716,14 +757,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -759,6 +802,7 @@ private Mono> deleteWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -768,13 +812,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -790,7 +836,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -805,7 +853,9 @@ public void delete(String resourceGroupName, String accountName, String filterNa } /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -823,7 +873,9 @@ public Response deleteWithResponse( } /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -864,6 +916,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -875,7 +928,7 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -883,7 +936,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -929,6 +984,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -938,14 +994,16 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -964,7 +1022,9 @@ private Mono updateAsync( } /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -982,7 +1042,9 @@ public AccountFilterInner update( } /** - * Updates an existing Account Filter in the Media Services account. + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java index a6babccc2b6b..2619ee6183b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java @@ -158,7 +158,9 @@ Mono> listNext( } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -194,6 +196,7 @@ private Mono> listSinglePageAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -205,7 +208,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -221,7 +224,9 @@ private Mono> listSinglePageAsync( } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -258,6 +263,7 @@ private Mono> listSinglePageAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -267,7 +273,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -282,7 +288,9 @@ private Mono> listSinglePageAsync( } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -300,7 +308,9 @@ private PagedFlux listAsync(String resourceGroupName, String a } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -320,7 +330,9 @@ private PagedFlux listAsync( } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -336,7 +348,9 @@ public PagedIterable list(String resourceGroupName, String acc } /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -354,7 +368,9 @@ public PagedIterable list( } /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -394,6 +410,7 @@ private Mono> getWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -406,14 +423,16 @@ private Mono> getWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -454,6 +473,7 @@ private Mono> getWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -464,13 +484,15 @@ private Mono> getWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -490,7 +512,9 @@ private Mono getAsync( } /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -507,7 +531,9 @@ public AssetFilterInner get(String resourceGroupName, String accountName, String } /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -526,7 +552,9 @@ public Response getWithResponse( } /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -575,6 +603,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -587,7 +616,7 @@ private Mono> createOrUpdateWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -595,7 +624,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -646,6 +677,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -656,14 +688,16 @@ private Mono> createOrUpdateWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -687,7 +721,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -710,7 +746,9 @@ public AssetFilterInner createOrUpdate( } /** - * Creates or updates an Asset Filter associated with the specified Asset. + * Create or update an Asset Filter + * + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -737,7 +775,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -776,6 +816,7 @@ private Mono> deleteWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -788,14 +829,16 @@ private Mono> deleteWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -835,6 +878,7 @@ private Mono> deleteWithResponseAsync( if (filterName == null) { return Mono.error(new IllegalArgumentException("Parameter filterName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -845,13 +889,15 @@ private Mono> deleteWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -869,7 +915,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -885,7 +933,9 @@ public void delete(String resourceGroupName, String accountName, String assetNam } /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -904,7 +954,9 @@ public Response deleteWithResponse( } /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -953,6 +1005,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -965,7 +1018,7 @@ private Mono> updateWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -973,7 +1026,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1024,6 +1079,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1034,14 +1090,16 @@ private Mono> updateWithResponseAsync( accountName, assetName, filterName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1065,7 +1123,9 @@ private Mono updateAsync( } /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1088,7 +1148,9 @@ public AssetFilterInner update( } /** - * Updates an existing Asset Filter associated with the specified Asset. + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java index 0b1b05bc446b..8fd9d56b86b2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java @@ -209,7 +209,9 @@ Mono> listNext( } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -244,6 +246,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -254,7 +257,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -273,7 +276,9 @@ private Mono> listSinglePageAsync( } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -309,6 +314,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -317,7 +323,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -335,7 +341,9 @@ private Mono> listSinglePageAsync( } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -357,7 +365,9 @@ private PagedFlux listAsync( } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -377,7 +387,9 @@ private PagedFlux listAsync(String resourceGroupName, String account } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -400,7 +412,9 @@ private PagedFlux listAsync( } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -418,7 +432,9 @@ public PagedIterable list(String resourceGroupName, String accountNa } /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -439,7 +455,9 @@ public PagedIterable list( } /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -475,6 +493,7 @@ private Mono> getWithResponseAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -486,14 +505,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -530,6 +551,7 @@ private Mono> getWithResponseAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -539,13 +561,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -562,7 +586,9 @@ private Mono getAsync(String resourceGroupName, String accountName, } /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -578,7 +604,9 @@ public AssetInner get(String resourceGroupName, String accountName, String asset } /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -596,7 +624,9 @@ public Response getWithResponse( } /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -637,6 +667,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -648,7 +679,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -656,7 +687,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -698,6 +731,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -707,14 +741,16 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -733,7 +769,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -751,7 +789,9 @@ public AssetInner createOrUpdate( } /** - * Creates or updates an Asset in the Media Services account. + * Create or update an Asset + * + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -770,7 +810,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -805,6 +847,7 @@ private Mono> deleteWithResponseAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -816,14 +859,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -859,6 +904,7 @@ private Mono> deleteWithResponseAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -868,13 +914,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -890,7 +938,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -905,7 +955,9 @@ public void delete(String resourceGroupName, String accountName, String assetNam } /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -923,7 +975,9 @@ public Response deleteWithResponse( } /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -964,6 +1018,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -975,7 +1030,7 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -983,7 +1038,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1025,6 +1082,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1034,14 +1092,16 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1060,7 +1120,9 @@ private Mono updateAsync( } /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1077,7 +1139,9 @@ public AssetInner update(String resourceGroupName, String accountName, String as } /** - * Updates an existing Asset in the Media Services account. + * Update an Asset + * + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1096,8 +1160,10 @@ public Response updateWithResponse( } /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1139,6 +1205,7 @@ private Mono> listContainerSasWithResponseAsync } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1150,7 +1217,7 @@ private Mono> listContainerSasWithResponseAsync resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1158,8 +1225,10 @@ private Mono> listContainerSasWithResponseAsync } /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1206,6 +1275,7 @@ private Mono> listContainerSasWithResponseAsync } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1215,15 +1285,17 @@ private Mono> listContainerSasWithResponseAsync resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1242,8 +1314,10 @@ private Mono listContainerSasAsync( } /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1261,8 +1335,10 @@ public AssetContainerSasInner listContainerSas( } /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1286,7 +1362,9 @@ public Response listContainerSasWithResponse( } /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1322,6 +1400,7 @@ private Mono> getEncryptionKe if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1333,14 +1412,16 @@ private Mono> getEncryptionKe resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1377,6 +1458,7 @@ private Mono> getEncryptionKe if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1386,13 +1468,15 @@ private Mono> getEncryptionKe resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1411,7 +1495,9 @@ private Mono getEncryptionKeyAsync( } /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1428,7 +1514,9 @@ public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( } /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1447,7 +1535,9 @@ public Response getEncryptionKeyWithRe } /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1483,6 +1573,7 @@ private Mono> listStreamingLocators if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1494,14 +1585,16 @@ private Mono> listStreamingLocators resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1538,6 +1631,7 @@ private Mono> listStreamingLocators if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1547,13 +1641,15 @@ private Mono> listStreamingLocators resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1571,7 +1667,9 @@ private Mono listStreamingLocatorsAsync( } /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1588,7 +1686,9 @@ public ListStreamingLocatorsResponseInner listStreamingLocators( } /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AsyncOperationResultImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AsyncOperationResultImpl.java new file mode 100644 index 000000000000..2e7e187ebab0 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AsyncOperationResultImpl.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.implementation; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationResult; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationStatus; + +public final class AsyncOperationResultImpl implements AsyncOperationResult { + private AsyncOperationResultInner innerObject; + + private final com.azure.resourcemanager.mediaservices.MediaServicesManager serviceManager; + + AsyncOperationResultImpl( + AsyncOperationResultInner innerObject, + com.azure.resourcemanager.mediaservices.MediaServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public ManagementError error() { + return this.innerModel().error(); + } + + public String name() { + return this.innerModel().name(); + } + + public AsyncOperationStatus status() { + return this.innerModel().status(); + } + + public AsyncOperationResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.mediaservices.MediaServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesBuilder.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesBuilder.java index 3edc77deff3e..064529839489 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesBuilder.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesBuilder.java @@ -119,24 +119,26 @@ public AzureMediaServicesBuilder serializerAdapter(SerializerAdapter serializerA * @return an instance of AzureMediaServicesImpl. */ public AzureMediaServicesImpl buildClient() { - if (endpoint == null) { - this.endpoint = "https://management.azure.com"; - } - if (environment == null) { - this.environment = AzureEnvironment.AZURE; - } - if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); - } - if (defaultPollInterval == null) { - this.defaultPollInterval = Duration.ofSeconds(30); - } - if (serializerAdapter == null) { - this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); AzureMediaServicesImpl client = new AzureMediaServicesImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesImpl.java index bc9359be4ed4..1b1a6afb711d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AzureMediaServicesImpl.java @@ -80,18 +80,6 @@ public String getEndpoint() { return this.endpoint; } - /** Api Version. */ - private final String apiVersion; - - /** - * Gets Api Version. - * - * @return the apiVersion value. - */ - public String getApiVersion() { - return this.apiVersion; - } - /** The HTTP pipeline to send requests through. */ private final HttpPipeline httpPipeline; @@ -402,7 +390,6 @@ public StreamingEndpointsClient getStreamingEndpoints() { this.defaultPollInterval = defaultPollInterval; this.subscriptionId = subscriptionId; this.endpoint = endpoint; - this.apiVersion = "2021-11-01"; this.accountFilters = new AccountFiltersClientImpl(this); this.operations = new OperationsClientImpl(this); this.mediaservices = new MediaservicesClientImpl(this); diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java index 3c8f429896c1..3d56bec7d036 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java @@ -174,7 +174,9 @@ Mono> listNext( } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -210,6 +212,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -220,7 +223,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -239,7 +242,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -276,6 +281,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -284,7 +290,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -302,7 +308,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -324,7 +332,9 @@ private PagedFlux listAsync( } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -344,7 +354,9 @@ private PagedFlux listAsync(String resourceGroupName, Str } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -367,7 +379,9 @@ private PagedFlux listAsync( } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -385,7 +399,9 @@ public PagedIterable list(String resourceGroupName, Strin } /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -406,7 +422,9 @@ public PagedIterable list( } /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -443,6 +461,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -454,14 +473,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -499,6 +520,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -508,13 +530,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -533,7 +557,9 @@ private Mono getAsync( } /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -549,7 +575,9 @@ public ContentKeyPolicyInner get(String resourceGroupName, String accountName, S } /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -567,7 +595,9 @@ public Response getWithResponse( } /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -609,6 +639,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -620,7 +651,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -628,7 +659,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -675,6 +708,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -684,14 +718,16 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -710,7 +746,9 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -728,7 +766,9 @@ public ContentKeyPolicyInner createOrUpdate( } /** - * Create or update a Content Key Policy in the Media Services account. + * Create or update an Content Key Policy + * + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -753,7 +793,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -789,6 +831,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -800,14 +843,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -844,6 +889,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -853,13 +899,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -876,7 +924,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -891,7 +941,9 @@ public void delete(String resourceGroupName, String accountName, String contentK } /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -909,7 +961,9 @@ public Response deleteWithResponse( } /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -951,6 +1005,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -962,7 +1017,7 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -970,7 +1025,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1017,6 +1074,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1026,14 +1084,16 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1052,7 +1112,9 @@ private Mono updateAsync( } /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1070,7 +1132,9 @@ public ContentKeyPolicyInner update( } /** - * Updates an existing Content Key Policy in the Media Services account. + * Update a Content Key Policy + * + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1094,7 +1158,9 @@ public Response updateWithResponse( } /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1131,6 +1197,7 @@ private Mono> getPolicyPropertiesWithS return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1142,14 +1209,16 @@ private Mono> getPolicyPropertiesWithS resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1187,6 +1256,7 @@ private Mono> getPolicyPropertiesWithS return Mono .error(new IllegalArgumentException("Parameter contentKeyPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1196,13 +1266,15 @@ private Mono> getPolicyPropertiesWithS resourceGroupName, accountName, contentKeyPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1220,7 +1292,9 @@ private Mono getPolicyPropertiesWithSecretsAsyn } /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1237,7 +1311,9 @@ public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( } /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java index d7eac97084c6..e44c1cf07bb6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java @@ -177,7 +177,9 @@ Mono> listNext( } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -214,6 +216,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -225,7 +228,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, filter, orderby, accept, @@ -243,7 +246,9 @@ private Mono> listSinglePageAsync( } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -286,6 +291,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -295,7 +301,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, filter, orderby, accept, @@ -312,7 +318,9 @@ private Mono> listSinglePageAsync( } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -333,7 +341,9 @@ private PagedFlux listAsync( } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -353,7 +363,9 @@ private PagedFlux listAsync(String resourceGroupName, String accountNa } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -380,7 +392,9 @@ private PagedFlux listAsync( } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -398,7 +412,9 @@ public PagedIterable list(String resourceGroupName, String accountName } /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -423,7 +439,9 @@ public PagedIterable list( } /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -462,6 +480,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -474,14 +493,16 @@ private Mono> getWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -521,6 +542,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -531,13 +553,15 @@ private Mono> getWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -556,7 +580,9 @@ private Mono getAsync( } /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -573,7 +599,9 @@ public JobInner get(String resourceGroupName, String accountName, String transfo } /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -592,7 +620,9 @@ public Response getWithResponse( } /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -637,6 +667,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -649,7 +680,7 @@ private Mono> createWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -657,7 +688,9 @@ private Mono> createWithResponseAsync( } /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -708,6 +741,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -718,14 +752,16 @@ private Mono> createWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -745,7 +781,9 @@ private Mono createAsync( } /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -764,7 +802,9 @@ public JobInner create( } /** - * Creates a Job. + * Create Job + * + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -790,7 +830,9 @@ public Response createWithResponse( } /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -829,6 +871,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -841,14 +884,16 @@ private Mono> deleteWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -888,6 +933,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -898,13 +944,15 @@ private Mono> deleteWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -922,7 +970,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -938,7 +988,9 @@ public void delete(String resourceGroupName, String accountName, String transfor } /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -957,8 +1009,10 @@ public Response deleteWithResponse( } /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1003,6 +1057,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1015,7 +1070,7 @@ private Mono> updateWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1023,8 +1078,10 @@ private Mono> updateWithResponseAsync( } /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1075,6 +1132,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1085,15 +1143,17 @@ private Mono> updateWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1113,8 +1173,10 @@ private Mono updateAsync( } /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1133,8 +1195,10 @@ public JobInner update( } /** - * Update is only supported for description and priority. Updating Priority will take effect when the Job state is - * Queued or Scheduled and depending on the timing the priority update may be ignored. + * Update Job + * + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1160,7 +1224,9 @@ public Response updateWithResponse( } /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1199,6 +1265,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1211,14 +1278,16 @@ private Mono> cancelJobWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1258,6 +1327,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1268,13 +1338,15 @@ private Mono> cancelJobWithResponseAsync( accountName, transformName, jobName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1293,7 +1365,9 @@ private Mono cancelJobAsync( } /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1309,7 +1383,9 @@ public void cancelJob(String resourceGroupName, String accountName, String trans } /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java index aeb6434e2132..c6e702f2c8b2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java @@ -34,6 +34,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mediaservices.fluent.LiveEventsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner; import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput; import com.azure.resourcemanager.mediaservices.models.LiveEventListResult; @@ -214,6 +215,39 @@ Mono>> reset( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/liveEventOperations/{operationId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> asyncOperation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/liveEvents/{liveEventName}/operationLocations/{operationId}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> operationLocation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("liveEventName") String liveEventName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -226,7 +260,9 @@ Mono> listNext( } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -256,6 +292,7 @@ private Mono> listSinglePageAsync(String resourceG if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -266,7 +303,7 @@ private Mono> listSinglePageAsync(String resourceG this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -282,7 +319,9 @@ private Mono> listSinglePageAsync(String resourceG } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -314,6 +353,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -322,7 +362,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -337,7 +377,9 @@ private Mono> listSinglePageAsync( } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -353,7 +395,9 @@ private PagedFlux listAsync(String resourceGroupName, String acc } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -371,7 +415,9 @@ private PagedFlux listAsync(String resourceGroupName, String acc } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -386,7 +432,9 @@ public PagedIterable list(String resourceGroupName, String accou } /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -402,7 +450,9 @@ public PagedIterable list(String resourceGroupName, String accou } /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -437,6 +487,7 @@ private Mono> getWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -448,14 +499,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -491,6 +544,7 @@ private Mono> getWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -500,13 +554,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -523,7 +579,9 @@ private Mono getAsync(String resourceGroupName, String accountNa } /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -539,7 +597,9 @@ public LiveEventInner get(String resourceGroupName, String accountName, String l } /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -557,7 +617,9 @@ public Response getWithResponse( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -603,6 +665,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -614,7 +677,7 @@ private Mono>> createWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, autoStart, parameters, accept, @@ -623,7 +686,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -671,6 +736,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -680,7 +746,7 @@ private Mono>> createWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, autoStart, parameters, accept, @@ -688,7 +754,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -720,7 +788,9 @@ private PollerFlux, LiveEventInner> beginCreateAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -751,7 +821,9 @@ private PollerFlux, LiveEventInner> beginCreateAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -774,7 +846,9 @@ public SyncPoller, LiveEventInner> beginCreate( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -800,7 +874,9 @@ public SyncPoller, LiveEventInner> beginCreate( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -825,7 +901,9 @@ private Mono createAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -846,7 +924,9 @@ private Mono createAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -873,7 +953,9 @@ private Mono createAsync( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -896,7 +978,9 @@ public LiveEventInner create( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -915,7 +999,9 @@ public LiveEventInner create( } /** - * Creates a new live event. + * Create Live Event + * + *

Creates a new live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -981,6 +1067,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -992,7 +1079,7 @@ private Mono>> updateWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1046,6 +1133,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1055,7 +1143,7 @@ private Mono>> updateWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); @@ -1245,7 +1333,9 @@ public LiveEventInner update( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1280,6 +1370,7 @@ private Mono>> deleteWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1291,14 +1382,16 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1334,6 +1427,7 @@ private Mono>> deleteWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1343,13 +1437,15 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1370,7 +1466,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1393,7 +1491,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1410,7 +1510,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1428,7 +1530,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1446,7 +1550,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1466,7 +1572,9 @@ private Mono deleteAsync( } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1481,7 +1589,9 @@ public void delete(String resourceGroupName, String accountName, String liveEven } /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1497,7 +1607,9 @@ public void delete(String resourceGroupName, String accountName, String liveEven } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1532,6 +1644,7 @@ private Mono>> allocateWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1543,14 +1656,16 @@ private Mono>> allocateWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1586,6 +1701,7 @@ private Mono>> allocateWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1595,13 +1711,15 @@ private Mono>> allocateWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1623,7 +1741,9 @@ private PollerFlux, Void> beginAllocateAsync( } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1646,7 +1766,9 @@ private PollerFlux, Void> beginAllocateAsync( } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1663,7 +1785,9 @@ public SyncPoller, Void> beginAllocate( } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1681,7 +1805,9 @@ public SyncPoller, Void> beginAllocate( } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1699,7 +1825,9 @@ private Mono allocateAsync(String resourceGroupName, String accountName, S } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1719,7 +1847,9 @@ private Mono allocateAsync( } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1734,7 +1864,9 @@ public void allocate(String resourceGroupName, String accountName, String liveEv } /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1750,7 +1882,9 @@ public void allocate(String resourceGroupName, String accountName, String liveEv } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1785,6 +1919,7 @@ private Mono>> startWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1796,14 +1931,16 @@ private Mono>> startWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1839,6 +1976,7 @@ private Mono>> startWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1848,13 +1986,15 @@ private Mono>> startWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1875,7 +2015,9 @@ private PollerFlux, Void> beginStartAsync( } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1898,7 +2040,9 @@ private PollerFlux, Void> beginStartAsync( } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1915,7 +2059,9 @@ public SyncPoller, Void> beginStart( } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1933,7 +2079,9 @@ public SyncPoller, Void> beginStart( } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1951,7 +2099,9 @@ private Mono startAsync(String resourceGroupName, String accountName, Stri } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1970,7 +2120,9 @@ private Mono startAsync(String resourceGroupName, String accountName, Stri } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1985,7 +2137,9 @@ public void start(String resourceGroupName, String accountName, String liveEvent } /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2001,7 +2155,9 @@ public void start(String resourceGroupName, String accountName, String liveEvent } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2042,6 +2198,7 @@ private Mono>> stopWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2053,7 +2210,7 @@ private Mono>> stopWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -2061,7 +2218,9 @@ private Mono>> stopWithResponseAsync( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2107,6 +2266,7 @@ private Mono>> stopWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2116,14 +2276,16 @@ private Mono>> stopWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2146,7 +2308,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2174,7 +2338,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2192,7 +2358,9 @@ public SyncPoller, Void> beginStop( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2215,7 +2383,9 @@ public SyncPoller, Void> beginStop( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2235,7 +2405,9 @@ private Mono stopAsync( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2260,7 +2432,9 @@ private Mono stopAsync( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2277,7 +2451,9 @@ public void stop( } /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2299,8 +2475,10 @@ public void stop( } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2336,6 +2514,7 @@ private Mono>> resetWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2347,15 +2526,17 @@ private Mono>> resetWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2392,6 +2573,7 @@ private Mono>> resetWithResponseAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2401,14 +2583,16 @@ private Mono>> resetWithResponseAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2430,8 +2614,10 @@ private PollerFlux, Void> beginResetAsync( } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2455,8 +2641,10 @@ private PollerFlux, Void> beginResetAsync( } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2474,8 +2662,10 @@ public SyncPoller, Void> beginReset( } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2494,8 +2684,10 @@ public SyncPoller, Void> beginReset( } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2514,8 +2706,10 @@ private Mono resetAsync(String resourceGroupName, String accountName, Stri } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2535,8 +2729,10 @@ private Mono resetAsync(String resourceGroupName, String accountName, Stri } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2552,8 +2748,10 @@ public void reset(String resourceGroupName, String accountName, String liveEvent } /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -2569,6 +2767,357 @@ public void reset(String resourceGroupName, String accountName, String liveEvent resetAsync(resourceGroupName, accountName, liveEventName, context).block(); } + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono asyncOperationAsync( + String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (liveEventName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + liveEventName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (liveEventName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + liveEventName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono operationLocationAsync( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + return operationLocationAsync(resourceGroupName, accountName, liveEventName, operationId).block(); + } + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { + return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId, context) + .block(); + } + /** * Get the next page of items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java index a00623b1619c..4dbab9fe3643 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java @@ -10,7 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mediaservices.fluent.LiveEventsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationResult; import com.azure.resourcemanager.mediaservices.models.LiveEvent; import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput; import com.azure.resourcemanager.mediaservices.models.LiveEvents; @@ -108,6 +110,59 @@ public void reset(String resourceGroupName, String accountName, String liveEvent this.serviceClient().reset(resourceGroupName, accountName, liveEventName, context); } + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); + if (inner != null) { + return new AsyncOperationResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + Response inner = + this.serviceClient().asyncOperationWithResponse(resourceGroupName, accountName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new AsyncOperationResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public LiveEvent operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + LiveEventInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, liveEventName, operationId); + if (inner != null) { + return new LiveEventImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { + Response inner = + this + .serviceClient() + .operationLocationWithResponse(resourceGroupName, accountName, liveEventName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new LiveEventImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + public LiveEvent getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputImpl.java index 905ffe617c95..790568ced5b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputImpl.java @@ -52,6 +52,10 @@ public Duration archiveWindowLength() { return this.innerModel().archiveWindowLength(); } + public Duration rewindWindowLength() { + return this.innerModel().rewindWindowLength(); + } + public String manifestName() { return this.innerModel().manifestName(); } @@ -162,6 +166,11 @@ public LiveOutputImpl withArchiveWindowLength(Duration archiveWindowLength) { return this; } + public LiveOutputImpl withRewindWindowLength(Duration rewindWindowLength) { + this.innerModel().withRewindWindowLength(rewindWindowLength); + return this; + } + public LiveOutputImpl withManifestName(String manifestName) { this.innerModel().withManifestName(manifestName); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java index fba6db4612c9..7eca18a7cbcd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java @@ -32,6 +32,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mediaservices.fluent.LiveOutputsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveOutputInner; import com.azure.resourcemanager.mediaservices.models.LiveOutputListResult; import java.nio.ByteBuffer; @@ -132,6 +133,41 @@ Mono>> delete( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/liveOutputOperations/{operationId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> asyncOperation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/liveEvents/{liveEventName}/liveOutputs/{liveOutputName}/operationLocations" + + "/{operationId}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> operationLocation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("liveEventName") String liveEventName, + @PathParam("liveOutputName") String liveOutputName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -144,7 +180,9 @@ Mono> listNext( } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -179,6 +217,7 @@ private Mono> listSinglePageAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -190,7 +229,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -206,7 +245,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -242,6 +283,7 @@ private Mono> listSinglePageAsync( if (liveEventName == null) { return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -251,7 +293,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, liveEventName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -266,7 +308,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -284,7 +328,9 @@ private PagedFlux listAsync(String resourceGroupName, String ac } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -304,7 +350,9 @@ private PagedFlux listAsync( } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -320,7 +368,9 @@ public PagedIterable list(String resourceGroupName, String acco } /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -338,7 +388,9 @@ public PagedIterable list( } /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -377,6 +429,7 @@ private Mono> getWithResponseAsync( if (liveOutputName == null) { return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -389,14 +442,16 @@ private Mono> getWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -436,6 +491,7 @@ private Mono> getWithResponseAsync( if (liveOutputName == null) { return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -446,13 +502,15 @@ private Mono> getWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -471,7 +529,9 @@ private Mono getAsync( } /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -489,7 +549,9 @@ public LiveOutputInner get( } /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -508,7 +570,9 @@ public Response getWithResponse( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -557,6 +621,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -569,7 +634,7 @@ private Mono>> createWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -577,7 +642,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -628,6 +695,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -638,14 +706,16 @@ private Mono>> createWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -677,7 +747,9 @@ private PollerFlux, LiveOutputInner> beginCreateAsyn } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -708,7 +780,9 @@ private PollerFlux, LiveOutputInner> beginCreateAsyn } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -732,7 +806,9 @@ public SyncPoller, LiveOutputInner> beginCreate( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -758,7 +834,9 @@ public SyncPoller, LiveOutputInner> beginCreate( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -783,7 +861,9 @@ private Mono createAsync( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -810,7 +890,9 @@ private Mono createAsync( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -833,7 +915,9 @@ public LiveOutputInner create( } /** - * Creates a new live output. + * Create Live Output + * + *

Creates a new live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -858,7 +942,9 @@ public LiveOutputInner create( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -897,6 +983,7 @@ private Mono>> deleteWithResponseAsync( if (liveOutputName == null) { return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -909,14 +996,16 @@ private Mono>> deleteWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -956,6 +1045,7 @@ private Mono>> deleteWithResponseAsync( if (liveOutputName == null) { return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -966,13 +1056,15 @@ private Mono>> deleteWithResponseAsync( accountName, liveEventName, liveOutputName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -995,7 +1087,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1019,7 +1113,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1037,7 +1133,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1056,7 +1154,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1076,7 +1176,9 @@ private Mono deleteAsync( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1097,7 +1199,9 @@ private Mono deleteAsync( } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1113,7 +1217,9 @@ public void delete(String resourceGroupName, String accountName, String liveEven } /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1130,6 +1236,383 @@ public void delete( deleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).block(); } + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono asyncOperationAsync( + String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (liveEventName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); + } + if (liveOutputName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + liveEventName, + liveOutputName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (liveEventName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveEventName is required and cannot be null.")); + } + if (liveOutputName == null) { + return Mono.error(new IllegalArgumentException("Parameter liveOutputName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + liveEventName, + liveOutputName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono operationLocationAsync( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + return operationLocationAsync(resourceGroupName, accountName, liveEventName, liveOutputName, operationId) + .block(); + } + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context) + .block(); + } + /** * Get the next page of items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java index 06c38093e028..a7fddf0e792c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java @@ -10,7 +10,9 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mediaservices.fluent.LiveOutputsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.LiveOutputInner; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationResult; import com.azure.resourcemanager.mediaservices.models.LiveOutput; import com.azure.resourcemanager.mediaservices.models.LiveOutputs; @@ -74,6 +76,67 @@ public void delete( this.serviceClient().delete(resourceGroupName, accountName, liveEventName, liveOutputName, context); } + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); + if (inner != null) { + return new AsyncOperationResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + Response inner = + this.serviceClient().asyncOperationWithResponse(resourceGroupName, accountName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new AsyncOperationResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + LiveOutputInner inner = + this + .serviceClient() + .operationLocation(resourceGroupName, accountName, liveEventName, liveOutputName, operationId); + if (inner != null) { + return new LiveOutputImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context) { + Response inner = + this + .serviceClient() + .operationLocationWithResponse( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new LiveOutputImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + public LiveOutput getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java index 23a63e55f5e3..54ad1a9b224c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java @@ -69,7 +69,9 @@ Mono> checkNameAvailability( } /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -102,6 +104,7 @@ private Mono> checkNameAvailabi } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -111,7 +114,7 @@ private Mono> checkNameAvailabi this.client.getEndpoint(), this.client.getSubscriptionId(), locationName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -119,7 +122,9 @@ private Mono> checkNameAvailabi } /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -153,6 +158,7 @@ private Mono> checkNameAvailabi } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -160,14 +166,16 @@ private Mono> checkNameAvailabi this.client.getEndpoint(), this.client.getSubscriptionId(), locationName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -184,7 +192,9 @@ private Mono checkNameAvailabilityAsync( } /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -200,7 +210,9 @@ public EntityNameAvailabilityCheckOutputInner checkNameAvailability( } /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java index 4830aa3fd9d9..ca2d6460af9c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java @@ -72,7 +72,9 @@ Mono get( } /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -102,6 +104,7 @@ private Mono getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -112,14 +115,16 @@ private Mono getWithResponseAsync( this.client.getSubscriptionId(), locationName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -150,6 +155,7 @@ private Mono getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -158,13 +164,15 @@ private Mono getWithResponseAsync( this.client.getSubscriptionId(), locationName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -179,7 +187,9 @@ private Mono getAsync(String locationName, String operationId } /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -194,7 +204,9 @@ public MediaServiceInner get(String locationName, String operationId) { } /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java index 2f51d79be805..36b404e645cc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java @@ -72,7 +72,9 @@ Mono> get( } /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -102,6 +104,7 @@ private Mono> getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -112,14 +115,16 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), locationName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -150,6 +155,7 @@ private Mono> getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -158,13 +164,15 @@ private Mono> getWithResponseAsync( this.client.getSubscriptionId(), locationName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -179,7 +187,9 @@ private Mono getAsync(String locationName, Str } /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -194,7 +204,9 @@ public MediaServiceOperationStatusInner get(String locationName, String operatio } /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java index 765a85234684..712af5768658 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java @@ -211,7 +211,9 @@ Mono> listBySubscriptionNext( } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -238,6 +240,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -247,7 +250,7 @@ private Mono> listByResourceGroupSinglePageAsyn this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -263,7 +266,9 @@ private Mono> listByResourceGroupSinglePageAsyn } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param context The context to associate with this operation. @@ -292,6 +297,7 @@ private Mono> listByResourceGroupSinglePageAsyn return Mono .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -299,7 +305,7 @@ private Mono> listByResourceGroupSinglePageAsyn this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -314,7 +320,9 @@ private Mono> listByResourceGroupSinglePageAsyn } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -329,7 +337,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGro } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param context The context to associate with this operation. @@ -346,7 +356,9 @@ private PagedFlux listByResourceGroupAsync(String resourceGro } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -360,7 +372,9 @@ public PagedIterable listByResourceGroup(String resourceGroup } /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param context The context to associate with this operation. @@ -375,7 +389,9 @@ public PagedIterable listByResourceGroup(String resourceGroup } /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -407,6 +423,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -417,14 +434,16 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -457,6 +476,7 @@ private Mono> getByResourceGroupWithResponseAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -465,13 +485,15 @@ private Mono> getByResourceGroupWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -487,7 +509,9 @@ private Mono getByResourceGroupAsync(String resourceGroupName } /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -502,7 +526,9 @@ public MediaServiceInner getByResourceGroup(String resourceGroupName, String acc } /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -519,7 +545,9 @@ public Response getByResourceGroupWithResponse( } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -556,6 +584,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -566,7 +595,7 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -574,7 +603,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -612,6 +643,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -620,14 +652,16 @@ private Mono>> createOrUpdateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -653,7 +687,9 @@ private PollerFlux, MediaServiceInner> beginCreate } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -677,7 +713,9 @@ private PollerFlux, MediaServiceInner> beginCreate } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -694,7 +732,9 @@ public SyncPoller, MediaServiceInner> beginCreateO } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -712,7 +752,9 @@ public SyncPoller, MediaServiceInner> beginCreateO } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -731,7 +773,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -751,7 +795,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -768,7 +814,9 @@ public MediaServiceInner createOrUpdate( } /** - * Creates or updates a Media Services account. + * Create or update a Media Services account + * + *

Creates or updates a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -786,7 +834,9 @@ public MediaServiceInner createOrUpdate( } /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -816,6 +866,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -826,14 +877,16 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -865,6 +918,7 @@ private Mono> deleteWithResponseAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -873,13 +927,15 @@ private Mono> deleteWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -894,7 +950,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { } /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -908,7 +966,9 @@ public void delete(String resourceGroupName, String accountName) { } /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -924,7 +984,9 @@ public Response deleteWithResponse(String resourceGroupName, String accoun } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -961,6 +1023,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -971,7 +1034,7 @@ private Mono>> updateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -979,7 +1042,9 @@ private Mono>> updateWithResponseAsync( } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1017,6 +1082,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1025,14 +1091,16 @@ private Mono>> updateWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1057,7 +1125,9 @@ private PollerFlux, MediaServiceInner> beginUpdate } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1081,7 +1151,9 @@ private PollerFlux, MediaServiceInner> beginUpdate } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1098,7 +1170,9 @@ public SyncPoller, MediaServiceInner> beginUpdate( } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1116,7 +1190,9 @@ public SyncPoller, MediaServiceInner> beginUpdate( } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1135,7 +1211,9 @@ private Mono updateAsync( } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1155,7 +1233,9 @@ private Mono updateAsync( } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1171,7 +1251,9 @@ public MediaServiceInner update(String resourceGroupName, String accountName, Me } /** - * Updates an existing Media Services account. + * Update a Media Services account + * + *

Updates an existing Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1189,7 +1271,9 @@ public MediaServiceInner update( } /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1226,6 +1310,7 @@ private Mono> syncStorageKeysWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1236,7 +1321,7 @@ private Mono> syncStorageKeysWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1244,7 +1329,9 @@ private Mono> syncStorageKeysWithResponseAsync( } /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1282,6 +1369,7 @@ private Mono> syncStorageKeysWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1290,14 +1378,16 @@ private Mono> syncStorageKeysWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1315,7 +1405,9 @@ private Mono syncStorageKeysAsync( } /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1330,7 +1422,9 @@ public void syncStorageKeys(String resourceGroupName, String accountName, SyncSt } /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1348,7 +1442,9 @@ public Response syncStorageKeysWithResponse( } /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1385,6 +1481,7 @@ private Mono> listEdgePoliciesWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1395,7 +1492,7 @@ private Mono> listEdgePoliciesWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1403,7 +1500,9 @@ private Mono> listEdgePoliciesWithResponseAsync( } /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1441,6 +1540,7 @@ private Mono> listEdgePoliciesWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1449,14 +1549,16 @@ private Mono> listEdgePoliciesWithResponseAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1474,7 +1576,9 @@ private Mono listEdgePoliciesAsync( } /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1491,7 +1595,9 @@ public EdgePoliciesInner listEdgePolicies( } /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1509,7 +1615,9 @@ public Response listEdgePoliciesWithResponse( } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1530,17 +1638,13 @@ private Mono> listSinglePageAsync() { new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( context -> service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - this.client.getApiVersion(), - accept, - context)) + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context)) .>map( res -> new PagedResponseBase<>( @@ -1554,7 +1658,9 @@ private Mono> listSinglePageAsync() { } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1577,15 +1683,11 @@ private Mono> listSinglePageAsync(Context conte new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service - .list( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - this.client.getApiVersion(), - accept, - context) + .list(this.client.getEndpoint(), this.client.getSubscriptionId(), apiVersion, accept, context) .map( res -> new PagedResponseBase<>( @@ -1598,7 +1700,9 @@ private Mono> listSinglePageAsync(Context conte } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1611,7 +1715,9 @@ private PagedFlux listAsync() { } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -1626,7 +1732,9 @@ private PagedFlux listAsync(Context context) { } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1638,7 +1746,9 @@ public PagedIterable list() { } /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java index 5c2480c3da7a..d81fa486dd38 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java @@ -71,7 +71,9 @@ Mono get( } /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -114,6 +116,7 @@ private Mono getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -127,14 +130,16 @@ private Mono getWithResponseAsync( assetName, trackName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -183,6 +188,7 @@ private Mono getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -194,13 +200,15 @@ private Mono getWithResponseAsync( assetName, trackName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -220,7 +228,9 @@ private Mono getAsync( } /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -239,7 +249,9 @@ public AssetTrackInner get( } /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java index 71c85ff55dc4..47cc964f273d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java @@ -71,7 +71,9 @@ Mono> get( } /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -114,6 +116,7 @@ private Mono> getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -127,14 +130,16 @@ private Mono> getWithResponseAsync( assetName, trackName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -183,6 +188,7 @@ private Mono> getWithResponseAsync( if (operationId == null) { return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -194,13 +200,15 @@ private Mono> getWithResponseAsync( assetName, trackName, operationId, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -220,7 +228,9 @@ private Mono getAsync( } /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -239,7 +249,9 @@ public AssetTrackOperationStatusInner get( } /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java index 3eb04d3db83d..887830a6ca73 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java @@ -62,7 +62,9 @@ Mono> list( } /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -76,15 +78,17 @@ private Mono> listWithResponseAsync() { new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil - .withContext( - context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + .withContext(context -> service.list(this.client.getEndpoint(), apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -100,13 +104,16 @@ private Mono> listWithResponseAsync(Context c new IllegalArgumentException( "Parameter this.client.getEndpoint() is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); - return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + return service.list(this.client.getEndpoint(), apiVersion, accept, context); } /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -118,7 +125,9 @@ private Mono listAsync() { } /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -130,7 +139,9 @@ public OperationCollectionInner list() { } /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java index 5c8421801568..1c47d0b68b6d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java @@ -123,7 +123,9 @@ Mono> delete( } /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -155,6 +157,7 @@ private Mono> listWithRespons if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -165,14 +168,16 @@ private Mono> listWithRespons this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -205,6 +210,7 @@ private Mono> listWithRespons if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -213,13 +219,15 @@ private Mono> listWithRespons this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -235,7 +243,9 @@ private Mono listAsync(String resource } /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -250,7 +260,9 @@ public PrivateEndpointConnectionListResultInner list(String resourceGroupName, S } /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -268,7 +280,9 @@ public Response listWithResponse( } /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -304,6 +318,7 @@ private Mono> getWithResponseAsync( if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -315,14 +330,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -359,6 +376,7 @@ private Mono> getWithResponseAsync( if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -368,13 +386,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -391,7 +411,9 @@ private Mono getAsync(String resourceGroupName, } /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -407,7 +429,9 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String accou } /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -425,7 +449,9 @@ public Response getWithResponse( } /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -467,6 +493,7 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -478,7 +505,7 @@ private Mono> createOrUpdateWithRespons resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -486,7 +513,9 @@ private Mono> createOrUpdateWithRespons } /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -533,6 +562,7 @@ private Mono> createOrUpdateWithRespons } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -542,14 +572,16 @@ private Mono> createOrUpdateWithRespons resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -568,7 +600,9 @@ private Mono createOrUpdateAsync( } /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -586,7 +620,9 @@ public PrivateEndpointConnectionInner createOrUpdate( } /** - * Update an existing private endpoint connection. + * Update a private endpoint connection. + * + *

Update an existing private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -609,7 +645,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -643,6 +681,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -654,14 +693,16 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -697,6 +738,7 @@ private Mono> deleteWithResponseAsync( if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -706,13 +748,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -728,7 +772,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -743,7 +789,9 @@ public void delete(String resourceGroupName, String accountName, String name) { } /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java index 74cd5f270b4c..f6cf5ccd5c04 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java @@ -86,7 +86,9 @@ Mono> get( } /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -117,6 +119,7 @@ private Mono> listWithResponseAsync if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -127,14 +130,16 @@ private Mono> listWithResponseAsync this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -166,6 +171,7 @@ private Mono> listWithResponseAsync if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -174,13 +180,15 @@ private Mono> listWithResponseAsync this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -195,7 +203,9 @@ private Mono listAsync(String resourceGroupN } /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -210,7 +220,9 @@ public PrivateLinkResourceListResultInner list(String resourceGroupName, String } /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -227,7 +239,9 @@ public Response listWithResponse( } /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -262,6 +276,7 @@ private Mono> getWithResponseAsync( if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -273,14 +288,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -316,6 +333,7 @@ private Mono> getWithResponseAsync( if (name == null) { return Mono.error(new IllegalArgumentException("Parameter name is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -325,13 +343,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, name, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -348,7 +368,9 @@ private Mono getAsync(String resourceGroupName, String } /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -364,7 +386,9 @@ public PrivateLinkResourceInner get(String resourceGroupName, String accountName } /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java index eb91fc9f3017..d63e5d6f8acf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java @@ -34,6 +34,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.mediaservices.fluent.StreamingEndpointsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointSkuInfoListResultInner; import com.azure.resourcemanager.mediaservices.models.StreamingEndpointListResult; @@ -215,6 +216,39 @@ Mono>> scale( @HeaderParam("Accept") String accept, Context context); + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/streamingEndpointOperations/{operationId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> asyncOperation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + + @Headers({"Content-Type: application/json"}) + @Get( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" + + "/{accountName}/streamingEndpoints/{streamingEndpointName}/operationLocations/{operationId}") + @ExpectedResponses({200, 202}) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> operationLocation( + @HostParam("$host") String endpoint, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("accountName") String accountName, + @PathParam("streamingEndpointName") String streamingEndpointName, + @PathParam("operationId") String operationId, + @QueryParam("api-version") String apiVersion, + @HeaderParam("Accept") String accept, + Context context); + @Headers({"Content-Type: application/json"}) @Get("{nextLink}") @ExpectedResponses({200}) @@ -227,7 +261,9 @@ Mono> listNext( } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -258,6 +294,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -268,7 +305,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -284,7 +321,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -316,6 +355,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -324,7 +364,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -339,7 +379,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -355,7 +397,9 @@ private PagedFlux listAsync(String resourceGroupName, St } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -373,7 +417,9 @@ private PagedFlux listAsync(String resourceGroupName, St } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -388,7 +434,9 @@ public PagedIterable list(String resourceGroupName, Stri } /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -404,7 +452,9 @@ public PagedIterable list(String resourceGroupName, Stri } /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -440,6 +490,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -451,14 +502,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -495,6 +548,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -504,13 +558,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -528,7 +584,9 @@ private Mono getAsync( } /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -544,7 +602,9 @@ public StreamingEndpointInner get(String resourceGroupName, String accountName, } /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -562,7 +622,9 @@ public Response getWithResponse( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -609,6 +671,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -620,7 +683,7 @@ private Mono>> createWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, autoStart, parameters, accept, @@ -629,7 +692,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -678,6 +743,7 @@ private Mono>> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -687,7 +753,7 @@ private Mono>> createWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, autoStart, parameters, accept, @@ -695,7 +761,9 @@ private Mono>> createWithResponseAsync( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -727,7 +795,9 @@ private PollerFlux, StreamingEndpointInner> b } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -763,7 +833,9 @@ private PollerFlux, StreamingEndpointInner> b } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -787,7 +859,9 @@ public SyncPoller, StreamingEndpointInner> be } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -813,7 +887,9 @@ public SyncPoller, StreamingEndpointInner> be } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -838,7 +914,9 @@ private Mono createAsync( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -859,7 +937,9 @@ private Mono createAsync( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -886,7 +966,9 @@ private Mono createAsync( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -909,7 +991,9 @@ public StreamingEndpointInner create( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -928,7 +1012,9 @@ public StreamingEndpointInner create( } /** - * Creates a streaming endpoint. + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -954,7 +1040,9 @@ public StreamingEndpointInner create( } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -996,6 +1084,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1007,7 +1096,7 @@ private Mono>> updateWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1015,7 +1104,9 @@ private Mono>> updateWithResponseAsync( } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1062,6 +1153,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1071,14 +1163,16 @@ private Mono>> updateWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1105,7 +1199,9 @@ private PollerFlux, StreamingEndpointInner> b } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1138,7 +1234,9 @@ private PollerFlux, StreamingEndpointInner> b } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1156,7 +1254,9 @@ public SyncPoller, StreamingEndpointInner> be } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1180,7 +1280,9 @@ public SyncPoller, StreamingEndpointInner> be } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1200,7 +1302,9 @@ private Mono updateAsync( } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1225,7 +1329,9 @@ private Mono updateAsync( } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1243,7 +1349,9 @@ public StreamingEndpointInner update( } /** - * Updates a existing streaming endpoint. + * Update StreamingEndpoint + * + *

Updates a existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1266,7 +1374,9 @@ public StreamingEndpointInner update( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1302,6 +1412,7 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1313,14 +1424,16 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1357,6 +1470,7 @@ private Mono>> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1366,13 +1480,15 @@ private Mono>> deleteWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1394,7 +1510,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1417,7 +1535,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1434,7 +1554,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1452,7 +1574,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1470,7 +1594,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1490,7 +1616,9 @@ private Mono deleteAsync( } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1505,7 +1633,9 @@ public void delete(String resourceGroupName, String accountName, String streamin } /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1521,7 +1651,9 @@ public void delete(String resourceGroupName, String accountName, String streamin } /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1557,6 +1689,7 @@ private Mono> skusWithResponse return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1568,14 +1701,16 @@ private Mono> skusWithResponse resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1612,6 +1747,7 @@ private Mono> skusWithResponse return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1621,13 +1757,15 @@ private Mono> skusWithResponse resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1645,7 +1783,9 @@ private Mono skusAsync( } /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1662,7 +1802,9 @@ public StreamingEndpointSkuInfoListResultInner skus( } /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1680,7 +1822,9 @@ public Response skusWithResponse( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1716,6 +1860,7 @@ private Mono>> startWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1727,14 +1872,16 @@ private Mono>> startWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1771,6 +1918,7 @@ private Mono>> startWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1780,13 +1928,15 @@ private Mono>> startWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1808,7 +1958,9 @@ private PollerFlux, Void> beginStartAsync( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1831,7 +1983,9 @@ private PollerFlux, Void> beginStartAsync( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1848,7 +2002,9 @@ public SyncPoller, Void> beginStart( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1866,7 +2022,9 @@ public SyncPoller, Void> beginStart( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1884,7 +2042,9 @@ private Mono startAsync(String resourceGroupName, String accountName, Stri } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1904,7 +2064,9 @@ private Mono startAsync( } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1919,7 +2081,9 @@ public void start(String resourceGroupName, String accountName, String streaming } /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1935,7 +2099,9 @@ public void start(String resourceGroupName, String accountName, String streaming } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1971,6 +2137,7 @@ private Mono>> stopWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1982,14 +2149,16 @@ private Mono>> stopWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2026,6 +2195,7 @@ private Mono>> stopWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2035,13 +2205,15 @@ private Mono>> stopWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2063,7 +2235,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2086,7 +2260,9 @@ private PollerFlux, Void> beginStopAsync( } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2103,7 +2279,9 @@ public SyncPoller, Void> beginStop( } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2121,7 +2299,9 @@ public SyncPoller, Void> beginStop( } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2139,7 +2319,9 @@ private Mono stopAsync(String resourceGroupName, String accountName, Strin } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2159,7 +2341,9 @@ private Mono stopAsync( } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2174,7 +2358,9 @@ public void stop(String resourceGroupName, String accountName, String streamingE } /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2190,7 +2376,9 @@ public void stop(String resourceGroupName, String accountName, String streamingE } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2235,6 +2423,7 @@ private Mono>> scaleWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -2246,7 +2435,7 @@ private Mono>> scaleWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -2254,7 +2443,9 @@ private Mono>> scaleWithResponseAsync( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2301,6 +2492,7 @@ private Mono>> scaleWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2022-08-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -2310,14 +2502,16 @@ private Mono>> scaleWithResponseAsync( resourceGroupName, accountName, streamingEndpointName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2343,7 +2537,9 @@ private PollerFlux, Void> beginScaleAsync( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2371,7 +2567,9 @@ private PollerFlux, Void> beginScaleAsync( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2392,7 +2590,9 @@ public SyncPoller, Void> beginScale( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2416,7 +2616,9 @@ public SyncPoller, Void> beginScale( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2439,7 +2641,9 @@ private Mono scaleAsync( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2464,7 +2668,9 @@ private Mono scaleAsync( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2484,7 +2690,9 @@ public void scale( } /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -2505,6 +2713,372 @@ public void scale( scaleAsync(resourceGroupName, accountName, streamingEndpointName, parameters, context).block(); } + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> asyncOperationWithResponseAsync( + String resourceGroupName, String accountName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .asyncOperation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono asyncOperationAsync( + String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (streamingEndpointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> + service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + streamingEndpointName, + operationId, + apiVersion, + accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response} on successful completion of {@link + * Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> operationLocationWithResponseAsync( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono + .error( + new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (accountName == null) { + return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); + } + if (streamingEndpointName == null) { + return Mono + .error(new IllegalArgumentException("Parameter streamingEndpointName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String apiVersion = "2022-08-01"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .operationLocation( + this.client.getEndpoint(), + this.client.getSubscriptionId(), + resourceGroupName, + accountName, + streamingEndpointName, + operationId, + apiVersion, + accept, + context); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono operationLocationAsync( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + return operationLocationWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + return operationLocationAsync(resourceGroupName, accountName, streamingEndpointName, operationId).block(); + } + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, streamingEndpointName, operationId, context) + .block(); + } + /** * Get the next page of items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java index cc8454685e72..e41510b6f438 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java @@ -10,8 +10,10 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mediaservices.fluent.StreamingEndpointsClient; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointInner; import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointSkuInfoListResultInner; +import com.azure.resourcemanager.mediaservices.models.AsyncOperationResult; import com.azure.resourcemanager.mediaservices.models.StreamingEndpoint; import com.azure.resourcemanager.mediaservices.models.StreamingEndpointSkuInfoListResult; import com.azure.resourcemanager.mediaservices.models.StreamingEndpoints; @@ -133,6 +135,64 @@ public void scale( this.serviceClient().scale(resourceGroupName, accountName, streamingEndpointName, parameters, context); } + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); + if (inner != null) { + return new AsyncOperationResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + Response inner = + this.serviceClient().asyncOperationWithResponse(resourceGroupName, accountName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new AsyncOperationResultImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + StreamingEndpointInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, streamingEndpointName, operationId); + if (inner != null) { + return new StreamingEndpointImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context) { + Response inner = + this + .serviceClient() + .operationLocationWithResponse( + resourceGroupName, accountName, streamingEndpointName, operationId, context); + if (inner != null) { + return new SimpleResponse<>( + inner.getRequest(), + inner.getStatusCode(), + inner.getHeaders(), + new StreamingEndpointImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + public StreamingEndpoint getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java index 7b24dee0fcf8..a25ea161a1bd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java @@ -173,7 +173,9 @@ Mono> listNext( } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -209,6 +211,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -219,7 +222,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -238,7 +241,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -275,6 +280,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -283,7 +289,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -301,7 +307,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -323,7 +331,9 @@ private PagedFlux listAsync( } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -343,7 +353,9 @@ private PagedFlux listAsync(String resourceGroupName, Str } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -366,7 +378,9 @@ private PagedFlux listAsync( } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -384,7 +398,9 @@ public PagedIterable list(String resourceGroupName, Strin } /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -405,7 +421,9 @@ public PagedIterable list( } /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -442,6 +460,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -453,14 +472,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -498,6 +519,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -507,13 +529,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -532,7 +556,9 @@ private Mono getAsync( } /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -548,7 +574,9 @@ public StreamingLocatorInner get(String resourceGroupName, String accountName, S } /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -566,7 +594,9 @@ public Response getWithResponse( } /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -608,6 +638,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -619,7 +650,7 @@ private Mono> createWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -627,7 +658,9 @@ private Mono> createWithResponseAsync( } /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -674,6 +707,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -683,14 +717,16 @@ private Mono> createWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -709,7 +745,9 @@ private Mono createAsync( } /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -727,7 +765,9 @@ public StreamingLocatorInner create( } /** - * Create a Streaming Locator in the Media Services account. + * Create a Streaming Locator + * + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -751,7 +791,9 @@ public Response createWithResponse( } /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -787,6 +829,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -798,14 +841,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -842,6 +887,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -851,13 +897,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -874,7 +922,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -889,7 +939,9 @@ public void delete(String resourceGroupName, String accountName, String streamin } /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -907,7 +959,9 @@ public Response deleteWithResponse( } /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -944,6 +998,7 @@ private Mono> listContentKeysWithResponse return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -955,14 +1010,16 @@ private Mono> listContentKeysWithResponse resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1000,6 +1057,7 @@ private Mono> listContentKeysWithResponse return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1009,13 +1067,15 @@ private Mono> listContentKeysWithResponse resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1033,7 +1093,9 @@ private Mono listContentKeysAsync( } /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1050,7 +1112,9 @@ public ListContentKeysResponseInner listContentKeys( } /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1068,7 +1132,9 @@ public Response listContentKeysWithResponse( } /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1105,6 +1171,7 @@ private Mono> listPathsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1116,14 +1183,16 @@ private Mono> listPathsWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1161,6 +1230,7 @@ private Mono> listPathsWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingLocatorName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1170,13 +1240,15 @@ private Mono> listPathsWithResponseAsync( resourceGroupName, accountName, streamingLocatorName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1194,7 +1266,9 @@ private Mono listPathsAsync( } /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1210,7 +1284,9 @@ public ListPathsResponseInner listPaths(String resourceGroupName, String account } /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java index 8754075e7322..11d39d41f5e0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java @@ -138,7 +138,9 @@ Mono> listNext( } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -174,6 +176,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -184,7 +187,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -203,7 +206,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -240,6 +245,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -248,7 +254,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, top, orderby, @@ -266,7 +272,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -288,7 +296,9 @@ private PagedFlux listAsync( } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -308,7 +318,9 @@ private PagedFlux listAsync(String resourceGroupName, Stri } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -331,7 +343,9 @@ private PagedFlux listAsync( } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -349,7 +363,9 @@ public PagedIterable list(String resourceGroupName, String } /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -370,7 +386,9 @@ public PagedIterable list( } /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -407,6 +425,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -418,14 +437,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -463,6 +484,7 @@ private Mono> getWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -472,13 +494,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -496,7 +520,9 @@ private Mono getAsync( } /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -512,7 +538,9 @@ public StreamingPolicyInner get(String resourceGroupName, String accountName, St } /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -530,7 +558,9 @@ public Response getWithResponse( } /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -572,6 +602,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -583,7 +614,7 @@ private Mono> createWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -591,7 +622,9 @@ private Mono> createWithResponseAsync( } /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -638,6 +671,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -647,14 +681,16 @@ private Mono> createWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -673,7 +709,9 @@ private Mono createAsync( } /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -691,7 +729,9 @@ public StreamingPolicyInner create( } /** - * Create a Streaming Policy in the Media Services account. + * Create a Streaming Policy + * + *

Create a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -715,7 +755,9 @@ public Response createWithResponse( } /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -751,6 +793,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -762,14 +805,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -806,6 +851,7 @@ private Mono> deleteWithResponseAsync( return Mono .error(new IllegalArgumentException("Parameter streamingPolicyName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -815,13 +861,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, streamingPolicyName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -838,7 +886,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -853,7 +903,9 @@ public void delete(String resourceGroupName, String accountName, String streamin } /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java index f5205f8e7552..d166454380b3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java @@ -170,7 +170,9 @@ Mono>> updateTrackData( } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -206,6 +208,7 @@ private Mono> listSinglePageAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -217,7 +220,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context)) .>map( @@ -228,7 +231,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -265,6 +270,7 @@ private Mono> listSinglePageAsync( if (assetName == null) { return Mono.error(new IllegalArgumentException("Parameter assetName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -274,7 +280,7 @@ private Mono> listSinglePageAsync( resourceGroupName, accountName, assetName, - this.client.getApiVersion(), + apiVersion, accept, context) .map( @@ -284,7 +290,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -300,7 +308,9 @@ private PagedFlux listAsync(String resourceGroupName, String ac } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -318,7 +328,9 @@ private PagedFlux listAsync( } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -334,7 +346,9 @@ public PagedIterable list(String resourceGroupName, String acco } /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -352,7 +366,9 @@ public PagedIterable list( } /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -391,6 +407,7 @@ private Mono> getWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -403,14 +420,16 @@ private Mono> getWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -450,6 +469,7 @@ private Mono> getWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -460,13 +480,15 @@ private Mono> getWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -485,7 +507,9 @@ private Mono getAsync( } /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -502,7 +526,9 @@ public AssetTrackInner get(String resourceGroupName, String accountName, String } /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -521,7 +547,9 @@ public Response getWithResponse( } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -566,6 +594,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -578,7 +607,7 @@ private Mono>> createOrUpdateWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -586,7 +615,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -637,6 +668,7 @@ private Mono>> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -647,14 +679,16 @@ private Mono>> createOrUpdateWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -682,7 +716,9 @@ private PollerFlux, AssetTrackInner> beginCreateOrUp } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -713,7 +749,9 @@ private PollerFlux, AssetTrackInner> beginCreateOrUp } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -733,7 +771,9 @@ public SyncPoller, AssetTrackInner> beginCreateOrUpd } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -759,7 +799,9 @@ public SyncPoller, AssetTrackInner> beginCreateOrUpd } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -780,7 +822,9 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -807,7 +851,9 @@ private Mono createOrUpdateAsync( } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -826,7 +872,9 @@ public AssetTrackInner createOrUpdate( } /** - * Create or update a Track in the asset. + * Create or update a Track + * + *

Create or update a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -851,7 +899,9 @@ public AssetTrackInner createOrUpdate( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -890,6 +940,7 @@ private Mono>> deleteWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -902,14 +953,16 @@ private Mono>> deleteWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -949,6 +1002,7 @@ private Mono>> deleteWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -959,13 +1013,15 @@ private Mono>> deleteWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -988,7 +1044,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1012,7 +1070,9 @@ private PollerFlux, Void> beginDeleteAsync( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1030,7 +1090,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1049,7 +1111,9 @@ public SyncPoller, Void> beginDelete( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1068,7 +1132,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1089,7 +1155,9 @@ private Mono deleteAsync( } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1105,7 +1173,9 @@ public void delete(String resourceGroupName, String accountName, String assetNam } /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1123,7 +1193,9 @@ public void delete( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1168,6 +1240,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1180,7 +1253,7 @@ private Mono>> updateWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -1188,7 +1261,9 @@ private Mono>> updateWithResponseAsync( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1239,6 +1314,7 @@ private Mono>> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1249,14 +1325,16 @@ private Mono>> updateWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1284,7 +1362,9 @@ private PollerFlux, AssetTrackInner> beginUpdateAsyn } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1315,7 +1395,9 @@ private PollerFlux, AssetTrackInner> beginUpdateAsyn } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1334,7 +1416,9 @@ public SyncPoller, AssetTrackInner> beginUpdate( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1360,7 +1444,9 @@ public SyncPoller, AssetTrackInner> beginUpdate( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1381,7 +1467,9 @@ private Mono updateAsync( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1408,7 +1496,9 @@ private Mono updateAsync( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1427,7 +1517,9 @@ public AssetTrackInner update( } /** - * Updates an existing Track in the asset. + * Update an Track + * + *

Updates an existing Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1452,10 +1544,12 @@ public AssetTrackInner update( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1494,6 +1588,7 @@ private Mono>> updateTrackDataWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1506,17 +1601,19 @@ private Mono>> updateTrackDataWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1556,6 +1653,7 @@ private Mono>> updateTrackDataWithResponseAsync( if (trackName == null) { return Mono.error(new IllegalArgumentException("Parameter trackName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1566,16 +1664,18 @@ private Mono>> updateTrackDataWithResponseAsync( accountName, assetName, trackName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1598,10 +1698,12 @@ private PollerFlux, Void> beginUpdateTrackDataAsync( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1625,10 +1727,12 @@ private PollerFlux, Void> beginUpdateTrackDataAsync( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1646,10 +1750,12 @@ public SyncPoller, Void> beginUpdateTrackData( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1668,10 +1774,12 @@ public SyncPoller, Void> beginUpdateTrackData( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1691,10 +1799,12 @@ private Mono updateTrackDataAsync( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1715,10 +1825,12 @@ private Mono updateTrackDataAsync( } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1734,10 +1846,12 @@ public void updateTrackData(String resourceGroupName, String accountName, String } /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java index a6faf5af40f5..6ef0377ab284 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java @@ -155,7 +155,9 @@ Mono> listNext( } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -189,6 +191,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -199,7 +202,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, orderby, accept, @@ -217,7 +220,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -252,6 +257,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -260,7 +266,7 @@ private Mono> listSinglePageAsync( this.client.getSubscriptionId(), resourceGroupName, accountName, - this.client.getApiVersion(), + apiVersion, filter, orderby, accept, @@ -277,7 +283,9 @@ private Mono> listSinglePageAsync( } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -297,7 +305,9 @@ private PagedFlux listAsync( } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -316,7 +326,9 @@ private PagedFlux listAsync(String resourceGroupName, String acc } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -337,7 +349,9 @@ private PagedFlux listAsync( } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -354,7 +368,9 @@ public PagedIterable list(String resourceGroupName, String accou } /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -373,7 +389,9 @@ public PagedIterable list( } /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -408,6 +426,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -419,14 +438,16 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -462,6 +483,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -471,13 +493,15 @@ private Mono> getWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -494,7 +518,9 @@ private Mono getAsync(String resourceGroupName, String accountNa } /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -510,7 +536,9 @@ public TransformInner get(String resourceGroupName, String accountName, String t } /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -528,7 +556,9 @@ public Response getWithResponse( } /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -571,6 +601,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -582,7 +613,7 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -590,7 +621,9 @@ private Mono> createOrUpdateWithResponseAsync( } /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -638,6 +671,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -647,14 +681,16 @@ private Mono> createOrUpdateWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -674,7 +710,9 @@ private Mono createOrUpdateAsync( } /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -693,7 +731,9 @@ public TransformInner createOrUpdate( } /** - * Creates or updates a new Transform. + * Create or Update Transform + * + *

Creates or updates a new Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -718,7 +758,9 @@ public Response createOrUpdateWithResponse( } /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -753,6 +795,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -764,14 +807,16 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -807,6 +852,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -816,13 +862,15 @@ private Mono> deleteWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, accept, context); } /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -838,7 +886,9 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str } /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -853,7 +903,9 @@ public void delete(String resourceGroupName, String accountName, String transfor } /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -871,7 +923,9 @@ public Response deleteWithResponse( } /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -914,6 +968,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -925,7 +980,7 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context)) @@ -933,7 +988,9 @@ private Mono> updateWithResponseAsync( } /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -981,6 +1038,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } + final String apiVersion = "2021-11-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -990,14 +1048,16 @@ private Mono> updateWithResponseAsync( resourceGroupName, accountName, transformName, - this.client.getApiVersion(), + apiVersion, parameters, accept, context); } /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1017,7 +1077,9 @@ private Mono updateAsync( } /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -1036,7 +1098,9 @@ public TransformInner update( } /** - * Updates a Transform. + * Update Transform + * + *

Updates a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java index 944cd795b60a..4d433de456ef 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java @@ -20,8 +20,8 @@ @Fluent public final class AbsoluteClipTime extends ClipTime { /* - * The time position on the timeline of the input media. It is usually - * specified as an ISO8601 period. e.g PT30S for 30 seconds. + * The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S + * for 30 seconds. */ @JsonProperty(value = "time", required = true) private Duration time; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java index fe0b595b7f0e..06a719f4dd85 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java @@ -18,8 +18,8 @@ public final class AccessControl { private DefaultAction defaultAction; /* - * The IP allow list for access control in Key Delivery. If the default - * action is set to 'Allow', the IP allow list must be empty. + * The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list + * must be empty. */ @JsonProperty(value = "ipAllowList") private List ipAllowList; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java index 51a1a6132e51..673465df12f5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilterCollection.java @@ -19,8 +19,8 @@ public final class AccountFilterCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java index 1b787faf16e4..7df847b626ed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountFilters.java @@ -11,7 +11,9 @@ /** Resource collection API of AccountFilters. */ public interface AccountFilters { /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface AccountFilters { PagedIterable list(String resourceGroupName, String accountName); /** - * List Account Filters in the Media Services account. + * List Account Filters + * + *

List Account Filters in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -36,7 +40,9 @@ public interface AccountFilters { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -49,7 +55,9 @@ public interface AccountFilters { AccountFilter get(String resourceGroupName, String accountName, String filterName); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -64,7 +72,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +86,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String filterName); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -90,7 +102,9 @@ Response getWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -101,7 +115,9 @@ Response getWithResponse( AccountFilter getById(String id); /** - * Get the details of an Account Filter in the Media Services account. + * Get an Account Filter. + * + *

Get the details of an Account Filter in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -113,7 +129,9 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -123,7 +141,9 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes an Account Filter in the Media Services account. + * Delete an Account Filter. + * + *

Deletes an Account Filter in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java index 96e7d148b5ba..0c768e59e829 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Asset.java @@ -283,8 +283,10 @@ interface WithStorageAccountName { Asset refresh(Context context); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -295,8 +297,10 @@ interface WithStorageAccountName { AssetContainerSas listContainerSas(ListContainerSasInput parameters); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param parameters The request parameters. * @param context The context to associate with this operation. @@ -308,7 +312,9 @@ interface WithStorageAccountName { Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -317,7 +323,9 @@ interface WithStorageAccountName { StorageEncryptedAssetDecryptionData getEncryptionKey(); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -329,7 +337,9 @@ interface WithStorageAccountName { Response getEncryptionKeyWithResponse(Context context); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -338,7 +348,9 @@ interface WithStorageAccountName { ListStreamingLocatorsResponse listStreamingLocators(); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java index 0e5fa4f2093a..a78249131045 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java @@ -19,8 +19,8 @@ public final class AssetCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java index 943b68b58c34..ff7e812061d1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilterCollection.java @@ -19,8 +19,8 @@ public final class AssetFilterCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java index 7d5d58ed47d8..3cbb3a8c64d3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetFilters.java @@ -11,7 +11,9 @@ /** Resource collection API of AssetFilters. */ public interface AssetFilters { /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -24,7 +26,9 @@ public interface AssetFilters { PagedIterable list(String resourceGroupName, String accountName, String assetName); /** - * List Asset Filters associated with the specified Asset. + * List Asset Filters + * + *

List Asset Filters associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -38,7 +42,9 @@ public interface AssetFilters { PagedIterable list(String resourceGroupName, String accountName, String assetName, Context context); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -52,7 +58,9 @@ public interface AssetFilters { AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -68,7 +76,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -97,7 +109,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -108,7 +122,9 @@ Response deleteWithResponse( AssetFilter getById(String id); /** - * Get the details of an Asset Filter associated with the specified Asset. + * Get an Asset Filter. + * + *

Get the details of an Asset Filter associated with the specified Asset. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -120,7 +136,9 @@ Response deleteWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -130,7 +148,9 @@ Response deleteWithResponse( void deleteById(String id); /** - * Deletes an Asset Filter associated with the specified Asset. + * Delete an Asset Filter. + * + *

Deletes an Asset Filter associated with the specified Asset. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrack.java index b08c1c9b5649..e95dc333117b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetTrack.java @@ -163,10 +163,12 @@ interface WithTrack { AssetTrack refresh(Context context); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -174,10 +176,12 @@ interface WithTrack { void updateTrackData(); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java index 0308aa0b6673..8e51ed49af2a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java @@ -11,7 +11,9 @@ /** Resource collection API of Assets. */ public interface Assets { /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface Assets { PagedIterable list(String resourceGroupName, String accountName); /** - * List Assets in the Media Services account with optional filtering and ordering. + * List Assets + * + *

List Assets in the Media Services account with optional filtering and ordering. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -41,7 +45,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -54,7 +60,9 @@ PagedIterable list( Asset get(String resourceGroupName, String accountName, String assetName); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -68,7 +76,9 @@ PagedIterable list( Response getWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -80,7 +90,9 @@ PagedIterable list( void delete(String resourceGroupName, String accountName, String assetName); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -94,8 +106,10 @@ PagedIterable list( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -110,8 +124,10 @@ AssetContainerSas listContainerSas( String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** - * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The - * signatures are derived from the storage account keys. + * List the Asset URLs + * + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -131,7 +147,9 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -145,7 +163,9 @@ StorageEncryptedAssetDecryptionData getEncryptionKey( String resourceGroupName, String accountName, String assetName); /** - * Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * Gets the Asset storage key + * + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -161,7 +181,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -174,7 +196,9 @@ Response getEncryptionKeyWithResponse( ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName); /** - * Lists Streaming Locators which are associated with this asset. + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -189,7 +213,9 @@ Response listStreamingLocatorsWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -200,7 +226,9 @@ Response listStreamingLocatorsWithResponse( Asset getById(String id); /** - * Get the details of an Asset in the Media Services account. + * Get an Asset + * + *

Get the details of an Asset in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -212,7 +240,9 @@ Response listStreamingLocatorsWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -222,7 +252,9 @@ Response listStreamingLocatorsWithResponse( void deleteById(String id); /** - * Deletes an Asset in the Media Services account. + * Delete an Asset. + * + *

Deletes an Asset in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationResult.java new file mode 100644 index 000000000000..4a4cf6861483 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationResult.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.models; + +import com.azure.core.management.exception.ManagementError; +import com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner; + +/** An immutable client-side representation of AsyncOperationResult. */ +public interface AsyncOperationResult { + /** + * Gets the error property: The error object. + * + * @return the error value. + */ + ManagementError error(); + + /** + * Gets the name property: Operation Id of the async operation. + * + * @return the name value. + */ + String name(); + + /** + * Gets the status property: Operation status of the async operation. + * + * @return the status value. + */ + AsyncOperationStatus status(); + + /** + * Gets the inner com.azure.resourcemanager.mediaservices.fluent.models.AsyncOperationResultInner object. + * + * @return the inner object. + */ + AsyncOperationResultInner innerModel(); +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java new file mode 100644 index 000000000000..8420e69fa361 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AsyncOperationStatus. */ +public final class AsyncOperationStatus extends ExpandableStringEnum { + /** Static value Succeeded for AsyncOperationStatus. */ + public static final AsyncOperationStatus SUCCEEDED = fromString("Succeeded"); + + /** Static value Failed for AsyncOperationStatus. */ + public static final AsyncOperationStatus FAILED = fromString("Failed"); + + /** Static value InProgress for AsyncOperationStatus. */ + public static final AsyncOperationStatus IN_PROGRESS = fromString("InProgress"); + + /** + * Creates or finds a AsyncOperationStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding AsyncOperationStatus. + */ + @JsonCreator + public static AsyncOperationStatus fromString(String name) { + return fromString(name, AsyncOperationStatus.class); + } + + /** + * Gets known AsyncOperationStatus values. + * + * @return known AsyncOperationStatus values. + */ + public static Collection values() { + return values(AsyncOperationStatus.class); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java index 8885b8773a99..131ff1a130b7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalyzerPreset.java @@ -26,34 +26,28 @@ @Fluent public class AudioAnalyzerPreset extends Preset { /* - * The language for the audio payload in the input using the BCP-47 format - * of 'language tag-region' (e.g: 'en-US'). If you know the language of - * your content, it is recommended that you specify it. The language must - * be specified explicitly for AudioAnalysisMode::Basic, since automatic - * language detection is not included in basic mode. If the language isn't - * specified or set to null, automatic language detection will choose the - * first language detected and process with the selected language for the - * duration of the file. It does not currently support dynamically - * switching between languages after the first language is detected. The - * automatic detection works best with audio recordings with clearly - * discernable speech. If automatic detection fails to find the language, - * transcription would fallback to 'en-US'." The list of supported - * languages is available here: + * The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). + * If you know the language of your content, it is recommended that you specify it. The language must be specified + * explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If + * the language isn't specified or set to null, automatic language detection will choose the first language + * detected and process with the selected language for the duration of the file. It does not currently support + * dynamically switching between languages after the first language is detected. The automatic detection works best + * with audio recordings with clearly discernable speech. If automatic detection fails to find the language, + * transcription would fallback to 'en-US'." The list of supported languages is available here: * https://go.microsoft.com/fwlink/?linkid=2109463 */ @JsonProperty(value = "audioLanguage") private String audioLanguage; /* - * Determines the set of audio analysis operations to be performed. If - * unspecified, the Standard AudioAnalysisMode would be chosen. + * Determines the set of audio analysis operations to be performed. If unspecified, the Standard AudioAnalysisMode + * would be chosen. */ @JsonProperty(value = "mode") private AudioAnalysisMode mode; /* - * Dictionary containing key value pairs for parameters not exposed in the - * preset itself + * Dictionary containing key value pairs for parameters not exposed in the preset itself */ @JsonProperty(value = "experimentalOptions") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java index a1e5e8311489..9233d32b584f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java @@ -26,8 +26,8 @@ @Fluent public class AudioTrackDescriptor extends TrackDescriptor { /* - * Optional designation for single channel audio tracks. Can be used to - * combine the tracks into stereo or multi-channel audio tracks. + * Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or + * multi-channel audio tracks. */ @JsonProperty(value = "channelMapping") private ChannelMapping channelMapping; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java index 9650ad25e317..1cbf0fd16c22 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java @@ -16,9 +16,8 @@ @Fluent public final class BuiltInStandardEncoderPreset extends Preset { /* - * Optional configuration settings for encoder. Configurations is only - * supported for ContentAwareEncoding and H265ContentAwareEncoding - * BuiltInStandardEncoderPreset. + * Optional configuration settings for encoder. Configurations is only supported for ContentAwareEncoding and + * H265ContentAwareEncoding BuiltInStandardEncoderPreset. */ @JsonProperty(value = "configurations") private PresetConfigurations configurations; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java index 3bb97588e345..307235861f96 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java @@ -17,8 +17,7 @@ public final class CheckNameAvailabilityInput { private String name; /* - * The account type. For a Media Services account, this should be - * 'MediaServices'. + * The account type. For a Media Services account, this should be 'MediaServices'. */ @JsonProperty(value = "type") private String type; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java index 5e69419c4a2b..b670086cf0a7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java @@ -26,8 +26,7 @@ @Fluent public class Codec { /* - * An optional label for the codec. The label can be used to control muxing - * behavior. + * An optional label for the codec. The label can be used to control muxing behavior. */ @JsonProperty(value = "label") private String label; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java index 4a55795f5c4c..14569a495c5b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java @@ -24,8 +24,7 @@ public final class CommonEncryptionCbcs { private List clearTracks; /* - * Representing default content key for each encryption scheme and separate - * content keys for specific tracks + * Representing default content key for each encryption scheme and separate content keys for specific tracks */ @JsonProperty(value = "contentKeys") private StreamingPolicyContentKeys contentKeys; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java index a4283981ade0..5b3f85f151df 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java @@ -24,8 +24,7 @@ public final class CommonEncryptionCenc { private List clearTracks; /* - * Representing default content key for each encryption scheme and separate - * content keys for specific tracks + * Representing default content key for each encryption scheme and separate content keys for specific tracks */ @JsonProperty(value = "contentKeys") private StreamingPolicyContentKeys contentKeys; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java index 985af592731e..2e52d2747c65 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java @@ -11,7 +11,9 @@ /** Resource collection API of ContentKeyPolicies. */ public interface ContentKeyPolicies { /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface ContentKeyPolicies { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Content Key Policies in the account. + * List Content Key Policies + * + *

Lists the Content Key Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -41,7 +45,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -54,7 +60,9 @@ PagedIterable list( ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -69,7 +77,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +108,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -110,7 +124,9 @@ ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( String resourceGroupName, String accountName, String contentKeyPolicyName); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -125,7 +141,9 @@ Response getPolicyPropertiesWithSecretsWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -136,7 +154,9 @@ Response getPolicyPropertiesWithSecretsWithResponse( ContentKeyPolicy getById(String id); /** - * Get the details of a Content Key Policy in the Media Services account. + * Get a Content Key Policy + * + *

Get the details of a Content Key Policy in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -148,7 +168,9 @@ Response getPolicyPropertiesWithSecretsWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -158,7 +180,9 @@ Response getPolicyPropertiesWithSecretsWithResponse( void deleteById(String id); /** - * Deletes a Content Key Policy in the Media Services account. + * Delete a Content Key Policy + * + *

Deletes a Content Key Policy in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java index ef7c35fed629..373ebbcdcd6e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java @@ -215,7 +215,9 @@ interface WithOptions { ContentKeyPolicy refresh(Context context); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -224,7 +226,9 @@ interface WithOptions { ContentKeyPolicyProperties getPolicyPropertiesWithSecrets(); /** - * Get a Content Key Policy including secret values. + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java index 9b8ef7c09195..05975a9f85ed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java @@ -19,8 +19,8 @@ public final class ContentKeyPolicyCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java index c1fa240cd48a..0fdb74c0f5f9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java @@ -29,8 +29,7 @@ public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolic private String fairPlayPfxPassword; /* - * The Base64 representation of FairPlay certificate in PKCS 12 (pfx) - * format (including private key). + * The Base64 representation of FairPlay certificate in PKCS 12 (pfx) format (including private key). */ @JsonProperty(value = "fairPlayPfx", required = true) private String fairPlayPfx; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java index 2d45cfc8322a..ebee9b711cf8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java @@ -31,8 +31,7 @@ public final class ContentKeyPolicyOption { private ContentKeyPolicyConfiguration configuration; /* - * The requirements that must be met to deliver keys with this - * configuration + * The requirements that must be met to deliver keys with this configuration */ @JsonProperty(value = "restriction", required = true) private ContentKeyPolicyRestriction restriction; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java index 97d705d6ef63..122d3b3817aa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java @@ -20,8 +20,7 @@ public final class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction private boolean bestEffort; /* - * Configures the restriction control bits. Must be between 0 and 3 - * inclusive. + * Configures the restriction control bits. Must be between 0 and 3 inclusive. */ @JsonProperty(value = "configurationData", required = true) private int configurationData; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java index a49867e9d483..84f1eb68c22c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java @@ -13,50 +13,44 @@ @Fluent public final class ContentKeyPolicyPlayReadyPlayRight { /* - * The amount of time that the license is valid after the license is first - * used to play content. + * The amount of time that the license is valid after the license is first used to play content. */ @JsonProperty(value = "firstPlayExpiration") private Duration firstPlayExpiration; /* - * Configures the Serial Copy Management System (SCMS) in the license. Must - * be between 0 and 3 inclusive. + * Configures the Serial Copy Management System (SCMS) in the license. Must be between 0 and 3 inclusive. */ @JsonProperty(value = "scmsRestriction") private Integer scmsRestriction; /* - * Configures Automatic Gain Control (AGC) and Color Stripe in the license. - * Must be between 0 and 3 inclusive. + * Configures Automatic Gain Control (AGC) and Color Stripe in the license. Must be between 0 and 3 inclusive. */ @JsonProperty(value = "agcAndColorStripeRestriction") private Integer agcAndColorStripeRestriction; /* - * Configures the Explicit Analog Television Output Restriction in the - * license. Configuration data must be between 0 and 3 inclusive. + * Configures the Explicit Analog Television Output Restriction in the license. Configuration data must be between + * 0 and 3 inclusive. */ @JsonProperty(value = "explicitAnalogTelevisionOutputRestriction") private ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction explicitAnalogTelevisionOutputRestriction; /* - * Enables the Image Constraint For Analog Component Video Restriction in - * the license. + * Enables the Image Constraint For Analog Component Video Restriction in the license. */ @JsonProperty(value = "digitalVideoOnlyContentRestriction", required = true) private boolean digitalVideoOnlyContentRestriction; /* - * Enables the Image Constraint For Analog Component Video Restriction in - * the license. + * Enables the Image Constraint For Analog Component Video Restriction in the license. */ @JsonProperty(value = "imageConstraintForAnalogComponentVideoRestriction", required = true) private boolean imageConstraintForAnalogComponentVideoRestriction; /* - * Enables the Image Constraint For Analog Component Video Restriction in - * the license. + * Enables the Image Constraint For Analog Component Video Restriction in the license. */ @JsonProperty(value = "imageConstraintForAnalogComputerMonitorRestriction", required = true) private boolean imageConstraintForAnalogComputerMonitorRestriction; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java index d94d4ca5d8eb..7ac89ac41deb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java @@ -17,8 +17,7 @@ @Fluent public final class ContentKeyPolicyX509CertificateTokenKey extends ContentKeyPolicyRestrictionTokenKey { /* - * The raw data field of a certificate in PKCS 12 format (X509Certificate2 - * in .NET) + * The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET) */ @JsonProperty(value = "rawBody", required = true) private byte[] rawBody; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java index ade3fe9b1e47..9b127bc8871e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java @@ -11,8 +11,7 @@ @Fluent public final class DefaultKey { /* - * Label can be used to specify Content Key when creating a Streaming - * Locator + * Label can be used to specify Content Key when creating a Streaming Locator */ @JsonProperty(value = "label") private String label; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java index 1b04c203bf11..f8540e43247b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EdgeUsageDataCollectionPolicy.java @@ -11,22 +11,19 @@ @Fluent public final class EdgeUsageDataCollectionPolicy { /* - * Usage data collection frequency in ISO 8601 duration format e.g. PT10M , - * PT5H. + * Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H. */ @JsonProperty(value = "dataCollectionFrequency") private String dataCollectionFrequency; /* - * Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , - * PT5H. + * Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H. */ @JsonProperty(value = "dataReportingFrequency") private String dataReportingFrequency; /* - * Maximum time for which the functionality of the device will not be - * hampered for not reporting the usage data. + * Maximum time for which the functionality of the device will not be hampered for not reporting the usage data. */ @JsonProperty(value = "maxAllowedUnreportedUsageDuration") private String maxAllowedUnreportedUsageDuration; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java index a95cde38f29c..83b186cc91c4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java @@ -24,20 +24,17 @@ public final class EnvelopeEncryption { private List clearTracks; /* - * Representing default content key for each encryption scheme and separate - * content keys for specific tracks + * Representing default content key for each encryption scheme and separate content keys for specific tracks */ @JsonProperty(value = "contentKeys") private StreamingPolicyContentKeys contentKeys; /* - * Template for the URL of the custom service delivering keys to end user - * players. Not required when using Azure Media Services for issuing keys. - * The template supports replaceable tokens that the service will update at - * runtime with the value specific to the request. The currently supported - * token values are {AlternativeMediaId}, which is replaced with the value - * of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is - * replaced with the value of identifier of the key being requested. + * Template for the URL of the custom service delivering keys to end user players. Not required when using Azure + * Media Services for issuing keys. The template supports replaceable tokens that the service will update at + * runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, + * which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced + * with the value of identifier of the key being requested. */ @JsonProperty(value = "customKeyAcquisitionUrlTemplate") private String customKeyAcquisitionUrlTemplate; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java index 66ac9ee57b93..2479f55b9d64 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java @@ -20,32 +20,25 @@ @Fluent public final class FaceDetectorPreset extends Preset { /* - * Specifies the maximum resolution at which your video is analyzed. The - * default behavior is "SourceResolution," which will keep the input video - * at its original resolution when analyzed. Using "StandardDefinition" - * will resize input videos to standard definition while preserving the - * appropriate aspect ratio. It will only resize if the video is of higher - * resolution. For example, a 1920x1080 input would be scaled to 640x360 - * before processing. Switching to "StandardDefinition" will reduce the - * time it takes to process high resolution video. It may also reduce the - * cost of using this component (see - * https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics - * for details). However, faces that end up being too small in the resized - * video may not be detected. + * Specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," + * which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize + * input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the + * video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. + * Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also + * reduce the cost of using this component (see + * https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that + * end up being too small in the resized video may not be detected. */ @JsonProperty(value = "resolution") private AnalysisResolution resolution; /* - * This mode provides the ability to choose between the following settings: - * 1) Analyze - For detection only.This mode generates a metadata JSON file - * marking appearances of faces throughout the video.Where possible, - * appearances of the same person are assigned the same ID. 2) Combined - - * Additionally redacts(blurs) detected faces. 3) Redact - This enables a - * 2-pass process, allowing for selective redaction of a subset of detected - * faces.It takes in the metadata file from a prior analyze pass, along - * with the source video, and a user-selected subset of IDs that require - * redaction. + * This mode provides the ability to choose between the following settings: 1) Analyze - For detection only.This + * mode generates a metadata JSON file marking appearances of faces throughout the video.Where possible, + * appearances of the same person are assigned the same ID. 2) Combined - Additionally redacts(blurs) detected + * faces. 3) Redact - This enables a 2-pass process, allowing for selective redaction of a subset of detected + * faces.It takes in the metadata file from a prior analyze pass, along with the source video, and a user-selected + * subset of IDs that require redaction. */ @JsonProperty(value = "mode") private FaceRedactorMode mode; @@ -57,8 +50,7 @@ public final class FaceDetectorPreset extends Preset { private BlurType blurType; /* - * Dictionary containing key value pairs for parameters not exposed in the - * preset itself + * Dictionary containing key value pairs for parameters not exposed in the preset itself */ @JsonProperty(value = "experimentalOptions") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java index 97f4be0bc100..8e4f9d06a4e9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java @@ -21,22 +21,19 @@ public final class Filters { private Deinterlace deinterlace; /* - * The rotation, if any, to be applied to the input video, before it is - * encoded. Default is Auto + * The rotation, if any, to be applied to the input video, before it is encoded. Default is Auto */ @JsonProperty(value = "rotation") private Rotation rotation; /* - * The parameters for the rectangular window with which to crop the input - * video. + * The parameters for the rectangular window with which to crop the input video. */ @JsonProperty(value = "crop") private Rectangle crop; /* - * The properties of overlays to be applied to the input video. These could - * be audio, image or video overlays. + * The properties of overlays to be applied to the input video. These could be audio, image or video overlays. */ @JsonProperty(value = "overlays") private List overlays; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java index f89a5b432d3b..5787102fa554 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java @@ -25,19 +25,15 @@ @Fluent public class Format { /* - * The pattern of the file names for the generated output files. The - * following macros are supported in the file name: {Basename} - An - * expansion macro that will use the name of the input video file. If the - * base name(the file suffix is not included) of the input video file is - * less than 32 characters long, the base name of input video files will be - * used. If the length of base name of the input video file exceeds 32 - * characters, the base name is truncated to the first 32 characters in - * total length. {Extension} - The appropriate extension for this format. - * {Label} - The label assigned to the codec/layer. {Index} - A unique - * index for thumbnails. Only applicable to thumbnails. {Bitrate} - The - * audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of - * the audio/video codec. {Resolution} - The video resolution. Any - * unsubstituted macros will be collapsed and removed from the filename. + * The pattern of the file names for the generated output files. The following macros are supported in the file + * name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file + * suffix is not included) of the input video file is less than 32 characters long, the base name of input video + * files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is + * truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. + * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to + * thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the + * audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed + * from the filename. */ @JsonProperty(value = "filenamePattern", required = true) private String filenamePattern; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java index 4e4bd807cb51..b06f64750bdc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java @@ -15,51 +15,44 @@ @Fluent public final class H264Layer extends VideoLayer { /* - * We currently support Baseline, Main, High, High422, High444. Default is - * Auto. + * We currently support Baseline, Main, High, High422, High444. Default is Auto. */ @JsonProperty(value = "profile") private H264VideoProfile profile; /* - * We currently support Level up to 6.2. The value can be Auto, or a number - * that matches the H.264 profile. If not specified, the default is Auto, - * which lets the encoder choose the Level that is appropriate for this - * layer. + * We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not + * specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. */ @JsonProperty(value = "level") private String level; /* - * The VBV buffer window length. The value should be in ISO 8601 format. - * The value should be in the range [0.1-100] seconds. The default is 5 - * seconds (for example, PT5S). + * The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] + * seconds. The default is 5 seconds (for example, PT5S). */ @JsonProperty(value = "bufferWindow") private Duration bufferWindow; /* - * The value of CRF to be used when encoding this layer. This setting takes - * effect when RateControlMode of video codec is set at CRF mode. The range - * of CRF value is between 0 and 51, where lower values would result in - * better quality, at the expense of higher file sizes. Higher values mean - * more compression, but at some point quality degradation will be noticed. - * Default value is 23. + * The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video + * codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better + * quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality + * degradation will be noticed. Default value is 23. */ @JsonProperty(value = "crf") private Float crf; /* - * The number of reference frames to be used when encoding this layer. If - * not specified, the encoder determines an appropriate number based on the - * encoder complexity setting. + * The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an + * appropriate number based on the encoder complexity setting. */ @JsonProperty(value = "referenceFrames") private Integer referenceFrames; /* - * The entropy mode to be used for this layer. If not specified, the - * encoder chooses the mode that is appropriate for the profile and level. + * The entropy mode to be used for this layer. If not specified, the encoder chooses the mode that is appropriate + * for the profile and level. */ @JsonProperty(value = "entropyMode") private EntropyMode entropyMode; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java index 4ea268b6a99c..cb6e2ce10e88 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Video.java @@ -17,8 +17,7 @@ @Fluent public final class H264Video extends Video { /* - * Tells the encoder how to choose its encoding settings. The default value - * is Balanced. + * Tells the encoder how to choose its encoding settings. The default value is Balanced. */ @JsonProperty(value = "complexity") private H264Complexity complexity; @@ -36,10 +35,8 @@ public final class H264Video extends Video { private H264RateControlMode rateControlMode; /* - * Whether or not the encoder should insert key frames at scene changes. If - * not specified, the default is false. This flag should be set to true - * only when the encoder is being configured to produce a single output - * video. + * Whether or not the encoder should insert key frames at scene changes. If not specified, the default is false. + * This flag should be set to true only when the encoder is being configured to produce a single output video. */ @JsonProperty(value = "sceneChangeDetection") private Boolean sceneChangeDetection; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java index 65b7da4cc7a3..39d9a68fe931 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java @@ -21,37 +21,31 @@ public final class H265Layer extends H265VideoLayer { private H265VideoProfile profile; /* - * We currently support Level up to 6.2. The value can be Auto, or a number - * that matches the H.265 profile. If not specified, the default is Auto, - * which lets the encoder choose the Level that is appropriate for this - * layer. + * We currently support Level up to 6.2. The value can be Auto, or a number that matches the H.265 profile. If not + * specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. */ @JsonProperty(value = "level") private String level; /* - * The VBV buffer window length. The value should be in ISO 8601 format. - * The value should be in the range [0.1-100] seconds. The default is 5 - * seconds (for example, PT5S). + * The VBV buffer window length. The value should be in ISO 8601 format. The value should be in the range [0.1-100] + * seconds. The default is 5 seconds (for example, PT5S). */ @JsonProperty(value = "bufferWindow") private Duration bufferWindow; /* - * The value of CRF to be used when encoding this layer. This setting takes - * effect when RateControlMode of video codec is set at CRF mode. The range - * of CRF value is between 0 and 51, where lower values would result in - * better quality, at the expense of higher file sizes. Higher values mean - * more compression, but at some point quality degradation will be noticed. - * Default value is 28. + * The value of CRF to be used when encoding this layer. This setting takes effect when RateControlMode of video + * codec is set at CRF mode. The range of CRF value is between 0 and 51, where lower values would result in better + * quality, at the expense of higher file sizes. Higher values mean more compression, but at some point quality + * degradation will be noticed. Default value is 28. */ @JsonProperty(value = "crf") private Float crf; /* - * The number of reference frames to be used when encoding this layer. If - * not specified, the encoder determines an appropriate number based on the - * encoder complexity setting. + * The number of reference frames to be used when encoding this layer. If not specified, the encoder determines an + * appropriate number based on the encoder complexity setting. */ @JsonProperty(value = "referenceFrames") private Integer referenceFrames; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java index 143e80ccd7ae..93bd9690de93 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java @@ -17,19 +17,17 @@ @Fluent public final class H265Video extends Video { /* - * Specifies whether or not the encoder should insert key frames at scene - * changes. If not specified, the default is false. This flag should be set - * to true only when the encoder is being configured to produce a single - * output video. + * Specifies whether or not the encoder should insert key frames at scene changes. If not specified, the default is + * false. This flag should be set to true only when the encoder is being configured to produce a single output + * video. */ @JsonProperty(value = "sceneChangeDetection") private Boolean sceneChangeDetection; /* - * Tells the encoder how to choose its encoding settings. Quality will - * provide for a higher compression ratio but at a higher cost and longer - * compute time. Speed will produce a relatively larger file but is faster - * and more economical. The default value is Balanced. + * Tells the encoder how to choose its encoding settings. Quality will provide for a higher compression ratio but + * at a higher cost and longer compute time. Speed will produce a relatively larger file but is faster and more + * economical. The default value is Balanced. */ @JsonProperty(value = "complexity") private H265Complexity complexity; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java index 9fb0a922e216..c84e51c1331e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java @@ -11,53 +11,45 @@ @Fluent public class H265VideoLayer extends Layer { /* - * The average bitrate in bits per second at which to encode the input - * video when generating this layer. For example: a target bitrate of - * 3000Kbps or 3Mbps means this value should be 3000000 This is a required - * field. + * The average bitrate in bits per second at which to encode the input video when generating this layer. For + * example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This is a required field. */ @JsonProperty(value = "bitrate", required = true) private int bitrate; /* - * The maximum bitrate (in bits per second), at which the VBV buffer should - * be assumed to refill. If not specified, defaults to the same value as - * bitrate. + * The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, + * defaults to the same value as bitrate. */ @JsonProperty(value = "maxBitrate") private Integer maxBitrate; /* - * The number of B-frames to be used when encoding this layer. If not - * specified, the encoder chooses an appropriate number based on the video - * profile and level. + * The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an + * appropriate number based on the video profile and level. */ @JsonProperty(value = "bFrames") private Integer bFrames; /* - * The frame rate (in frames per second) at which to encode this layer. The - * value can be in the form of M/N where M and N are integers (For example, - * 30000/1001), or in the form of a number (For example, 30, or 29.97). The - * encoder enforces constraints on allowed frame rates based on the profile - * and level. If it is not specified, the encoder will use the same frame - * rate as the input video. + * The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M + * and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The + * encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the + * encoder will use the same frame rate as the input video. */ @JsonProperty(value = "frameRate") private String frameRate; /* - * The number of slices to be used when encoding this layer. If not - * specified, default is zero, which means that encoder will use a single - * slice for each frame. + * The number of slices to be used when encoding this layer. If not specified, default is zero, which means that + * encoder will use a single slice for each frame. */ @JsonProperty(value = "slices") private Integer slices; /* - * Specifies whether or not adaptive B-frames are to be used when encoding - * this layer. If not specified, the encoder will turn it on whenever the - * video profile permits its use. + * Specifies whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the + * encoder will turn it on whenever the video profile permits its use. */ @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java index b6b9618f8a6e..241b7ec390e0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Hls.java @@ -11,9 +11,8 @@ @Fluent public final class Hls { /* - * 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. + * 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(value = "fragmentsPerTsSegment") private Integer fragmentsPerTsSegment; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java index b69057b3b488..a84791f0d28a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Image.java @@ -26,46 +26,36 @@ @Fluent public class Image extends Video { /* - * The position in the input video from where to 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 + * The position in the input video from where to 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}. */ @JsonProperty(value = "start", required = true) private String start; /* - * The intervals at which thumbnails are generated. 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 intervals at which thumbnails are generated. 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. */ @JsonProperty(value = "step") private String step; /* - * 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 + * 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(value = "range") diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java index 95593660ff18..f514570142c6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputDefinition.java @@ -28,8 +28,7 @@ @Fluent public class InputDefinition { /* - * The list of TrackDescriptors which define the metadata and selection of - * tracks in the input. + * The list of TrackDescriptors which define the metadata and selection of tracks in the input. */ @JsonProperty(value = "includedTracks") private List includedTracks; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java index 5a5458c64886..c4f02ab31d24 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java @@ -333,7 +333,9 @@ interface WithCorrelationData { Job refresh(Context context); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -341,7 +343,9 @@ interface WithCorrelationData { void cancelJob(); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java index 9e6019dcd256..df970af4ac7a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java @@ -19,8 +19,8 @@ public final class JobCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java index e137df4626ed..c21047d8b0f5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java @@ -30,15 +30,14 @@ public final class JobError { private JobErrorCategory category; /* - * Indicates that it may be possible to retry the Job. If retry is - * unsuccessful, please contact Azure support via Azure Portal. + * Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via + * Azure Portal. */ @JsonProperty(value = "retry", access = JsonProperty.Access.WRITE_ONLY) private JobRetry retry; /* - * An array of details about specific errors that led to this reported - * error. + * An array of details about specific errors that led to this reported error. */ @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) private List details; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java index 9bae8d9ffb71..125bd53d39b1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java @@ -25,41 +25,38 @@ @Fluent public class JobInputClip extends JobInput { /* - * List of files. Required for JobInputHttp. Maximum of 4000 characters - * each. Query strings will not be returned in service responses to prevent - * sensitive data exposure. + * List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in + * service responses to prevent sensitive data exposure. */ @JsonProperty(value = "files") private List files; /* - * Defines a point on the timeline of the input media at which processing - * will start. Defaults to the beginning of the input media. + * Defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of + * the input media. */ @JsonProperty(value = "start") private ClipTime start; /* - * Defines a point on the timeline of the input media at which processing - * will end. Defaults to the end of the input media. + * Defines a point on the timeline of the input media at which processing will end. Defaults to the end of the + * input media. */ @JsonProperty(value = "end") private ClipTime end; /* - * A label that is assigned to a JobInputClip, that is used to satisfy a - * reference used in the Transform. For example, a Transform can be - * authored so as to take an image file with the label 'xyz' and apply it - * as an overlay onto the input video before it is encoded. When submitting - * a Job, exactly one of the JobInputs should be the image file, and it - * should have the label 'xyz'. + * A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For + * example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay + * onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the + * image file, and it should have the label 'xyz'. */ @JsonProperty(value = "label") private String label; /* - * Defines a list of InputDefinitions. For each InputDefinition, it defines - * a list of track selections and related metadata. + * Defines a list of InputDefinitions. For each InputDefinition, it defines a list of track selections and related + * metadata. */ @JsonProperty(value = "inputDefinitions") private List inputDefinitions; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java index 5fb66103a02f..5811820354a0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java @@ -16,11 +16,9 @@ @Fluent public final class JobInputHttp extends JobInputClip { /* - * Base URI for HTTPS job input. It will be concatenated with provided file - * names. If no base uri is given, then the provided file list is assumed - * to be fully qualified uris. Maximum length of 4000 characters. The query - * strings will not be returned in service responses to prevent sensitive - * data exposure. + * Base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then + * the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. The query + * strings will not be returned in service responses to prevent sensitive data exposure. */ @JsonProperty(value = "baseUri") private String baseUri; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java index d45fcb251e2b..b77d4b108fee 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java @@ -22,15 +22,13 @@ @Fluent public class JobOutput { /* - * If the JobOutput is in the Error state, it contains the details of the - * error. + * If the JobOutput is in the Error state, it contains the details of the error. */ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY) private JobError error; /* - * A preset used to override the preset in the corresponding transform - * output. + * A preset used to override the preset in the corresponding transform output. */ @JsonProperty(value = "presetOverride") private Preset presetOverride; @@ -42,28 +40,22 @@ public class JobOutput { private JobState state; /* - * If the JobOutput is in a Processing state, this contains the Job - * completion percentage. The value is an estimate and not intended to be - * used to predict Job completion times. To determine if the JobOutput is - * complete, use the State property. + * If the JobOutput is in a Processing state, this contains the Job completion percentage. The value is an estimate + * and not intended to be used to predict Job completion times. To determine if the JobOutput is complete, use the + * State property. */ @JsonProperty(value = "progress", access = JsonProperty.Access.WRITE_ONLY) private Integer progress; /* - * A label that is assigned to a JobOutput in order to help uniquely - * identify it. This is useful when your Transform has more than one - * TransformOutput, whereby your Job has more than one JobOutput. In such - * cases, when you submit the Job, you will add two or more JobOutputs, in - * the same order as TransformOutputs in the Transform. Subsequently, when - * you retrieve the Job, either through events or on a GET request, you can - * use the label to easily identify the JobOutput. If a label is not - * provided, a default value of '{presetName}_{outputIndex}' will be used, - * where the preset name is the name of the preset in the corresponding - * TransformOutput and the output index is the relative index of the this - * JobOutput within the Job. Note that this index is the same as the - * relative index of the corresponding TransformOutput within its - * Transform. + * A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your + * Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when + * you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. + * Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to + * easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will + * be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output + * index is the relative index of the this JobOutput within the Job. Note that this index is the same as the + * relative index of the corresponding TransformOutput within its Transform. */ @JsonProperty(value = "label") private String label; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java index fd0154250f12..da3da6bc419f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java @@ -11,7 +11,9 @@ /** Resource collection API of Jobs. */ public interface Jobs { /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -24,7 +26,9 @@ public interface Jobs { PagedIterable list(String resourceGroupName, String accountName, String transformName); /** - * Lists all of the Jobs for the Transform. + * List Jobs + * + *

Lists all of the Jobs for the Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -46,7 +50,9 @@ PagedIterable list( Context context); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -60,7 +66,9 @@ PagedIterable list( Job get(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +84,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -89,7 +99,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -105,7 +117,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -118,7 +132,9 @@ Response deleteWithResponse( void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); /** - * Cancel a Job. + * Cancel Job + * + *

Cancel a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -134,7 +150,9 @@ Response cancelJobWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -145,7 +163,9 @@ Response cancelJobWithResponse( Job getById(String id); /** - * Gets a Job. + * Get Job + * + *

Gets a Job. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -157,7 +177,9 @@ Response cancelJobWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -167,7 +189,9 @@ Response cancelJobWithResponse( void deleteById(String id); /** - * Deletes a Job. + * Delete Job + * + *

Deletes a Job. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java index 9ed492291947..28b7f98db4ae 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java @@ -23,12 +23,10 @@ public final class JpgImage extends Image { private List layers; /* - * 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. + * 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(value = "spriteColumn") private Integer spriteColumn; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java index b7c638b7d497..173fb959df67 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java @@ -11,8 +11,7 @@ @Fluent public final class JpgLayer extends Layer { /* - * The compression quality of the JPEG output. Range is from 0-100 and the - * default is 70. + * The compression quality of the JPEG output. Range is from 0-100 and the default is 70. */ @JsonProperty(value = "quality") private Integer quality; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java index 4ce391947cb1..9936de72431f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java @@ -11,17 +11,14 @@ @Fluent public final class KeyVaultProperties { /* - * 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 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(value = "keyIdentifier") private String keyIdentifier; /* - * The current key used to encrypt the Media Services account, including - * the key version. + * The current key used to encrypt the Media Services account, including the key version. */ @JsonProperty(value = "currentKeyIdentifier", access = JsonProperty.Access.WRITE_ONLY) private String currentKeyIdentifier; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java index 5f854fcf17c7..ced15e047984 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java @@ -14,24 +14,22 @@ @Fluent public class Layer { /* - * The width of the output video for this layer. The value can be absolute - * (in pixels) or relative (in percentage). For example 50% means the - * output video has half as many pixels in width as the input. + * The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). + * For example 50% means the output video has half as many pixels in width as the input. */ @JsonProperty(value = "width") private String width; /* - * The height of the output video for this layer. The value can be absolute - * (in pixels) or relative (in percentage). For example 50% means the - * output video has half as many pixels in height as the input. + * The height of the output video for this layer. The value can be absolute (in pixels) or relative (in + * percentage). For example 50% means the output video has half as many pixels in height as the input. */ @JsonProperty(value = "height") private String height; /* - * The alphanumeric label for this layer, which can be used in multiplexing - * different video and audio layers, or in naming the output file. + * The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in + * naming the output file. */ @JsonProperty(value = "label") private String label; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java index b925bdfe16db..32cbb583f180 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java @@ -18,8 +18,7 @@ public final class ListContainerSasInput { private AssetContainerPermission permissions; /* - * The SAS URL expiration time. This must be less than 24 hours from the - * current time. + * The SAS URL expiration time. This must be less than 24 hours from the current time. */ @JsonProperty(value = "expiryTime") private OffsetDateTime expiryTime; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java index 536c5272148b..ad8bcb6d73b3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvent.java @@ -566,7 +566,9 @@ interface WithStreamOptions { LiveEvent refresh(Context context); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -574,7 +576,9 @@ interface WithStreamOptions { void allocate(); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -584,7 +588,9 @@ interface WithStreamOptions { void allocate(Context context); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -592,7 +598,9 @@ interface WithStreamOptions { void start(); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -602,7 +610,9 @@ interface WithStreamOptions { void start(Context context); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param parameters LiveEvent stop parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -612,7 +622,9 @@ interface WithStreamOptions { void stop(LiveEventActionInput parameters); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param parameters LiveEvent stop parameters. * @param context The context to associate with this operation. @@ -623,8 +635,10 @@ interface WithStreamOptions { void stop(LiveEventActionInput parameters, Context context); /** - * 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 + * Reset 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. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -633,8 +647,10 @@ interface WithStreamOptions { void reset(); /** - * 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 + * Reset 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. * * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java index 5d95620a7845..289408cd1f1f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java @@ -11,9 +11,8 @@ @Fluent public final class LiveEventActionInput { /* - * 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 flag indicates whether live outputs are automatically deleted when live event is being stopped. Deleting + * live outputs do not delete the underlying assets. */ @JsonProperty(value = "removeOutputsOnStop") private Boolean removeOutputsOnStop; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java index ddf966f59fbb..f62800e45f06 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java @@ -12,42 +12,35 @@ @Fluent public final class LiveEventEncoding { /* - * Live event type. When encodingType is set to PassthroughBasic or - * PassthroughStandard, 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. + * Live event type. When encodingType is set to PassthroughBasic or PassthroughStandard, 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. */ @JsonProperty(value = "encodingType") private LiveEventEncodingType encodingType; /* - * 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’. + * 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(value = "presetName") private String presetName; /* - * Specifies how the input video will be resized to fit the desired output - * resolution(s). Default is None + * Specifies how the input video will be resized to fit the desired output resolution(s). Default is None */ @JsonProperty(value = "stretchMode") private StretchMode stretchMode; /* - * 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. + * 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(value = "keyFrameInterval") private Duration keyFrameInterval; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java index 6eef52e56129..7da80243f031 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInput.java @@ -13,8 +13,7 @@ @Fluent public final class LiveEventInput { /* - * The input 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. */ @JsonProperty(value = "streamingProtocol", required = true) private LiveEventInputProtocol streamingProtocol; @@ -26,18 +25,16 @@ public final class LiveEventInput { private LiveEventInputAccessControl accessControl; /* - * 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. + * 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(value = "keyFrameIntervalDuration") private String keyFrameIntervalDuration; /* - * 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. + * 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(value = "accessToken") private String accessToken; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java index df65e611ad5f..29788dfc182b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputTrackSelection.java @@ -14,22 +14,21 @@ @Fluent public final class LiveEventInputTrackSelection { /* - * Property name to select. This property is reserved for future use, any - * value set on this property will be ignored. + * Property name to select. This property is reserved for future use, any value set on this property will be + * ignored. */ @JsonProperty(value = "property") private String property; /* - * Comparing operation. 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. */ @JsonProperty(value = "operation") private String operation; /* - * Property value to select. 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. */ @JsonProperty(value = "value") private String value; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java index b98c86fc922d..1f867dffdc8c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventListResult.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** LiveEventListResult The LiveEvent list result. */ +/** + * LiveEventListResult + * + *

The LiveEvent list result. + */ @Fluent public final class LiveEventListResult { /* @@ -25,8 +29,7 @@ public final class LiveEventListResult { private Integer odataCount; /* - * The link to the next set of results. Not empty if value contains - * incomplete list of live outputs. + * The link to the next set of results. Not empty if value contains incomplete list of live outputs. */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java index b710e64bfe81..7358980cd30c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventOutputTranscriptionTrack.java @@ -15,8 +15,7 @@ @Fluent public final class LiveEventOutputTranscriptionTrack { /* - * The output track name. This property is reserved for future use, any - * value set on this property will be ignored. + * The output track name. This property is reserved for future use, any value set on this property will be ignored. */ @JsonProperty(value = "trackName", required = true) private String trackName; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java index a16b56633e50..8acbd366d6bd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventPreview.java @@ -12,8 +12,7 @@ @Fluent public final class LiveEventPreview { /* - * The endpoints for preview. Do not share the preview URL with the live - * event audience. + * The endpoints for preview. Do not share the preview URL with the live event audience. */ @JsonProperty(value = "endpoints") private List endpoints; @@ -25,28 +24,25 @@ public final class LiveEventPreview { private LiveEventPreviewAccessControl accessControl; /* - * 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 updated once the live event is created. + * 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 updated once the live event is created. */ @JsonProperty(value = "previewLocator") private String previewLocator; /* - * The name of streaming policy used for the live event preview. This value - * is specified at creation time and cannot be updated. + * The name of streaming policy used for the live event preview. This value is specified at creation time and + * cannot be updated. */ @JsonProperty(value = "streamingPolicyName") private String streamingPolicyName; /* - * 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. + * 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. */ @JsonProperty(value = "alternativeMediaId") private String alternativeMediaId; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java index 021e250724c1..23d39353166c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventTranscription.java @@ -15,28 +15,24 @@ @Fluent public final class LiveEventTranscription { /* - * 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. + * 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(value = "language") private String language; /* - * 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. + * 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(value = "inputTrackSelection") private List inputTrackSelection; /* - * 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. + * 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(value = "outputTranscriptionTrack") private LiveEventOutputTranscriptionTrack outputTranscriptionTrack; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java index d8d721e3edef..b19b23677f2e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEvents.java @@ -11,7 +11,9 @@ /** Resource collection API of LiveEvents. */ public interface LiveEvents { /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface LiveEvents { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists all the live events in the account. + * List live events + * + *

Lists all the live events in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -36,7 +40,9 @@ public interface LiveEvents { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -49,7 +55,9 @@ public interface LiveEvents { LiveEvent get(String resourceGroupName, String accountName, String liveEventName); /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -64,7 +72,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +86,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String liveEventName); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -89,7 +101,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -101,7 +115,9 @@ Response getWithResponse( void allocate(String resourceGroupName, String accountName, String liveEventName); /** - * A live event is in StandBy state after allocation completes, and is ready to start. + * Allocate resources for a live event + * + *

A live event is in StandBy state after allocation completes, and is ready to start. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -114,7 +130,9 @@ Response getWithResponse( void allocate(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -126,7 +144,9 @@ Response getWithResponse( void start(String resourceGroupName, String accountName, String liveEventName); /** - * A live event in Stopped or StandBy state will be in Running state after the start operation completes. + * Start Live Event + * + *

A live event in Stopped or StandBy state will be in Running state after the start operation completes. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -139,7 +159,9 @@ Response getWithResponse( void start(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -152,7 +174,9 @@ Response getWithResponse( void stop(String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters); /** - * Stops a running live event. + * Stop Live Event + * + *

Stops a running live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -171,8 +195,10 @@ void stop( Context context); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -185,8 +211,10 @@ void stop( void reset(String resourceGroupName, String accountName, String liveEventName); /** - * 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 + * Reset 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. * * @param resourceGroupName The name of the resource group within the Azure subscription. @@ -200,7 +228,75 @@ void stop( void reset(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Gets properties of a live event. + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status. + */ + LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId); + + /** + * Get operation status. + * + *

Get a live event operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a live event operation status along with {@link Response}. + */ + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); + + /** + * Get Live Event + * + *

Gets properties of a live event. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -211,7 +307,9 @@ void stop( LiveEvent getById(String id); /** - * Gets properties of a live event. + * Get Live Event + * + *

Gets properties of a live event. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -223,7 +321,9 @@ void stop( Response getByIdWithResponse(String id, Context context); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -233,7 +333,9 @@ void stop( void deleteById(String id); /** - * Deletes a live event. + * Delete Live Event + * + *

Deletes a live event. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutput.java index 2c6a3d547bda..0e6d4aadb7e6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutput.java @@ -63,6 +63,17 @@ public interface LiveOutput { */ Duration archiveWindowLength(); + /** + * Gets the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput stops. The + * archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 + * hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event + * enables LL. + * + * @return the rewindWindowLength value. + */ + Duration rewindWindowLength(); + /** * Gets the manifestName property: The manifest file name. If not provided, the service will generate one * automatically. @@ -150,6 +161,7 @@ interface WithCreate extends DefinitionStages.WithDescription, DefinitionStages.WithAssetName, DefinitionStages.WithArchiveWindowLength, + DefinitionStages.WithRewindWindowLength, DefinitionStages.WithManifestName, DefinitionStages.WithHls, DefinitionStages.WithOutputSnapTime { @@ -204,6 +216,24 @@ interface WithArchiveWindowLength { */ WithCreate withArchiveWindowLength(Duration archiveWindowLength); } + /** The stage of the LiveOutput definition allowing to specify rewindWindowLength. */ + interface WithRewindWindowLength { + /** + * Specifies the rewindWindowLength property: ISO 8601 time between 1 minute to the duration of + * archiveWindowLength to control seek-able window length during Live. The service won't use this property + * once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For + * example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit + * default value 30m only if Live Event enables LL.. + * + * @param rewindWindowLength ISO 8601 time between 1 minute to the duration of archiveWindowLength to + * control seek-able window length during Live. The service won't use this property once LiveOutput + * stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use + * PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default + * value 30m only if Live Event enables LL. + * @return the next definition stage. + */ + WithCreate withRewindWindowLength(Duration rewindWindowLength); + } /** The stage of the LiveOutput definition allowing to specify manifestName. */ interface WithManifestName { /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java index d0fde9bbbc14..e69a51174878 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** LiveOutputListResult The LiveOutput list result. */ +/** + * LiveOutputListResult + * + *

The LiveOutput list result. + */ @Fluent public final class LiveOutputListResult { /* @@ -25,8 +29,7 @@ public final class LiveOutputListResult { private Integer odataCount; /* - * The link to the next set of results. Not empty if value contains - * incomplete list of live outputs. + * The link to the next set of results. Not empty if value contains incomplete list of live outputs. */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java index 8233f70e3af8..5efc88ab04bd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputs.java @@ -11,7 +11,9 @@ /** Resource collection API of LiveOutputs. */ public interface LiveOutputs { /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -24,7 +26,9 @@ public interface LiveOutputs { PagedIterable list(String resourceGroupName, String accountName, String liveEventName); /** - * Lists the live outputs of a live event. + * List Live Outputs + * + *

Lists the live outputs of a live event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -38,7 +42,9 @@ public interface LiveOutputs { PagedIterable list(String resourceGroupName, String accountName, String liveEventName, Context context); /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -52,7 +58,9 @@ public interface LiveOutputs { LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -68,7 +76,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +108,83 @@ void delete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** - * Gets a live output. + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status. + */ + LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + + /** + * Get operation status. + * + *

Get a Live Output operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param liveOutputName The name of the live output. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a Live Output operation status along with {@link Response}. + */ + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); + + /** + * Get Live Output + * + *

Gets a live output. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,7 +195,9 @@ void delete( LiveOutput getById(String id); /** - * Gets a live output. + * Get Live Output + * + *

Gets a live output. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -119,7 +209,9 @@ void delete( Response getByIdWithResponse(String id, Context context); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,7 +221,9 @@ void delete( void deleteById(String id); /** - * Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. + * Delete Live Output + * + *

Deletes a live output. Deleting a live output does not delete the asset the live output is writing to. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java index e15647a34dbe..db4bd4020ddc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java @@ -10,7 +10,9 @@ /** Resource collection API of Locations. */ public interface Locations { /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. @@ -22,7 +24,9 @@ public interface Locations { EntityNameAvailabilityCheckOutput checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters); /** - * Checks whether the Media Service resource name is available. + * Check Name Availability + * + *

Checks whether the Media Service resource name is available. * * @param locationName Location name. * @param parameters The request parameters. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java index 8c0a3798c032..5ae6bf8d31b9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java @@ -412,7 +412,9 @@ interface WithPublicNetworkAccess { MediaService refresh(Context context); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -422,7 +424,9 @@ interface WithPublicNetworkAccess { void syncStorageKeys(SyncStorageKeysInput parameters); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. * @param context The context to associate with this operation. @@ -434,7 +438,9 @@ interface WithPublicNetworkAccess { Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -445,7 +451,9 @@ interface WithPublicNetworkAccess { EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java index 534e95e6b797..fc477a5cc3f8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java @@ -19,8 +19,8 @@ public final class MediaServiceCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java index e846002ad2a3..2cee82cedf63 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java @@ -10,7 +10,9 @@ /** Resource collection API of MediaServicesOperationResults. */ public interface MediaServicesOperationResults { /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. @@ -22,7 +24,9 @@ public interface MediaServicesOperationResults { MediaService get(String locationName, String operationId); /** - * Get media service operation result. + * Get operation result. + * + *

Get media service operation result. * * @param locationName Location name. * @param operationId Operation Id. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java index 6a1ce3f5a5cc..41f6a7d512d4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java @@ -10,7 +10,9 @@ /** Resource collection API of MediaServicesOperationStatuses. */ public interface MediaServicesOperationStatuses { /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. @@ -22,7 +24,9 @@ public interface MediaServicesOperationStatuses { MediaServiceOperationStatus get(String locationName, String operationId); /** - * Get media service operation status. + * Get operation status. + * + *

Get media service operation status. * * @param locationName Location name. * @param operationId Operation ID. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java index e22564b960ee..78e39e262586 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java @@ -11,7 +11,9 @@ /** Resource collection API of Mediaservices. */ public interface Mediaservices { /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -22,7 +24,9 @@ public interface Mediaservices { PagedIterable listByResourceGroup(String resourceGroupName); /** - * List Media Services accounts in the resource group. + * List Media Services accounts + * + *

List Media Services accounts in the resource group. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param context The context to associate with this operation. @@ -34,7 +38,9 @@ public interface Mediaservices { PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -46,7 +52,9 @@ public interface Mediaservices { MediaService getByResourceGroup(String resourceGroupName, String accountName); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -60,7 +68,9 @@ Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -71,7 +81,9 @@ Response getByResourceGroupWithResponse( void deleteByResourceGroup(String resourceGroupName, String accountName); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -84,7 +96,9 @@ Response getByResourceGroupWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, Context context); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +110,9 @@ Response getByResourceGroupWithResponse( void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** - * Synchronizes storage account keys for a storage account associated with the Media Service account. + * Synchronizes Storage Account Keys + * + *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -111,7 +127,9 @@ Response syncStorageKeysWithResponse( String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -124,7 +142,9 @@ Response syncStorageKeysWithResponse( EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** - * List all the media edge policies associated with the Media Services account. + * List the media edge policies associated with the Media Services account. + * + *

List all the media edge policies associated with the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -139,7 +159,9 @@ Response listEdgePoliciesWithResponse( String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -148,7 +170,9 @@ Response listEdgePoliciesWithResponse( PagedIterable list(); /** - * List Media Services accounts in the subscription. + * List Media Services accounts + * + *

List Media Services accounts in the subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -159,7 +183,9 @@ Response listEdgePoliciesWithResponse( PagedIterable list(Context context); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -170,7 +196,9 @@ Response listEdgePoliciesWithResponse( MediaService getById(String id); /** - * Get the details of a Media Services account. + * Get a Media Services account + * + *

Get the details of a Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -182,7 +210,9 @@ Response listEdgePoliciesWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -192,7 +222,9 @@ Response listEdgePoliciesWithResponse( void deleteById(String id); /** - * Deletes a Media Services account. + * Delete a Media Services account. + * + *

Deletes a Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java index d8f8574eb477..a072238803ee 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java @@ -29,8 +29,8 @@ @Fluent public class MultiBitrateFormat extends Format { /* - * The list of output files to produce. Each entry in the list is a set of - * audio and video layer labels to be muxed together . + * The list of output files to produce. Each entry in the list is a set of audio and video layer labels to be + * muxed together . */ @JsonProperty(value = "outputFiles") private List outputFiles; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java index 67c81b2f5bc9..dd575ba97a08 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java @@ -10,7 +10,9 @@ /** Resource collection API of OperationResults. */ public interface OperationResults { /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -26,7 +28,9 @@ AssetTrack get( String resourceGroupName, String accountName, String assetName, String trackName, String operationId); /** - * Get asset track operation result. + * Get operation result. + * + *

Get asset track operation result. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java index 1093f4dd9b6b..75e37e5cc36d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java @@ -10,7 +10,9 @@ /** Resource collection API of OperationStatuses. */ public interface OperationStatuses { /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -26,7 +28,9 @@ AssetTrackOperationStatus get( String resourceGroupName, String accountName, String assetName, String trackName, String operationId); /** - * Get asset track operation status. + * Get operation status. + * + *

Get asset track operation status. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java index 87ebca54ba46..272a4b62680c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java @@ -10,7 +10,9 @@ /** Resource collection API of Operations. */ public interface Operations { /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -19,7 +21,9 @@ public interface Operations { OperationCollection list(); /** - * Lists all the Media Services operations. + * List Operations + * + *

Lists all the Media Services operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java index ed5b0f1ebd86..018788510698 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java @@ -13,12 +13,10 @@ @Fluent public final class OutputFile { /* - * The list of labels that describe how the encoder should multiplex video - * and audio into an output file. For example, if the encoder is producing - * two video layers with labels v1 and v2, and one audio layer with label - * a1, then an array like '[v1, a1]' tells the encoder to produce an output - * file with the video track represented by v1 and the audio track - * represented by a1. + * The list of labels that describe how the encoder should multiplex video and audio into an output file. For + * example, if the encoder is producing two video layers with labels v1 and v2, and one audio layer with label a1, + * then an array like '[v1, a1]' tells the encoder to produce an output file with the video track represented by v1 + * and the audio track represented by a1. */ @JsonProperty(value = "labels", required = true) private List labels; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java index 5cbd7670c756..a068e8bfe20f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java @@ -26,55 +26,47 @@ @Fluent public class Overlay { /* - * The label of the job input which is to be used as an overlay. The Input - * must specify exactly one file. You can specify an image file in JPG, - * PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A - * file), or a video file. See https://aka.ms/mesformats for the complete - * list of supported audio and video file formats. + * The label of the job input which is to be used as an overlay. The Input must specify exactly one file. You can + * specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, MP3, WMA or M4A file), or + * a video file. See https://aka.ms/mesformats for the complete list of supported audio and video file formats. */ @JsonProperty(value = "inputLabel", required = true) private String inputLabel; /* - * 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 into the input video. If not - * specified the overlay starts from the beginning of the input video. + * 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 into the input video. If not specified the + * overlay starts from the beginning of the input video. */ @JsonProperty(value = "start") private Duration start; /* - * 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 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(value = "end") private Duration end; /* - * 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 no fade in (same as PT0S). + * 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 no fade in (same as PT0S). */ @JsonProperty(value = "fadeInDuration") private Duration fadeInDuration; /* - * The duration over which the overlay fades out of the input video. The - * value should be in ISO 8601 duration format. If not specified the - * default behavior is to have no fade out (same as PT0S). + * The duration over which the overlay fades out of the input video. The value should be in ISO 8601 duration + * format. If not specified the default behavior is to have no fade out (same as PT0S). */ @JsonProperty(value = "fadeOutDuration") private Duration fadeOutDuration; /* - * The gain level of audio in the overlay. The value should be in the range - * [0, 1.0]. The default is 1.0. + * The gain level of audio in the overlay. The value should be in the range [0, 1.0]. The default is 1.0. */ @JsonProperty(value = "audioGainLevel") private Double audioGainLevel; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java index 0f82fb4944a0..e6e5faff3acd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java @@ -11,64 +11,58 @@ @Fluent public final class PresetConfigurations { /* - * Allows you to configure the encoder settings to control the balance - * between speed and quality. Example: set Complexity as Speed for faster - * encoding but less compression efficiency. + * Allows you to configure the encoder settings to control the balance between speed and quality. Example: set + * Complexity as Speed for faster encoding but less compression efficiency. */ @JsonProperty(value = "complexity") private Complexity complexity; /* - * Sets the interleave mode of the output to control how audio and video - * are stored in the container format. Example: set InterleavedOutput as - * NonInterleavedOutput to produce audio-only and video-only outputs in - * separate MP4 files. + * Sets the interleave mode of the output to control how audio and video are stored in the container format. + * Example: set InterleavedOutput as NonInterleavedOutput to produce audio-only and video-only outputs in separate + * MP4 files. */ @JsonProperty(value = "interleaveOutput") private InterleaveOutput interleaveOutput; /* - * The key frame interval in seconds. Example: set - * KeyFrameIntervalInSeconds as 2 to reduce the playback buffering for some - * players. + * The key frame interval in seconds. Example: set KeyFrameIntervalInSeconds as 2 to reduce the playback buffering + * for some players. */ @JsonProperty(value = "keyFrameIntervalInSeconds") private Float keyFrameIntervalInSeconds; /* - * The maximum bitrate in bits per second (threshold for the top video - * layer). Example: set MaxBitrateBps as 6000000 to avoid producing very - * high bitrate outputs for contents with high complexity. + * The maximum bitrate in bits per second (threshold for the top video layer). Example: set MaxBitrateBps as + * 6000000 to avoid producing very high bitrate outputs for contents with high complexity. */ @JsonProperty(value = "maxBitrateBps") private Integer maxBitrateBps; /* - * The maximum height of output video layers. Example: set MaxHeight as 720 - * to produce output layers up to 720P even if the input is 4K. + * The maximum height of output video layers. Example: set MaxHeight as 720 to produce output layers up to 720P + * even if the input is 4K. */ @JsonProperty(value = "maxHeight") private Integer maxHeight; /* - * The maximum number of output video layers. Example: set MaxLayers as 4 - * to make sure at most 4 output layers are produced to control the overall - * cost of the encoding job. + * The maximum number of output video layers. Example: set MaxLayers as 4 to make sure at most 4 output layers are + * produced to control the overall cost of the encoding job. */ @JsonProperty(value = "maxLayers") private Integer maxLayers; /* - * The minimum bitrate in bits per second (threshold for the bottom video - * layer). Example: set MinBitrateBps as 200000 to have a bottom layer that - * covers users with low network bandwidth. + * The minimum bitrate in bits per second (threshold for the bottom video layer). Example: set MinBitrateBps as + * 200000 to have a bottom layer that covers users with low network bandwidth. */ @JsonProperty(value = "minBitrateBps") private Integer minBitrateBps; /* - * The minimum height of output video layers. Example: set MinHeight as 360 - * to avoid output layers of smaller resolutions like 180P. + * The minimum height of output video layers. Example: set MinHeight as 360 to avoid output layers of smaller + * resolutions like 180P. */ @JsonProperty(value = "minHeight") private Integer minHeight; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java index 9a82a7f1046b..74236240639b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java @@ -10,7 +10,9 @@ /** Resource collection API of PrivateEndpointConnections. */ public interface PrivateEndpointConnections { /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -22,7 +24,9 @@ public interface PrivateEndpointConnections { PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName); /** - * List all private endpoint connections. + * List private endpoint connections. + * + *

List all private endpoint connections. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -37,7 +41,9 @@ Response listWithResponse( String resourceGroupName, String accountName, Context context); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -50,7 +56,9 @@ Response listWithResponse( PrivateEndpointConnection get(String resourceGroupName, String accountName, String name); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -65,7 +73,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String name, Context context); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -77,7 +87,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String name); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -91,7 +103,9 @@ Response getWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -102,7 +116,9 @@ Response getWithResponse( PrivateEndpointConnection getById(String id); /** - * Get the details of a private endpoint connection. + * Get private endpoint connection. + * + *

Get the details of a private endpoint connection. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -114,7 +130,9 @@ Response getWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -124,7 +142,9 @@ Response getWithResponse( void deleteById(String id); /** - * Deletes a private endpoint connection. + * Delete a private endpoint connection. + * + *

Deletes a private endpoint connection. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java index f7c5ce742587..5070d2e70227 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java @@ -10,7 +10,9 @@ /** Resource collection API of PrivateLinkResources. */ public interface PrivateLinkResources { /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -22,7 +24,9 @@ public interface PrivateLinkResources { PrivateLinkResourceListResult list(String resourceGroupName, String accountName); /** - * List supported group IDs. + * Get list of group IDs. + * + *

List supported group IDs. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -36,7 +40,9 @@ Response listWithResponse( String resourceGroupName, String accountName, Context context); /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -49,7 +55,9 @@ Response listWithResponse( PrivateLinkResource get(String resourceGroupName, String accountName, String name); /** - * Get details of a group ID. + * Get group ID. + * + *

Get details of a group ID. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java index 83cbdc3b327a..88611207d292 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java @@ -11,8 +11,7 @@ @Fluent public final class PrivateLinkServiceConnectionState { /* - * Indicates whether the connection has been Approved/Rejected/Removed by - * the owner of the service. + * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. */ @JsonProperty(value = "status") private PrivateEndpointServiceConnectionStatus status; @@ -24,8 +23,7 @@ public final class PrivateLinkServiceConnectionState { private String description; /* - * A message indicating if changes on the service provider require any - * updates on the consumer. + * A message indicating if changes on the service provider require any updates on the consumer. */ @JsonProperty(value = "actionsRequired") private String actionsRequired; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java index d5a6d0c6cbd5..91e94f7d0adb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Rectangle.java @@ -11,33 +11,29 @@ @Fluent public final class Rectangle { /* - * The number of pixels from the left-margin. This can be absolute pixel - * value (e.g 100), or relative to the size of the video (For example, - * 50%). + * The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size + * of the video (For example, 50%). */ @JsonProperty(value = "left") private String left; /* - * The number of pixels from the top-margin. This can be absolute pixel - * value (e.g 100), or relative to the size of the video (For example, - * 50%). + * The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of + * the video (For example, 50%). */ @JsonProperty(value = "top") private String top; /* - * The width of the rectangular region in pixels. This can be absolute - * pixel value (e.g 100), or relative to the size of the video (For - * example, 50%). + * The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the + * size of the video (For example, 50%). */ @JsonProperty(value = "width") private String width; /* - * The height of the rectangular region in pixels. This can be absolute - * pixel value (e.g 100), or relative to the size of the video (For - * example, 50%). + * The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the + * size of the video (For example, 50%). */ @JsonProperty(value = "height") private String height; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java index 8f787f3e537a..ff282f08ceb1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ResourceIdentity.java @@ -11,15 +11,13 @@ @Fluent public class ResourceIdentity { /* - * The user assigned managed identity's ARM ID to use when accessing a - * resource. + * The user assigned managed identity's ARM ID to use when accessing a resource. */ @JsonProperty(value = "userAssignedIdentity") private String userAssignedIdentity; /* - * Indicates whether to use System Assigned Managed Identity. Mutual - * exclusive with User Assigned Managed Identity. + * Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity. */ @JsonProperty(value = "useSystemAssignedIdentity", required = true) private boolean useSystemAssignedIdentity; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java index e292fac2f433..c1e343f390cf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java @@ -22,15 +22,14 @@ public final class SelectAudioTrackByAttribute extends AudioTrackDescriptor { private TrackAttribute attribute; /* - * The type of AttributeFilter to apply to the TrackAttribute in order to - * select the tracks. + * The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. */ @JsonProperty(value = "filter", required = true) private AttributeFilter filter; /* - * The value to filter the tracks by. Only used when - * AttributeFilter.ValueEquals is specified for the Filter property. + * The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter + * property. */ @JsonProperty(value = "filterValue") private String filterValue; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java index 4555911a0a82..6148f9f0702b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java @@ -22,18 +22,15 @@ public final class SelectVideoTrackByAttribute extends VideoTrackDescriptor { private TrackAttribute attribute; /* - * The type of AttributeFilter to apply to the TrackAttribute in order to - * select the tracks. + * The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks. */ @JsonProperty(value = "filter", required = true) private AttributeFilter filter; /* - * The value to filter the tracks by. Only used when - * AttributeFilter.ValueEquals is specified for the Filter property. For - * TrackAttribute.Bitrate, this should be an integer value in bits per - * second (e.g: '1500000'). The TrackAttribute.Language is not supported - * for video tracks. + * The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter + * property. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The + * TrackAttribute.Language is not supported for video tracks. */ @JsonProperty(value = "filterValue") private String filterValue; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java index b249ffa557ae..fcea5d7c3080 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java @@ -17,8 +17,7 @@ @Fluent public final class StandardEncoderPreset extends Preset { /* - * One or more filtering operations that are applied to the input media - * before encoding. + * One or more filtering operations that are applied to the input media before encoding. */ @JsonProperty(value = "filters") private Filters filters; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java index a9559f52e0bc..a66ca6e3ede6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java @@ -12,11 +12,9 @@ @Fluent public final class StorageAccount { /* - * The ID of the storage account resource. Media Services relies on tables - * and queues as well as blobs, so the primary storage account must be a - * Standard Storage account (either Microsoft.ClassicStorage or - * Microsoft.Storage). Blob only storage accounts can be added as secondary - * storage accounts. + * The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the + * primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or + * Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts. */ @JsonProperty(value = "id") private String id; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java index 17867f8a1ef3..9328033bb5b3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoint.java @@ -588,7 +588,9 @@ interface WithCrossSiteAccessPolicies { StreamingEndpoint refresh(Context context); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -596,7 +598,9 @@ interface WithCrossSiteAccessPolicies { void start(); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -606,7 +610,9 @@ interface WithCrossSiteAccessPolicies { void start(Context context); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -614,7 +620,9 @@ interface WithCrossSiteAccessPolicies { void stop(); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -624,7 +632,9 @@ interface WithCrossSiteAccessPolicies { void stop(Context context); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param parameters Streaming endpoint scale parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -634,7 +644,9 @@ interface WithCrossSiteAccessPolicies { void scale(StreamingEntityScaleUnit parameters); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param parameters Streaming endpoint scale parameters. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java index 5d43f62c0838..7f2eb6eb759e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpointListResult.java @@ -9,7 +9,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** StreamingEndpointListResult The streaming endpoint list result. */ +/** + * StreamingEndpointListResult + * + *

The streaming endpoint list result. + */ @Fluent public final class StreamingEndpointListResult { /* @@ -25,8 +29,7 @@ public final class StreamingEndpointListResult { private Integer odataCount; /* - * The link to the next set of results. Not empty if value contains - * incomplete list of streaming endpoints. + * The link to the next set of results. Not empty if value contains incomplete list of streaming endpoints. */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java index ef31619fdb9e..bdd3e3694b08 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEndpoints.java @@ -11,7 +11,9 @@ /** Resource collection API of StreamingEndpoints. */ public interface StreamingEndpoints { /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface StreamingEndpoints { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the streaming endpoints in the account. + * List StreamingEndpoints + * + *

Lists the streaming endpoints in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -36,7 +40,9 @@ public interface StreamingEndpoints { PagedIterable list(String resourceGroupName, String accountName, Context context); /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -49,7 +55,9 @@ public interface StreamingEndpoints { StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -64,7 +72,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -76,7 +86,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -89,7 +101,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -102,7 +116,9 @@ Response getWithResponse( StreamingEndpointSkuInfoListResult skus(String resourceGroupName, String accountName, String streamingEndpointName); /** - * List streaming endpoint supported skus. + * List StreamingEndpoint skus + * + *

List streaming endpoint supported skus. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -117,7 +133,9 @@ Response skusWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -129,7 +147,9 @@ Response skusWithResponse( void start(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Starts an existing streaming endpoint. + * Start StreamingEndpoint + * + *

Starts an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -142,7 +162,9 @@ Response skusWithResponse( void start(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -154,7 +176,9 @@ Response skusWithResponse( void stop(String resourceGroupName, String accountName, String streamingEndpointName); /** - * Stops an existing streaming endpoint. + * Stop StreamingEndpoint + * + *

Stops an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -167,7 +191,9 @@ Response skusWithResponse( void stop(String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -184,7 +210,9 @@ void scale( StreamingEntityScaleUnit parameters); /** - * Scales an existing streaming endpoint. + * Scale StreamingEndpoint + * + *

Scales an existing streaming endpoint. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -203,7 +231,80 @@ void scale( Context context); /** - * Gets a streaming endpoint. + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status. + */ + StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + + /** + * Get operation status. + * + *

Get a streaming endpoint operation status. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a streaming endpoint operation status along with {@link Response}. + */ + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); + + /** + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -214,7 +315,9 @@ void scale( StreamingEndpoint getById(String id); /** - * Gets a streaming endpoint. + * Get StreamingEndpoint + * + *

Gets a streaming endpoint. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -226,7 +329,9 @@ void scale( Response getByIdWithResponse(String id, Context context); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -236,7 +341,9 @@ void scale( void deleteById(String id); /** - * Deletes a streaming endpoint. + * Delete StreamingEndpoint + * + *

Deletes a streaming endpoint. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java index 9ff6ee07a504..a57e5908d650 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java @@ -289,7 +289,9 @@ interface WithFilters { StreamingLocator refresh(Context context); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -298,7 +300,9 @@ interface WithFilters { ListContentKeysResponse listContentKeys(); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -309,7 +313,9 @@ interface WithFilters { Response listContentKeysWithResponse(Context context); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -318,7 +324,9 @@ interface WithFilters { ListPathsResponse listPaths(); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java index 385ee22951cf..09fa12ba4eca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java @@ -19,8 +19,8 @@ public final class StreamingLocatorCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java index 0628049e6f49..aff9a731fb40 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocators.java @@ -11,7 +11,9 @@ /** Resource collection API of StreamingLocators. */ public interface StreamingLocators { /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface StreamingLocators { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Streaming Locators in the account. + * List Streaming Locators + * + *

Lists the Streaming Locators in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -41,7 +45,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -54,7 +60,9 @@ PagedIterable list( StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -69,7 +77,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +108,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -109,7 +123,9 @@ Response deleteWithResponse( ListContentKeysResponse listContentKeys(String resourceGroupName, String accountName, String streamingLocatorName); /** - * List Content Keys used by this Streaming Locator. + * List Content Keys + * + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -124,7 +140,9 @@ Response listContentKeysWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -137,7 +155,9 @@ Response listContentKeysWithResponse( ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName); /** - * List Paths supported by this Streaming Locator. + * List Paths + * + *

List Paths supported by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -152,7 +172,9 @@ Response listPathsWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -163,7 +185,9 @@ Response listPathsWithResponse( StreamingLocator getById(String id); /** - * Get the details of a Streaming Locator in the Media Services account. + * Get a Streaming Locator + * + *

Get the details of a Streaming Locator in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -175,7 +199,9 @@ Response listPathsWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -185,7 +211,9 @@ Response listPathsWithResponse( void deleteById(String id); /** - * Deletes a Streaming Locator in the Media Services account. + * Delete a Streaming Locator + * + *

Deletes a Streaming Locator in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java index 1a3ba3608ced..bb710f06e43f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java @@ -11,7 +11,9 @@ /** Resource collection API of StreamingPolicies. */ public interface StreamingPolicies { /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface StreamingPolicies { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Streaming Policies in the account. + * List Streaming Policies + * + *

Lists the Streaming Policies in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -41,7 +45,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -54,7 +60,9 @@ PagedIterable list( StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -69,7 +77,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String streamingPolicyName); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -96,7 +108,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -107,7 +121,9 @@ Response deleteWithResponse( StreamingPolicy getById(String id); /** - * Get the details of a Streaming Policy in the Media Services account. + * Get a Streaming Policy + * + *

Get the details of a Streaming Policy in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -119,7 +135,9 @@ Response deleteWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -129,7 +147,9 @@ Response deleteWithResponse( void deleteById(String id); /** - * Deletes a Streaming Policy in the Media Services account. + * Delete a Streaming Policy + * + *

Deletes a Streaming Policy in the Media Services account. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java index 9fbac289a220..556959f334b0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java @@ -19,8 +19,8 @@ public final class StreamingPolicyCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java index e987fcfbbbba..777ea3ed2835 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java @@ -12,8 +12,7 @@ @Fluent public final class StreamingPolicyContentKey { /* - * Label can be used to specify Content Key when creating a Streaming - * Locator + * Label can be used to specify Content Key when creating a Streaming Locator */ @JsonProperty(value = "label") private String label; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java index 435c4937d57c..3d73230852ab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java @@ -11,14 +11,11 @@ @Fluent public final class StreamingPolicyFairPlayConfiguration { /* - * Template for the URL of the custom service delivering licenses to end - * user players. Not required when using Azure Media Services for issuing - * licenses. The template supports replaceable tokens that the service - * will update at runtime with the value specific to the request. The - * currently supported token values are {AlternativeMediaId}, which is - * replaced with the value of StreamingLocatorId.AlternativeMediaId, and - * {ContentKeyId}, which is replaced with the value of identifier of the - * key being requested. + * Template for the URL of the custom service delivering licenses to end user players. Not required when using + * Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will + * update at runtime with the value specific to the request. The currently supported token values are + * {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java index be14a8d7afe0..5036a2e6779c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java @@ -11,14 +11,11 @@ @Fluent public final class StreamingPolicyPlayReadyConfiguration { /* - * Template for the URL of the custom service delivering licenses to end - * user players. Not required when using Azure Media Services for issuing - * licenses. The template supports replaceable tokens that the service - * will update at runtime with the value specific to the request. The - * currently supported token values are {AlternativeMediaId}, which is - * replaced with the value of StreamingLocatorId.AlternativeMediaId, and - * {ContentKeyId}, which is replaced with the value of identifier of the - * key being requested. + * Template for the URL of the custom service delivering licenses to end user players. Not required when using + * Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will + * update at runtime with the value specific to the request. The currently supported token values are + * {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java index fed6dcc571e2..f0928d52b101 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java @@ -11,14 +11,11 @@ @Fluent public final class StreamingPolicyWidevineConfiguration { /* - * Template for the URL of the custom service delivering licenses to end - * user players. Not required when using Azure Media Services for issuing - * licenses. The template supports replaceable tokens that the service - * will update at runtime with the value specific to the request. The - * currently supported token values are {AlternativeMediaId}, which is - * replaced with the value of StreamingLocatorId.AlternativeMediaId, and - * {ContentKeyId}, which is replaced with the value of identifier of the - * key being requested. + * Template for the URL of the custom service delivering licenses to end user players. Not required when using + * Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will + * update at runtime with the value specific to the request. The currently supported token values are + * {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java index c5def8f10012..bb779f2aa5b0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java @@ -18,15 +18,13 @@ @Fluent public final class TextTrack extends TrackBase { /* - * The file name to the source file. This file is located in the storage - * container of the asset. + * The file name to the source file. This file is located in the storage container of the asset. */ @JsonProperty(value = "fileName") private String fileName; /* - * The display name of the text track on a video player. In HLS, this maps - * to the NAME attribute of EXT-X-MEDIA. + * The display name of the text track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA. */ @JsonProperty(value = "displayName") private String displayName; @@ -38,10 +36,9 @@ public final class TextTrack extends TrackBase { private String languageCode; /* - * When PlayerVisibility is set to "Visible", the text track will be - * present in the DASH manifest or HLS playlist when requested by a client. - * When the PlayerVisibility is set to "Hidden", the text will not be - * available to the client. The default value is "Visible". + * When PlayerVisibility is set to "Visible", the text track will be present in the DASH manifest or HLS playlist + * when requested by a client. When the PlayerVisibility is set to "Hidden", the text will not be available to the + * client. The default value is "Visible". */ @JsonProperty(value = "playerVisibility") private Visibility playerVisibility; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java index 7443821528d5..5dd381dd1ecf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackSelection.java @@ -12,8 +12,7 @@ @Fluent public final class TrackSelection { /* - * TrackSelections is a track property condition list which can specify - * track(s) + * TrackSelections is a track property condition list which can specify track(s) */ @JsonProperty(value = "trackSelections") private List trackSelections; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java index 659be2ef3f78..f7bc794c0419 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java @@ -11,7 +11,9 @@ /** Resource collection API of Tracks. */ public interface Tracks { /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -24,7 +26,9 @@ public interface Tracks { PagedIterable list(String resourceGroupName, String accountName, String assetName); /** - * Lists the Tracks in the asset. + * List Tracks in the Asset + * + *

Lists the Tracks in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -38,7 +42,9 @@ public interface Tracks { PagedIterable list(String resourceGroupName, String accountName, String assetName, Context context); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -52,7 +58,9 @@ public interface Tracks { AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -68,7 +76,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -81,7 +91,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -95,10 +107,12 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -111,10 +125,12 @@ Response getWithResponse( void updateTrackData(String resourceGroupName, String accountName, String assetName, String trackName); /** - * Update the track data. Call this API after any changes are made to the track data stored in the asset container. - * For example, you have modified the WebVTT captions file in the Azure blob storage container for the asset, - * viewers will not see the new version of the captions unless this API is called. Note, the changes may not be - * reflected immediately. CDN cache may also need to be purged if applicable. + * Update the track data + * + *

Update the track data. Call this API after any changes are made to the track data stored in the asset + * container. For example, you have modified the WebVTT captions file in the Azure blob storage container for the + * asset, viewers will not see the new version of the captions unless this API is called. Note, the changes may not + * be reflected immediately. CDN cache may also need to be purged if applicable. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -129,7 +145,9 @@ void updateTrackData( String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -140,7 +158,9 @@ void updateTrackData( AssetTrack getById(String id); /** - * Get the details of a Track in the Asset. + * Get a Track + * + *

Get the details of a Track in the Asset. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -152,7 +172,9 @@ void updateTrackData( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -162,7 +184,9 @@ void updateTrackData( void deleteById(String id); /** - * Deletes a Track in the asset. + * Delete a Track + * + *

Deletes a Track in the asset. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java index fcbb44e37f45..08ac27f38eac 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java @@ -19,8 +19,8 @@ public final class TransformCollection { private List value; /* - * A link to the next page of the collection (when the collection contains - * too many results to return in one response). + * A link to the next page of the collection (when the collection contains too many results to return in one + * response). */ @JsonProperty(value = "@odata.nextLink") private String odataNextLink; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java index af1555232d6a..ffcd946ecad3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java @@ -14,27 +14,23 @@ @Fluent public final class TransformOutput { /* - * A Transform can define more than one outputs. This property defines what - * the service should do when one output fails - either continue to produce - * other outputs, or, stop the other outputs. The overall Job state will - * not reflect failures of outputs that are specified with 'ContinueJob'. - * The default is 'StopProcessingJob'. + * A Transform can define more than one outputs. This property defines what the service should do when one output + * fails - either continue to produce other outputs, or, stop the other outputs. The overall Job state will not + * reflect failures of outputs that are specified with 'ContinueJob'. The default is 'StopProcessingJob'. */ @JsonProperty(value = "onError") private OnErrorType onError; /* - * Sets the relative priority of the TransformOutputs within a Transform. - * This sets the priority that the service uses for processing - * TransformOutputs. The default priority is Normal. + * Sets the relative priority of the TransformOutputs within a Transform. This sets the priority that the service + * uses for processing TransformOutputs. The default priority is Normal. */ @JsonProperty(value = "relativePriority") private Priority relativePriority; /* - * Preset that describes the operations that will be used to modify, - * transcode, or extract insights from the source file to generate the - * output. + * Preset that describes the operations that will be used to modify, transcode, or extract insights from the source + * file to generate the output. */ @JsonProperty(value = "preset", required = true) private Preset preset; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java index 67696e75f9c8..abad63703fb9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java @@ -11,7 +11,9 @@ /** Resource collection API of Transforms. */ public interface Transforms { /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -23,7 +25,9 @@ public interface Transforms { PagedIterable list(String resourceGroupName, String accountName); /** - * Lists the Transforms in the account. + * List Transforms + * + *

Lists the Transforms in the account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -39,7 +43,9 @@ PagedIterable list( String resourceGroupName, String accountName, String filter, String orderby, Context context); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -52,7 +58,9 @@ PagedIterable list( Transform get(String resourceGroupName, String accountName, String transformName); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -67,7 +75,9 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, Context context); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -79,7 +89,9 @@ Response getWithResponse( void delete(String resourceGroupName, String accountName, String transformName); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -94,7 +106,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, Context context); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -105,7 +119,9 @@ Response deleteWithResponse( Transform getById(String id); /** - * Gets a Transform. + * Get Transform + * + *

Gets a Transform. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -117,7 +133,9 @@ Response deleteWithResponse( Response getByIdWithResponse(String id, Context context); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -127,7 +145,9 @@ Response deleteWithResponse( void deleteById(String id); /** - * Deletes a Transform. + * Delete Transform + * + *

Deletes a Transform. * * @param id the resource ID. * @param context The context to associate with this operation. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java index 80d64a6f11c3..6ab19bc3721c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java @@ -26,18 +26,16 @@ @Fluent public class Video extends Codec { /* - * 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 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(value = "keyFrameInterval") private Duration keyFrameInterval; /* - * The resizing mode - how the input video will be resized to fit the - * desired output resolution(s). Default is AutoSize + * The resizing mode - how the input video will be resized to fit the desired output resolution(s). Default is + * AutoSize */ @JsonProperty(value = "stretchMode") private StretchMode stretchMode; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java index e12def233b65..3fa4f725079a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java @@ -19,15 +19,12 @@ @Fluent public final class VideoAnalyzerPreset extends AudioAnalyzerPreset { /* - * Defines the type of insights that you want the service to generate. The - * allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and - * 'AllInsights'. The default is AllInsights. If you set this to - * AllInsights and the input is audio only, then only audio insights are - * generated. Similarly if the input is video only, then only video - * insights are generated. It is recommended that you not use - * AudioInsightsOnly if you expect some of your inputs to be video only; or - * use VideoInsightsOnly if you expect some of your inputs to be audio - * only. Your Jobs in such conditions would error out. + * Defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', + * 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input + * is audio only, then only audio insights are generated. Similarly if the input is video only, then only video + * insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs + * to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such + * conditions would error out. */ @JsonProperty(value = "insightsToExtract") private InsightsType insightsToExtract; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java index 43874fe2d032..2157064807ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java @@ -11,51 +11,45 @@ @Fluent public class VideoLayer extends Layer { /* - * The average bitrate in bits per second at which to encode the input - * video when generating this layer. This is a required field. + * The average bitrate in bits per second at which to encode the input video when generating this layer. This is a + * required field. */ @JsonProperty(value = "bitrate", required = true) private int bitrate; /* - * The maximum bitrate (in bits per second), at which the VBV buffer should - * be assumed to refill. If not specified, defaults to the same value as - * bitrate. + * The maximum bitrate (in bits per second), at which the VBV buffer should be assumed to refill. If not specified, + * defaults to the same value as bitrate. */ @JsonProperty(value = "maxBitrate") private Integer maxBitrate; /* - * The number of B-frames to be used when encoding this layer. If not - * specified, the encoder chooses an appropriate number based on the video - * profile and level. + * The number of B-frames to be used when encoding this layer. If not specified, the encoder chooses an + * appropriate number based on the video profile and level. */ @JsonProperty(value = "bFrames") private Integer bFrames; /* - * The frame rate (in frames per second) at which to encode this layer. The - * value can be in the form of M/N where M and N are integers (For example, - * 30000/1001), or in the form of a number (For example, 30, or 29.97). The - * encoder enforces constraints on allowed frame rates based on the profile - * and level. If it is not specified, the encoder will use the same frame - * rate as the input video. + * The frame rate (in frames per second) at which to encode this layer. The value can be in the form of M/N where M + * and N are integers (For example, 30000/1001), or in the form of a number (For example, 30, or 29.97). The + * encoder enforces constraints on allowed frame rates based on the profile and level. If it is not specified, the + * encoder will use the same frame rate as the input video. */ @JsonProperty(value = "frameRate") private String frameRate; /* - * The number of slices to be used when encoding this layer. If not - * specified, default is zero, which means that encoder will use a single - * slice for each frame. + * The number of slices to be used when encoding this layer. If not specified, default is zero, which means that + * encoder will use a single slice for each frame. */ @JsonProperty(value = "slices") private Integer slices; /* - * Whether or not adaptive B-frames are to be used when encoding this - * layer. If not specified, the encoder will turn it on whenever the video - * profile permits its use. + * Whether or not adaptive B-frames are to be used when encoding this layer. If not specified, the encoder will + * turn it on whenever the video profile permits its use. */ @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java index 33e271838249..69b0a9a2cf0a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java @@ -22,8 +22,8 @@ public final class VideoOverlay extends Overlay { private Rectangle position; /* - * The opacity of the overlay. This is a value in the range [0 - 1.0]. - * Default is 1.0 which mean the overlay is opaque. + * The opacity of the overlay. This is a value in the range [0 - 1.0]. Default is 1.0 which mean the overlay is + * opaque. */ @JsonProperty(value = "opacity") private Double opacity; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java index 9b64ec1d6013..a5b469aa6aa3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Allocate. */ public final class LiveEventsAllocateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java new file mode 100644 index 000000000000..54d289b44790 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for LiveEvents AsyncOperation. */ +public final class LiveEventsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the LiveEvent operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveEventOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveEvents() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java index acf3519df194..8aa7be94b1fd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java @@ -18,7 +18,7 @@ /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java index 74cb1d4af7f7..700dadc406fa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Delete. */ public final class LiveEventsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java index 0d577e043665..05daeb76e5cd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Get. */ public final class LiveEventsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java index 443731125094..ef7962cd3bed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents List. */ public final class LiveEventsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java new file mode 100644 index 000000000000..a46687272bec --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for LiveEvents OperationLocation. */ +public final class LiveEventsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + */ + /** + * Sample code: Get the LiveEvent operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveEventOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveEvents() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myLiveEvent1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java index 69792a168b73..fc52a8d31a0e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Reset. */ public final class LiveEventsResetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java index d123ec3367fb..c2bfe543a829 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveEvents Start. */ public final class LiveEventsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java index e61324b8fa2d..a6e7d1a51880 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java @@ -10,7 +10,7 @@ /** Samples for LiveEvents Stop. */ public final class LiveEventsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java index 3e2a9ccf42c8..975c3ba94a27 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java @@ -20,7 +20,7 @@ /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java new file mode 100644 index 000000000000..c3a7ccec746f --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for LiveOutputs AsyncOperation. */ +public final class LiveOutputsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the LiveOutput operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveOutputOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveOutputs() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java index 851fbadab892..dc328c7e8c0a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java @@ -10,7 +10,7 @@ /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. @@ -25,6 +25,7 @@ public static void createALiveOutput(com.azure.resourcemanager.mediaservices.Med .withDescription("test live output 1") .withAssetName("6f3264f5-a189-48b4-a29a-a40f22575212") .withArchiveWindowLength(Duration.parse("PT5M")) + .withRewindWindowLength(Duration.parse("PT4M")) .withManifestName("testmanifest") .withHls(new Hls().withFragmentsPerTsSegment(5)) .create(); diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java index e46050ddf2df..a718bf74b396 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs Delete. */ public final class LiveOutputsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java index e3175297ae2f..b2039a10bb7c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs Get. */ public final class LiveOutputsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java index 34ad92a3ce1d..174e51cbe4fa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java @@ -9,7 +9,7 @@ /** Samples for LiveOutputs List. */ public final class LiveOutputsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java new file mode 100644 index 000000000000..be92d5fedace --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for LiveOutputs OperationLocation. */ +public final class LiveOutputsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + */ + /** + * Sample code: Get the LiveOutput operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheLiveOutputOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .liveOutputs() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myLiveEvent1", + "myLiveOutput1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java new file mode 100644 index 000000000000..5f16e8c70142 --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for StreamingEndpoints AsyncOperation. */ +public final class StreamingEndpointsAsyncOperationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + */ + /** + * Sample code: Get the streaming endpoint operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheStreamingEndpointOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .streamingEndpoints() + .asyncOperationWithResponse( + "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java index 512f7615ebcf..824175598138 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java @@ -17,7 +17,7 @@ /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java index b1eacd49510a..16e058a966dd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Delete. */ public final class StreamingEndpointsDeleteSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java index e9e0f1fd5d3a..378cf9bd2487 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Get. */ public final class StreamingEndpointsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java index c1a4e0a484c5..4d074630b3e1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints List. */ public final class StreamingEndpointsListSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java new file mode 100644 index 000000000000..45b6190f85aa --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.generated; + +import com.azure.core.util.Context; + +/** Samples for StreamingEndpoints OperationLocation. */ +public final class StreamingEndpointsOperationLocationSamples { + /* + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + */ + /** + * Sample code: Get the streaming endpoint operation status. + * + * @param manager Entry point to MediaServicesManager. + */ + public static void getTheStreamingEndpointOperationStatus( + com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { + manager + .streamingEndpoints() + .operationLocationWithResponse( + "mediaresources", + "slitestmedia10", + "myStreamingEndpoint1", + "62e4d893-d233-4005-988e-a428d9f77076", + Context.NONE); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java index d87dc471024a..0013e5a0411d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java @@ -10,7 +10,7 @@ /** Samples for StreamingEndpoints Scale. */ public final class StreamingEndpointsScaleSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java index 8493c1470b26..989d09fcd09c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Skus. */ public final class StreamingEndpointsSkusSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java index 3bd3a6d6c17e..afdba244ff2d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Start. */ public final class StreamingEndpointsStartSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java index 1e0147f71b1e..c7d2f83fd5c5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java @@ -9,7 +9,7 @@ /** Samples for StreamingEndpoints Stop. */ public final class StreamingEndpointsStopSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java index ab6ca02cedd7..ddc4606f81fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java @@ -12,7 +12,7 @@ /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint.