diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
index f81ab5a8b13e3..276961ffd96e1 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.1.0-beta.3 (Unreleased)
+## 1.0.0-beta.1 (2022-02-24)
+- 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-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.1.0-beta.2 (2021-07-16)
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md
index 254fd1343a461..f60f86b63f5b2 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-2021-06. 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-2021-11. 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
- 1.1.0-beta.2
+ 1.1.0-beta.3
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,62 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+```java
+// storage account
+StorageAccount storageAccount = storageManager.storageAccounts().define(STORAGE_ACCOUNT)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroup)
+ .create();
+
+// media service account
+MediaService account = manager.mediaservices().define(ACCOUNT)
+ .withRegion(Region.US_WEST3)
+ .withExistingResourceGroup(resourceGroup)
+ .withStorageAccounts(Collections.singletonList(
+ new com.azure.resourcemanager.mediaservices.models.StorageAccount()
+ .withId(storageAccount.id())
+ .withType(StorageAccountType.PRIMARY)))
+ .create();
+
+// transform
+Transform transform = manager.transforms()
+ .define("transform1")
+ .withExistingMediaService(resourceGroup, ACCOUNT)
+ .withOutputs(Collections.singletonList(new TransformOutput()
+ .withPreset(new BuiltInStandardEncoderPreset()
+ .withPresetName(EncoderNamedPreset.CONTENT_AWARE_ENCODING))))
+ .create();
+
+// output asset
+Asset asset = manager.assets()
+ .define("output1")
+ .withExistingMediaService(resourceGroup, ACCOUNT)
+ .create();
+
+// input uri
+String jobHttpBaseUri = "https://nimbuscdn-nimbuspm.streaming.mediaservices.windows.net/2b533311-b215-4409-80af-529c3e853622/";
+String jobFile = "Ignite-short.mp4";
+
+// job
+Job job = manager.jobs().define("job1")
+ .withExistingTransform(resourceGroup, ACCOUNT, "transform1")
+ .withInput(new JobInputHttp()
+ .withFiles(Collections.singletonList(jobFile))
+ .withBaseUri(jobHttpBaseUri)
+ .withLabel("input1"))
+ .withOutputs(Collections.singletonList(new JobOutputAsset().withAssetName("output1")))
+ .create();
+
+// wait for job completion
+JobState jobState = job.state();
+while (!(jobState == JobState.CANCELED || jobState == JobState.ERROR || jobState == JobState.FINISHED)) {
+ sleepIfRunningAgainstService(10 * 1000); // wait 10 seconds
+ jobState = job.refresh().state();
+}
+
+// refresh output asset after job finished
+asset.refresh();
+```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md)
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md
index fe21e814f9235..295aeae7c81d2 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md
@@ -1,132 +1,3577 @@
# Code snippets and samples
-### AccountFilters
+## AccountFilters
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AccountFiltersCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AccountFiltersDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AccountFiltersGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AccountFiltersListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AccountFiltersUpdateSamples.java)
+- [CreateOrUpdate](#accountfilters_createorupdate)
+- [Delete](#accountfilters_delete)
+- [Get](#accountfilters_get)
+- [List](#accountfilters_list)
+- [Update](#accountfilters_update)
-### AssetFilters
+## AssetFilters
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetFiltersCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetFiltersDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetFiltersGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetFiltersListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetFiltersUpdateSamples.java)
-
-### Assets
+- [CreateOrUpdate](#assetfilters_createorupdate)
+- [Delete](#assetfilters_delete)
+- [Get](#assetfilters_get)
+- [List](#assetfilters_list)
+- [Update](#assetfilters_update)
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsGetSamples.java)
-- [GetEncryptionKey](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsGetEncryptionKeySamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsListSamples.java)
-- [ListContainerSas](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsListContainerSasSamples.java)
-- [ListStreamingLocators](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsListStreamingLocatorsSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/AssetsUpdateSamples.java)
+## Assets
-### ContentKeyPolicies
-
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesGetSamples.java)
-- [GetPolicyPropertiesWithSecrets](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/ContentKeyPoliciesUpdateSamples.java)
-
-### Jobs
-
-- [CancelJob](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsCancelJobSamples.java)
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/JobsUpdateSamples.java)
-
-### LiveEvents
-
-- [Allocate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsAllocateSamples.java)
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsListSamples.java)
-- [Reset](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsResetSamples.java)
-- [Start](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsStartSamples.java)
-- [Stop](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsStopSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveEventsUpdateSamples.java)
-
-### LiveOutputs
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveOutputsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveOutputsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveOutputsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LiveOutputsListSamples.java)
-
-### Locations
-
-- [CheckNameAvailability](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/LocationsCheckNameAvailabilitySamples.java)
-
-### Mediaservices
-
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesDeleteSamples.java)
-- [GetByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesGetByResourceGroupSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesListSamples.java)
-- [ListByResourceGroup](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesListByResourceGroupSamples.java)
-- [ListEdgePolicies](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesListEdgePoliciesSamples.java)
-- [SyncStorageKeys](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesSyncStorageKeysSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/MediaservicesUpdateSamples.java)
-
-### Operations
-
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/OperationsListSamples.java)
-
-### PrivateEndpointConnections
-
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateEndpointConnectionsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateEndpointConnectionsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateEndpointConnectionsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateEndpointConnectionsListSamples.java)
-
-### PrivateLinkResources
-
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateLinkResourcesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/PrivateLinkResourcesListSamples.java)
-
-### StreamingEndpoints
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsListSamples.java)
-- [Scale](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsScaleSamples.java)
-- [Start](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsStartSamples.java)
-- [Stop](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsStopSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingEndpointsUpdateSamples.java)
-
-### StreamingLocators
+- [CreateOrUpdate](#assets_createorupdate)
+- [Delete](#assets_delete)
+- [Get](#assets_get)
+- [GetEncryptionKey](#assets_getencryptionkey)
+- [List](#assets_list)
+- [ListContainerSas](#assets_listcontainersas)
+- [ListStreamingLocators](#assets_liststreaminglocators)
+- [Update](#assets_update)
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsListSamples.java)
-- [ListContentKeys](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsListContentKeysSamples.java)
-- [ListPaths](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingLocatorsListPathsSamples.java)
+## ContentKeyPolicies
-### StreamingPolicies
-
-- [Create](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingPoliciesCreateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingPoliciesDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingPoliciesGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/StreamingPoliciesListSamples.java)
-
-### Transforms
+- [CreateOrUpdate](#contentkeypolicies_createorupdate)
+- [Delete](#contentkeypolicies_delete)
+- [Get](#contentkeypolicies_get)
+- [GetPolicyPropertiesWithSecrets](#contentkeypolicies_getpolicypropertieswithsecrets)
+- [List](#contentkeypolicies_list)
+- [Update](#contentkeypolicies_update)
+
+## Jobs
+
+- [CancelJob](#jobs_canceljob)
+- [Create](#jobs_create)
+- [Delete](#jobs_delete)
+- [Get](#jobs_get)
+- [List](#jobs_list)
+- [Update](#jobs_update)
+
+## LiveEvents
+
+- [Allocate](#liveevents_allocate)
+- [Create](#liveevents_create)
+- [Delete](#liveevents_delete)
+- [Get](#liveevents_get)
+- [List](#liveevents_list)
+- [Reset](#liveevents_reset)
+- [Start](#liveevents_start)
+- [Stop](#liveevents_stop)
+- [Update](#liveevents_update)
+
+## LiveOutputs
+
+- [Create](#liveoutputs_create)
+- [Delete](#liveoutputs_delete)
+- [Get](#liveoutputs_get)
+- [List](#liveoutputs_list)
+
+## Locations
+
+- [CheckNameAvailability](#locations_checknameavailability)
+
+## MediaServiceOperationResults
+
+- [Get](#mediaserviceoperationresults_get)
+
+## MediaServiceOperationStatuses
+
+- [Get](#mediaserviceoperationstatuses_get)
+
+## Mediaservices
+
+- [CreateOrUpdate](#mediaservices_createorupdate)
+- [Delete](#mediaservices_delete)
+- [GetByResourceGroup](#mediaservices_getbyresourcegroup)
+- [List](#mediaservices_list)
+- [ListByResourceGroup](#mediaservices_listbyresourcegroup)
+- [ListEdgePolicies](#mediaservices_listedgepolicies)
+- [SyncStorageKeys](#mediaservices_syncstoragekeys)
+- [Update](#mediaservices_update)
+
+## OperationResults
+
+- [Get](#operationresults_get)
+
+## OperationStatuses
+
+- [Get](#operationstatuses_get)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [List](#privateendpointconnections_list)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [List](#privatelinkresources_list)
+
+## StreamingEndpoints
+
+- [Create](#streamingendpoints_create)
+- [Delete](#streamingendpoints_delete)
+- [Get](#streamingendpoints_get)
+- [List](#streamingendpoints_list)
+- [Scale](#streamingendpoints_scale)
+- [Skus](#streamingendpoints_skus)
+- [Start](#streamingendpoints_start)
+- [Stop](#streamingendpoints_stop)
+- [Update](#streamingendpoints_update)
+
+## StreamingLocators
+
+- [Create](#streaminglocators_create)
+- [Delete](#streaminglocators_delete)
+- [Get](#streaminglocators_get)
+- [List](#streaminglocators_list)
+- [ListContentKeys](#streaminglocators_listcontentkeys)
+- [ListPaths](#streaminglocators_listpaths)
+
+## StreamingPolicies
+
+- [Create](#streamingpolicies_create)
+- [Delete](#streamingpolicies_delete)
+- [Get](#streamingpolicies_get)
+- [List](#streamingpolicies_list)
+
+## Tracks
+
+- [CreateOrUpdate](#tracks_createorupdate)
+- [Delete](#tracks_delete)
+- [Get](#tracks_get)
+- [List](#tracks_list)
+- [Update](#tracks_update)
+- [UpdateTrackData](#tracks_updatetrackdata)
+
+## Transforms
+
+- [CreateOrUpdate](#transforms_createorupdate)
+- [Delete](#transforms_delete)
+- [Get](#transforms_get)
+- [List](#transforms_list)
+- [Update](#transforms_update)
+### AccountFilters_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCompareOperation;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCondition;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyType;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
+import com.azure.resourcemanager.mediaservices.models.FirstQuality;
+import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import java.util.Arrays;
+
+/** Samples for AccountFilters CreateOrUpdate. */
+public final class AccountFiltersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accountFilters-create.json
+ */
+ /**
+ * Sample code: Create an Account Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .accountFilters()
+ .define("newAccountFilter")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withPresentationTimeRange(
+ new PresentationTimeRange()
+ .withStartTimestamp(0L)
+ .withEndTimestamp(170000000L)
+ .withPresentationWindowDuration(9223372036854775000L)
+ .withLiveBackoffDuration(0L)
+ .withTimescale(10000000L)
+ .withForceEndTimestamp(false))
+ .withFirstQuality(new FirstQuality().withBitrate(128000))
+ .withTracks(
+ Arrays
+ .asList(
+ new FilterTrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.TYPE)
+ .withValue("Audio")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.LANGUAGE)
+ .withValue("en")
+ .withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.FOUR_CC)
+ .withValue("EC-3")
+ .withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL))),
+ new FilterTrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.TYPE)
+ .withValue("Video")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.BITRATE)
+ .withValue("3000000-5000000")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL)))))
+ .create();
+ }
+}
+```
+
+### AccountFilters_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AccountFilters Delete. */
+public final class AccountFiltersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accountFilters-delete.json
+ */
+ /**
+ * Sample code: Delete an Account Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .accountFilters()
+ .deleteWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE);
+ }
+}
+```
+
+### AccountFilters_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AccountFilters Get. */
+public final class AccountFiltersGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accountFilters-get-by-name.json
+ */
+ /**
+ * Sample code: Get an Account Filter by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAnAccountFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.accountFilters().getWithResponse("contoso", "contosomedia", "accountFilterWithTrack", Context.NONE);
+ }
+}
+```
+
+### AccountFilters_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AccountFilters List. */
+public final class AccountFiltersListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accountFilters-list-all.json
+ */
+ /**
+ * Sample code: List all Account Filters.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllAccountFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.accountFilters().list("contoso", "contosomedia", Context.NONE);
+ }
+}
+```
+
+### AccountFilters_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.AccountFilter;
+import com.azure.resourcemanager.mediaservices.models.FirstQuality;
+import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+
+/** Samples for AccountFilters Update. */
+public final class AccountFiltersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accountFilters-update.json
+ */
+ /**
+ * Sample code: Update an Account Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ AccountFilter resource =
+ manager
+ .accountFilters()
+ .getWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withPresentationTimeRange(
+ new PresentationTimeRange()
+ .withStartTimestamp(10L)
+ .withEndTimestamp(170000000L)
+ .withPresentationWindowDuration(9223372036854775000L)
+ .withLiveBackoffDuration(0L)
+ .withTimescale(10000000L)
+ .withForceEndTimestamp(false))
+ .withFirstQuality(new FirstQuality().withBitrate(128000))
+ .apply();
+ }
+}
+```
+
+### AssetFilters_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCompareOperation;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyCondition;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackPropertyType;
+import com.azure.resourcemanager.mediaservices.models.FilterTrackSelection;
+import com.azure.resourcemanager.mediaservices.models.FirstQuality;
+import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import java.util.Arrays;
+
+/** Samples for AssetFilters CreateOrUpdate. */
+public final class AssetFiltersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assetFilters-create.json
+ */
+ /**
+ * Sample code: Create an Asset Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAnAssetFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assetFilters()
+ .define("newAssetFilter")
+ .withExistingAsset("contoso", "contosomedia", "ClimbingMountRainer")
+ .withPresentationTimeRange(
+ new PresentationTimeRange()
+ .withStartTimestamp(0L)
+ .withEndTimestamp(170000000L)
+ .withPresentationWindowDuration(9223372036854775000L)
+ .withLiveBackoffDuration(0L)
+ .withTimescale(10000000L)
+ .withForceEndTimestamp(false))
+ .withFirstQuality(new FirstQuality().withBitrate(128000))
+ .withTracks(
+ Arrays
+ .asList(
+ new FilterTrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.TYPE)
+ .withValue("Audio")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.LANGUAGE)
+ .withValue("en")
+ .withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.FOUR_CC)
+ .withValue("EC-3")
+ .withOperation(FilterTrackPropertyCompareOperation.NOT_EQUAL))),
+ new FilterTrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.TYPE)
+ .withValue("Video")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL),
+ new FilterTrackPropertyCondition()
+ .withProperty(FilterTrackPropertyType.BITRATE)
+ .withValue("3000000-5000000")
+ .withOperation(FilterTrackPropertyCompareOperation.EQUAL)))))
+ .create();
+ }
+}
+```
+
+### AssetFilters_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssetFilters Delete. */
+public final class AssetFiltersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assetFilters-delete.json
+ */
+ /**
+ * Sample code: Delete an Asset Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAnAssetFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assetFilters()
+ .deleteWithResponse(
+ "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE);
+ }
+}
+```
+
+### AssetFilters_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssetFilters Get. */
+public final class AssetFiltersGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assetFilters-get-by-name.json
+ */
+ /**
+ * Sample code: Get an Asset Filter by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAnAssetFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assetFilters()
+ .getWithResponse(
+ "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE);
+ }
+}
+```
+
+### AssetFilters_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AssetFilters List. */
+public final class AssetFiltersListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assetFilters-list-all.json
+ */
+ /**
+ * Sample code: List all Asset Filters.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllAssetFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.assetFilters().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE);
+ }
+}
+```
+
+### AssetFilters_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.AssetFilter;
+import com.azure.resourcemanager.mediaservices.models.FirstQuality;
+import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+
+/** Samples for AssetFilters Update. */
+public final class AssetFiltersUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assetFilters-update.json
+ */
+ /**
+ * Sample code: Update an Asset Filter.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAnAssetFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ AssetFilter resource =
+ manager
+ .assetFilters()
+ .getWithResponse(
+ "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withPresentationTimeRange(
+ new PresentationTimeRange()
+ .withStartTimestamp(10L)
+ .withEndTimestamp(170000000L)
+ .withPresentationWindowDuration(9223372036854775000L)
+ .withLiveBackoffDuration(0L)
+ .withTimescale(10000000L)
+ .withForceEndTimestamp(false))
+ .withFirstQuality(new FirstQuality().withBitrate(128000))
+ .apply();
+ }
+}
+```
+
+### Assets_CreateOrUpdate
+
+```java
+/** Samples for Assets CreateOrUpdate. */
+public final class AssetsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-create.json
+ */
+ /**
+ * Sample code: Create an Asset.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assets()
+ .define("ClimbingMountLogan")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDescription("A documentary showing the ascent of Mount Logan")
+ .withStorageAccountName("storage0")
+ .create();
+ }
+}
+```
+
+### Assets_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assets Delete. */
+public final class AssetsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-delete.json
+ */
+ /**
+ * Sample code: Delete an Asset.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.assets().deleteWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE);
+ }
+}
+```
+
+### Assets_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assets Get. */
+public final class AssetsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-get-by-name.json
+ */
+ /**
+ * Sample code: Get an Asset by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAnAssetByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE);
+ }
+}
+```
+
+### Assets_GetEncryptionKey
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assets GetEncryptionKey. */
+public final class AssetsGetEncryptionKeySamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-get-encryption-keys.json
+ */
+ /**
+ * Sample code: Get Asset Storage Encryption Keys.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAssetStorageEncryptionKeys(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assets()
+ .getEncryptionKeyWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE);
+ }
+}
+```
+
+### Assets_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assets List. */
+public final class AssetsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-list-by-date.json
+ */
+ /**
+ * Sample code: List Asset ordered by date.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAssetOrderedByDate(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.assets().list("contoso", "contosomedia", null, null, "properties/created", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-list-in-date-range.json
+ */
+ /**
+ * Sample code: List Asset created in a date range.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAssetCreatedInADateRange(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assets()
+ .list(
+ "contoso",
+ "contosomedia",
+ "properties/created gt 2012-06-01 and properties/created lt 2013-07-01",
+ null,
+ "properties/created",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-list-all.json
+ */
+ /**
+ * Sample code: List all Assets.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllAssets(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.assets().list("contoso", "contosomedia", null, null, null, Context.NONE);
+ }
+}
+```
+
+### Assets_ListContainerSas
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.AssetContainerPermission;
+import com.azure.resourcemanager.mediaservices.models.ListContainerSasInput;
+import java.time.OffsetDateTime;
+
+/** Samples for Assets ListContainerSas. */
+public final class AssetsListContainerSasSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-list-sas-urls.json
+ */
+ /**
+ * Sample code: List Asset SAS URLs.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAssetSASURLs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assets()
+ .listContainerSasWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountBaker",
+ new ListContainerSasInput()
+ .withPermissions(AssetContainerPermission.READ_WRITE)
+ .withExpiryTime(OffsetDateTime.parse("2018-01-01T10:00:00.007Z")),
+ Context.NONE);
+ }
+}
+```
+
+### Assets_ListStreamingLocators
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Assets ListStreamingLocators. */
+public final class AssetsListStreamingLocatorsSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-list-streaming-locators.json
+ */
+ /**
+ * Sample code: List Asset SAS URLs.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAssetSASURLs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .assets()
+ .listStreamingLocatorsWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE);
+ }
+}
+```
+
+### Assets_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.Asset;
+
+/** Samples for Assets Update. */
+public final class AssetsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/assets-update.json
+ */
+ /**
+ * Sample code: Update an Asset.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ Asset resource =
+ manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountBaker", Context.NONE).getValue();
+ resource.update().withDescription("A documentary showing the ascent of Mount Baker in HD").apply();
+ }
+}
+```
+
+### ContentKeyPolicies_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyClearKeyConfiguration;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOpenRestriction;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyConfiguration;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyContentType;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyLicense;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyLicenseType;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyPlayRight;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyPlayReadyUnknownOutputPassingOption;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRestrictionTokenType;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyRsaTokenKey;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicySymmetricTokenKey;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyTokenRestriction;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyWidevineConfiguration;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/** Samples for ContentKeyPolicies CreateOrUpdate. */
+public final class ContentKeyPoliciesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-create-multiple-options.json
+ */
+ /**
+ * Sample code: Creates a Content Key Policy with multiple options.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAContentKeyPolicyWithMultipleOptions(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .define("PolicyCreatedWithMultipleOptions")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDescription("ArmPolicyDescription")
+ .withOptions(
+ Arrays
+ .asList(
+ new ContentKeyPolicyOption()
+ .withName("ClearKeyOption")
+ .withConfiguration(new ContentKeyPolicyClearKeyConfiguration())
+ .withRestriction(
+ new ContentKeyPolicyTokenRestriction()
+ .withIssuer("urn:issuer")
+ .withAudience("urn:audience")
+ .withPrimaryVerificationKey(
+ new ContentKeyPolicySymmetricTokenKey()
+ .withKeyValue("AAAAAAAAAAAAAAAAAAAAAA==".getBytes()))
+ .withRestrictionTokenType(ContentKeyPolicyRestrictionTokenType.SWT)),
+ new ContentKeyPolicyOption()
+ .withName("widevineoption")
+ .withConfiguration(
+ new ContentKeyPolicyWidevineConfiguration()
+ .withWidevineTemplate(
+ "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}"))
+ .withRestriction(new ContentKeyPolicyOpenRestriction())))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-create-nodrm-token.json
+ */
+ /**
+ * Sample code: Creates a Content Key Policy with ClearKey option and Token Restriction.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAContentKeyPolicyWithClearKeyOptionAndTokenRestriction(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .define("PolicyWithClearKeyOptionAndSwtTokenRestriction")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDescription("ArmPolicyDescription")
+ .withOptions(
+ Arrays
+ .asList(
+ new ContentKeyPolicyOption()
+ .withName("ClearKeyOption")
+ .withConfiguration(new ContentKeyPolicyClearKeyConfiguration())
+ .withRestriction(
+ new ContentKeyPolicyTokenRestriction()
+ .withIssuer("urn:issuer")
+ .withAudience("urn:audience")
+ .withPrimaryVerificationKey(
+ new ContentKeyPolicySymmetricTokenKey()
+ .withKeyValue("AAAAAAAAAAAAAAAAAAAAAA==".getBytes()))
+ .withRestrictionTokenType(ContentKeyPolicyRestrictionTokenType.SWT))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-create-playready-open.json
+ */
+ /**
+ * Sample code: Creates a Content Key Policy with PlayReady option and Open Restriction.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAContentKeyPolicyWithPlayReadyOptionAndOpenRestriction(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .define("PolicyWithPlayReadyOptionAndOpenRestriction")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDescription("ArmPolicyDescription")
+ .withOptions(
+ Arrays
+ .asList(
+ new ContentKeyPolicyOption()
+ .withName("ArmPolicyOptionName")
+ .withConfiguration(
+ new ContentKeyPolicyPlayReadyConfiguration()
+ .withLicenses(
+ Arrays
+ .asList(
+ new ContentKeyPolicyPlayReadyLicense()
+ .withAllowTestDevices(true)
+ .withBeginDate(OffsetDateTime.parse("2017-10-16T18:22:53.46Z"))
+ .withPlayRight(
+ new ContentKeyPolicyPlayReadyPlayRight()
+ .withScmsRestriction(2)
+ .withDigitalVideoOnlyContentRestriction(false)
+ .withImageConstraintForAnalogComponentVideoRestriction(true)
+ .withImageConstraintForAnalogComputerMonitorRestriction(
+ false)
+ .withAllowPassingVideoContentToUnknownOutput(
+ ContentKeyPolicyPlayReadyUnknownOutputPassingOption
+ .NOT_ALLOWED))
+ .withLicenseType(ContentKeyPolicyPlayReadyLicenseType.PERSISTENT)
+ .withContentKeyLocation(
+ new ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader())
+ .withContentType(
+ ContentKeyPolicyPlayReadyContentType.ULTRA_VIOLET_DOWNLOAD))))
+ .withRestriction(new ContentKeyPolicyOpenRestriction())))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-create-widevine-token.json
+ */
+ /**
+ * Sample code: Creates a Content Key Policy with Widevine option and Token Restriction.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAContentKeyPolicyWithWidevineOptionAndTokenRestriction(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .define("PolicyWithWidevineOptionAndJwtTokenRestriction")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDescription("ArmPolicyDescription")
+ .withOptions(
+ Arrays
+ .asList(
+ new ContentKeyPolicyOption()
+ .withName("widevineoption")
+ .withConfiguration(
+ new ContentKeyPolicyWidevineConfiguration()
+ .withWidevineTemplate(
+ "{\"allowed_track_types\":\"SD_HD\",\"content_key_specs\":[{\"track_type\":\"SD\",\"security_level\":1,\"required_output_protection\":{\"hdcp\":\"HDCP_V2\"}}],\"policy_overrides\":{\"can_play\":true,\"can_persist\":true,\"can_renew\":false}}"))
+ .withRestriction(
+ new ContentKeyPolicyTokenRestriction()
+ .withIssuer("urn:issuer")
+ .withAudience("urn:audience")
+ .withPrimaryVerificationKey(
+ new ContentKeyPolicyRsaTokenKey()
+ .withExponent("AQAB".getBytes())
+ .withModulus("AQAD".getBytes()))
+ .withAlternateVerificationKeys(
+ Arrays
+ .asList(
+ new ContentKeyPolicySymmetricTokenKey()
+ .withKeyValue("AAAAAAAAAAAAAAAAAAAAAA==".getBytes())))
+ .withRestrictionTokenType(ContentKeyPolicyRestrictionTokenType.JWT))))
+ .create();
+ }
+}
+```
+
+### ContentKeyPolicies_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContentKeyPolicies Delete. */
+public final class ContentKeyPoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-delete.json
+ */
+ /**
+ * Sample code: Delete a Key Policy.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAKeyPolicy(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .deleteWithResponse("contoso", "contosomedia", "PolicyWithPlayReadyOptionAndOpenRestriction", Context.NONE);
+ }
+}
+```
+
+### ContentKeyPolicies_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContentKeyPolicies Get. */
+public final class ContentKeyPoliciesGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Content Key Policy by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAContentKeyPolicyByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .getWithResponse("contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE);
+ }
+}
+```
+
+### ContentKeyPolicies_GetPolicyPropertiesWithSecrets
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContentKeyPolicies GetPolicyPropertiesWithSecrets. */
+public final class ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-get-with-secrets.json
+ */
+ /**
+ * Sample code: Get an Content Key Policy with secrets.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAnContentKeyPolicyWithSecrets(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .getPolicyPropertiesWithSecretsWithResponse(
+ "contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE);
+ }
+}
+```
+
+### ContentKeyPolicies_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ContentKeyPolicies List. */
+public final class ContentKeyPoliciesListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-list-all.json
+ */
+ /**
+ * Sample code: Lists all Content Key Policies.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsAllContentKeyPolicies(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.contentKeyPolicies().list("contoso", "contosomedia", null, null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-list-in-date-range.json
+ */
+ /**
+ * Sample code: Lists Content Key Policies with created and last modified filters.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsContentKeyPoliciesWithCreatedAndLastModifiedFilters(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .list(
+ "contoso",
+ "contosomedia",
+ "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01",
+ null,
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-list-by-lastModified.json
+ */
+ /**
+ * Sample code: Lists Content Key Policies ordered by last modified.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsContentKeyPoliciesOrderedByLastModified(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .contentKeyPolicies()
+ .list("contoso", "contosomedia", null, null, "properties/lastModified", Context.NONE);
+ }
+}
+```
+
+### ContentKeyPolicies_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicy;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyClearKeyConfiguration;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOpenRestriction;
+import com.azure.resourcemanager.mediaservices.models.ContentKeyPolicyOption;
+import java.util.Arrays;
+
+/** Samples for ContentKeyPolicies Update. */
+public final class ContentKeyPoliciesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/content-key-policies-update.json
+ */
+ /**
+ * Sample code: Update a Content Key Policy.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAContentKeyPolicy(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ ContentKeyPolicy resource =
+ manager
+ .contentKeyPolicies()
+ .getWithResponse("contoso", "contosomedia", "PolicyWithClearKeyOptionAndTokenRestriction", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withDescription("Updated Policy")
+ .withOptions(
+ Arrays
+ .asList(
+ new ContentKeyPolicyOption()
+ .withName("ClearKeyOption")
+ .withConfiguration(new ContentKeyPolicyClearKeyConfiguration())
+ .withRestriction(new ContentKeyPolicyOpenRestriction())))
+ .apply();
+ }
+}
+```
+
+### Jobs_CancelJob
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Jobs CancelJob. */
+public final class JobsCancelJobSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-cancel.json
+ */
+ /**
+ * Sample code: Cancel a Job.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void cancelAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .cancelJobWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE);
+ }
+}
+```
+
+### Jobs_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.JobInputAsset;
+import com.azure.resourcemanager.mediaservices.models.JobOutputAsset;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Jobs Create. */
+public final class JobsCreateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-create.json
+ */
+ /**
+ * Sample code: Create a Job.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .define("job1")
+ .withExistingTransform("contosoresources", "contosomedia", "exampleTransform")
+ .withInput(new JobInputAsset().withAssetName("job1-InputAsset"))
+ .withOutputs(Arrays.asList(new JobOutputAsset().withAssetName("job1-OutputAsset")))
+ .withCorrelationData(mapOf("Key 2", "Value 2", "key1", "value1"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Jobs_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Jobs Delete. */
+public final class JobsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-delete.json
+ */
+ /**
+ * Sample code: Delete a Job.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .deleteWithResponse("contosoresources", "contosomedia", "exampleTransform", "jobToDelete", Context.NONE);
+ }
+}
+```
+
+### Jobs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Jobs Get. */
+public final class JobsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Job by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAJobByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.jobs().getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE);
+ }
+}
+```
+
+### Jobs_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Jobs List. */
+public final class JobsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-state-ne.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by state not equal.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByStateNotEqual(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "properties/state ne Microsoft.Media.JobState'processing'",
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-state-eq.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by state equal.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByStateEqual(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "properties/state eq Microsoft.Media.JobState'Processing'",
+ null,
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "name eq 'job1' or name eq 'job2'",
+ "name",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by lastmodified.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByLastmodified(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le"
+ + " 2021-11-01T00:00:20.0000000Z",
+ "properties/lastmodified desc",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by created.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByCreated(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le"
+ + " 2021-11-01T00:00:20.0000000Z",
+ "properties/created",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all.json
+ */
+ /**
+ * Sample code: Lists all of the Jobs for the Transform.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsAllOfTheJobsForTheTransform(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.jobs().list("contosoresources", "contosomedia", "exampleTransform", null, null, Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-name-and-state.json
+ */
+ /**
+ * Sample code: Lists Jobs for the Transform filter by name and state.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsJobsForTheTransformFilterByNameAndState(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .jobs()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "exampleTransform",
+ "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'",
+ null,
+ Context.NONE);
+ }
+}
+```
+
+### Jobs_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.Job;
+import com.azure.resourcemanager.mediaservices.models.JobInputAsset;
+import com.azure.resourcemanager.mediaservices.models.JobOutputAsset;
+import com.azure.resourcemanager.mediaservices.models.Priority;
+import java.util.Arrays;
+
+/** Samples for Jobs Update. */
+public final class JobsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-update.json
+ */
+ /**
+ * Sample code: Update a Job.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ Job resource =
+ manager
+ .jobs()
+ .getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withDescription("Example job to illustrate update.")
+ .withInput(new JobInputAsset().withAssetName("job1-InputAsset"))
+ .withOutputs(Arrays.asList(new JobOutputAsset().withAssetName("job1-OutputAsset")))
+ .withPriority(Priority.HIGH)
+ .apply();
+ }
+}
+```
+
+### LiveEvents_Allocate
+
+```java
+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
+ */
+ /**
+ * Sample code: Allocate a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void allocateALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().allocate("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.IpAccessControl;
+import com.azure.resourcemanager.mediaservices.models.IpRange;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInput;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInputAccessControl;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInputProtocol;
+import com.azure.resourcemanager.mediaservices.models.LiveEventPreview;
+import com.azure.resourcemanager.mediaservices.models.LiveEventPreviewAccessControl;
+import java.util.Arrays;
+import java.util.HashMap;
+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
+ */
+ /**
+ * Sample code: Create a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .liveEvents()
+ .define("myLiveEvent1")
+ .withRegion("West US")
+ .withExistingMediaservice("mediaresources", "slitestmedia10")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDescription("test event 1")
+ .withInput(
+ new LiveEventInput()
+ .withStreamingProtocol(LiveEventInputProtocol.RTMP)
+ .withAccessControl(
+ new LiveEventInputAccessControl()
+ .withIp(
+ new IpAccessControl()
+ .withAllow(
+ Arrays
+ .asList(
+ new IpRange()
+ .withName("AllowAll")
+ .withAddress("0.0.0.0")
+ .withSubnetPrefixLength(0)))))
+ .withKeyFrameIntervalDuration("PT6S"))
+ .withPreview(
+ new LiveEventPreview()
+ .withAccessControl(
+ new LiveEventPreviewAccessControl()
+ .withIp(
+ new IpAccessControl()
+ .withAllow(
+ Arrays
+ .asList(
+ new IpRange()
+ .withName("AllowAll")
+ .withAddress("0.0.0.0")
+ .withSubnetPrefixLength(0))))))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LiveEvents_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().delete("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a LiveEvent by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getALiveEventByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List all LiveEvents.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllLiveEvents(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().list("mediaresources", "slitestmedia10", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Reset
+
+```java
+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
+ */
+ /**
+ * Sample code: Reset a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void resetALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().reset("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Start
+
+```java
+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
+ */
+ /**
+ * Sample code: Start a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void startALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveEvents().start("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Stop
+
+```java
+import com.azure.core.util.Context;
+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
+ */
+ /**
+ * Sample code: Stop a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void stopALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .liveEvents()
+ .stop(
+ "mediaresources",
+ "slitestmedia10",
+ "myLiveEvent1",
+ new LiveEventActionInput().withRemoveOutputsOnStop(false),
+ Context.NONE);
+ }
+}
+```
+
+### LiveEvents_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.IpAccessControl;
+import com.azure.resourcemanager.mediaservices.models.IpRange;
+import com.azure.resourcemanager.mediaservices.models.LiveEvent;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInput;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInputAccessControl;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInputProtocol;
+import com.azure.resourcemanager.mediaservices.models.LiveEventPreview;
+import com.azure.resourcemanager.mediaservices.models.LiveEventPreviewAccessControl;
+import java.util.Arrays;
+import java.util.HashMap;
+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
+ */
+ /**
+ * Sample code: Update a LiveEvent.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ LiveEvent resource =
+ manager
+ .liveEvents()
+ .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("tag1", "value1", "tag2", "value2", "tag3", "value3"))
+ .withDescription("test event updated")
+ .withInput(
+ new LiveEventInput()
+ .withStreamingProtocol(LiveEventInputProtocol.FRAGMENTED_MP4)
+ .withAccessControl(
+ new LiveEventInputAccessControl()
+ .withIp(
+ new IpAccessControl()
+ .withAllow(
+ Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0")))))
+ .withKeyFrameIntervalDuration("PT6S"))
+ .withPreview(
+ new LiveEventPreview()
+ .withAccessControl(
+ new LiveEventPreviewAccessControl()
+ .withIp(
+ new IpAccessControl()
+ .withAllow(
+ Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0"))))))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LiveOutputs_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.Hls;
+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
+ */
+ /**
+ * Sample code: Create a LiveOutput.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createALiveOutput(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .liveOutputs()
+ .define("myLiveOutput1")
+ .withExistingLiveEvent("mediaresources", "slitestmedia10", "myLiveEvent1")
+ .withDescription("test live output 1")
+ .withAssetName("6f3264f5-a189-48b4-a29a-a40f22575212")
+ .withArchiveWindowLength(Duration.parse("PT5M"))
+ .withManifestName("testmanifest")
+ .withHls(new Hls().withFragmentsPerTsSegment(5))
+ .create();
+ }
+}
+```
+
+### LiveOutputs_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a LiveOutput.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteALiveOutput(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveOutputs().delete("mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", Context.NONE);
+ }
+}
+```
+
+### LiveOutputs_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a LiveOutput by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getALiveOutputByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .liveOutputs()
+ .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", Context.NONE);
+ }
+}
+```
+
+### LiveOutputs_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List all LiveOutputs.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllLiveOutputs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.liveOutputs().list("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE);
+ }
+}
+```
+
+### Locations_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.CheckNameAvailabilityInput;
+
+/** Samples for Locations CheckNameAvailability. */
+public final class LocationsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-check-name-availability.json
+ */
+ /**
+ * Sample code: Check Name Availability.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void checkNameAvailability(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .locations()
+ .checkNameAvailabilityWithResponse(
+ "japanwest",
+ new CheckNameAvailabilityInput().withName("contosotv").withType("videoAnalyzers"),
+ Context.NONE);
+ }
+}
+```
+
+### MediaServiceOperationResults_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MediaServiceOperationResults Get. */
+public final class MediaServiceOperationResultsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-result-by-id.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperation(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaServiceOperationResults()
+ .getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", Context.NONE);
+ }
+}
+```
+
+### MediaServiceOperationStatuses_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MediaServiceOperationStatuses Get. */
+public final class MediaServiceOperationStatusesGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state-failed.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is completed with error.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaServiceOperationStatuses()
+ .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-terminal-state.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is completed.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsCompleted(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaServiceOperationStatuses()
+ .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-status-by-id-non-terminal-state.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is ongoing.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsOngoing(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaServiceOperationStatuses()
+ .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE);
+ }
+}
+```
+
+### Mediaservices_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.AccessControl;
+import com.azure.resourcemanager.mediaservices.models.AccountEncryption;
+import com.azure.resourcemanager.mediaservices.models.AccountEncryptionKeyType;
+import com.azure.resourcemanager.mediaservices.models.DefaultAction;
+import com.azure.resourcemanager.mediaservices.models.KeyDelivery;
+import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
+import com.azure.resourcemanager.mediaservices.models.PublicNetworkAccess;
+import com.azure.resourcemanager.mediaservices.models.ResourceIdentity;
+import com.azure.resourcemanager.mediaservices.models.StorageAccount;
+import com.azure.resourcemanager.mediaservices.models.StorageAccountType;
+import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
+import com.azure.resourcemanager.mediaservices.models.UserAssignedManagedIdentity;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Mediaservices CreateOrUpdate. */
+public final class MediaservicesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-create.json
+ */
+ /**
+ * Sample code: Create a Media Services account.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAMediaServicesAccount(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaservices()
+ .define("contososports")
+ .withRegion("South Central US")
+ .withExistingResourceGroup("contoso")
+ .withTags(mapOf("key1", "value1", "key2", "value2"))
+ .withIdentity(
+ new MediaServiceIdentity()
+ .withType("UserAssigned")
+ .withUserAssignedIdentities(
+ mapOf(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1",
+ new UserAssignedManagedIdentity(),
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
+ new UserAssignedManagedIdentity())))
+ .withStorageAccounts(
+ Arrays
+ .asList(
+ new StorageAccount()
+ .withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore")
+ .withType(StorageAccountType.PRIMARY)
+ .withIdentity(
+ new ResourceIdentity()
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
+ .withUseSystemAssignedIdentity(false))))
+ .withStorageAuthentication(StorageAuthentication.MANAGED_IDENTITY)
+ .withEncryption(
+ new AccountEncryption()
+ .withType(AccountEncryptionKeyType.CUSTOMER_KEY)
+ .withIdentity(
+ new ResourceIdentity()
+ .withUserAssignedIdentity(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1")
+ .withUseSystemAssignedIdentity(false)))
+ .withKeyDelivery(
+ new KeyDelivery().withAccessControl(new AccessControl().withDefaultAction(DefaultAction.ALLOW)))
+ .withPublicNetworkAccess(PublicNetworkAccess.ENABLED)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Mediaservices_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Mediaservices Delete. */
+public final class MediaservicesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-delete.json
+ */
+ /**
+ * Sample code: Delete a Media Services account.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAMediaServicesAccount(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.mediaservices().deleteWithResponse("contoso", "contososports", Context.NONE);
+ }
+}
+```
+
+### Mediaservices_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Mediaservices GetByResourceGroup. */
+public final class MediaservicesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Media Services account by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAMediaServicesAccountByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.mediaservices().getByResourceGroupWithResponse("contoso", "contosotv", Context.NONE);
+ }
+}
+```
+
+### Mediaservices_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Mediaservices List. */
+public final class MediaservicesListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json
+ */
+ /**
+ * Sample code: List all Media Services accounts.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllMediaServicesAccounts(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.mediaservices().list(Context.NONE);
+ }
+}
+```
+
+### Mediaservices_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Mediaservices ListByResourceGroup. */
+public final class MediaservicesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-all-accounts.json
+ */
+ /**
+ * Sample code: List all Media Services accounts.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllMediaServicesAccounts(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.mediaservices().listByResourceGroup("contoso", Context.NONE);
+ }
+}
+```
+
+### Mediaservices_ListEdgePolicies
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
+
+/** Samples for Mediaservices ListEdgePolicies. */
+public final class MediaservicesListEdgePoliciesSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-list-media-edge-policies.json
+ */
+ /**
+ * Sample code: List the media edge policies.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listTheMediaEdgePolicies(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaservices()
+ .listEdgePoliciesWithResponse(
+ "contoso",
+ "contososports",
+ new ListEdgePoliciesInput().withDeviceId("contosiothubhost_contosoiotdevice"),
+ Context.NONE);
+ }
+}
+```
+
+### Mediaservices_SyncStorageKeys
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput;
+
+/** Samples for Mediaservices SyncStorageKeys. */
+public final class MediaservicesSyncStorageKeysSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/accounts-sync-storage-keys.json
+ */
+ /**
+ * Sample code: Synchronizes Storage Account Keys.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void synchronizesStorageAccountKeys(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .mediaservices()
+ .syncStorageKeysWithResponse(
+ "contoso", "contososports", new SyncStorageKeysInput().withId("contososportsstore"), Context.NONE);
+ }
+}
+```
+
+### Mediaservices_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.MediaService;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Mediaservices Update. */
+public final class MediaservicesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/async-accounts-update.json
+ */
+ /**
+ * Sample code: Update a Media Services accounts.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAMediaServicesAccounts(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ MediaService resource =
+ manager.mediaservices().getByResourceGroupWithResponse("contoso", "contososports", Context.NONE).getValue();
+ resource.update().withTags(mapOf("key1", "value3")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### OperationResults_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationResults Get. */
+public final class OperationResultsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-operation-result-by-id.json
+ */
+ /**
+ * Sample code: Get result of asynchronous operation.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getResultOfAsynchronousOperation(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .operationResults()
+ .getWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountRainer",
+ "text1",
+ "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08",
+ Context.NONE);
+ }
+}
+```
+
+### OperationStatuses_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationStatuses Get. */
+public final class OperationStatusesGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is completed with error.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .operationStatuses()
+ .getWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountRainer",
+ "text1",
+ "86835197-3b47-402e-b313-70b82eaba296",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-terminal-state.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is completed.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsCompleted(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .operationStatuses()
+ .getWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountRainer",
+ "text1",
+ "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json
+ */
+ /**
+ * Sample code: Get status of asynchronous operation when it is ongoing.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getStatusOfAsynchronousOperationWhenItIsOngoing(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .operationStatuses()
+ .getWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountRainer",
+ "text1",
+ "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8",
+ Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/operations-list-all.json
+ */
+ /**
+ * Sample code: List Operations.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listOperations(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.operations().listWithResponse(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.PrivateEndpointConnection;
+import com.azure.resourcemanager.mediaservices.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.mediaservices.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-put.json
+ */
+ /**
+ * Sample code: Update private endpoint connection.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updatePrivateEndpointConnection(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ PrivateEndpointConnection resource =
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("Test description."))
+ .apply();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-delete.json
+ */
+ /**
+ * Sample code: Delete private endpoint connection.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deletePrivateEndpointConnection(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .privateEndpointConnections()
+ .deleteWithResponse("contoso", "contososports", "connectionName1", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json
+ */
+ /**
+ * Sample code: Get private endpoint connection.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getPrivateEndpointConnection(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections List. */
+public final class PrivateEndpointConnectionsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-endpoint-connection-list.json
+ */
+ /**
+ * Sample code: Get all private endpoint connections.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAllPrivateEndpointConnections(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.privateEndpointConnections().listWithResponse("contoso", "contososports", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources Get. */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-get-by-name.json
+ */
+ /**
+ * Sample code: Get details of a group ID.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getDetailsOfAGroupID(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.privateLinkResources().getWithResponse("contoso", "contososports", "keydelivery", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources List. */
+public final class PrivateLinkResourcesListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/private-link-resources-list.json
+ */
+ /**
+ * Sample code: Get list of all group IDs.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getListOfAllGroupIDs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.privateLinkResources().listWithResponse("contoso", "contososports", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.AkamaiAccessControl;
+import com.azure.resourcemanager.mediaservices.models.AkamaiSignatureHeaderAuthenticationKey;
+import com.azure.resourcemanager.mediaservices.models.IpAccessControl;
+import com.azure.resourcemanager.mediaservices.models.IpRange;
+import com.azure.resourcemanager.mediaservices.models.StreamingEndpointAccessControl;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+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
+ */
+ /**
+ * Sample code: Create a streaming endpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingEndpoints()
+ .define("myStreamingEndpoint1")
+ .withRegion("West US")
+ .withExistingMediaservice("mediaresources", "slitestmedia10")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDescription("test event 1")
+ .withScaleUnits(1)
+ .withAvailabilitySetName("availableset")
+ .withAccessControl(
+ new StreamingEndpointAccessControl()
+ .withAkamai(
+ new AkamaiAccessControl()
+ .withAkamaiSignatureHeaderAuthenticationKeyList(
+ Arrays
+ .asList(
+ new AkamaiSignatureHeaderAuthenticationKey()
+ .withIdentifier("id1")
+ .withBase64Key("dGVzdGlkMQ==")
+ .withExpiration(OffsetDateTime.parse("2029-12-31T16:00:00-08:00")),
+ new AkamaiSignatureHeaderAuthenticationKey()
+ .withIdentifier("id2")
+ .withBase64Key("dGVzdGlkMQ==")
+ .withExpiration(OffsetDateTime.parse("2030-12-31T16:00:00-08:00")))))
+ .withIp(
+ new IpAccessControl()
+ .withAllow(Arrays.asList(new IpRange().withName("AllowedIp").withAddress("192.168.1.1")))))
+ .withCdnEnabled(false)
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StreamingEndpoints_Delete
+
+```java
+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
+ */
+ /**
+ * Sample code: Delete a streaming endpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingEndpoints().delete("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Get
+
+```java
+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
+ */
+ /**
+ * Sample code: Get a streaming endpoint by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAStreamingEndpointByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingEndpoints()
+ .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_List
+
+```java
+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
+ */
+ /**
+ * Sample code: List all streaming endpoints.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAllStreamingEndpoints(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingEndpoints().list("mediaresources", "slitestmedia10", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Scale
+
+```java
+import com.azure.core.util.Context;
+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
+ */
+ /**
+ * Sample code: Scale a StreamingEndpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void scaleAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingEndpoints()
+ .scale(
+ "mediaresources",
+ "slitestmedia10",
+ "myStreamingEndpoint1",
+ new StreamingEntityScaleUnit().withScaleUnit(5),
+ Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Skus
+
+```java
+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
+ */
+ /**
+ * Sample code: List a streaming endpoint sku.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listAStreamingEndpointSku(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingEndpoints()
+ .skusWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Start
+
+```java
+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
+ */
+ /**
+ * Sample code: Start a streaming endpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void startAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingEndpoints().start("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Stop
+
+```java
+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
+ */
+ /**
+ * Sample code: Stop a streaming endpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void stopAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingEndpoints().stop("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE);
+ }
+}
+```
+
+### StreamingEndpoints_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.StreamingEndpoint;
+import java.util.HashMap;
+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
+ */
+ /**
+ * Sample code: Update a streaming endpoint.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ StreamingEndpoint resource =
+ manager
+ .streamingEndpoints()
+ .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withTags(mapOf("tag3", "value3", "tag5", "value5"))
+ .withDescription("test event 2")
+ .withScaleUnits(5)
+ .withAvailabilitySetName("availableset")
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### StreamingLocators_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.StreamingLocatorContentKey;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for StreamingLocators Create. */
+public final class StreamingLocatorsCreateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-create-clear.json
+ */
+ /**
+ * Sample code: Creates a Streaming Locator with clear streaming.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingLocatorWithClearStreaming(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .define("UserCreatedClearStreamingLocator")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withAssetName("ClimbingMountRainier")
+ .withStreamingPolicyName("clearStreamingPolicy")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-create-secure.json
+ */
+ /**
+ * Sample code: Creates a Streaming Locator with secure streaming.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingLocatorWithSecureStreaming(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .define("UserCreatedSecureStreamingLocator")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withAssetName("ClimbingMountRainier")
+ .withStartTime(OffsetDateTime.parse("2018-03-01T00:00:00Z"))
+ .withEndTime(OffsetDateTime.parse("2028-12-31T23:59:59.9999999Z"))
+ .withStreamingPolicyName("secureStreamingPolicy")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json
+ */
+ /**
+ * Sample code: Creates a Streaming Locator with user defined content keys.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingLocatorWithUserDefinedContentKeys(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .define("UserCreatedSecureStreamingLocatorWithUserDefinedContentKeys")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withAssetName("ClimbingMountRainier")
+ .withStreamingLocatorId(UUID.fromString("90000000-0000-0000-0000-00000000000A"))
+ .withStreamingPolicyName("secureStreamingPolicy")
+ .withContentKeys(
+ Arrays
+ .asList(
+ new StreamingLocatorContentKey()
+ .withId(UUID.fromString("60000000-0000-0000-0000-000000000001"))
+ .withLabelReferenceInStreamingPolicy("aesDefaultKey")
+ .withValue("1UqLohAfWsEGkULYxHjYZg=="),
+ new StreamingLocatorContentKey()
+ .withId(UUID.fromString("60000000-0000-0000-0000-000000000004"))
+ .withLabelReferenceInStreamingPolicy("cencDefaultKey")
+ .withValue("4UqLohAfWsEGkULYxHjYZg=="),
+ new StreamingLocatorContentKey()
+ .withId(UUID.fromString("60000000-0000-0000-0000-000000000007"))
+ .withLabelReferenceInStreamingPolicy("cbcsDefaultKey")
+ .withValue("7UqLohAfWsEGkULYxHjYZg==")))
+ .create();
+ }
+}
+```
+
+### StreamingLocators_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingLocators Delete. */
+public final class StreamingLocatorsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-delete.json
+ */
+ /**
+ * Sample code: Delete a Streaming Locator.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAStreamingLocator(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .deleteWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE);
+ }
+}
+```
+
+### StreamingLocators_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingLocators Get. */
+public final class StreamingLocatorsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Streaming Locator by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAStreamingLocatorByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingLocators().getWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE);
+ }
+}
+```
+
+### StreamingLocators_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingLocators List. */
+public final class StreamingLocatorsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-list.json
+ */
+ /**
+ * Sample code: Lists Streaming Locators.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsStreamingLocators(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingLocators().list("contoso", "contosomedia", null, null, null, Context.NONE);
+ }
+}
+```
+
+### StreamingLocators_ListContentKeys
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingLocators ListContentKeys. */
+public final class StreamingLocatorsListContentKeysSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-list-content-keys.json
+ */
+ /**
+ * Sample code: List Content Keys.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listContentKeys(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .listContentKeysWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE);
+ }
+}
+```
+
+### StreamingLocators_ListPaths
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingLocators ListPaths. */
+public final class StreamingLocatorsListPathsSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-only.json
+ */
+ /**
+ * Sample code: List Paths which has streaming paths only.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listPathsWhichHasStreamingPathsOnly(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .listPathsWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-locators-list-paths-streaming-and-download.json
+ */
+ /**
+ * Sample code: List Paths which has streaming paths and download paths.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listPathsWhichHasStreamingPathsAndDownloadPaths(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingLocators()
+ .listPathsWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE);
+ }
+}
+```
+
+### StreamingPolicies_Create
+
+```java
+import com.azure.resourcemanager.mediaservices.models.CbcsDrmConfiguration;
+import com.azure.resourcemanager.mediaservices.models.CencDrmConfiguration;
+import com.azure.resourcemanager.mediaservices.models.CommonEncryptionCbcs;
+import com.azure.resourcemanager.mediaservices.models.CommonEncryptionCenc;
+import com.azure.resourcemanager.mediaservices.models.DefaultKey;
+import com.azure.resourcemanager.mediaservices.models.EnabledProtocols;
+import com.azure.resourcemanager.mediaservices.models.EnvelopeEncryption;
+import com.azure.resourcemanager.mediaservices.models.NoEncryption;
+import com.azure.resourcemanager.mediaservices.models.StreamingPolicyContentKeys;
+import com.azure.resourcemanager.mediaservices.models.StreamingPolicyFairPlayConfiguration;
+import com.azure.resourcemanager.mediaservices.models.StreamingPolicyPlayReadyConfiguration;
+import com.azure.resourcemanager.mediaservices.models.StreamingPolicyWidevineConfiguration;
+import com.azure.resourcemanager.mediaservices.models.TrackPropertyCompareOperation;
+import com.azure.resourcemanager.mediaservices.models.TrackPropertyCondition;
+import com.azure.resourcemanager.mediaservices.models.TrackPropertyType;
+import com.azure.resourcemanager.mediaservices.models.TrackSelection;
+import java.util.Arrays;
+
+/** Samples for StreamingPolicies Create. */
+public final class StreamingPoliciesCreateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-create-secure-streaming.json
+ */
+ /**
+ * Sample code: Creates a Streaming Policy with secure streaming.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingPolicyWithSecureStreaming(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .define("UserCreatedSecureStreamingPolicy")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDefaultContentKeyPolicyName("PolicyWithMultipleOptions")
+ .withEnvelopeEncryption(
+ new EnvelopeEncryption()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(true)
+ .withHls(true)
+ .withSmoothStreaming(true))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey")))
+ .withCustomKeyAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"))
+ .withCommonEncryptionCenc(
+ new CommonEncryptionCenc()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(true)
+ .withHls(false)
+ .withSmoothStreaming(true))
+ .withClearTracks(
+ Arrays
+ .asList(
+ new TrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new TrackPropertyCondition()
+ .withProperty(TrackPropertyType.FOUR_CC)
+ .withOperation(TrackPropertyCompareOperation.EQUAL)
+ .withValue("hev1")))))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey")))
+ .withDrm(
+ new CencDrmConfiguration()
+ .withPlayReady(
+ new StreamingPolicyPlayReadyConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}")
+ .withPlayReadyCustomAttributes("PlayReady CustomAttributes"))
+ .withWidevine(
+ new StreamingPolicyWidevineConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId"))))
+ .withCommonEncryptionCbcs(
+ new CommonEncryptionCbcs()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(false)
+ .withHls(true)
+ .withSmoothStreaming(false))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey")))
+ .withDrm(
+ new CbcsDrmConfiguration()
+ .withFairPlay(
+ new StreamingPolicyFairPlayConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}")
+ .withAllowPersistentLicense(true))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCenc-only.json
+ */
+ /**
+ * Sample code: Creates a Streaming Policy with commonEncryptionCenc only.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingPolicyWithCommonEncryptionCencOnly(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .define("UserCreatedSecureStreamingPolicyWithCommonEncryptionCencOnly")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDefaultContentKeyPolicyName("PolicyWithPlayReadyOptionAndOpenRestriction")
+ .withCommonEncryptionCenc(
+ new CommonEncryptionCenc()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(true)
+ .withHls(false)
+ .withSmoothStreaming(true))
+ .withClearTracks(
+ Arrays
+ .asList(
+ new TrackSelection()
+ .withTrackSelections(
+ Arrays
+ .asList(
+ new TrackPropertyCondition()
+ .withProperty(TrackPropertyType.FOUR_CC)
+ .withOperation(TrackPropertyCompareOperation.EQUAL)
+ .withValue("hev1")))))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey")))
+ .withDrm(
+ new CencDrmConfiguration()
+ .withPlayReady(
+ new StreamingPolicyPlayReadyConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}")
+ .withPlayReadyCustomAttributes("PlayReady CustomAttributes"))
+ .withWidevine(
+ new StreamingPolicyWidevineConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId"))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json
+ */
+ /**
+ * Sample code: Creates a Streaming Policy with commonEncryptionCbcs only.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingPolicyWithCommonEncryptionCbcsOnly(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .define("UserCreatedSecureStreamingPolicyWithCommonEncryptionCbcsOnly")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDefaultContentKeyPolicyName("PolicyWithMultipleOptions")
+ .withCommonEncryptionCbcs(
+ new CommonEncryptionCbcs()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(false)
+ .withHls(true)
+ .withSmoothStreaming(false))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey")))
+ .withDrm(
+ new CbcsDrmConfiguration()
+ .withFairPlay(
+ new StreamingPolicyFairPlayConfiguration()
+ .withCustomLicenseAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}")
+ .withAllowPersistentLicense(true))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-create-clear.json
+ */
+ /**
+ * Sample code: Creates a Streaming Policy with clear streaming.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingPolicyWithClearStreaming(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .define("UserCreatedClearStreamingPolicy")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withNoEncryption(
+ new NoEncryption()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(true)
+ .withDash(true)
+ .withHls(true)
+ .withSmoothStreaming(true)))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-create-envelopeEncryption-only.json
+ */
+ /**
+ * Sample code: Creates a Streaming Policy with envelopeEncryption only.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsAStreamingPolicyWithEnvelopeEncryptionOnly(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .define("UserCreatedSecureStreamingPolicyWithEnvelopeEncryptionOnly")
+ .withExistingMediaService("contoso", "contosomedia")
+ .withDefaultContentKeyPolicyName("PolicyWithClearKeyOptionAndTokenRestriction")
+ .withEnvelopeEncryption(
+ new EnvelopeEncryption()
+ .withEnabledProtocols(
+ new EnabledProtocols()
+ .withDownload(false)
+ .withDash(true)
+ .withHls(true)
+ .withSmoothStreaming(true))
+ .withContentKeys(
+ new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey")))
+ .withCustomKeyAcquisitionUrlTemplate(
+ "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}"))
+ .create();
+ }
+}
+```
+
+### StreamingPolicies_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingPolicies Delete. */
+public final class StreamingPoliciesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-delete.json
+ */
+ /**
+ * Sample code: Delete a Streaming Policy.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteAStreamingPolicy(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .streamingPolicies()
+ .deleteWithResponse(
+ "contoso", "contosomedia", "secureStreamingPolicyWithCommonEncryptionCbcsOnly", Context.NONE);
+ }
+}
+```
+
+### StreamingPolicies_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingPolicies Get. */
+public final class StreamingPoliciesGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policy-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Streaming Policy by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getAStreamingPolicyByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingPolicies().getWithResponse("contoso", "contosomedia", "clearStreamingPolicy", Context.NONE);
+ }
+}
+```
+
+### StreamingPolicies_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StreamingPolicies List. */
+public final class StreamingPoliciesListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/streaming-policies-list.json
+ */
+ /**
+ * Sample code: Lists Streaming Policies.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsStreamingPolicies(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.streamingPolicies().list("contoso", "contosomedia", null, null, null, Context.NONE);
+ }
+}
+```
+
+### Tracks_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.TextTrack;
+import com.azure.resourcemanager.mediaservices.models.Visibility;
+
+/** Samples for Tracks CreateOrUpdate. */
+public final class TracksCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-create.json
+ */
+ /**
+ * Sample code: Creates a Track.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createsATrack(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .tracks()
+ .define("text3")
+ .withExistingAsset("contoso", "contosomedia", "ClimbingMountRainer")
+ .withTrack(
+ new TextTrack()
+ .withFileName("text3.ttml")
+ .withDisplayName("A new track")
+ .withPlayerVisibility(Visibility.VISIBLE))
+ .create();
+ }
+}
+```
+
+### Tracks_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tracks Delete. */
+public final class TracksDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-delete.json
+ */
+ /**
+ * Sample code: Delete a Track.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteATrack(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.tracks().delete("contoso", "contosomedia", "ClimbingMountRainer", "text2", Context.NONE);
+ }
+}
+```
+
+### Tracks_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tracks Get. */
+public final class TracksGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Track by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getATrackByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.tracks().getWithResponse("contoso", "contosomedia", "ClimbingMountRainer", "text1", Context.NONE);
+ }
+}
+```
+
+### Tracks_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tracks List. */
+public final class TracksListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-list-all.json
+ */
+ /**
+ * Sample code: Lists all Tracks.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsAllTracks(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.tracks().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE);
+ }
+}
+```
+
+### Tracks_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.AssetTrack;
+import com.azure.resourcemanager.mediaservices.models.TextTrack;
+
+/** Samples for Tracks Update. */
+public final class TracksUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-update.json
+ */
+ /**
+ * Sample code: Update a Track.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateATrack(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ AssetTrack resource =
+ manager
+ .tracks()
+ .getWithResponse("contoso", "contosomedia", "ClimbingMountRainer", "text1", Context.NONE)
+ .getValue();
+ resource.update().withTrack(new TextTrack().withDisplayName("A new name")).apply();
+ }
+}
+```
+
+### Tracks_UpdateTrackData
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Tracks UpdateTrackData. */
+public final class TracksUpdateTrackDataSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/asset-tracks-update-data.json
+ */
+ /**
+ * Sample code: Update the data for a tracks.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateTheDataForATracks(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.tracks().updateTrackData("contoso", "contosomedia", "ClimbingMountRainer", "text2", Context.NONE);
+ }
+}
+```
+
+### Transforms_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.mediaservices.models.BuiltInStandardEncoderPreset;
+import com.azure.resourcemanager.mediaservices.models.EncoderNamedPreset;
+import com.azure.resourcemanager.mediaservices.models.TransformOutput;
+import java.util.Arrays;
+
+/** Samples for Transforms CreateOrUpdate. */
+public final class TransformsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-create.json
+ */
+ /**
+ * Sample code: Create or update a Transform.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void createOrUpdateATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .transforms()
+ .define("createdTransform")
+ .withExistingMediaService("contosoresources", "contosomedia")
+ .withDescription("Example Transform to illustrate create and update.")
+ .withOutputs(
+ Arrays
+ .asList(
+ new TransformOutput()
+ .withPreset(
+ new BuiltInStandardEncoderPreset()
+ .withPresetName(EncoderNamedPreset.ADAPTIVE_STREAMING))))
+ .create();
+ }
+}
+```
+
+### Transforms_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Transforms Delete. */
+public final class TransformsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-delete.json
+ */
+ /**
+ * Sample code: Delete a Transform.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void deleteATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.transforms().deleteWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE);
+ }
+}
+```
+
+### Transforms_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Transforms Get. */
+public final class TransformsGetSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-get-by-name.json
+ */
+ /**
+ * Sample code: Get a Transform by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getATransformByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.transforms().getWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE);
+ }
+}
+```
+
+### Transforms_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Transforms List. */
+public final class TransformsListSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-created.json
+ */
+ /**
+ * Sample code: Lists the Transforms filter by created.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsTheTransformsFilterByCreated(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .transforms()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le"
+ + " 2021-11-01T00:00:10.0000000Z",
+ "properties/created",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json
+ */
+ /**
+ * Sample code: Lists the Transforms filter by name.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsTheTransformsFilterByName(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .transforms()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')",
+ "name desc",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json
+ */
+ /**
+ * Sample code: Lists the Transforms filter by lastmodified.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsTheTransformsFilterByLastmodified(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .transforms()
+ .list(
+ "contosoresources",
+ "contosomedia",
+ "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le"
+ + " 2021-11-01T00:00:10.0000000Z",
+ "properties/lastmodified desc",
+ Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all.json
+ */
+ /**
+ * Sample code: Lists the Transforms.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void listsTheTransforms(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager.transforms().list("contosoresources", "contosomedia", null, null, Context.NONE);
+ }
+}
+```
+
+### Transforms_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.models.BuiltInStandardEncoderPreset;
+import com.azure.resourcemanager.mediaservices.models.EncoderNamedPreset;
+import com.azure.resourcemanager.mediaservices.models.Priority;
+import com.azure.resourcemanager.mediaservices.models.Transform;
+import com.azure.resourcemanager.mediaservices.models.TransformOutput;
+import java.util.Arrays;
+
+/** Samples for Transforms Update. */
+public final class TransformsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-update.json
+ */
+ /**
+ * Sample code: Update a Transform.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void updateATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ Transform resource =
+ manager
+ .transforms()
+ .getWithResponse("contosoresources", "contosomedia", "transformToUpdate", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withDescription("Example transform to illustrate update.")
+ .withOutputs(
+ Arrays
+ .asList(
+ new TransformOutput()
+ .withRelativePriority(Priority.HIGH)
+ .withPreset(
+ new BuiltInStandardEncoderPreset()
+ .withPresetName(EncoderNamedPreset.H264MULTIPLE_BITRATE720P))))
+ .apply();
+ }
+}
+```
-- [CreateOrUpdate](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/TransformsCreateOrUpdateSamples.java)
-- [Delete](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/TransformsDeleteSamples.java)
-- [Get](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/TransformsGetSamples.java)
-- [List](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/TransformsListSamples.java)
-- [Update](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/TransformsUpdateSamples.java)
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml
index ae273b78d9cf4..0f9b08a2bb0cd 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-2021-06.
+ 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-2021-11.
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 056bd0d3a1d56..7756fe5a4eeb0 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
@@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
@@ -30,13 +31,18 @@
import com.azure.resourcemanager.mediaservices.implementation.LiveEventsImpl;
import com.azure.resourcemanager.mediaservices.implementation.LiveOutputsImpl;
import com.azure.resourcemanager.mediaservices.implementation.LocationsImpl;
+import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationResultsImpl;
+import com.azure.resourcemanager.mediaservices.implementation.MediaServiceOperationStatusesImpl;
import com.azure.resourcemanager.mediaservices.implementation.MediaservicesImpl;
+import com.azure.resourcemanager.mediaservices.implementation.OperationResultsImpl;
+import com.azure.resourcemanager.mediaservices.implementation.OperationStatusesImpl;
import com.azure.resourcemanager.mediaservices.implementation.OperationsImpl;
import com.azure.resourcemanager.mediaservices.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.mediaservices.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.mediaservices.implementation.StreamingEndpointsImpl;
import com.azure.resourcemanager.mediaservices.implementation.StreamingLocatorsImpl;
import com.azure.resourcemanager.mediaservices.implementation.StreamingPoliciesImpl;
+import com.azure.resourcemanager.mediaservices.implementation.TracksImpl;
import com.azure.resourcemanager.mediaservices.implementation.TransformsImpl;
import com.azure.resourcemanager.mediaservices.models.AccountFilters;
import com.azure.resourcemanager.mediaservices.models.AssetFilters;
@@ -46,22 +52,30 @@
import com.azure.resourcemanager.mediaservices.models.LiveEvents;
import com.azure.resourcemanager.mediaservices.models.LiveOutputs;
import com.azure.resourcemanager.mediaservices.models.Locations;
+import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResults;
+import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationStatuses;
import com.azure.resourcemanager.mediaservices.models.Mediaservices;
+import com.azure.resourcemanager.mediaservices.models.OperationResults;
+import com.azure.resourcemanager.mediaservices.models.OperationStatuses;
import com.azure.resourcemanager.mediaservices.models.Operations;
import com.azure.resourcemanager.mediaservices.models.PrivateEndpointConnections;
import com.azure.resourcemanager.mediaservices.models.PrivateLinkResources;
import com.azure.resourcemanager.mediaservices.models.StreamingEndpoints;
import com.azure.resourcemanager.mediaservices.models.StreamingLocators;
import com.azure.resourcemanager.mediaservices.models.StreamingPolicies;
+import com.azure.resourcemanager.mediaservices.models.Tracks;
import com.azure.resourcemanager.mediaservices.models.Transforms;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to MediaServicesManager. This Swagger was generated by the API Framework. */
public final class MediaServicesManager {
+ private AccountFilters accountFilters;
+
private Operations operations;
private Mediaservices mediaservices;
@@ -72,12 +86,20 @@ public final class MediaServicesManager {
private Locations locations;
- private AccountFilters accountFilters;
+ private MediaServiceOperationStatuses mediaServiceOperationStatuses;
+
+ private MediaServiceOperationResults mediaServiceOperationResults;
private Assets assets;
private AssetFilters assetFilters;
+ private Tracks tracks;
+
+ private OperationStatuses operationStatuses;
+
+ private OperationResults operationResults;
+
private ContentKeyPolicies contentKeyPolicies;
private Transforms transforms;
@@ -230,7 +252,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
.append("-")
.append("com.azure.resourcemanager.mediaservices")
.append("/")
- .append("1.1.0-beta.2");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
@@ -253,11 +275,24 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies.addAll(this.policies);
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -269,6 +304,14 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil
}
}
+ /** @return Resource collection API of AccountFilters. */
+ public AccountFilters accountFilters() {
+ if (this.accountFilters == null) {
+ this.accountFilters = new AccountFiltersImpl(clientObject.getAccountFilters(), this);
+ }
+ return accountFilters;
+ }
+
/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
@@ -310,12 +353,22 @@ public Locations locations() {
return locations;
}
- /** @return Resource collection API of AccountFilters. */
- public AccountFilters accountFilters() {
- if (this.accountFilters == null) {
- this.accountFilters = new AccountFiltersImpl(clientObject.getAccountFilters(), this);
+ /** @return Resource collection API of MediaServiceOperationStatuses. */
+ public MediaServiceOperationStatuses mediaServiceOperationStatuses() {
+ if (this.mediaServiceOperationStatuses == null) {
+ this.mediaServiceOperationStatuses =
+ new MediaServiceOperationStatusesImpl(clientObject.getMediaServiceOperationStatuses(), this);
}
- return accountFilters;
+ return mediaServiceOperationStatuses;
+ }
+
+ /** @return Resource collection API of MediaServiceOperationResults. */
+ public MediaServiceOperationResults mediaServiceOperationResults() {
+ if (this.mediaServiceOperationResults == null) {
+ this.mediaServiceOperationResults =
+ new MediaServiceOperationResultsImpl(clientObject.getMediaServiceOperationResults(), this);
+ }
+ return mediaServiceOperationResults;
}
/** @return Resource collection API of Assets. */
@@ -334,6 +387,30 @@ public AssetFilters assetFilters() {
return assetFilters;
}
+ /** @return Resource collection API of Tracks. */
+ public Tracks tracks() {
+ if (this.tracks == null) {
+ this.tracks = new TracksImpl(clientObject.getTracks(), this);
+ }
+ return tracks;
+ }
+
+ /** @return Resource collection API of OperationStatuses. */
+ public OperationStatuses operationStatuses() {
+ if (this.operationStatuses == null) {
+ this.operationStatuses = new OperationStatusesImpl(clientObject.getOperationStatuses(), this);
+ }
+ return operationStatuses;
+ }
+
+ /** @return Resource collection API of OperationResults. */
+ public OperationResults operationResults() {
+ if (this.operationResults == null) {
+ this.operationResults = new OperationResultsImpl(clientObject.getOperationResults(), this);
+ }
+ return operationResults;
+ }
+
/** @return Resource collection API of ContentKeyPolicies. */
public ContentKeyPolicies contentKeyPolicies() {
if (this.contentKeyPolicies == null) {
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 80b82ac41944a..591ed7b404a4f 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
@@ -21,7 +21,7 @@ public interface AccountFiltersClient {
* @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 collection of AccountFilter items.
+ * @return a collection of AccountFilter items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -35,7 +35,7 @@ public interface AccountFiltersClient {
* @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 collection of AccountFilter items.
+ * @return a collection of AccountFilter items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, Context context);
@@ -64,7 +64,7 @@ public interface AccountFiltersClient {
* @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 the details of an Account Filter in the Media Services account.
+ * @return the details of an Account Filter in the Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -97,7 +97,7 @@ AccountFilterInner createOrUpdate(
* @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 an Account Filter.
+ * @return an Account Filter along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -130,7 +130,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context);
@@ -162,7 +162,7 @@ AccountFilterInner update(
* @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 an Account Filter.
+ * @return an Account Filter along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
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 7a43d17648f09..15680d867a7cb 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
@@ -22,7 +22,7 @@ public interface AssetFiltersClient {
* @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 collection of AssetFilter items.
+ * @return a collection of AssetFilter items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, String assetName);
@@ -37,7 +37,7 @@ public interface AssetFiltersClient {
* @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 collection of AssetFilter items.
+ * @return a collection of AssetFilter items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -69,7 +69,7 @@ PagedIterable list(
* @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 the details of an Asset Filter associated with the specified Asset.
+ * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -104,7 +104,7 @@ AssetFilterInner createOrUpdate(
* @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 an Asset Filter.
+ * @return an Asset Filter along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -140,7 +140,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -175,7 +175,7 @@ AssetFilterInner update(
* @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 an Asset Filter.
+ * @return an Asset Filter along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
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 c4268b38da834..0d7aaad08e5a1 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
@@ -25,7 +25,7 @@ public interface AssetsClient {
* @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 collection of Asset items.
+ * @return a collection of Asset items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -43,7 +43,7 @@ public interface AssetsClient {
* @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 collection of Asset items.
+ * @return a collection of Asset items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -73,7 +73,7 @@ PagedIterable list(
* @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 the details of an Asset in the Media Services account.
+ * @return the details of an Asset in the Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -105,7 +105,7 @@ Response getWithResponse(
* @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 an Asset.
+ * @return an Asset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -134,7 +134,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context);
@@ -165,7 +165,7 @@ Response createOrUpdateWithResponse(
* @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 an Asset.
+ * @return an Asset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -200,7 +200,7 @@ AssetContainerSasInner listContainerSas(
* @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 the Asset Storage container SAS URLs.
+ * @return the Asset Storage container SAS URLs along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listContainerSasWithResponse(
@@ -235,7 +235,8 @@ StorageEncryptedAssetDecryptionDataInner getEncryptionKey(
* @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 the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API.
+ * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API
+ * along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getEncryptionKeyWithResponse(
@@ -266,7 +267,7 @@ ListStreamingLocatorsResponseInner listStreamingLocators(
* @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 the Streaming Locators associated with this Asset.
+ * @return the Streaming Locators associated with this Asset along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listStreamingLocatorsWithResponse(
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 8992f79895d4c..85765070ad178 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
@@ -44,6 +44,13 @@ public interface AzureMediaServices {
*/
Duration getDefaultPollInterval();
+ /**
+ * Gets the AccountFiltersClient object to access its operations.
+ *
+ * @return the AccountFiltersClient object.
+ */
+ AccountFiltersClient getAccountFilters();
+
/**
* Gets the OperationsClient object to access its operations.
*
@@ -80,11 +87,18 @@ public interface AzureMediaServices {
LocationsClient getLocations();
/**
- * Gets the AccountFiltersClient object to access its operations.
+ * Gets the MediaServiceOperationStatusesClient object to access its operations.
*
- * @return the AccountFiltersClient object.
+ * @return the MediaServiceOperationStatusesClient object.
*/
- AccountFiltersClient getAccountFilters();
+ MediaServiceOperationStatusesClient getMediaServiceOperationStatuses();
+
+ /**
+ * Gets the MediaServiceOperationResultsClient object to access its operations.
+ *
+ * @return the MediaServiceOperationResultsClient object.
+ */
+ MediaServiceOperationResultsClient getMediaServiceOperationResults();
/**
* Gets the AssetsClient object to access its operations.
@@ -100,6 +114,27 @@ public interface AzureMediaServices {
*/
AssetFiltersClient getAssetFilters();
+ /**
+ * Gets the TracksClient object to access its operations.
+ *
+ * @return the TracksClient object.
+ */
+ TracksClient getTracks();
+
+ /**
+ * Gets the OperationStatusesClient object to access its operations.
+ *
+ * @return the OperationStatusesClient object.
+ */
+ OperationStatusesClient getOperationStatuses();
+
+ /**
+ * Gets the OperationResultsClient object to access its operations.
+ *
+ * @return the OperationResultsClient object.
+ */
+ OperationResultsClient getOperationResults();
+
/**
* Gets the ContentKeyPoliciesClient object to access its operations.
*
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 5117e4a1ea84e..890713f7ffede 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
@@ -22,7 +22,7 @@ public interface ContentKeyPoliciesClient {
* @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 collection of ContentKeyPolicy items.
+ * @return a collection of ContentKeyPolicy items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -40,7 +40,7 @@ public interface ContentKeyPoliciesClient {
* @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 collection of ContentKeyPolicy items.
+ * @return a collection of ContentKeyPolicy items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -70,7 +70,7 @@ PagedIterable list(
* @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 the details of a Content Key Policy in the Media Services account.
+ * @return the details of a Content Key Policy in the Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -103,7 +103,7 @@ ContentKeyPolicyInner createOrUpdate(
* @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 Content Key Policy resource.
+ * @return a Content Key Policy resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -136,7 +136,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -169,7 +169,7 @@ ContentKeyPolicyInner update(
* @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 Content Key Policy resource.
+ * @return a Content Key Policy resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -204,7 +204,7 @@ ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets(
* @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 Content Key Policy including secret values.
+ * @return a Content Key Policy including secret values along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getPolicyPropertiesWithSecretsWithResponse(
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 df4d5e3565592..19dd448f271c7 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
@@ -22,7 +22,7 @@ public interface JobsClient {
* @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 collection of Job items.
+ * @return a collection of Job items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, String transformName);
@@ -39,7 +39,7 @@ public interface JobsClient {
* @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 collection of Job items.
+ * @return a collection of Job items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -76,7 +76,7 @@ PagedIterable list(
* @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 Job.
+ * @return a Job along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -111,7 +111,7 @@ JobInner create(
* @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 Job resource type.
+ * @return a Job resource type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -147,7 +147,7 @@ Response createWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -184,7 +184,7 @@ JobInner update(
* @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 Job resource type.
+ * @return a Job resource type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -220,7 +220,7 @@ Response updateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response cancelJobWithResponse(
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 a08ead220ef70..d2b91b5fcc51a 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
@@ -24,7 +24,7 @@ public interface LiveEventsClient {
* @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 the LiveEvent list result.
+ * @return liveEventListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -38,7 +38,7 @@ public interface LiveEventsClient {
* @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 the LiveEvent list result.
+ * @return liveEventListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, Context context);
@@ -67,7 +67,7 @@ public interface LiveEventsClient {
* @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 properties of a live event.
+ * @return properties of a live event along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -84,9 +84,9 @@ Response getWithResponse(
* @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 the live event.
+ * @return the {@link SyncPoller} for polling of the live event.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -106,9 +106,9 @@ SyncPoller, LiveEventInner> beginCreate(
* @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 the live event.
+ * @return the {@link SyncPoller} for polling of the live event.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -187,9 +187,9 @@ LiveEventInner create(
* @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 the live event.
+ * @return the {@link SyncPoller} for polling of the live event.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginUpdate(
String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters);
@@ -204,9 +204,9 @@ SyncPoller, LiveEventInner> beginUpdate(
* @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 the live event.
+ * @return the {@link SyncPoller} for polling of the live event.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginUpdate(
String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters, Context context);
@@ -252,9 +252,9 @@ LiveEventInner update(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -267,9 +267,9 @@ LiveEventInner update(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -309,9 +309,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginAllocate(
String resourceGroupName, String accountName, String liveEventName);
@@ -325,9 +325,9 @@ SyncPoller, Void> beginAllocate(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginAllocate(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -367,9 +367,9 @@ SyncPoller, Void> beginAllocate(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -382,9 +382,9 @@ SyncPoller, Void> beginAllocate(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -425,9 +425,9 @@ SyncPoller, Void> beginStart(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters);
@@ -442,9 +442,9 @@ SyncPoller, Void> beginStop(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName,
String accountName,
@@ -497,9 +497,9 @@ void stop(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginReset(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -514,9 +514,9 @@ void stop(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginReset(
String resourceGroupName, String accountName, String liveEventName, 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 f02c8906e67ae..9866a05b01ae3 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
@@ -24,7 +24,7 @@ public interface LiveOutputsClient {
* @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 the LiveOutput list result.
+ * @return liveOutputListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, String liveEventName);
@@ -39,7 +39,7 @@ public interface LiveOutputsClient {
* @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 the LiveOutput list result.
+ * @return liveOutputListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -71,7 +71,7 @@ PagedIterable list(
* @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.
+ * @return a live output along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -88,9 +88,9 @@ Response getWithResponse(
* @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 the Live Output.
+ * @return the {@link SyncPoller} for polling of the Live Output.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveOutputInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -110,9 +110,9 @@ SyncPoller, LiveOutputInner> beginCreate(
* @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 the Live Output.
+ * @return the {@link SyncPoller} for polling of the Live Output.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveOutputInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -175,9 +175,9 @@ LiveOutputInner create(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String liveEventName, String liveOutputName);
@@ -192,9 +192,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String liveEventName, String liveOutputName, 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 23ea1df6b578c..d8f330a914d3b 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
@@ -16,7 +16,7 @@ public interface LocationsClient {
/**
* Checks whether the Media Service resource name is available.
*
- * @param locationName The name of the location.
+ * @param locationName Location name.
* @param parameters The request parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -30,13 +30,13 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability(
/**
* Checks whether the Media Service resource name is available.
*
- * @param locationName The name of the location.
+ * @param locationName Location name.
* @param parameters The request parameters.
* @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 the response from the check name availability request.
+ * @return the response from the check name availability request along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response checkNameAvailabilityWithResponse(
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationResultsClient.java
new file mode 100644
index 0000000000000..80b5a6f88726d
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationResultsClient.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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
+import com.azure.resourcemanager.mediaservices.models.MediaServiceOperationResultsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in MediaServiceOperationResultsClient. */
+public interface MediaServiceOperationResultsClient {
+ /**
+ * Get media service operation result.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation Id.
+ * @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 media service operation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MediaServiceInner get(String locationName, String operationId);
+
+ /**
+ * Get media service operation result.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation Id.
+ * @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 media service operation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MediaServiceOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context);
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationStatusesClient.java
new file mode 100644
index 0000000000000..1c32aa4be2346
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServiceOperationStatusesClient.java
@@ -0,0 +1,42 @@
+// 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;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceOperationStatusInner;
+
+/** An instance of this class provides access to all the operations defined in MediaServiceOperationStatusesClient. */
+public interface MediaServiceOperationStatusesClient {
+ /**
+ * Get media service operation status.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation ID.
+ * @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 media service operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MediaServiceOperationStatusInner get(String locationName, String operationId);
+
+ /**
+ * Get media service operation status.
+ *
+ * @param locationName Location name.
+ * @param operationId Operation ID.
+ * @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 media service operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String locationName, String operationId, Context context);
+}
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 0d3c2c3e64f33..5a8dc5945db06 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
@@ -8,7 +8,9 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+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.EdgePoliciesInner;
import com.azure.resourcemanager.mediaservices.fluent.models.MediaServiceInner;
import com.azure.resourcemanager.mediaservices.models.ListEdgePoliciesInput;
@@ -24,7 +26,7 @@ public interface MediaservicesClient {
* @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 collection of MediaService items.
+ * @return a collection of MediaService items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -37,7 +39,7 @@ public interface MediaservicesClient {
* @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 collection of MediaService items.
+ * @return a collection of MediaService items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -64,12 +66,43 @@ public interface MediaservicesClient {
* @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 the details of a Media Services account.
+ * @return the details of a Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String accountName, Context context);
+ /**
+ * 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.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of a Media Services account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MediaServiceInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, MediaServiceInner parameters);
+
+ /**
+ * 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.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of a Media Services account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MediaServiceInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);
+
/**
* Creates or updates a Media Services account.
*
@@ -97,7 +130,7 @@ Response getByResourceGroupWithResponse(
* @return a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
+ MediaServiceInner createOrUpdate(
String resourceGroupName, String accountName, MediaServiceInner parameters, Context context);
/**
@@ -121,11 +154,42 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String accountName, Context context);
+ /**
+ * 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.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of a Media Services account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MediaServiceInner> beginUpdate(
+ String resourceGroupName, String accountName, MediaServiceUpdate parameters);
+
+ /**
+ * 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.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of a Media Services account.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MediaServiceInner> beginUpdate(
+ String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);
+
/**
* Updates an existing Media Services account.
*
@@ -153,7 +217,7 @@ Response createOrUpdateWithResponse(
* @return a Media Services account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
+ MediaServiceInner update(
String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context);
/**
@@ -179,14 +243,14 @@ Response updateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response syncStorageKeysWithResponse(
String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context);
/**
- * 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.
@@ -200,7 +264,7 @@ Response syncStorageKeysWithResponse(
EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters);
/**
- * 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.
@@ -209,7 +273,7 @@ Response syncStorageKeysWithResponse(
* @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 the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listEdgePoliciesWithResponse(
@@ -220,7 +284,7 @@ Response listEdgePoliciesWithResponse(
*
* @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 collection of MediaService items.
+ * @return a collection of MediaService items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -232,7 +296,7 @@ Response listEdgePoliciesWithResponse(
* @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 collection of MediaService items.
+ * @return a collection of MediaService items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
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
new file mode 100644
index 0000000000000..8d23cbbee49f2
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java
@@ -0,0 +1,54 @@
+// 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;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.fluent.models.AssetTrackInner;
+import com.azure.resourcemanager.mediaservices.models.OperationResultsGetResponse;
+
+/** An instance of this class provides access to all the operations defined in OperationResultsClient. */
+public interface OperationResultsClient {
+ /**
+ * Get asset track operation result.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param operationId Operation Id.
+ * @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 asset track operation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner get(
+ String resourceGroupName, String accountName, String assetName, String trackName, String operationId);
+
+ /**
+ * Get asset track operation result.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param operationId Operation Id.
+ * @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 asset track operation result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationResultsGetResponse getWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ String operationId,
+ Context context);
+}
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
new file mode 100644
index 0000000000000..eb0632e139177
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java
@@ -0,0 +1,54 @@
+// 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;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.mediaservices.fluent.models.AssetTrackOperationStatusInner;
+
+/** An instance of this class provides access to all the operations defined in OperationStatusesClient. */
+public interface OperationStatusesClient {
+ /**
+ * Get asset track operation status.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param operationId Operation Id.
+ * @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 asset track operation status.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackOperationStatusInner get(
+ String resourceGroupName, String accountName, String assetName, String trackName, String operationId);
+
+ /**
+ * Get asset track operation status.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param operationId Operation Id.
+ * @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 asset track operation status along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ String operationId,
+ Context context);
+}
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 d6b4ee0aff031..d6b96940e4751 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
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @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 collection of Operation items.
+ * @return a collection of Operation items along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(Context context);
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 eeb7bb125efa6..4b15ea4d71918 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,20 +14,20 @@
/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
public interface PrivateEndpointConnectionsClient {
/**
- * Get all 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.
* @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 all private endpoint connections.
+ * @return list of private endpoint connection associated with the specified storage account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName);
/**
- * Get all 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.
@@ -35,14 +35,15 @@ public interface PrivateEndpointConnectionsClient {
* @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 all private endpoint connections.
+ * @return list of private endpoint connection associated with the specified storage account along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
String resourceGroupName, String accountName, Context context);
/**
- * 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,13 +51,13 @@ Response listWithResponse(
* @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 private endpoint connection.
+ * @return the details of a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name);
/**
- * 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,14 +66,14 @@ Response listWithResponse(
* @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 private endpoint connection.
+ * @return the details of a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
String resourceGroupName, String accountName, String name, Context context);
/**
- * Update 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.
@@ -88,7 +89,7 @@ PrivateEndpointConnectionInner createOrUpdate(
String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters);
/**
- * Update 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.
@@ -98,7 +99,7 @@ PrivateEndpointConnectionInner createOrUpdate(
* @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 the Private Endpoint Connection resource.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -109,7 +110,7 @@ Response createOrUpdateWithResponse(
Context context);
/**
- * Delete 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.
@@ -122,7 +123,7 @@ Response createOrUpdateWithResponse(
void delete(String resourceGroupName, String accountName, String name);
/**
- * Delete 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.
@@ -131,7 +132,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context);
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 641edfa4ff757..49947daadede8 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,20 +14,20 @@
/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
public interface PrivateLinkResourcesClient {
/**
- * 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.
* @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 list of group IDs.
+ * @return a list of private link resources.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName);
/**
- * 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.
@@ -35,14 +35,14 @@ public interface PrivateLinkResourcesClient {
* @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 list of group IDs.
+ * @return a list of private link resources along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(
String resourceGroupName, String accountName, Context context);
/**
- * 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.
@@ -50,13 +50,13 @@ Response listWithResponse(
* @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 group ID.
+ * @return details of a group ID.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name);
/**
- * 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.
@@ -65,7 +65,7 @@ Response listWithResponse(
* @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 group ID.
+ * @return details of a group ID along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
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 26cb0f6ae3d23..44a417e478c12 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
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointInner;
+import com.azure.resourcemanager.mediaservices.fluent.models.StreamingEndpointSkuInfoListResultInner;
import com.azure.resourcemanager.mediaservices.models.StreamingEntityScaleUnit;
/** An instance of this class provides access to all the operations defined in StreamingEndpointsClient. */
@@ -24,7 +25,7 @@ public interface StreamingEndpointsClient {
* @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 the streaming endpoint list result.
+ * @return streamingEndpointListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -38,7 +39,7 @@ public interface StreamingEndpointsClient {
* @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 the streaming endpoint list result.
+ * @return streamingEndpointListResult as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, Context context);
@@ -67,7 +68,7 @@ public interface StreamingEndpointsClient {
* @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.
+ * @return a streaming endpoint along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -84,9 +85,9 @@ Response getWithResponse(
* @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 the streaming endpoint.
+ * @return the {@link SyncPoller} for polling of the streaming endpoint.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -106,9 +107,9 @@ SyncPoller, StreamingEndpointInner> beginCrea
* @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 the streaming endpoint.
+ * @return the {@link SyncPoller} for polling of the streaming endpoint.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -187,9 +188,9 @@ StreamingEndpointInner create(
* @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 the streaming endpoint.
+ * @return the {@link SyncPoller} for polling of the streaming endpoint.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginUpdate(
String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters);
@@ -204,9 +205,9 @@ SyncPoller, StreamingEndpointInner> beginUpda
* @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 the streaming endpoint.
+ * @return the {@link SyncPoller} for polling of the streaming endpoint.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -260,9 +261,9 @@ StreamingEndpointInner update(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -276,9 +277,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -310,17 +311,48 @@ SyncPoller, Void> beginDelete(
void delete(String resourceGroupName, String accountName, String streamingEndpointName, Context context);
/**
- * Starts an existing streaming endpoint.
+ * List streaming endpoint supported skus.
+ *
+ * @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.
+ * @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 the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StreamingEndpointSkuInfoListResultInner skus(
+ String resourceGroupName, String accountName, String streamingEndpointName);
+
+ /**
+ * List streaming endpoint supported skus.
*
* @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 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 the completion.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
+ Response skusWithResponse(
+ String resourceGroupName, String accountName, String streamingEndpointName, Context context);
+
+ /**
+ * Starts an existing streaming endpoint.
+ *
+ * @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.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -334,9 +366,9 @@ SyncPoller, Void> beginStart(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -376,9 +408,9 @@ SyncPoller, Void> beginStart(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -392,9 +424,9 @@ SyncPoller, Void> beginStop(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -435,9 +467,9 @@ SyncPoller, Void> beginStop(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScale(
String resourceGroupName,
String accountName,
@@ -455,9 +487,9 @@ SyncPoller, Void> beginScale(
* @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 the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScale(
String resourceGroupName,
String accountName,
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 0cd5d1f5503f9..51a0e89ea3ff8 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
@@ -23,7 +23,7 @@ public interface StreamingLocatorsClient {
* @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 collection of StreamingLocator items.
+ * @return a collection of StreamingLocator items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -41,7 +41,7 @@ public interface StreamingLocatorsClient {
* @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 collection of StreamingLocator items.
+ * @return a collection of StreamingLocator items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -71,7 +71,7 @@ PagedIterable list(
* @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 the details of a Streaming Locator in the Media Services account.
+ * @return the details of a Streaming Locator in the Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -104,7 +104,7 @@ StreamingLocatorInner create(
* @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 Locator resource.
+ * @return a Streaming Locator resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -137,7 +137,7 @@ Response createWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -168,7 +168,7 @@ ListContentKeysResponseInner listContentKeys(
* @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 class of response for listContentKeys action.
+ * @return class of response for listContentKeys action along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listContentKeysWithResponse(
@@ -198,7 +198,7 @@ Response listContentKeysWithResponse(
* @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 class of response for listPaths action.
+ * @return class of response for listPaths action along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listPathsWithResponse(
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 62cda74d43abb..d3426f6d3af7f 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
@@ -21,7 +21,7 @@ public interface StreamingPoliciesClient {
* @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 collection of StreamingPolicy items.
+ * @return a collection of StreamingPolicy items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -39,7 +39,7 @@ public interface StreamingPoliciesClient {
* @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 collection of StreamingPolicy items.
+ * @return a collection of StreamingPolicy items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -69,7 +69,7 @@ PagedIterable list(
* @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 the details of a Streaming Policy in the Media Services account.
+ * @return the details of a Streaming Policy in the Media Services account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -102,7 +102,7 @@ StreamingPolicyInner create(
* @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 Policy resource.
+ * @return a Streaming Policy resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createWithResponse(
@@ -135,7 +135,7 @@ Response createWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
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
new file mode 100644
index 0000000000000..29b7a01c5806a
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java
@@ -0,0 +1,376 @@
+// 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;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+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.AssetTrackInner;
+
+/** An instance of this class provides access to all the operations defined in TracksClient. */
+public interface TracksClient {
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @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 collection of AssetTrack items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String assetName);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @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 collection of AssetTrack items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String accountName, String assetName, Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the details of a Track in the Asset.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the details of a Track in the Asset along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String accountName, String assetName, String trackName, Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AssetTrackInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AssetTrackInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ AssetTrackInner parameters,
+ Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner createOrUpdate(
+ String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner createOrUpdate(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ AssetTrackInner parameters,
+ Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String assetName, String trackName);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String accountName, String assetName, String trackName, Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, String assetName, String trackName);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String accountName, String assetName, String trackName, Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AssetTrackInner> beginUpdate(
+ String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 the {@link SyncPoller} for polling of an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AssetTrackInner> beginUpdate(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ AssetTrackInner parameters,
+ Context context);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner update(
+ String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters);
+
+ /**
+ * 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.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @param parameters The request parameters.
+ * @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 an Asset Track resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AssetTrackInner update(
+ String resourceGroupName,
+ String accountName,
+ String assetName,
+ String trackName,
+ AssetTrackInner parameters,
+ 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.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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 the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ 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.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
+ *
+ * @param resourceGroupName The name of the resource group within the Azure subscription.
+ * @param accountName The Media Services account name.
+ * @param assetName The Asset name.
+ * @param trackName The Asset Track name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateTrackData(
+ String resourceGroupName, String accountName, String assetName, String trackName, Context context);
+}
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 93fa7e220a7f4..28032f59d691c 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
@@ -21,7 +21,7 @@ public interface TransformsClient {
* @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 collection of Transform items.
+ * @return a collection of Transform items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -37,7 +37,7 @@ public interface TransformsClient {
* @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 collection of Transform items.
+ * @return a collection of Transform items as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -67,7 +67,7 @@ PagedIterable list(
* @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 Transform.
+ * @return a Transform along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -102,7 +102,7 @@ TransformInner createOrUpdate(
* @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 Transform encapsulates the rules or instructions for generating desired outputs from input media, such
- * as by transcoding or by extracting insights.
+ * as by transcoding or by extracting insights along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -131,7 +131,7 @@ Response createOrUpdateWithResponse(
* @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 the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(
@@ -166,7 +166,7 @@ TransformInner update(
* @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 Transform encapsulates the rules or instructions for generating desired outputs from input media, such
- * as by transcoding or by extracting insights.
+ * as by transcoding or by extracting insights along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
index 2f5568962d983..88809436fcab0 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AccountFilterInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -17,34 +16,30 @@
import java.util.List;
/** An Account Filter. */
-@JsonFlatten
@Fluent
-public class AccountFilterInner extends ProxyResource {
+public final class AccountFilterInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AccountFilterInner.class);
/*
- * The system metadata relating to this resource.
+ * The Media Filter properties.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ @JsonProperty(value = "properties")
+ private MediaFilterProperties innerProperties;
/*
- * The presentation time range.
- */
- @JsonProperty(value = "properties.presentationTimeRange")
- private PresentationTimeRange presentationTimeRange;
-
- /*
- * The first quality.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.firstQuality")
- private FirstQuality firstQuality;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The tracks selection conditions.
+ /**
+ * Get the innerProperties property: The Media Filter properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.tracks")
- private List tracks;
+ private MediaFilterProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -61,7 +56,7 @@ public SystemData systemData() {
* @return the presentationTimeRange value.
*/
public PresentationTimeRange presentationTimeRange() {
- return this.presentationTimeRange;
+ return this.innerProperties() == null ? null : this.innerProperties().presentationTimeRange();
}
/**
@@ -71,7 +66,10 @@ public PresentationTimeRange presentationTimeRange() {
* @return the AccountFilterInner object itself.
*/
public AccountFilterInner withPresentationTimeRange(PresentationTimeRange presentationTimeRange) {
- this.presentationTimeRange = presentationTimeRange;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withPresentationTimeRange(presentationTimeRange);
return this;
}
@@ -81,7 +79,7 @@ public AccountFilterInner withPresentationTimeRange(PresentationTimeRange presen
* @return the firstQuality value.
*/
public FirstQuality firstQuality() {
- return this.firstQuality;
+ return this.innerProperties() == null ? null : this.innerProperties().firstQuality();
}
/**
@@ -91,7 +89,10 @@ public FirstQuality firstQuality() {
* @return the AccountFilterInner object itself.
*/
public AccountFilterInner withFirstQuality(FirstQuality firstQuality) {
- this.firstQuality = firstQuality;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withFirstQuality(firstQuality);
return this;
}
@@ -101,7 +102,7 @@ public AccountFilterInner withFirstQuality(FirstQuality firstQuality) {
* @return the tracks value.
*/
public List tracks() {
- return this.tracks;
+ return this.innerProperties() == null ? null : this.innerProperties().tracks();
}
/**
@@ -111,7 +112,10 @@ public List tracks() {
* @return the AccountFilterInner object itself.
*/
public AccountFilterInner withTracks(List tracks) {
- this.tracks = tracks;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withTracks(tracks);
return this;
}
@@ -121,14 +125,8 @@ public AccountFilterInner withTracks(List tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (presentationTimeRange() != null) {
- presentationTimeRange().validate();
- }
- if (firstQuality() != null) {
- firstQuality().validate();
- }
- if (tracks() != null) {
- tracks().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
index be566f6265db6..28844db4d5366 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetFilterInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -17,34 +16,30 @@
import java.util.List;
/** An Asset Filter. */
-@JsonFlatten
@Fluent
-public class AssetFilterInner extends ProxyResource {
+public final class AssetFilterInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetFilterInner.class);
/*
- * The system metadata relating to this resource.
+ * The Media Filter properties.
*/
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
+ @JsonProperty(value = "properties")
+ private MediaFilterProperties innerProperties;
/*
- * The presentation time range.
- */
- @JsonProperty(value = "properties.presentationTimeRange")
- private PresentationTimeRange presentationTimeRange;
-
- /*
- * The first quality.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.firstQuality")
- private FirstQuality firstQuality;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The tracks selection conditions.
+ /**
+ * Get the innerProperties property: The Media Filter properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.tracks")
- private List tracks;
+ private MediaFilterProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -61,7 +56,7 @@ public SystemData systemData() {
* @return the presentationTimeRange value.
*/
public PresentationTimeRange presentationTimeRange() {
- return this.presentationTimeRange;
+ return this.innerProperties() == null ? null : this.innerProperties().presentationTimeRange();
}
/**
@@ -71,7 +66,10 @@ public PresentationTimeRange presentationTimeRange() {
* @return the AssetFilterInner object itself.
*/
public AssetFilterInner withPresentationTimeRange(PresentationTimeRange presentationTimeRange) {
- this.presentationTimeRange = presentationTimeRange;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withPresentationTimeRange(presentationTimeRange);
return this;
}
@@ -81,7 +79,7 @@ public AssetFilterInner withPresentationTimeRange(PresentationTimeRange presenta
* @return the firstQuality value.
*/
public FirstQuality firstQuality() {
- return this.firstQuality;
+ return this.innerProperties() == null ? null : this.innerProperties().firstQuality();
}
/**
@@ -91,7 +89,10 @@ public FirstQuality firstQuality() {
* @return the AssetFilterInner object itself.
*/
public AssetFilterInner withFirstQuality(FirstQuality firstQuality) {
- this.firstQuality = firstQuality;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withFirstQuality(firstQuality);
return this;
}
@@ -101,7 +102,7 @@ public AssetFilterInner withFirstQuality(FirstQuality firstQuality) {
* @return the tracks value.
*/
public List tracks() {
- return this.tracks;
+ return this.innerProperties() == null ? null : this.innerProperties().tracks();
}
/**
@@ -111,7 +112,10 @@ public List tracks() {
* @return the AssetFilterInner object itself.
*/
public AssetFilterInner withTracks(List tracks) {
- this.tracks = tracks;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaFilterProperties();
+ }
+ this.innerProperties().withTracks(tracks);
return this;
}
@@ -121,14 +125,8 @@ public AssetFilterInner withTracks(List tracks) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (presentationTimeRange() != null) {
- presentationTimeRange().validate();
- }
- if (firstQuality() != null) {
- firstQuality().validate();
- }
- if (tracks() != null) {
- tracks().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
index 46786ef6cb8be..cdce8ffe67f4b 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -16,64 +15,30 @@
import java.util.UUID;
/** An Asset. */
-@JsonFlatten
@Fluent
-public class AssetInner extends ProxyResource {
+public final class AssetInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AssetInner.class);
/*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * The Asset ID.
- */
- @JsonProperty(value = "properties.assetId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID assetId;
-
- /*
- * The creation date of the Asset.
- */
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime created;
-
- /*
- * The last modified date of the Asset.
- */
- @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModified;
-
- /*
- * The alternate ID of the Asset.
- */
- @JsonProperty(value = "properties.alternateId")
- private String alternateId;
-
- /*
- * The Asset description.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * The name of the asset blob container.
+ * The resource properties.
*/
- @JsonProperty(value = "properties.container")
- private String container;
+ @JsonProperty(value = "properties")
+ private AssetProperties innerProperties;
/*
- * The name of the storage account.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.storageAccountName")
- private String storageAccountName;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The Asset encryption format. One of None or MediaStorageEncryption.
+ /**
+ * Get the innerProperties property: The resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY)
- private AssetStorageEncryptionFormat storageEncryptionFormat;
+ private AssetProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -90,7 +55,7 @@ public SystemData systemData() {
* @return the assetId value.
*/
public UUID assetId() {
- return this.assetId;
+ return this.innerProperties() == null ? null : this.innerProperties().assetId();
}
/**
@@ -99,7 +64,7 @@ public UUID assetId() {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -108,7 +73,7 @@ public OffsetDateTime created() {
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
- return this.lastModified;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
@@ -117,7 +82,7 @@ public OffsetDateTime lastModified() {
* @return the alternateId value.
*/
public String alternateId() {
- return this.alternateId;
+ return this.innerProperties() == null ? null : this.innerProperties().alternateId();
}
/**
@@ -127,7 +92,10 @@ public String alternateId() {
* @return the AssetInner object itself.
*/
public AssetInner withAlternateId(String alternateId) {
- this.alternateId = alternateId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AssetProperties();
+ }
+ this.innerProperties().withAlternateId(alternateId);
return this;
}
@@ -137,7 +105,7 @@ public AssetInner withAlternateId(String alternateId) {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -147,7 +115,10 @@ public String description() {
* @return the AssetInner object itself.
*/
public AssetInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AssetProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -157,7 +128,7 @@ public AssetInner withDescription(String description) {
* @return the container value.
*/
public String container() {
- return this.container;
+ return this.innerProperties() == null ? null : this.innerProperties().container();
}
/**
@@ -167,7 +138,10 @@ public String container() {
* @return the AssetInner object itself.
*/
public AssetInner withContainer(String container) {
- this.container = container;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AssetProperties();
+ }
+ this.innerProperties().withContainer(container);
return this;
}
@@ -177,7 +151,7 @@ public AssetInner withContainer(String container) {
* @return the storageAccountName value.
*/
public String storageAccountName() {
- return this.storageAccountName;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountName();
}
/**
@@ -187,7 +161,10 @@ public String storageAccountName() {
* @return the AssetInner object itself.
*/
public AssetInner withStorageAccountName(String storageAccountName) {
- this.storageAccountName = storageAccountName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AssetProperties();
+ }
+ this.innerProperties().withStorageAccountName(storageAccountName);
return this;
}
@@ -197,7 +174,7 @@ public AssetInner withStorageAccountName(String storageAccountName) {
* @return the storageEncryptionFormat value.
*/
public AssetStorageEncryptionFormat storageEncryptionFormat() {
- return this.storageEncryptionFormat;
+ return this.innerProperties() == null ? null : this.innerProperties().storageEncryptionFormat();
}
/**
@@ -206,5 +183,8 @@ public AssetStorageEncryptionFormat storageEncryptionFormat() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java
new file mode 100644
index 0000000000000..d64a31ae0a046
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetProperties.java
@@ -0,0 +1,191 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.AssetStorageEncryptionFormat;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.UUID;
+
+/** The Asset properties. */
+@Fluent
+public final class AssetProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AssetProperties.class);
+
+ /*
+ * The Asset ID.
+ */
+ @JsonProperty(value = "assetId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID assetId;
+
+ /*
+ * The creation date of the Asset.
+ */
+ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime created;
+
+ /*
+ * The last modified date of the Asset.
+ */
+ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModified;
+
+ /*
+ * The alternate ID of the Asset.
+ */
+ @JsonProperty(value = "alternateId")
+ private String alternateId;
+
+ /*
+ * The Asset description.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The name of the asset blob container.
+ */
+ @JsonProperty(value = "container")
+ private String container;
+
+ /*
+ * The name of the storage account.
+ */
+ @JsonProperty(value = "storageAccountName")
+ private String storageAccountName;
+
+ /*
+ * The Asset encryption format. One of None or MediaStorageEncryption.
+ */
+ @JsonProperty(value = "storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY)
+ private AssetStorageEncryptionFormat storageEncryptionFormat;
+
+ /**
+ * Get the assetId property: The Asset ID.
+ *
+ * @return the assetId value.
+ */
+ public UUID assetId() {
+ return this.assetId;
+ }
+
+ /**
+ * Get the created property: The creation date of the Asset.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Get the lastModified property: The last modified date of the Asset.
+ *
+ * @return the lastModified value.
+ */
+ public OffsetDateTime lastModified() {
+ return this.lastModified;
+ }
+
+ /**
+ * Get the alternateId property: The alternate ID of the Asset.
+ *
+ * @return the alternateId value.
+ */
+ public String alternateId() {
+ return this.alternateId;
+ }
+
+ /**
+ * Set the alternateId property: The alternate ID of the Asset.
+ *
+ * @param alternateId the alternateId value to set.
+ * @return the AssetProperties object itself.
+ */
+ public AssetProperties withAlternateId(String alternateId) {
+ this.alternateId = alternateId;
+ return this;
+ }
+
+ /**
+ * Get the description property: The Asset description.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The Asset description.
+ *
+ * @param description the description value to set.
+ * @return the AssetProperties object itself.
+ */
+ public AssetProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the container property: The name of the asset blob container.
+ *
+ * @return the container value.
+ */
+ public String container() {
+ return this.container;
+ }
+
+ /**
+ * Set the container property: The name of the asset blob container.
+ *
+ * @param container the container value to set.
+ * @return the AssetProperties object itself.
+ */
+ public AssetProperties withContainer(String container) {
+ this.container = container;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountName property: The name of the storage account.
+ *
+ * @return the storageAccountName value.
+ */
+ public String storageAccountName() {
+ return this.storageAccountName;
+ }
+
+ /**
+ * Set the storageAccountName property: The name of the storage account.
+ *
+ * @param storageAccountName the storageAccountName value to set.
+ * @return the AssetProperties object itself.
+ */
+ public AssetProperties withStorageAccountName(String storageAccountName) {
+ this.storageAccountName = storageAccountName;
+ return this;
+ }
+
+ /**
+ * Get the storageEncryptionFormat property: The Asset encryption format. One of None or MediaStorageEncryption.
+ *
+ * @return the storageEncryptionFormat value.
+ */
+ public AssetStorageEncryptionFormat storageEncryptionFormat() {
+ return this.storageEncryptionFormat;
+ }
+
+ /**
+ * 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/AssetTrackInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java
new file mode 100644
index 0000000000000..bab03c5746639
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackInner.java
@@ -0,0 +1,77 @@
+// 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.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.ProvisioningState;
+import com.azure.resourcemanager.mediaservices.models.TrackBase;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** An Asset Track resource. */
+@Fluent
+public final class AssetTrackInner extends ProxyResource {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AssetTrackInner.class);
+
+ /*
+ * The resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private AssetTrackProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: The resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private AssetTrackProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the track property: Detailed information about a track in the asset.
+ *
+ * @return the track value.
+ */
+ public TrackBase track() {
+ return this.innerProperties() == null ? null : this.innerProperties().track();
+ }
+
+ /**
+ * Set the track property: Detailed information about a track in the asset.
+ *
+ * @param track the track value to set.
+ * @return the AssetTrackInner object itself.
+ */
+ public AssetTrackInner withTrack(TrackBase track) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AssetTrackProperties();
+ }
+ this.innerProperties().withTrack(track);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the asset track.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java
new file mode 100644
index 0000000000000..55498b17cbe09
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackOperationStatusInner.java
@@ -0,0 +1,194 @@
+// 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.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Status of asset track operation. */
+@Fluent
+public final class AssetTrackOperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AssetTrackOperationStatusInner.class);
+
+ /*
+ * Operation identifier.
+ */
+ @JsonProperty(value = "name", required = true)
+ private String name;
+
+ /*
+ * Operation resource ID.
+ */
+ @JsonProperty(value = "id")
+ private String id;
+
+ /*
+ * Operation start time.
+ */
+ @JsonProperty(value = "startTime")
+ private OffsetDateTime startTime;
+
+ /*
+ * Operation end time.
+ */
+ @JsonProperty(value = "endTime")
+ private OffsetDateTime endTime;
+
+ /*
+ * Operation status.
+ */
+ @JsonProperty(value = "status", required = true)
+ private String status;
+
+ /*
+ * The error detail.
+ */
+ @JsonProperty(value = "error")
+ private ManagementError error;
+
+ /**
+ * Get the name property: Operation identifier.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation identifier.
+ *
+ * @param name the name value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the id property: Operation resource ID.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: Operation resource ID.
+ *
+ * @param id the id value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: Operation start time.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Set the startTime property: Operation start time.
+ *
+ * @param startTime the startTime value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withStartTime(OffsetDateTime startTime) {
+ this.startTime = startTime;
+ return this;
+ }
+
+ /**
+ * Get the endTime property: Operation end time.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Set the endTime property: Operation end time.
+ *
+ * @param endTime the endTime value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withEndTime(OffsetDateTime endTime) {
+ this.endTime = endTime;
+ return this;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Set the status property: Operation status.
+ *
+ * @param status the status value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withStatus(String status) {
+ this.status = status;
+ return this;
+ }
+
+ /**
+ * Get the error property: The error detail.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Set the error property: The error detail.
+ *
+ * @param error the error value to set.
+ * @return the AssetTrackOperationStatusInner object itself.
+ */
+ public AssetTrackOperationStatusInner withError(ManagementError error) {
+ this.error = error;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (name() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property name in model AssetTrackOperationStatusInner"));
+ }
+ if (status() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property status in model AssetTrackOperationStatusInner"));
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java
new file mode 100644
index 0000000000000..7314d719e51a0
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetTrackProperties.java
@@ -0,0 +1,70 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.ProvisioningState;
+import com.azure.resourcemanager.mediaservices.models.TrackBase;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of a video, audio or text track in the asset. */
+@Fluent
+public final class AssetTrackProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AssetTrackProperties.class);
+
+ /*
+ * Detailed information about a track in the asset.
+ */
+ @JsonProperty(value = "track")
+ private TrackBase track;
+
+ /*
+ * Provisioning state of the asset track.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * Get the track property: Detailed information about a track in the asset.
+ *
+ * @return the track value.
+ */
+ public TrackBase track() {
+ return this.track;
+ }
+
+ /**
+ * Set the track property: Detailed information about a track in the asset.
+ *
+ * @param track the track value to set.
+ * @return the AssetTrackProperties object itself.
+ */
+ public AssetTrackProperties withTrack(TrackBase track) {
+ this.track = track;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the asset track.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (track() != null) {
+ track().validate();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
index 84ce6a6cc66fc..341a27cd3c3df 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -17,46 +16,30 @@
import java.util.UUID;
/** A Content Key Policy resource. */
-@JsonFlatten
@Fluent
-public class ContentKeyPolicyInner extends ProxyResource {
+public final class ContentKeyPolicyInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ContentKeyPolicyInner.class);
/*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * The legacy Policy ID.
+ * The properties of the Content Key Policy.
*/
- @JsonProperty(value = "properties.policyId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID policyId;
+ @JsonProperty(value = "properties")
+ private ContentKeyPolicyPropertiesInner innerProperties;
/*
- * The creation date of the Policy
- */
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime created;
-
- /*
- * The last modified date of the Policy
- */
- @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModified;
-
- /*
- * A description for the Policy.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.description")
- private String description;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The Key Policy options.
+ /**
+ * Get the innerProperties property: The properties of the Content Key Policy.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.options")
- private List options;
+ private ContentKeyPolicyPropertiesInner innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -73,7 +56,7 @@ public SystemData systemData() {
* @return the policyId value.
*/
public UUID policyId() {
- return this.policyId;
+ return this.innerProperties() == null ? null : this.innerProperties().policyId();
}
/**
@@ -82,7 +65,7 @@ public UUID policyId() {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -91,7 +74,7 @@ public OffsetDateTime created() {
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
- return this.lastModified;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
@@ -100,7 +83,7 @@ public OffsetDateTime lastModified() {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -110,7 +93,10 @@ public String description() {
* @return the ContentKeyPolicyInner object itself.
*/
public ContentKeyPolicyInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContentKeyPolicyPropertiesInner();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -120,7 +106,7 @@ public ContentKeyPolicyInner withDescription(String description) {
* @return the options value.
*/
public List options() {
- return this.options;
+ return this.innerProperties() == null ? null : this.innerProperties().options();
}
/**
@@ -130,7 +116,10 @@ public List options() {
* @return the ContentKeyPolicyInner object itself.
*/
public ContentKeyPolicyInner withOptions(List options) {
- this.options = options;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContentKeyPolicyPropertiesInner();
+ }
+ this.innerProperties().withOptions(options);
return this;
}
@@ -140,8 +129,8 @@ public ContentKeyPolicyInner withOptions(List options) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (options() != null) {
- options().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
index b048a694c7e49..74a73240b9fec 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -23,81 +22,30 @@
* A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using
* EventGrid.
*/
-@JsonFlatten
@Fluent
-public class JobInner extends ProxyResource {
+public final class JobInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(JobInner.class);
/*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * The UTC date and time when the customer has created the Job, in
- * 'YYYY-MM-DDThh:mm:ssZ' format.
- */
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime created;
-
- /*
- * The current state of the job.
- */
- @JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
- private JobState state;
-
- /*
- * Optional customer supplied description of the Job.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * The inputs for the Job.
- */
- @JsonProperty(value = "properties.input")
- private JobInput input;
-
- /*
- * The UTC date and time when the customer has last updated the Job, in
- * 'YYYY-MM-DDThh:mm:ssZ' format.
- */
- @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModified;
-
- /*
- * The outputs for the Job.
- */
- @JsonProperty(value = "properties.outputs")
- 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.
+ * The resource properties.
*/
- @JsonProperty(value = "properties.priority")
- private Priority priority;
+ @JsonProperty(value = "properties")
+ private JobProperties innerProperties;
/*
- * Customer provided key, value pairs that will be returned in Job and
- * JobOutput state events.
- */
- @JsonProperty(value = "properties.correlationData")
- private Map correlationData;
-
- /*
- * The UTC date and time at which this Job began processing.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime startTime;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The UTC date and time at which this Job finished processing.
+ /**
+ * Get the innerProperties property: The resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime endTime;
+ private JobProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -115,7 +63,7 @@ public SystemData systemData() {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -124,7 +72,7 @@ public OffsetDateTime created() {
* @return the state value.
*/
public JobState state() {
- return this.state;
+ return this.innerProperties() == null ? null : this.innerProperties().state();
}
/**
@@ -133,7 +81,7 @@ public JobState state() {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -143,7 +91,10 @@ public String description() {
* @return the JobInner object itself.
*/
public JobInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -153,7 +104,7 @@ public JobInner withDescription(String description) {
* @return the input value.
*/
public JobInput input() {
- return this.input;
+ return this.innerProperties() == null ? null : this.innerProperties().input();
}
/**
@@ -163,7 +114,10 @@ public JobInput input() {
* @return the JobInner object itself.
*/
public JobInner withInput(JobInput input) {
- this.input = input;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withInput(input);
return this;
}
@@ -174,7 +128,7 @@ public JobInner withInput(JobInput input) {
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
- return this.lastModified;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
@@ -183,7 +137,7 @@ public OffsetDateTime lastModified() {
* @return the outputs value.
*/
public List outputs() {
- return this.outputs;
+ return this.innerProperties() == null ? null : this.innerProperties().outputs();
}
/**
@@ -193,7 +147,10 @@ public List outputs() {
* @return the JobInner object itself.
*/
public JobInner withOutputs(List outputs) {
- this.outputs = outputs;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withOutputs(outputs);
return this;
}
@@ -204,7 +161,7 @@ public JobInner withOutputs(List outputs) {
* @return the priority value.
*/
public Priority priority() {
- return this.priority;
+ return this.innerProperties() == null ? null : this.innerProperties().priority();
}
/**
@@ -215,7 +172,10 @@ public Priority priority() {
* @return the JobInner object itself.
*/
public JobInner withPriority(Priority priority) {
- this.priority = priority;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withPriority(priority);
return this;
}
@@ -226,7 +186,7 @@ public JobInner withPriority(Priority priority) {
* @return the correlationData value.
*/
public Map correlationData() {
- return this.correlationData;
+ return this.innerProperties() == null ? null : this.innerProperties().correlationData();
}
/**
@@ -237,7 +197,10 @@ public Map correlationData() {
* @return the JobInner object itself.
*/
public JobInner withCorrelationData(Map correlationData) {
- this.correlationData = correlationData;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withCorrelationData(correlationData);
return this;
}
@@ -247,7 +210,7 @@ public JobInner withCorrelationData(Map correlationData) {
* @return the startTime value.
*/
public OffsetDateTime startTime() {
- return this.startTime;
+ return this.innerProperties() == null ? null : this.innerProperties().startTime();
}
/**
@@ -256,7 +219,7 @@ public OffsetDateTime startTime() {
* @return the endTime value.
*/
public OffsetDateTime endTime() {
- return this.endTime;
+ return this.innerProperties() == null ? null : this.innerProperties().endTime();
}
/**
@@ -265,11 +228,8 @@ public OffsetDateTime endTime() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (input() != null) {
- input().validate();
- }
- if (outputs() != null) {
- outputs().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().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
new file mode 100644
index 0000000000000..9f7274a45df83
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java
@@ -0,0 +1,263 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.JobInput;
+import com.azure.resourcemanager.mediaservices.models.JobOutput;
+import com.azure.resourcemanager.mediaservices.models.JobState;
+import com.azure.resourcemanager.mediaservices.models.Priority;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Properties of the Job. */
+@Fluent
+public final class JobProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(JobProperties.class);
+
+ /*
+ * 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;
+
+ /*
+ * The current state of the job.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private JobState state;
+
+ /*
+ * Optional customer supplied description of the Job.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The inputs for the Job.
+ */
+ @JsonProperty(value = "input", required = true)
+ private JobInput input;
+
+ /*
+ * 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;
+
+ /*
+ * The outputs for the Job.
+ */
+ @JsonProperty(value = "outputs", required = true)
+ 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.
+ */
+ @JsonProperty(value = "priority")
+ private Priority priority;
+
+ /*
+ * 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)
+ private Map correlationData;
+
+ /*
+ * The UTC date and time at which this Job began processing.
+ */
+ @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime startTime;
+
+ /*
+ * The UTC date and time at which this Job finished processing.
+ */
+ @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime endTime;
+
+ /**
+ * Get the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ'
+ * format.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Get the state property: The current state of the job.
+ *
+ * @return the state value.
+ */
+ public JobState state() {
+ return this.state;
+ }
+
+ /**
+ * Get the description property: Optional customer supplied description of the Job.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Optional customer supplied description of the Job.
+ *
+ * @param description the description value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the input property: The inputs for the Job.
+ *
+ * @return the input value.
+ */
+ public JobInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set the input property: The inputs for the Job.
+ *
+ * @param input the input value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withInput(JobInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get the lastModified property: The UTC date and time when the customer has last updated the Job, in
+ * 'YYYY-MM-DDThh:mm:ssZ' format.
+ *
+ * @return the lastModified value.
+ */
+ public OffsetDateTime lastModified() {
+ return this.lastModified;
+ }
+
+ /**
+ * Get the outputs property: The outputs for the Job.
+ *
+ * @return the outputs value.
+ */
+ public List outputs() {
+ return this.outputs;
+ }
+
+ /**
+ * Set the outputs property: The outputs for the Job.
+ *
+ * @param outputs the outputs value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withOutputs(List outputs) {
+ this.outputs = outputs;
+ return this;
+ }
+
+ /**
+ * Get the priority property: Priority with which the job should be processed. Higher priority jobs are processed
+ * before lower priority jobs. If not set, the default is normal.
+ *
+ * @return the priority value.
+ */
+ public Priority priority() {
+ return this.priority;
+ }
+
+ /**
+ * Set the priority property: Priority with which the job should be processed. Higher priority jobs are processed
+ * before lower priority jobs. If not set, the default is normal.
+ *
+ * @param priority the priority value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withPriority(Priority priority) {
+ this.priority = priority;
+ return this;
+ }
+
+ /**
+ * Get the correlationData property: Customer provided key, value pairs that will be returned in Job and JobOutput
+ * state events.
+ *
+ * @return the correlationData value.
+ */
+ public Map correlationData() {
+ return this.correlationData;
+ }
+
+ /**
+ * Set the correlationData property: Customer provided key, value pairs that will be returned in Job and JobOutput
+ * state events.
+ *
+ * @param correlationData the correlationData value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withCorrelationData(Map correlationData) {
+ this.correlationData = correlationData;
+ return this;
+ }
+
+ /**
+ * Get the startTime property: The UTC date and time at which this Job began processing.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: The UTC date and time at which this Job finished processing.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (input() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property input in model JobProperties"));
+ } else {
+ input().validate();
+ }
+ if (outputs() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property outputs in model JobProperties"));
+ } else {
+ outputs().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
index e3bc48222309f..b748d8f416fb6 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.mediaservices.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
@@ -23,109 +22,30 @@
import java.util.Map;
/** The live event. */
-@JsonFlatten
@Fluent
-public class LiveEventInner extends Resource {
+public final class LiveEventInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(LiveEventInner.class);
/*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * A description for the live event.
- */
- @JsonProperty(value = "properties.description")
- private String description;
-
- /*
- * Live event input settings. It defines how the live event receives input
- * from a contribution encoder.
- */
- @JsonProperty(value = "properties.input")
- private LiveEventInput input;
-
- /*
- * Live event preview settings. Preview allows live event producers to
- * preview the live streaming content without creating any live output.
- */
- @JsonProperty(value = "properties.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.
+ * The live event properties.
*/
- @JsonProperty(value = "properties.encoding")
- private LiveEventEncoding encoding;
+ @JsonProperty(value = "properties")
+ private LiveEventProperties innerProperties;
/*
- * 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 = "properties.transcriptions")
- private List transcriptions;
-
- /*
- * The provisioning state of the live event.
- */
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
-
- /*
- * The resource state of the live event. See
- * https://go.microsoft.com/fwlink/?linkid=2139012 for more information.
- */
- @JsonProperty(value = "properties.resourceState", access = JsonProperty.Access.WRITE_ONLY)
- private LiveEventResourceState resourceState;
-
- /*
- * Live event cross site access policies.
- */
- @JsonProperty(value = "properties.crossSiteAccessPolicies")
- 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
- */
- @JsonProperty(value = "properties.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.
- */
- @JsonProperty(value = "properties.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'.
- */
- @JsonProperty(value = "properties.streamOptions")
- private List streamOptions;
-
- /*
- * The creation time for the live event
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime created;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The last modified time of the live event.
+ /**
+ * Get the innerProperties property: The live event properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModified;
+ private LiveEventProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -136,13 +56,27 @@ public SystemData systemData() {
return this.systemData;
}
+ /** {@inheritDoc} */
+ @Override
+ public LiveEventInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public LiveEventInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
/**
* Get the description property: A description for the live event.
*
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -152,7 +86,10 @@ public String description() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -163,7 +100,7 @@ public LiveEventInner withDescription(String description) {
* @return the input value.
*/
public LiveEventInput input() {
- return this.input;
+ return this.innerProperties() == null ? null : this.innerProperties().input();
}
/**
@@ -174,7 +111,10 @@ public LiveEventInput input() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withInput(LiveEventInput input) {
- this.input = input;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withInput(input);
return this;
}
@@ -185,7 +125,7 @@ public LiveEventInner withInput(LiveEventInput input) {
* @return the preview value.
*/
public LiveEventPreview preview() {
- return this.preview;
+ return this.innerProperties() == null ? null : this.innerProperties().preview();
}
/**
@@ -196,7 +136,10 @@ public LiveEventPreview preview() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withPreview(LiveEventPreview preview) {
- this.preview = preview;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withPreview(preview);
return this;
}
@@ -207,7 +150,7 @@ public LiveEventInner withPreview(LiveEventPreview preview) {
* @return the encoding value.
*/
public LiveEventEncoding encoding() {
- return this.encoding;
+ return this.innerProperties() == null ? null : this.innerProperties().encoding();
}
/**
@@ -218,7 +161,10 @@ public LiveEventEncoding encoding() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withEncoding(LiveEventEncoding encoding) {
- this.encoding = encoding;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withEncoding(encoding);
return this;
}
@@ -229,7 +175,7 @@ public LiveEventInner withEncoding(LiveEventEncoding encoding) {
* @return the transcriptions value.
*/
public List transcriptions() {
- return this.transcriptions;
+ return this.innerProperties() == null ? null : this.innerProperties().transcriptions();
}
/**
@@ -240,7 +186,10 @@ public List transcriptions() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withTranscriptions(List transcriptions) {
- this.transcriptions = transcriptions;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withTranscriptions(transcriptions);
return this;
}
@@ -250,7 +199,7 @@ public LiveEventInner withTranscriptions(List transcript
* @return the provisioningState value.
*/
public String provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -260,7 +209,7 @@ public String provisioningState() {
* @return the resourceState value.
*/
public LiveEventResourceState resourceState() {
- return this.resourceState;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceState();
}
/**
@@ -269,7 +218,7 @@ public LiveEventResourceState resourceState() {
* @return the crossSiteAccessPolicies value.
*/
public CrossSiteAccessPolicies crossSiteAccessPolicies() {
- return this.crossSiteAccessPolicies;
+ return this.innerProperties() == null ? null : this.innerProperties().crossSiteAccessPolicies();
}
/**
@@ -279,7 +228,10 @@ public CrossSiteAccessPolicies crossSiteAccessPolicies() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withCrossSiteAccessPolicies(CrossSiteAccessPolicies crossSiteAccessPolicies) {
- this.crossSiteAccessPolicies = crossSiteAccessPolicies;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withCrossSiteAccessPolicies(crossSiteAccessPolicies);
return this;
}
@@ -290,7 +242,7 @@ public LiveEventInner withCrossSiteAccessPolicies(CrossSiteAccessPolicies crossS
* @return the useStaticHostname value.
*/
public Boolean useStaticHostname() {
- return this.useStaticHostname;
+ return this.innerProperties() == null ? null : this.innerProperties().useStaticHostname();
}
/**
@@ -301,7 +253,10 @@ public Boolean useStaticHostname() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withUseStaticHostname(Boolean useStaticHostname) {
- this.useStaticHostname = useStaticHostname;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withUseStaticHostname(useStaticHostname);
return this;
}
@@ -314,7 +269,7 @@ public LiveEventInner withUseStaticHostname(Boolean useStaticHostname) {
* @return the hostnamePrefix value.
*/
public String hostnamePrefix() {
- return this.hostnamePrefix;
+ return this.innerProperties() == null ? null : this.innerProperties().hostnamePrefix();
}
/**
@@ -327,7 +282,10 @@ public String hostnamePrefix() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withHostnamePrefix(String hostnamePrefix) {
- this.hostnamePrefix = hostnamePrefix;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withHostnamePrefix(hostnamePrefix);
return this;
}
@@ -338,7 +296,7 @@ public LiveEventInner withHostnamePrefix(String hostnamePrefix) {
* @return the streamOptions value.
*/
public List streamOptions() {
- return this.streamOptions;
+ return this.innerProperties() == null ? null : this.innerProperties().streamOptions();
}
/**
@@ -349,7 +307,10 @@ public List streamOptions() {
* @return the LiveEventInner object itself.
*/
public LiveEventInner withStreamOptions(List streamOptions) {
- this.streamOptions = streamOptions;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveEventProperties();
+ }
+ this.innerProperties().withStreamOptions(streamOptions);
return this;
}
@@ -359,7 +320,7 @@ public LiveEventInner withStreamOptions(List streamOptions) {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -368,21 +329,7 @@ public OffsetDateTime created() {
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
- return this.lastModified;
- }
-
- /** {@inheritDoc} */
- @Override
- public LiveEventInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /** {@inheritDoc} */
- @Override
- public LiveEventInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
@@ -391,20 +338,8 @@ public LiveEventInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (input() != null) {
- input().validate();
- }
- if (preview() != null) {
- preview().validate();
- }
- if (encoding() != null) {
- encoding().validate();
- }
- if (transcriptions() != null) {
- transcriptions().forEach(e -> e.validate());
- }
- if (crossSiteAccessPolicies() != null) {
- crossSiteAccessPolicies().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
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
new file mode 100644
index 0000000000000..0c6856d3d88a2
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java
@@ -0,0 +1,380 @@
+// 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.util.logging.ClientLogger;
+import com.azure.resourcemanager.mediaservices.models.CrossSiteAccessPolicies;
+import com.azure.resourcemanager.mediaservices.models.LiveEventEncoding;
+import com.azure.resourcemanager.mediaservices.models.LiveEventInput;
+import com.azure.resourcemanager.mediaservices.models.LiveEventPreview;
+import com.azure.resourcemanager.mediaservices.models.LiveEventResourceState;
+import com.azure.resourcemanager.mediaservices.models.LiveEventTranscription;
+import com.azure.resourcemanager.mediaservices.models.StreamOptionsFlag;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The live event properties. */
+@Fluent
+public final class LiveEventProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LiveEventProperties.class);
+
+ /*
+ * A description for the live event.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * 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.
+ */
+ @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.
+ */
+ @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.
+ */
+ @JsonProperty(value = "transcriptions")
+ private List