diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md
index f81ab5a8b13e3..5d3bf554a4b7a 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-10)
+- 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..bbc173533b99c 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md
@@ -1,132 +1,3598 @@
# 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-no-content.json
+ */
+ /**
+ * Sample code: Get result of asynchronous operation for POST action with no content response.
+ *
+ * @param manager Entry point to MediaServicesManager.
+ */
+ public static void getResultOfAsynchronousOperationForPOSTActionWithNoContentResponse(
+ com.azure.resourcemanager.mediaservices.MediaServicesManager manager) {
+ manager
+ .operationResults()
+ .getWithResponse(
+ "contoso",
+ "contosomedia",
+ "ClimbingMountRainer",
+ "text1",
+ "ccf8b8b7-2d38-4612-9ffc-65fbd95e4c82",
+ Context.NONE);
+ }
+
+ /*
+ * 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 c797e2a121ae2..af5bf1a53e2a0 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..d1531a6378e9f 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
@@ -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..9341d637f725d 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
@@ -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..16a22733b2ef5 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
@@ -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..f74f8697258ac 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
@@ -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..9da1bc710df31 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
@@ -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..fa83f65735baa 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
@@ -13,6 +13,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveEventInner;
import com.azure.resourcemanager.mediaservices.models.LiveEventActionInput;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in LiveEventsClient. */
public interface LiveEventsClient {
@@ -24,7 +25,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -38,7 +39,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, Context context);
@@ -67,7 +68,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 +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 live event.
+ * @return the live event along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -106,9 +107,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 live event along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -187,9 +188,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 live event along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveEventInner> beginUpdate(
String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters);
@@ -204,9 +205,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 live event along with {@link Response} on successful completion of {@link Mono}.
*/
- @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 +253,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -267,9 +268,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -309,9 +310,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginAllocate(
String resourceGroupName, String accountName, String liveEventName);
@@ -325,9 +326,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginAllocate(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -367,9 +368,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -382,9 +383,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String liveEventName, Context context);
@@ -425,9 +426,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters);
@@ -442,9 +443,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName,
String accountName,
@@ -497,9 +498,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginReset(String resourceGroupName, String accountName, String liveEventName);
/**
@@ -514,9 +515,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 Response} on successful completion of {@link Mono}.
*/
- @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..bb2b464891cb2 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
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.mediaservices.fluent.models.LiveOutputInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in LiveOutputsClient. */
public interface LiveOutputsClient {
@@ -24,7 +25,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, String liveEventName);
@@ -39,7 +40,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
@@ -71,7 +72,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 +89,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 Live Output along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveOutputInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -110,9 +111,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 Live Output along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, LiveOutputInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -175,9 +176,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String liveEventName, String liveOutputName);
@@ -192,9 +193,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 Response} on successful completion of {@link Mono}.
*/
- @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..61269a696e45c 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,12 +8,15 @@
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;
import com.azure.resourcemanager.mediaservices.models.MediaServiceUpdate;
import com.azure.resourcemanager.mediaservices.models.SyncStorageKeysInput;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in MediaservicesClient. */
public interface MediaservicesClient {
@@ -64,12 +67,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 a Media Services account along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 a Media Services account along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 +131,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 +155,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 a Media Services account along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 a Media Services account along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 +218,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 +244,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 +265,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 +274,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(
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..3c16c8ae0ef38 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,7 +12,9 @@
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;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in StreamingEndpointsClient. */
public interface StreamingEndpointsClient {
@@ -24,7 +26,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName);
@@ -38,7 +40,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.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String accountName, Context context);
@@ -67,7 +69,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 +86,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 streaming endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -106,9 +108,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 streaming endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginCreate(
String resourceGroupName,
String accountName,
@@ -187,9 +189,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 streaming endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginUpdate(
String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters);
@@ -204,9 +206,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 streaming endpoint along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StreamingEndpointInner> beginUpdate(
String resourceGroupName,
String accountName,
@@ -260,9 +262,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -276,9 +278,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -310,17 +312,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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -334,9 +367,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStart(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -376,9 +409,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String streamingEndpointName);
@@ -392,9 +425,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginStop(
String resourceGroupName, String accountName, String streamingEndpointName, Context context);
@@ -435,9 +468,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 Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScale(
String resourceGroupName,
String accountName,
@@ -455,9 +488,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 Response} on successful completion of {@link Mono}.
*/
- @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..ac09710d72842 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
@@ -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..e05f141ca8a1b 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
@@ -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..7c3404d2c3530
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java
@@ -0,0 +1,365 @@
+// 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;
+import reactor.core.publisher.Mono;
+
+/** 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.
+ */
+ @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.
+ */
+ @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 an Asset Track resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 an Asset Track resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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 Response} on successful completion of {@link Mono}.
+ */
+ @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 an Asset Track resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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 an Asset Track resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @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.
+ *
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdateTrackData(
+ String resourceGroupName, String accountName, String assetName, String trackName);
+
+ /**
+ * Update the track data.
+ *
+ * @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 Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdateTrackData(
+ String resourceGroupName, String accountName, String assetName, String trackName, Context context);
+
+ /**
+ * Update the track data.
+ *
+ * @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.
+ *
+ * @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..6069fcfbdc371 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
@@ -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 transcriptions;
+
+ /*
+ * The provisioning state of the live event.
+ */
+ @JsonProperty(value = "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 = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
+ private LiveEventResourceState resourceState;
+
+ /*
+ * Live event cross site access policies.
+ */
+ @JsonProperty(value = "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 = "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 = "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 = "streamOptions")
+ private List streamOptions;
+
+ /*
+ * The creation time for the live event
+ */
+ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime created;
+
+ /*
+ * The last modified time of the live event.
+ */
+ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModified;
+
+ /**
+ * Get the description property: A description for the live event.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: A description for the live event.
+ *
+ * @param description the description value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the input property: Live event input settings. It defines how the live event receives input from a
+ * contribution encoder.
+ *
+ * @return the input value.
+ */
+ public LiveEventInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set the input property: Live event input settings. It defines how the live event receives input from a
+ * contribution encoder.
+ *
+ * @param input the input value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withInput(LiveEventInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get the preview property: Live event preview settings. Preview allows live event producers to preview the live
+ * streaming content without creating any live output.
+ *
+ * @return the preview value.
+ */
+ public LiveEventPreview preview() {
+ return this.preview;
+ }
+
+ /**
+ * Set the preview property: Live event preview settings. Preview allows live event producers to preview the live
+ * streaming content without creating any live output.
+ *
+ * @param preview the preview value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withPreview(LiveEventPreview preview) {
+ this.preview = preview;
+ return this;
+ }
+
+ /**
+ * Get the encoding property: 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.
+ *
+ * @return the encoding value.
+ */
+ public LiveEventEncoding encoding() {
+ return this.encoding;
+ }
+
+ /**
+ * Set the encoding property: 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.
+ *
+ * @param encoding the encoding value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withEncoding(LiveEventEncoding encoding) {
+ this.encoding = encoding;
+ return this;
+ }
+
+ /**
+ * Get the transcriptions property: Live transcription settings for the live event. See
+ * https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature.
+ *
+ * @return the transcriptions value.
+ */
+ public List transcriptions() {
+ return this.transcriptions;
+ }
+
+ /**
+ * Set the transcriptions property: Live transcription settings for the live event. See
+ * https://go.microsoft.com/fwlink/?linkid=2133742 for more information about the live transcription feature.
+ *
+ * @param transcriptions the transcriptions value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withTranscriptions(List transcriptions) {
+ this.transcriptions = transcriptions;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the live event.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the resourceState property: The resource state of the live event. See
+ * https://go.microsoft.com/fwlink/?linkid=2139012 for more information.
+ *
+ * @return the resourceState value.
+ */
+ public LiveEventResourceState resourceState() {
+ return this.resourceState;
+ }
+
+ /**
+ * Get the crossSiteAccessPolicies property: Live event cross site access policies.
+ *
+ * @return the crossSiteAccessPolicies value.
+ */
+ public CrossSiteAccessPolicies crossSiteAccessPolicies() {
+ return this.crossSiteAccessPolicies;
+ }
+
+ /**
+ * Set the crossSiteAccessPolicies property: Live event cross site access policies.
+ *
+ * @param crossSiteAccessPolicies the crossSiteAccessPolicies value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withCrossSiteAccessPolicies(CrossSiteAccessPolicies crossSiteAccessPolicies) {
+ this.crossSiteAccessPolicies = crossSiteAccessPolicies;
+ return this;
+ }
+
+ /**
+ * Get the useStaticHostname property: 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.
+ *
+ * @return the useStaticHostname value.
+ */
+ public Boolean useStaticHostname() {
+ return this.useStaticHostname;
+ }
+
+ /**
+ * Set the useStaticHostname property: 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.
+ *
+ * @param useStaticHostname the useStaticHostname value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withUseStaticHostname(Boolean useStaticHostname) {
+ this.useStaticHostname = useStaticHostname;
+ return this;
+ }
+
+ /**
+ * Get the hostnamePrefix property: 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.
+ *
+ * @return the hostnamePrefix value.
+ */
+ public String hostnamePrefix() {
+ return this.hostnamePrefix;
+ }
+
+ /**
+ * Set the hostnamePrefix property: 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.
+ *
+ * @param hostnamePrefix the hostnamePrefix value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withHostnamePrefix(String hostnamePrefix) {
+ this.hostnamePrefix = hostnamePrefix;
+ return this;
+ }
+
+ /**
+ * Get the streamOptions property: 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'.
+ *
+ * @return the streamOptions value.
+ */
+ public List streamOptions() {
+ return this.streamOptions;
+ }
+
+ /**
+ * Set the streamOptions property: 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'.
+ *
+ * @param streamOptions the streamOptions value to set.
+ * @return the LiveEventProperties object itself.
+ */
+ public LiveEventProperties withStreamOptions(List streamOptions) {
+ this.streamOptions = streamOptions;
+ return this;
+ }
+
+ /**
+ * Get the created property: The creation time for the live event.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Get the lastModified property: The last modified time of the live event.
+ *
+ * @return the lastModified value.
+ */
+ public OffsetDateTime lastModified() {
+ return this.lastModified;
+ }
+
+ /**
+ * 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 LiveEventProperties"));
+ } else {
+ 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();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java
index 6d9be1687e7da..c0090e32b3ddd 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputInner.java
@@ -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,82 +16,30 @@
import java.time.OffsetDateTime;
/** The Live Output. */
-@JsonFlatten
@Fluent
-public class LiveOutputInner extends ProxyResource {
+public final class LiveOutputInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(LiveOutputInner.class);
/*
- * The system metadata relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /*
- * The description of the live output.
+ * Live output properties.
*/
- @JsonProperty(value = "properties.description")
- private String description;
+ @JsonProperty(value = "properties")
+ private LiveOutputProperties innerProperties;
/*
- * The asset that the live output will write to.
- */
- @JsonProperty(value = "properties.assetName")
- private String assetName;
-
- /*
- * ISO 8601 time between 1 minute to 25 hours to indicate the maximum
- * content length that can be archived in the asset for this live output.
- * This also sets the maximum content length for the rewind window. For
- * example, use PT1H30M to indicate 1 hour and 30 minutes of archive
- * window.
- */
- @JsonProperty(value = "properties.archiveWindowLength")
- private Duration archiveWindowLength;
-
- /*
- * The manifest file name. If not provided, the service will generate one
- * automatically.
- */
- @JsonProperty(value = "properties.manifestName")
- private String manifestName;
-
- /*
- * HTTP Live Streaming (HLS) packing setting for the live output.
- */
- @JsonProperty(value = "properties.hls")
- private Hls hls;
-
- /*
- * The initial timestamp that the live output will start at, any content
- * before this value will not be archived.
- */
- @JsonProperty(value = "properties.outputSnapTime")
- private Long outputSnapTime;
-
- /*
- * The creation time the live output.
- */
- @JsonProperty(value = "properties.created", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime created;
-
- /*
- * The time the live output was last modified.
- */
- @JsonProperty(value = "properties.lastModified", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastModified;
-
- /*
- * The provisioning state of the live output.
+ * The system metadata relating to this resource.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private String provisioningState;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
- /*
- * The resource state of the live output.
+ /**
+ * Get the innerProperties property: Live output properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.resourceState", access = JsonProperty.Access.WRITE_ONLY)
- private LiveOutputResourceState resourceState;
+ private LiveOutputProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the systemData property: The system metadata relating to this resource.
@@ -109,7 +56,7 @@ public SystemData systemData() {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -119,7 +66,10 @@ public String description() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -129,7 +79,7 @@ public LiveOutputInner withDescription(String description) {
* @return the assetName value.
*/
public String assetName() {
- return this.assetName;
+ return this.innerProperties() == null ? null : this.innerProperties().assetName();
}
/**
@@ -139,7 +89,10 @@ public String assetName() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withAssetName(String assetName) {
- this.assetName = assetName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withAssetName(assetName);
return this;
}
@@ -151,7 +104,7 @@ public LiveOutputInner withAssetName(String assetName) {
* @return the archiveWindowLength value.
*/
public Duration archiveWindowLength() {
- return this.archiveWindowLength;
+ return this.innerProperties() == null ? null : this.innerProperties().archiveWindowLength();
}
/**
@@ -163,7 +116,10 @@ public Duration archiveWindowLength() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withArchiveWindowLength(Duration archiveWindowLength) {
- this.archiveWindowLength = archiveWindowLength;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withArchiveWindowLength(archiveWindowLength);
return this;
}
@@ -174,7 +130,7 @@ public LiveOutputInner withArchiveWindowLength(Duration archiveWindowLength) {
* @return the manifestName value.
*/
public String manifestName() {
- return this.manifestName;
+ return this.innerProperties() == null ? null : this.innerProperties().manifestName();
}
/**
@@ -185,7 +141,10 @@ public String manifestName() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withManifestName(String manifestName) {
- this.manifestName = manifestName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withManifestName(manifestName);
return this;
}
@@ -195,7 +154,7 @@ public LiveOutputInner withManifestName(String manifestName) {
* @return the hls value.
*/
public Hls hls() {
- return this.hls;
+ return this.innerProperties() == null ? null : this.innerProperties().hls();
}
/**
@@ -205,7 +164,10 @@ public Hls hls() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withHls(Hls hls) {
- this.hls = hls;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withHls(hls);
return this;
}
@@ -216,7 +178,7 @@ public LiveOutputInner withHls(Hls hls) {
* @return the outputSnapTime value.
*/
public Long outputSnapTime() {
- return this.outputSnapTime;
+ return this.innerProperties() == null ? null : this.innerProperties().outputSnapTime();
}
/**
@@ -227,7 +189,10 @@ public Long outputSnapTime() {
* @return the LiveOutputInner object itself.
*/
public LiveOutputInner withOutputSnapTime(Long outputSnapTime) {
- this.outputSnapTime = outputSnapTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new LiveOutputProperties();
+ }
+ this.innerProperties().withOutputSnapTime(outputSnapTime);
return this;
}
@@ -237,7 +202,7 @@ public LiveOutputInner withOutputSnapTime(Long outputSnapTime) {
* @return the created value.
*/
public OffsetDateTime created() {
- return this.created;
+ return this.innerProperties() == null ? null : this.innerProperties().created();
}
/**
@@ -246,7 +211,7 @@ public OffsetDateTime created() {
* @return the lastModified value.
*/
public OffsetDateTime lastModified() {
- return this.lastModified;
+ return this.innerProperties() == null ? null : this.innerProperties().lastModified();
}
/**
@@ -255,7 +220,7 @@ public OffsetDateTime lastModified() {
* @return the provisioningState value.
*/
public String provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -264,7 +229,7 @@ public String provisioningState() {
* @return the resourceState value.
*/
public LiveOutputResourceState resourceState() {
- return this.resourceState;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceState();
}
/**
@@ -273,8 +238,8 @@ public LiveOutputResourceState resourceState() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (hls() != null) {
- hls().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java
new file mode 100644
index 0000000000000..c2ec09ca357a6
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java
@@ -0,0 +1,272 @@
+// 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.Hls;
+import com.azure.resourcemanager.mediaservices.models.LiveOutputResourceState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+
+/** The JSON object that contains the properties required to create a live output. */
+@Fluent
+public final class LiveOutputProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(LiveOutputProperties.class);
+
+ /*
+ * The description of the live output.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * The asset that the live output will write to.
+ */
+ @JsonProperty(value = "assetName", required = true)
+ private String assetName;
+
+ /*
+ * ISO 8601 time between 1 minute to 25 hours to indicate the maximum
+ * content length that can be archived in the asset for this live output.
+ * This also sets the maximum content length for the rewind window. For
+ * example, use PT1H30M to indicate 1 hour and 30 minutes of archive
+ * window.
+ */
+ @JsonProperty(value = "archiveWindowLength", required = true)
+ private Duration archiveWindowLength;
+
+ /*
+ * The manifest file name. If not provided, the service will generate one
+ * automatically.
+ */
+ @JsonProperty(value = "manifestName")
+ private String manifestName;
+
+ /*
+ * HTTP Live Streaming (HLS) packing setting for the live output.
+ */
+ @JsonProperty(value = "hls")
+ private Hls hls;
+
+ /*
+ * The initial timestamp that the live output will start at, any content
+ * before this value will not be archived.
+ */
+ @JsonProperty(value = "outputSnapTime")
+ private Long outputSnapTime;
+
+ /*
+ * The creation time the live output.
+ */
+ @JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime created;
+
+ /*
+ * The time the live output was last modified.
+ */
+ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModified;
+
+ /*
+ * The provisioning state of the live output.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * The resource state of the live output.
+ */
+ @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY)
+ private LiveOutputResourceState resourceState;
+
+ /**
+ * Get the description property: The description of the live output.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: The description of the live output.
+ *
+ * @param description the description value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the assetName property: The asset that the live output will write to.
+ *
+ * @return the assetName value.
+ */
+ public String assetName() {
+ return this.assetName;
+ }
+
+ /**
+ * Set the assetName property: The asset that the live output will write to.
+ *
+ * @param assetName the assetName value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withAssetName(String assetName) {
+ this.assetName = assetName;
+ return this;
+ }
+
+ /**
+ * Get the archiveWindowLength property: ISO 8601 time between 1 minute to 25 hours to indicate the maximum content
+ * length that can be archived in the asset for this live output. This also sets the maximum content length for the
+ * rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
+ *
+ * @return the archiveWindowLength value.
+ */
+ public Duration archiveWindowLength() {
+ return this.archiveWindowLength;
+ }
+
+ /**
+ * Set the archiveWindowLength property: ISO 8601 time between 1 minute to 25 hours to indicate the maximum content
+ * length that can be archived in the asset for this live output. This also sets the maximum content length for the
+ * rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
+ *
+ * @param archiveWindowLength the archiveWindowLength value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withArchiveWindowLength(Duration archiveWindowLength) {
+ this.archiveWindowLength = archiveWindowLength;
+ return this;
+ }
+
+ /**
+ * Get the manifestName property: The manifest file name. If not provided, the service will generate one
+ * automatically.
+ *
+ * @return the manifestName value.
+ */
+ public String manifestName() {
+ return this.manifestName;
+ }
+
+ /**
+ * Set the manifestName property: The manifest file name. If not provided, the service will generate one
+ * automatically.
+ *
+ * @param manifestName the manifestName value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withManifestName(String manifestName) {
+ this.manifestName = manifestName;
+ return this;
+ }
+
+ /**
+ * Get the hls property: HTTP Live Streaming (HLS) packing setting for the live output.
+ *
+ * @return the hls value.
+ */
+ public Hls hls() {
+ return this.hls;
+ }
+
+ /**
+ * Set the hls property: HTTP Live Streaming (HLS) packing setting for the live output.
+ *
+ * @param hls the hls value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withHls(Hls hls) {
+ this.hls = hls;
+ return this;
+ }
+
+ /**
+ * Get the outputSnapTime property: The initial timestamp that the live output will start at, any content before
+ * this value will not be archived.
+ *
+ * @return the outputSnapTime value.
+ */
+ public Long outputSnapTime() {
+ return this.outputSnapTime;
+ }
+
+ /**
+ * Set the outputSnapTime property: The initial timestamp that the live output will start at, any content before
+ * this value will not be archived.
+ *
+ * @param outputSnapTime the outputSnapTime value to set.
+ * @return the LiveOutputProperties object itself.
+ */
+ public LiveOutputProperties withOutputSnapTime(Long outputSnapTime) {
+ this.outputSnapTime = outputSnapTime;
+ return this;
+ }
+
+ /**
+ * Get the created property: The creation time the live output.
+ *
+ * @return the created value.
+ */
+ public OffsetDateTime created() {
+ return this.created;
+ }
+
+ /**
+ * Get the lastModified property: The time the live output was last modified.
+ *
+ * @return the lastModified value.
+ */
+ public OffsetDateTime lastModified() {
+ return this.lastModified;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the live output.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the resourceState property: The resource state of the live output.
+ *
+ * @return the resourceState value.
+ */
+ public LiveOutputResourceState resourceState() {
+ return this.resourceState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (assetName() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property assetName in model LiveOutputProperties"));
+ }
+ if (archiveWindowLength() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property archiveWindowLength in model LiveOutputProperties"));
+ }
+ if (hls() != null) {
+ hls().validate();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java
new file mode 100644
index 0000000000000..7533aad64c206
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaFilterProperties.java
@@ -0,0 +1,115 @@
+// 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.FilterTrackSelection;
+import com.azure.resourcemanager.mediaservices.models.FirstQuality;
+import com.azure.resourcemanager.mediaservices.models.PresentationTimeRange;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The Media Filter properties. */
+@Fluent
+public final class MediaFilterProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MediaFilterProperties.class);
+
+ /*
+ * The presentation time range.
+ */
+ @JsonProperty(value = "presentationTimeRange")
+ private PresentationTimeRange presentationTimeRange;
+
+ /*
+ * The first quality.
+ */
+ @JsonProperty(value = "firstQuality")
+ private FirstQuality firstQuality;
+
+ /*
+ * The tracks selection conditions.
+ */
+ @JsonProperty(value = "tracks")
+ private List tracks;
+
+ /**
+ * Get the presentationTimeRange property: The presentation time range.
+ *
+ * @return the presentationTimeRange value.
+ */
+ public PresentationTimeRange presentationTimeRange() {
+ return this.presentationTimeRange;
+ }
+
+ /**
+ * Set the presentationTimeRange property: The presentation time range.
+ *
+ * @param presentationTimeRange the presentationTimeRange value to set.
+ * @return the MediaFilterProperties object itself.
+ */
+ public MediaFilterProperties withPresentationTimeRange(PresentationTimeRange presentationTimeRange) {
+ this.presentationTimeRange = presentationTimeRange;
+ return this;
+ }
+
+ /**
+ * Get the firstQuality property: The first quality.
+ *
+ * @return the firstQuality value.
+ */
+ public FirstQuality firstQuality() {
+ return this.firstQuality;
+ }
+
+ /**
+ * Set the firstQuality property: The first quality.
+ *
+ * @param firstQuality the firstQuality value to set.
+ * @return the MediaFilterProperties object itself.
+ */
+ public MediaFilterProperties withFirstQuality(FirstQuality firstQuality) {
+ this.firstQuality = firstQuality;
+ return this;
+ }
+
+ /**
+ * Get the tracks property: The tracks selection conditions.
+ *
+ * @return the tracks value.
+ */
+ public List tracks() {
+ return this.tracks;
+ }
+
+ /**
+ * Set the tracks property: The tracks selection conditions.
+ *
+ * @param tracks the tracks value to set.
+ * @return the MediaFilterProperties object itself.
+ */
+ public MediaFilterProperties withTracks(List tracks) {
+ this.tracks = tracks;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @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());
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
index b5d2c57d143b6..cb659c1dd00b5 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceInner.java
@@ -5,13 +5,13 @@
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;
import com.azure.resourcemanager.mediaservices.models.AccountEncryption;
import com.azure.resourcemanager.mediaservices.models.KeyDelivery;
import com.azure.resourcemanager.mediaservices.models.MediaServiceIdentity;
+import com.azure.resourcemanager.mediaservices.models.ProvisioningState;
import com.azure.resourcemanager.mediaservices.models.PublicNetworkAccess;
import com.azure.resourcemanager.mediaservices.models.StorageAccount;
import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
@@ -22,16 +22,15 @@
import java.util.UUID;
/** A Media Services account. */
-@JsonFlatten
@Fluent
-public class MediaServiceInner extends Resource {
+public final class MediaServiceInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(MediaServiceInner.class);
/*
- * The Managed Identity for the Media Services account.
+ * The resource properties.
*/
- @JsonProperty(value = "identity")
- private MediaServiceIdentity identity;
+ @JsonProperty(value = "properties")
+ private MediaServiceProperties innerProperties;
/*
* The system metadata relating to this resource.
@@ -40,41 +39,28 @@ public class MediaServiceInner extends Resource {
private SystemData systemData;
/*
- * The Media Services account ID.
- */
- @JsonProperty(value = "properties.mediaServiceId", access = JsonProperty.Access.WRITE_ONLY)
- private UUID mediaServiceId;
-
- /*
- * The storage accounts for this resource.
- */
- @JsonProperty(value = "properties.storageAccounts")
- private List storageAccounts;
-
- /*
- * The storageAuthentication property.
- */
- @JsonProperty(value = "properties.storageAuthentication")
- private StorageAuthentication storageAuthentication;
-
- /*
- * The account encryption properties.
+ * The Managed Identity for the Media Services account.
*/
- @JsonProperty(value = "properties.encryption")
- private AccountEncryption encryption;
+ @JsonProperty(value = "identity")
+ private MediaServiceIdentity identity;
- /*
- * The Key Delivery properties for Media Services account.
+ /**
+ * Get the innerProperties property: The resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.keyDelivery")
- private KeyDelivery keyDelivery;
+ private MediaServiceProperties innerProperties() {
+ return this.innerProperties;
+ }
- /*
- * Whether or not public network access is allowed for resources under the
- * Media Services account.
+ /**
+ * Get the systemData property: The system metadata relating to this resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.publicNetworkAccess")
- private PublicNetworkAccess publicNetworkAccess;
+ public SystemData systemData() {
+ return this.systemData;
+ }
/**
* Get the identity property: The Managed Identity for the Media Services account.
@@ -96,13 +82,18 @@ public MediaServiceInner withIdentity(MediaServiceIdentity identity) {
return this;
}
- /**
- * Get the systemData property: The system metadata relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
+ /** {@inheritDoc} */
+ @Override
+ public MediaServiceInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MediaServiceInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
}
/**
@@ -111,7 +102,7 @@ public SystemData systemData() {
* @return the mediaServiceId value.
*/
public UUID mediaServiceId() {
- return this.mediaServiceId;
+ return this.innerProperties() == null ? null : this.innerProperties().mediaServiceId();
}
/**
@@ -120,7 +111,7 @@ public UUID mediaServiceId() {
* @return the storageAccounts value.
*/
public List storageAccounts() {
- return this.storageAccounts;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccounts();
}
/**
@@ -130,7 +121,10 @@ public List storageAccounts() {
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withStorageAccounts(List storageAccounts) {
- this.storageAccounts = storageAccounts;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaServiceProperties();
+ }
+ this.innerProperties().withStorageAccounts(storageAccounts);
return this;
}
@@ -140,7 +134,7 @@ public MediaServiceInner withStorageAccounts(List storageAccount
* @return the storageAuthentication value.
*/
public StorageAuthentication storageAuthentication() {
- return this.storageAuthentication;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAuthentication();
}
/**
@@ -150,7 +144,10 @@ public StorageAuthentication storageAuthentication() {
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withStorageAuthentication(StorageAuthentication storageAuthentication) {
- this.storageAuthentication = storageAuthentication;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaServiceProperties();
+ }
+ this.innerProperties().withStorageAuthentication(storageAuthentication);
return this;
}
@@ -160,7 +157,7 @@ public MediaServiceInner withStorageAuthentication(StorageAuthentication storage
* @return the encryption value.
*/
public AccountEncryption encryption() {
- return this.encryption;
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
}
/**
@@ -170,7 +167,10 @@ public AccountEncryption encryption() {
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withEncryption(AccountEncryption encryption) {
- this.encryption = encryption;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaServiceProperties();
+ }
+ this.innerProperties().withEncryption(encryption);
return this;
}
@@ -180,7 +180,7 @@ public MediaServiceInner withEncryption(AccountEncryption encryption) {
* @return the keyDelivery value.
*/
public KeyDelivery keyDelivery() {
- return this.keyDelivery;
+ return this.innerProperties() == null ? null : this.innerProperties().keyDelivery();
}
/**
@@ -190,7 +190,10 @@ public KeyDelivery keyDelivery() {
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withKeyDelivery(KeyDelivery keyDelivery) {
- this.keyDelivery = keyDelivery;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaServiceProperties();
+ }
+ this.innerProperties().withKeyDelivery(keyDelivery);
return this;
}
@@ -201,7 +204,7 @@ public MediaServiceInner withKeyDelivery(KeyDelivery keyDelivery) {
* @return the publicNetworkAccess value.
*/
public PublicNetworkAccess publicNetworkAccess() {
- return this.publicNetworkAccess;
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
}
/**
@@ -212,22 +215,30 @@ public PublicNetworkAccess publicNetworkAccess() {
* @return the MediaServiceInner object itself.
*/
public MediaServiceInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
- this.publicNetworkAccess = publicNetworkAccess;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MediaServiceProperties();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
return this;
}
- /** {@inheritDoc} */
- @Override
- public MediaServiceInner withLocation(String location) {
- super.withLocation(location);
- return this;
+ /**
+ * Get the provisioningState property: Provisioning state of the Media Services account.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
- /** {@inheritDoc} */
- @Override
- public MediaServiceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
+ /**
+ * Get the privateEndpointConnections property: The Private Endpoint Connections created for the Media Service
+ * account.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public Object privateEndpointConnections() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpointConnections();
}
/**
@@ -236,17 +247,11 @@ public MediaServiceInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
if (identity() != null) {
identity().validate();
}
- if (storageAccounts() != null) {
- storageAccounts().forEach(e -> e.validate());
- }
- if (encryption() != null) {
- encryption().validate();
- }
- if (keyDelivery() != null) {
- keyDelivery().validate();
- }
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.java
new file mode 100644
index 0000000000000..ef5bc9603fb7e
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceOperationStatusInner.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 media service operation. */
+@Fluent
+public final class MediaServiceOperationStatusInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MediaServiceOperationStatusInner.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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner object itself.
+ */
+ public MediaServiceOperationStatusInner 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 MediaServiceOperationStatusInner"));
+ }
+ if (status() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property status in model MediaServiceOperationStatusInner"));
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java
new file mode 100644
index 0000000000000..f89e1848f8a9d
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java
@@ -0,0 +1,220 @@
+// 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.AccountEncryption;
+import com.azure.resourcemanager.mediaservices.models.KeyDelivery;
+import com.azure.resourcemanager.mediaservices.models.ProvisioningState;
+import com.azure.resourcemanager.mediaservices.models.PublicNetworkAccess;
+import com.azure.resourcemanager.mediaservices.models.StorageAccount;
+import com.azure.resourcemanager.mediaservices.models.StorageAuthentication;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.UUID;
+
+/** Properties of the Media Services account. */
+@Fluent
+public final class MediaServiceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MediaServiceProperties.class);
+
+ /*
+ * The Media Services account ID.
+ */
+ @JsonProperty(value = "mediaServiceId", access = JsonProperty.Access.WRITE_ONLY)
+ private UUID mediaServiceId;
+
+ /*
+ * The storage accounts for this resource.
+ */
+ @JsonProperty(value = "storageAccounts")
+ private List storageAccounts;
+
+ /*
+ * The storageAuthentication property.
+ */
+ @JsonProperty(value = "storageAuthentication")
+ private StorageAuthentication storageAuthentication;
+
+ /*
+ * The account encryption properties.
+ */
+ @JsonProperty(value = "encryption")
+ private AccountEncryption encryption;
+
+ /*
+ * The Key Delivery properties for Media Services account.
+ */
+ @JsonProperty(value = "keyDelivery")
+ private KeyDelivery keyDelivery;
+
+ /*
+ * Whether or not public network access is allowed for resources under the
+ * Media Services account.
+ */
+ @JsonProperty(value = "publicNetworkAccess")
+ private PublicNetworkAccess publicNetworkAccess;
+
+ /*
+ * Provisioning state of the Media Services account.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /*
+ * The Private Endpoint Connections created for the Media Service account.
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private Object privateEndpointConnections;
+
+ /**
+ * Get the mediaServiceId property: The Media Services account ID.
+ *
+ * @return the mediaServiceId value.
+ */
+ public UUID mediaServiceId() {
+ return this.mediaServiceId;
+ }
+
+ /**
+ * Get the storageAccounts property: The storage accounts for this resource.
+ *
+ * @return the storageAccounts value.
+ */
+ public List storageAccounts() {
+ return this.storageAccounts;
+ }
+
+ /**
+ * Set the storageAccounts property: The storage accounts for this resource.
+ *
+ * @param storageAccounts the storageAccounts value to set.
+ * @return the MediaServiceProperties object itself.
+ */
+ public MediaServiceProperties withStorageAccounts(List storageAccounts) {
+ this.storageAccounts = storageAccounts;
+ return this;
+ }
+
+ /**
+ * Get the storageAuthentication property: The storageAuthentication property.
+ *
+ * @return the storageAuthentication value.
+ */
+ public StorageAuthentication storageAuthentication() {
+ return this.storageAuthentication;
+ }
+
+ /**
+ * Set the storageAuthentication property: The storageAuthentication property.
+ *
+ * @param storageAuthentication the storageAuthentication value to set.
+ * @return the MediaServiceProperties object itself.
+ */
+ public MediaServiceProperties withStorageAuthentication(StorageAuthentication storageAuthentication) {
+ this.storageAuthentication = storageAuthentication;
+ return this;
+ }
+
+ /**
+ * Get the encryption property: The account encryption properties.
+ *
+ * @return the encryption value.
+ */
+ public AccountEncryption encryption() {
+ return this.encryption;
+ }
+
+ /**
+ * Set the encryption property: The account encryption properties.
+ *
+ * @param encryption the encryption value to set.
+ * @return the MediaServiceProperties object itself.
+ */
+ public MediaServiceProperties withEncryption(AccountEncryption encryption) {
+ this.encryption = encryption;
+ return this;
+ }
+
+ /**
+ * Get the keyDelivery property: The Key Delivery properties for Media Services account.
+ *
+ * @return the keyDelivery value.
+ */
+ public KeyDelivery keyDelivery() {
+ return this.keyDelivery;
+ }
+
+ /**
+ * Set the keyDelivery property: The Key Delivery properties for Media Services account.
+ *
+ * @param keyDelivery the keyDelivery value to set.
+ * @return the MediaServiceProperties object itself.
+ */
+ public MediaServiceProperties withKeyDelivery(KeyDelivery keyDelivery) {
+ this.keyDelivery = keyDelivery;
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether or not public network access is allowed for resources under the
+ * Media Services account.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.publicNetworkAccess;
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether or not public network access is allowed for resources under the
+ * Media Services account.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the MediaServiceProperties object itself.
+ */
+ public MediaServiceProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the Media Services account.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the privateEndpointConnections property: The Private Endpoint Connections created for the Media Service
+ * account.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public Object privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (storageAccounts() != null) {
+ storageAccounts().forEach(e -> e.validate());
+ }
+ if (encryption() != null) {
+ encryption().validate();
+ }
+ if (keyDelivery() != null) {
+ keyDelivery().validate();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java
index 68ba355b5d537..33940041a9626 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionInner.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.util.logging.ClientLogger;
import com.azure.resourcemanager.mediaservices.models.PrivateEndpoint;
@@ -15,29 +14,24 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** The Private Endpoint Connection resource. */
-@JsonFlatten
@Fluent
-public class PrivateEndpointConnectionInner extends ProxyResource {
+public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
/*
- * The resource of private end point.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.privateEndpoint")
- private PrivateEndpoint privateEndpoint;
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
- /*
- * A collection of information about the state of the connection between
- * service consumer and provider.
- */
- @JsonProperty(value = "properties.privateLinkServiceConnectionState")
- private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
-
- /*
- * The provisioning state of the private endpoint connection resource.
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
- private PrivateEndpointConnectionProvisioningState provisioningState;
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the privateEndpoint property: The resource of private end point.
@@ -45,7 +39,7 @@ public class PrivateEndpointConnectionInner extends ProxyResource {
* @return the privateEndpoint value.
*/
public PrivateEndpoint privateEndpoint() {
- return this.privateEndpoint;
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
}
/**
@@ -55,7 +49,10 @@ public PrivateEndpoint privateEndpoint() {
* @return the PrivateEndpointConnectionInner object itself.
*/
public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
- this.privateEndpoint = privateEndpoint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
return this;
}
@@ -66,7 +63,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
* @return the privateLinkServiceConnectionState value.
*/
public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
- return this.privateLinkServiceConnectionState;
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
}
/**
@@ -78,7 +75,10 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
*/
public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
- this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
return this;
}
@@ -88,7 +88,7 @@ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
* @return the provisioningState value.
*/
public PrivateEndpointConnectionProvisioningState provisioningState() {
- return this.provisioningState;
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
/**
@@ -97,11 +97,8 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (privateEndpoint() != null) {
- privateEndpoint().validate();
- }
- if (privateLinkServiceConnectionState() != null) {
- privateLinkServiceConnectionState().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..c8e5241f39609
--- /dev/null
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,110 @@
+// 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.PrivateEndpoint;
+import com.azure.resourcemanager.mediaservices.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.mediaservices.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the PrivateEndpointConnectProperties. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionProperties.class);
+
+ /*
+ * The resource of private end point.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * A collection of information about the state of the connection between
+ * service consumer and provider.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState", required = true)
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * The provisioning state of the private endpoint connection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: The resource of private end point.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: The resource of private end point.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
+ * between service consumer and provider.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property privateLinkServiceConnectionState in model"
+ + " PrivateEndpointConnectionProperties"));
+ } else {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java
index b4eb20d28ea32..0b0621273aa44 100644
--- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceInner.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.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
@@ -13,28 +12,24 @@
import java.util.List;
/** A private link resource. */
-@JsonFlatten
@Fluent
-public class PrivateLinkResourceInner extends ProxyResource {
+public final class PrivateLinkResourceInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
/*
- * The private link resource group id.
+ * Resource properties.
*/
- @JsonProperty(value = "properties.groupId", access = JsonProperty.Access.WRITE_ONLY)
- private String groupId;
+ @JsonProperty(value = "properties")
+ private PrivateLinkResourceProperties innerProperties;
- /*
- * The private link resource required member names.
- */
- @JsonProperty(value = "properties.requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
- private List requiredMembers;
-
- /*
- * The private link resource Private link DNS zone name.
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.requiredZoneNames")
- private List requiredZoneNames;
+ private PrivateLinkResourceProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the groupId property: The private link resource group id.
@@ -42,7 +37,7 @@ public class PrivateLinkResourceInner extends ProxyResource {
* @return the groupId value.
*/
public String groupId() {
- return this.groupId;
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
}
/**
@@ -51,7 +46,7 @@ public String groupId() {
* @return the requiredMembers value.
*/
public List