From f587f85ebad0f0dd8c86290b9a94996da42dd187 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 11 Jan 2023 10:27:52 +0000 Subject: [PATCH] CodeGen from PR 21190 in Azure/azure-rest-api-specs Merge 62cf1b2a61859f947b4e0c4b67c53bff2f05c53c into 71121282e39bccae590462648e77bca283df6d2b --- .../CHANGELOG.md | 4 +- .../README.md | 27 +- .../SAMPLE.md | 777 +++++++++--------- .../pom.xml | 3 +- .../mediaservices/MediaServicesManager.java | 2 +- .../fluent/AccountFiltersClient.java | 62 +- .../fluent/AssetFiltersClient.java | 64 +- .../mediaservices/fluent/AssetsClient.java | 88 +- .../fluent/ContentKeyPoliciesClient.java | 72 +- .../mediaservices/fluent/JobsClient.java | 72 +- .../fluent/LiveEventsClient.java | 68 +- .../fluent/LiveOutputsClient.java | 48 +- .../mediaservices/fluent/LocationsClient.java | 14 +- .../MediaServicesOperationResultsClient.java | 6 +- .../MediaServicesOperationStatusesClient.java | 12 +- .../fluent/MediaservicesClient.java | 42 +- .../fluent/OperationResultsClient.java | 20 +- .../fluent/OperationStatusesClient.java | 24 +- .../fluent/OperationsClient.java | 12 +- .../PrivateEndpointConnectionsClient.java | 56 +- .../fluent/PrivateLinkResourcesClient.java | 24 +- .../fluent/StreamingEndpointsClient.java | 90 +- .../fluent/StreamingLocatorsClient.java | 68 +- .../fluent/StreamingPoliciesClient.java | 44 +- .../mediaservices/fluent/TracksClient.java | 12 +- .../fluent/TransformsClient.java | 50 +- .../fluent/models/AccountFilterInner.java | 4 + .../fluent/models/AssetContainerSasInner.java | 4 + .../fluent/models/AssetFilterInner.java | 4 + .../fluent/models/AssetInner.java | 4 + .../fluent/models/AssetProperties.java | 4 + .../fluent/models/AssetTrackInner.java | 4 + .../AssetTrackOperationStatusInner.java | 4 + .../fluent/models/AssetTrackProperties.java | 4 + .../models/AsyncOperationResultInner.java | 4 + .../fluent/models/ContentKeyPolicyInner.java | 4 + .../ContentKeyPolicyPropertiesInner.java | 4 + .../fluent/models/EdgePoliciesInner.java | 4 + ...ntityNameAvailabilityCheckOutputInner.java | 4 + .../mediaservices/fluent/models/JobInner.java | 4 + .../fluent/models/JobProperties.java | 4 + .../models/ListContentKeysResponseInner.java | 4 + .../fluent/models/ListPathsResponseInner.java | 4 + .../ListStreamingLocatorsResponseInner.java | 4 + .../fluent/models/LiveEventInner.java | 4 + .../fluent/models/LiveEventProperties.java | 4 + .../fluent/models/LiveOutputInner.java | 4 + .../fluent/models/LiveOutputProperties.java | 4 + .../fluent/models/MediaFilterProperties.java | 4 + .../fluent/models/MediaServiceInner.java | 4 + .../MediaServiceOperationStatusInner.java | 4 + .../fluent/models/MediaServiceProperties.java | 4 + .../models/OperationCollectionInner.java | 4 + .../PrivateEndpointConnectionInner.java | 4 + ...vateEndpointConnectionListResultInner.java | 4 + .../PrivateEndpointConnectionProperties.java | 4 + .../models/PrivateLinkResourceInner.java | 4 + .../PrivateLinkResourceListResultInner.java | 4 + .../models/PrivateLinkResourceProperties.java | 4 + ...rageEncryptedAssetDecryptionDataInner.java | 4 + .../fluent/models/StreamingEndpointInner.java | 4 + .../models/StreamingEndpointProperties.java | 4 + ...reamingEndpointSkuInfoListResultInner.java | 4 + .../fluent/models/StreamingLocatorInner.java | 4 + .../models/StreamingLocatorProperties.java | 4 + .../fluent/models/StreamingPolicyInner.java | 4 + .../models/StreamingPolicyProperties.java | 4 + .../fluent/models/TransformInner.java | 4 + .../fluent/models/TransformProperties.java | 4 + .../AccountFiltersClientImpl.java | 85 +- .../implementation/AccountFiltersImpl.java | 22 +- .../AssetFiltersClientImpl.java | 81 +- .../implementation/AssetFiltersImpl.java | 22 +- .../implementation/AssetImpl.java | 16 +- .../implementation/AssetsClientImpl.java | 134 +-- .../implementation/AssetsImpl.java | 58 +- .../ContentKeyPoliciesClientImpl.java | 117 +-- .../ContentKeyPoliciesImpl.java | 40 +- .../implementation/ContentKeyPolicyImpl.java | 8 +- .../mediaservices/implementation/JobImpl.java | 8 +- .../implementation/JobsClientImpl.java | 132 +-- .../implementation/JobsImpl.java | 26 +- .../implementation/LiveEventsClientImpl.java | 151 ++-- .../implementation/LiveEventsImpl.java | 48 +- .../implementation/LiveOutputsClientImpl.java | 81 +- .../implementation/LiveOutputsImpl.java | 52 +- .../implementation/LocationsClientImpl.java | 20 +- .../implementation/LocationsImpl.java | 22 +- .../implementation/MediaServiceImpl.java | 12 +- ...diaServicesOperationResultsClientImpl.java | 14 +- .../MediaServicesOperationResultsImpl.java | 18 +- ...iaServicesOperationStatusesClientImpl.java | 18 +- .../MediaServicesOperationStatusesImpl.java | 18 +- .../MediaservicesClientImpl.java | 70 +- .../implementation/MediaservicesImpl.java | 49 +- .../OperationResultsClientImpl.java | 27 +- .../implementation/OperationResultsImpl.java | 22 +- .../OperationStatusesClientImpl.java | 31 +- .../implementation/OperationStatusesImpl.java | 22 +- .../implementation/OperationsClientImpl.java | 18 +- .../implementation/OperationsImpl.java | 18 +- .../PrivateEndpointConnectionsClientImpl.java | 76 +- .../PrivateEndpointConnectionsImpl.java | 28 +- .../PrivateLinkResourcesClientImpl.java | 34 +- .../PrivateLinkResourcesImpl.java | 24 +- .../StreamingEndpointsClientImpl.java | 175 ++-- .../StreamingEndpointsImpl.java | 70 +- .../implementation/StreamingLocatorImpl.java | 12 +- .../StreamingLocatorsClientImpl.java | 96 +-- .../implementation/StreamingLocatorsImpl.java | 48 +- .../StreamingPoliciesClientImpl.java | 61 +- .../implementation/StreamingPoliciesImpl.java | 22 +- .../implementation/TracksClientImpl.java | 39 +- .../implementation/TracksImpl.java | 18 +- .../implementation/TransformsClientImpl.java | 107 +-- .../implementation/TransformsImpl.java | 22 +- .../mediaservices/models/AacAudio.java | 4 + .../mediaservices/models/AacAudioProfile.java | 9 + .../models/AbsoluteClipTime.java | 4 + .../mediaservices/models/AccessControl.java | 4 + .../models/AccountEncryption.java | 4 + .../models/AccountEncryptionKeyType.java | 9 + .../models/AccountFilterCollection.java | 4 + .../mediaservices/models/AccountFilters.java | 20 +- .../mediaservices/models/ActionType.java | 9 + .../models/AkamaiAccessControl.java | 4 + ...kamaiSignatureHeaderAuthenticationKey.java | 4 + .../models/AnalysisResolution.java | 9 + .../models/ArmStreamingEndpointCapacity.java | 4 + .../ArmStreamingEndpointCurrentSku.java | 4 + .../models/ArmStreamingEndpointSku.java | 4 + .../models/ArmStreamingEndpointSkuInfo.java | 4 + .../mediaservices/models/Asset.java | 36 +- .../mediaservices/models/AssetCollection.java | 4 + .../models/AssetContainerPermission.java | 9 + .../models/AssetFileEncryptionMetadata.java | 4 + .../models/AssetFilterCollection.java | 4 + .../mediaservices/models/AssetFilters.java | 22 +- .../models/AssetStorageEncryptionFormat.java | 9 + .../models/AssetStreamingLocator.java | 4 + .../models/AssetTrackCollection.java | 4 + .../mediaservices/models/Assets.java | 68 +- .../models/AsyncOperationStatus.java | 9 + .../mediaservices/models/AttributeFilter.java | 9 + .../mediaservices/models/Audio.java | 9 +- .../models/AudioAnalysisMode.java | 9 + .../models/AudioAnalyzerPreset.java | 4 + .../mediaservices/models/AudioOverlay.java | 4 + .../mediaservices/models/AudioTrack.java | 4 + .../models/AudioTrackDescriptor.java | 4 + .../mediaservices/models/BlurType.java | 9 + .../models/BuiltInStandardEncoderPreset.java | 4 + .../models/CbcsDrmConfiguration.java | 4 + .../models/CencDrmConfiguration.java | 4 + .../mediaservices/models/ChannelMapping.java | 9 + .../models/CheckNameAvailabilityInput.java | 4 + .../ClearKeyEncryptionConfiguration.java | 4 + .../mediaservices/models/ClipTime.java | 4 + .../mediaservices/models/Codec.java | 4 + .../models/CommonEncryptionCbcs.java | 4 + .../models/CommonEncryptionCenc.java | 4 + .../mediaservices/models/Complexity.java | 9 + .../models/ContentKeyPolicies.java | 36 +- .../models/ContentKeyPolicy.java | 12 +- ...ContentKeyPolicyClearKeyConfiguration.java | 4 + .../models/ContentKeyPolicyCollection.java | 4 + .../models/ContentKeyPolicyConfiguration.java | 4 + ...ContentKeyPolicyFairPlayConfiguration.java | 12 +- ...icyFairPlayOfflineRentalConfiguration.java | 4 + ...eyPolicyFairPlayRentalAndLeaseKeyType.java | 9 + .../ContentKeyPolicyOpenRestriction.java | 4 + .../models/ContentKeyPolicyOption.java | 4 + ...ontentKeyPolicyPlayReadyConfiguration.java | 4 + ...ayReadyContentEncryptionKeyFromHeader.java | 4 + ...ContentEncryptionKeyFromKeyIdentifier.java | 4 + ...tKeyPolicyPlayReadyContentKeyLocation.java | 4 + .../ContentKeyPolicyPlayReadyContentType.java | 9 + ...dyExplicitAnalogTelevisionRestriction.java | 4 + .../ContentKeyPolicyPlayReadyLicense.java | 4 + .../ContentKeyPolicyPlayReadyLicenseType.java | 9 + .../ContentKeyPolicyPlayReadyPlayRight.java | 4 + ...cyPlayReadyUnknownOutputPassingOption.java | 9 + .../models/ContentKeyPolicyRestriction.java | 4 + .../ContentKeyPolicyRestrictionTokenKey.java | 4 + .../ContentKeyPolicyRestrictionTokenType.java | 9 + .../models/ContentKeyPolicyRsaTokenKey.java | 4 + .../ContentKeyPolicySymmetricTokenKey.java | 4 + .../models/ContentKeyPolicyTokenClaim.java | 4 + .../ContentKeyPolicyTokenRestriction.java | 4 + .../ContentKeyPolicyUnknownConfiguration.java | 4 + .../ContentKeyPolicyUnknownRestriction.java | 4 + ...ContentKeyPolicyWidevineConfiguration.java | 4 + ...ntentKeyPolicyX509CertificateTokenKey.java | 4 + .../mediaservices/models/CopyAudio.java | 4 + .../mediaservices/models/CopyVideo.java | 4 + .../models/CrossSiteAccessPolicies.java | 4 + .../mediaservices/models/DDAudio.java | 62 ++ .../mediaservices/models/DashSettings.java | 4 + .../mediaservices/models/DefaultAction.java | 9 + .../mediaservices/models/DefaultKey.java | 4 + .../mediaservices/models/Deinterlace.java | 4 + .../mediaservices/models/DeinterlaceMode.java | 9 + .../models/DeinterlaceParity.java | 9 + .../models/EdgeUsageDataCollectionPolicy.java | 4 + .../models/EdgeUsageDataEventHub.java | 4 + .../models/EnabledProtocols.java | 4 + .../models/EncoderNamedPreset.java | 12 + .../models/EncryptionScheme.java | 9 + .../mediaservices/models/EntropyMode.java | 9 + .../models/EnvelopeEncryption.java | 4 + .../models/FaceDetectorPreset.java | 4 + .../models/FaceRedactorMode.java | 9 + .../mediaservices/models/Fade.java | 132 +++ .../FilterTrackPropertyCompareOperation.java | 9 + .../models/FilterTrackPropertyCondition.java | 4 + .../models/FilterTrackPropertyType.java | 9 + .../models/FilterTrackSelection.java | 4 + .../mediaservices/models/Filters.java | 62 ++ .../mediaservices/models/FirstQuality.java | 4 + .../mediaservices/models/Format.java | 30 +- .../models/FromAllInputFile.java | 4 + .../models/FromEachInputFile.java | 4 + .../mediaservices/models/H264Complexity.java | 9 + .../mediaservices/models/H264Layer.java | 4 + .../models/H264RateControlMode.java | 9 + .../mediaservices/models/H264Video.java | 4 + .../models/H264VideoProfile.java | 9 + .../mediaservices/models/H265Complexity.java | 9 + .../mediaservices/models/H265Layer.java | 4 + .../mediaservices/models/H265Video.java | 4 + .../mediaservices/models/H265VideoLayer.java | 4 + .../models/H265VideoProfile.java | 9 + .../mediaservices/models/Hls.java | 4 + .../mediaservices/models/HlsSettings.java | 4 + .../mediaservices/models/Image.java | 4 + .../mediaservices/models/ImageFormat.java | 4 + .../mediaservices/models/InputDefinition.java | 4 + .../mediaservices/models/InputFile.java | 4 + .../mediaservices/models/InsightsType.java | 9 + .../models/InterleaveOutput.java | 9 + .../mediaservices/models/IpAccessControl.java | 4 + .../mediaservices/models/IpRange.java | 4 + .../mediaservices/models/Job.java | 10 +- .../mediaservices/models/JobCollection.java | 4 + .../mediaservices/models/JobError.java | 4 + .../models/JobErrorCategory.java | 12 + .../mediaservices/models/JobErrorCode.java | 12 + .../mediaservices/models/JobErrorDetail.java | 4 + .../mediaservices/models/JobInput.java | 4 + .../mediaservices/models/JobInputAsset.java | 4 + .../mediaservices/models/JobInputClip.java | 4 + .../mediaservices/models/JobInputHttp.java | 4 + .../models/JobInputSequence.java | 4 + .../mediaservices/models/JobInputs.java | 4 + .../mediaservices/models/JobOutput.java | 4 + .../mediaservices/models/JobOutputAsset.java | 4 + .../mediaservices/models/JobRetry.java | 9 + .../mediaservices/models/JobState.java | 9 + .../mediaservices/models/Jobs.java | 32 +- .../mediaservices/models/JpgFormat.java | 4 + .../mediaservices/models/JpgImage.java | 4 + .../mediaservices/models/JpgLayer.java | 4 + .../mediaservices/models/KeyDelivery.java | 4 + .../models/KeyVaultProperties.java | 4 + .../mediaservices/models/Layer.java | 4 + .../models/ListContainerSasInput.java | 4 + .../models/ListEdgePoliciesInput.java | 4 + .../models/LiveEventActionInput.java | 4 + .../models/LiveEventEncoding.java | 4 + .../models/LiveEventEncodingType.java | 9 + .../models/LiveEventEndpoint.java | 4 + .../mediaservices/models/LiveEventInput.java | 4 + .../models/LiveEventInputAccessControl.java | 4 + .../models/LiveEventInputProtocol.java | 9 + .../models/LiveEventInputTrackSelection.java | 4 + .../models/LiveEventListResult.java | 4 + .../LiveEventOutputTranscriptionTrack.java | 4 + .../models/LiveEventPreview.java | 4 + .../models/LiveEventPreviewAccessControl.java | 4 + .../models/LiveEventResourceState.java | 9 + .../models/LiveEventTranscription.java | 4 + .../mediaservices/models/LiveEvents.java | 36 +- .../models/LiveOutputListResult.java | 4 + .../models/LiveOutputResourceState.java | 9 + .../mediaservices/models/LiveOutputs.java | 48 +- .../mediaservices/models/Locations.java | 12 +- .../models/LogSpecification.java | 4 + .../mediaservices/models/MediaService.java | 18 +- .../models/MediaServiceCollection.java | 4 + .../models/MediaServiceIdentity.java | 4 + .../models/MediaServiceUpdate.java | 4 + .../models/MediaServicesOperationResults.java | 6 +- ...diaServicesOperationResultsGetHeaders.java | 12 +- .../MediaServicesOperationStatuses.java | 10 +- .../mediaservices/models/Mediaservices.java | 42 +- .../models/MetricAggregationType.java | 9 + .../mediaservices/models/MetricDimension.java | 4 + .../models/MetricSpecification.java | 4 + .../mediaservices/models/MetricUnit.java | 9 + .../mediaservices/models/Mp4Format.java | 4 + .../models/MultiBitrateFormat.java | 4 + .../mediaservices/models/NoEncryption.java | 4 + .../mediaservices/models/OnErrorType.java | 9 + .../mediaservices/models/Operation.java | 4 + .../models/OperationDisplay.java | 4 + .../models/OperationResults.java | 20 +- .../models/OperationResultsGetHeaders.java | 12 +- .../models/OperationStatuses.java | 24 +- .../mediaservices/models/Operations.java | 12 +- .../mediaservices/models/OutputFile.java | 4 + .../mediaservices/models/Overlay.java | 4 + .../mediaservices/models/PngFormat.java | 4 + .../mediaservices/models/PngImage.java | 4 + .../mediaservices/models/PngLayer.java | 4 + .../models/PresentationTimeRange.java | 4 + .../mediaservices/models/Preset.java | 4 + .../models/PresetConfigurations.java | 4 + .../mediaservices/models/Priority.java | 9 + .../mediaservices/models/PrivateEndpoint.java | 4 + ...teEndpointConnectionProvisioningState.java | 9 + .../models/PrivateEndpointConnections.java | 34 +- ...rivateEndpointServiceConnectionStatus.java | 9 + .../models/PrivateLinkResources.java | 24 +- .../PrivateLinkServiceConnectionState.java | 4 + .../mediaservices/models/Properties.java | 4 + .../models/ProvisioningState.java | 9 + .../models/PublicNetworkAccess.java | 9 + .../mediaservices/models/Rectangle.java | 4 + .../models/ResourceIdentity.java | 4 + .../mediaservices/models/Rotation.java | 9 + .../mediaservices/models/SecurityLevel.java | 9 + .../models/SelectAudioTrackByAttribute.java | 4 + .../models/SelectAudioTrackById.java | 4 + .../models/SelectVideoTrackByAttribute.java | 4 + .../models/SelectVideoTrackById.java | 4 + .../models/ServiceSpecification.java | 4 + .../models/StandardEncoderPreset.java | 35 + .../mediaservices/models/StorageAccount.java | 4 + .../models/StorageAccountType.java | 9 + .../models/StorageAuthentication.java | 9 + .../models/StreamOptionsFlag.java | 9 + .../StreamingEndpointAccessControl.java | 4 + .../models/StreamingEndpointListResult.java | 4 + .../StreamingEndpointResourceState.java | 9 + .../models/StreamingEndpoints.java | 58 +- .../models/StreamingEntityScaleUnit.java | 4 + .../models/StreamingLocator.java | 24 +- .../models/StreamingLocatorCollection.java | 4 + .../models/StreamingLocatorContentKey.java | 4 + .../StreamingLocatorContentKeyType.java | 9 + .../models/StreamingLocators.java | 46 +- .../mediaservices/models/StreamingPath.java | 4 + .../models/StreamingPolicies.java | 22 +- .../models/StreamingPolicyCollection.java | 4 + .../models/StreamingPolicyContentKey.java | 4 + .../models/StreamingPolicyContentKeys.java | 4 + .../StreamingPolicyFairPlayConfiguration.java | 4 + ...StreamingPolicyPlayReadyConfiguration.java | 4 + .../StreamingPolicyStreamingProtocol.java | 9 + .../StreamingPolicyWidevineConfiguration.java | 4 + .../mediaservices/models/StretchMode.java | 9 + .../models/SyncStorageKeysInput.java | 4 + .../mediaservices/models/TextTrack.java | 4 + .../mediaservices/models/TrackAttribute.java | 9 + .../mediaservices/models/TrackBase.java | 4 + .../mediaservices/models/TrackDescriptor.java | 4 + .../models/TrackPropertyCompareOperation.java | 9 + .../models/TrackPropertyCondition.java | 4 + .../models/TrackPropertyType.java | 9 + .../mediaservices/models/TrackSelection.java | 4 + .../mediaservices/models/Tracks.java | 12 +- .../models/TransformCollection.java | 4 + .../mediaservices/models/TransformOutput.java | 4 + .../mediaservices/models/Transforms.java | 22 +- .../models/TransportStreamFormat.java | 4 + .../models/UserAssignedManagedIdentity.java | 4 + .../mediaservices/models/UtcClipTime.java | 4 + .../mediaservices/models/Video.java | 4 + .../models/VideoAnalyzerPreset.java | 4 + .../mediaservices/models/VideoLayer.java | 4 + .../mediaservices/models/VideoOverlay.java | 4 + .../mediaservices/models/VideoSyncMode.java | 9 + .../mediaservices/models/VideoTrack.java | 4 + .../models/VideoTrackDescriptor.java | 4 + .../mediaservices/models/Visibility.java | 9 + .../AccountFiltersCreateOrUpdateSamples.java | 2 +- .../AccountFiltersDeleteSamples.java | 7 +- .../generated/AccountFiltersGetSamples.java | 8 +- .../generated/AccountFiltersListSamples.java | 6 +- .../AccountFiltersUpdateSamples.java | 6 +- .../AssetFiltersCreateOrUpdateSamples.java | 2 +- .../generated/AssetFiltersDeleteSamples.java | 10 +- .../generated/AssetFiltersGetSamples.java | 10 +- .../generated/AssetFiltersListSamples.java | 6 +- .../generated/AssetFiltersUpdateSamples.java | 9 +- .../AssetsCreateOrUpdateSamples.java | 2 +- .../generated/AssetsDeleteSamples.java | 8 +- .../AssetsGetEncryptionKeySamples.java | 7 +- .../generated/AssetsGetSamples.java | 8 +- .../AssetsListContainerSasSamples.java | 5 +- .../generated/AssetsListSamples.java | 16 +- .../AssetsListStreamingLocatorsSamples.java | 7 +- .../generated/AssetsUpdateSamples.java | 8 +- ...ntentKeyPoliciesCreateOrUpdateSamples.java | 8 +- .../ContentKeyPoliciesDeleteSamples.java | 10 +- ...GetPolicyPropertiesWithSecretsSamples.java | 6 +- .../ContentKeyPoliciesGetSamples.java | 6 +- .../ContentKeyPoliciesListSamples.java | 16 +- .../ContentKeyPoliciesUpdateSamples.java | 9 +- .../generated/JobsCancelJobSamples.java | 7 +- .../generated/JobsCreateSamples.java | 2 +- .../generated/JobsDeleteSamples.java | 11 +- .../generated/JobsGetSamples.java | 9 +- .../generated/JobsListSamples.java | 40 +- .../generated/JobsUpdateSamples.java | 6 +- .../generated/LiveEventsAllocateSamples.java | 8 +- .../LiveEventsAsyncOperationSamples.java | 9 +- .../generated/LiveEventsCreateSamples.java | 4 +- .../generated/LiveEventsDeleteSamples.java | 8 +- .../generated/LiveEventsGetSamples.java | 8 +- .../generated/LiveEventsListSamples.java | 6 +- .../LiveEventsOperationLocationSamples.java | 6 +- .../generated/LiveEventsResetSamples.java | 8 +- .../generated/LiveEventsStartSamples.java | 8 +- .../generated/LiveEventsStopSamples.java | 5 +- .../generated/LiveEventsUpdateSamples.java | 7 +- .../LiveOutputsAsyncOperationSamples.java | 9 +- .../generated/LiveOutputsCreateSamples.java | 2 +- .../generated/LiveOutputsDeleteSamples.java | 9 +- .../generated/LiveOutputsGetSamples.java | 7 +- .../generated/LiveOutputsListSamples.java | 8 +- .../LiveOutputsOperationLocationSamples.java | 6 +- ...LocationsCheckNameAvailabilitySamples.java | 5 +- ...diaServicesOperationResultsGetSamples.java | 6 +- ...iaServicesOperationStatusesGetSamples.java | 14 +- .../MediaservicesCreateOrUpdateSamples.java | 2 +- .../generated/MediaservicesDeleteSamples.java | 8 +- ...ediaservicesGetByResourceGroupSamples.java | 8 +- ...diaservicesListByResourceGroupSamples.java | 6 +- .../MediaservicesListEdgePoliciesSamples.java | 5 +- .../generated/MediaservicesListSamples.java | 6 +- .../MediaservicesSyncStorageKeysSamples.java | 8 +- .../generated/MediaservicesUpdateSamples.java | 8 +- .../generated/OperationResultsGetSamples.java | 6 +- .../OperationStatusesGetSamples.java | 14 +- .../generated/OperationsListSamples.java | 6 +- ...pointConnectionsCreateOrUpdateSamples.java | 5 +- ...ivateEndpointConnectionsDeleteSamples.java | 6 +- .../PrivateEndpointConnectionsGetSamples.java | 6 +- ...PrivateEndpointConnectionsListSamples.java | 8 +- .../PrivateLinkResourcesGetSamples.java | 8 +- .../PrivateLinkResourcesListSamples.java | 6 +- ...reamingEndpointsAsyncOperationSamples.java | 9 +- .../StreamingEndpointsCreateSamples.java | 6 +- .../StreamingEndpointsDeleteSamples.java | 8 +- .../StreamingEndpointsGetSamples.java | 7 +- .../StreamingEndpointsListSamples.java | 6 +- ...mingEndpointsOperationLocationSamples.java | 6 +- .../StreamingEndpointsScaleSamples.java | 5 +- .../StreamingEndpointsSkusSamples.java | 7 +- .../StreamingEndpointsStartSamples.java | 8 +- .../StreamingEndpointsStopSamples.java | 8 +- .../StreamingEndpointsUpdateSamples.java | 6 +- .../StreamingLocatorsCreateSamples.java | 6 +- .../StreamingLocatorsDeleteSamples.java | 6 +- .../StreamingLocatorsGetSamples.java | 8 +- ...reamingLocatorsListContentKeysSamples.java | 7 +- .../StreamingLocatorsListPathsSamples.java | 12 +- .../StreamingLocatorsListSamples.java | 6 +- .../StreamingPoliciesCreateSamples.java | 26 +- .../StreamingPoliciesDeleteSamples.java | 9 +- .../StreamingPoliciesGetSamples.java | 8 +- .../StreamingPoliciesListSamples.java | 6 +- .../TracksCreateOrUpdateSamples.java | 2 +- .../generated/TracksDeleteSamples.java | 8 +- .../generated/TracksGetSamples.java | 9 +- .../generated/TracksListSamples.java | 6 +- .../generated/TracksUpdateSamples.java | 6 +- .../TracksUpdateTrackDataSamples.java | 9 +- .../TransformsCreateOrUpdateSamples.java | 2 +- .../generated/TransformsDeleteSamples.java | 9 +- .../generated/TransformsGetSamples.java | 8 +- .../generated/TransformsListSamples.java | 26 +- .../generated/TransformsUpdateSamples.java | 6 +- 484 files changed, 4503 insertions(+), 2831 deletions(-) create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java create mode 100644 sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Fade.java diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md index 34295de14af8..ad8e34faafd0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 2.3.0-beta.1 (Unreleased) +## 1.0.0-beta.1 (2023-01-11) + +- 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-encoding-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/README.md index 36c7ccc56055..58b0a1a75481 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-metadata-2022-08. 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-encoding-2022-07. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-mediaservices - 2.2.0 + 2.3.0-beta.1 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client. -[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables. - `AZURE_CLIENT_ID` for Azure client ID. - `AZURE_TENANT_ID` for Azure tenant ID. - `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate. -In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -139,13 +139,13 @@ asset.refresh(); ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -1. Fork it -1. Create your feature branch (`git checkout -b my-new-feature`) -1. Commit your changes (`git commit -am 'Add some feature'`) -1. Push to the branch (`git push origin my-new-feature`) -1. Create new Pull Request +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -156,3 +156,6 @@ For details on contributing to this repository, see the [contributing guide](htt [azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty [authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md [design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md index 45661b317a85..7a0f5225a493 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/SAMPLE.md @@ -176,7 +176,7 @@ import java.util.Arrays; /** Samples for AccountFilters CreateOrUpdate. */ public final class AccountFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json */ /** * Sample code: Create an Account Filter. @@ -236,12 +236,10 @@ public final class AccountFiltersCreateOrUpdateSamples { ### 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/2022-08-01/examples/accountFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json */ /** * Sample code: Delete an Account Filter. @@ -251,7 +249,8 @@ public final class AccountFiltersDeleteSamples { public static void deleteAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .accountFilters() - .deleteWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE); + .deleteWithResponse( + "contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE); } } ``` @@ -259,12 +258,10 @@ public final class AccountFiltersDeleteSamples { ### 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/2022-08-01/examples/accountFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json */ /** * Sample code: Get an Account Filter by name. @@ -272,7 +269,9 @@ public final class AccountFiltersGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAnAccountFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.accountFilters().getWithResponse("contoso", "contosomedia", "accountFilterWithTrack", Context.NONE); + manager + .accountFilters() + .getWithResponse("contoso", "contosomedia", "accountFilterWithTrack", com.azure.core.util.Context.NONE); } } ``` @@ -280,12 +279,10 @@ public final class AccountFiltersGetSamples { ### 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/2022-08-01/examples/accountFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json */ /** * Sample code: List all Account Filters. @@ -293,7 +290,7 @@ public final class AccountFiltersListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllAccountFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.accountFilters().list("contoso", "contosomedia", Context.NONE); + manager.accountFilters().list("contoso", "contosomedia", com.azure.core.util.Context.NONE); } } ``` @@ -301,7 +298,6 @@ public final class AccountFiltersListSamples { ### 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; @@ -309,7 +305,7 @@ 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/2022-08-01/examples/accountFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json */ /** * Sample code: Update an Account Filter. @@ -320,7 +316,8 @@ public final class AccountFiltersUpdateSamples { AccountFilter resource = manager .accountFilters() - .getWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE) + .getWithResponse( + "contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -352,7 +349,7 @@ import java.util.Arrays; /** Samples for AssetFilters CreateOrUpdate. */ public final class AssetFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json */ /** * Sample code: Create an Asset Filter. @@ -412,12 +409,10 @@ public final class AssetFiltersCreateOrUpdateSamples { ### 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/2022-08-01/examples/assetFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json */ /** * Sample code: Delete an Asset Filter. @@ -428,7 +423,11 @@ public final class AssetFiltersDeleteSamples { manager .assetFilters() .deleteWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE); + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE); } } ``` @@ -436,12 +435,10 @@ public final class AssetFiltersDeleteSamples { ### 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/2022-08-01/examples/assetFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json */ /** * Sample code: Get an Asset Filter by name. @@ -452,7 +449,11 @@ public final class AssetFiltersGetSamples { manager .assetFilters() .getWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE); + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE); } } ``` @@ -460,12 +461,10 @@ public final class AssetFiltersGetSamples { ### 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/2022-08-01/examples/assetFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json */ /** * Sample code: List all Asset Filters. @@ -473,7 +472,7 @@ public final class AssetFiltersListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllAssetFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assetFilters().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE); + manager.assetFilters().list("contoso", "contosomedia", "ClimbingMountRainer", com.azure.core.util.Context.NONE); } } ``` @@ -481,7 +480,6 @@ public final class AssetFiltersListSamples { ### 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; @@ -489,7 +487,7 @@ 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/2022-08-01/examples/assetFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json */ /** * Sample code: Update an Asset Filter. @@ -501,7 +499,11 @@ public final class AssetFiltersUpdateSamples { manager .assetFilters() .getWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE) + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -525,7 +527,7 @@ public final class AssetFiltersUpdateSamples { /** Samples for Assets CreateOrUpdate. */ public final class AssetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json */ /** * Sample code: Create an Asset. @@ -547,12 +549,10 @@ public final class AssetsCreateOrUpdateSamples { ### 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/2022-08-01/examples/assets-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json */ /** * Sample code: Delete an Asset. @@ -560,7 +560,9 @@ public final class AssetsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assets().deleteWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE); + manager + .assets() + .deleteWithResponse("contoso", "contosomedia", "ClimbingMountAdams", com.azure.core.util.Context.NONE); } } ``` @@ -568,12 +570,10 @@ public final class AssetsDeleteSamples { ### 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/2022-08-01/examples/assets-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json */ /** * Sample code: Get an Asset by name. @@ -581,7 +581,9 @@ public final class AssetsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAnAssetByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE); + manager + .assets() + .getWithResponse("contoso", "contosomedia", "ClimbingMountAdams", com.azure.core.util.Context.NONE); } } ``` @@ -589,12 +591,10 @@ public final class AssetsGetSamples { ### 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/2022-08-01/examples/assets-get-encryption-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json */ /** * Sample code: Get Asset Storage Encryption Keys. @@ -605,7 +605,8 @@ public final class AssetsGetEncryptionKeySamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .assets() - .getEncryptionKeyWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE); + .getEncryptionKeyWithResponse( + "contoso", "contosomedia", "ClimbingMountSaintHelens", com.azure.core.util.Context.NONE); } } ``` @@ -613,12 +614,10 @@ public final class AssetsGetEncryptionKeySamples { ### 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/2022-08-01/examples/assets-list-by-date.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json */ /** * Sample code: List Asset ordered by date. @@ -626,11 +625,13 @@ public final class AssetsListSamples { * @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); + manager + .assets() + .list("contoso", "contosomedia", null, null, "properties/created", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json */ /** * Sample code: List Asset created in a date range. @@ -647,11 +648,11 @@ public final class AssetsListSamples { "properties/created gt 2012-06-01 and properties/created lt 2013-07-01", null, "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json */ /** * Sample code: List all Assets. @@ -659,7 +660,7 @@ public final class AssetsListSamples { * @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); + manager.assets().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } ``` @@ -667,7 +668,6 @@ public final class AssetsListSamples { ### 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; @@ -675,7 +675,7 @@ import java.time.OffsetDateTime; /** Samples for Assets ListContainerSas. */ public final class AssetsListContainerSasSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json */ /** * Sample code: List Asset SAS URLs. @@ -692,7 +692,7 @@ public final class AssetsListContainerSasSamples { new ListContainerSasInput() .withPermissions(AssetContainerPermission.READ_WRITE) .withExpiryTime(OffsetDateTime.parse("2018-01-01T10:00:00.007Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -700,12 +700,10 @@ public final class AssetsListContainerSasSamples { ### 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/2022-08-01/examples/assets-list-streaming-locators.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json */ /** * Sample code: List Asset SAS URLs. @@ -715,7 +713,8 @@ public final class AssetsListStreamingLocatorsSamples { public static void listAssetSASURLs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .assets() - .listStreamingLocatorsWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE); + .listStreamingLocatorsWithResponse( + "contoso", "contosomedia", "ClimbingMountSaintHelens", com.azure.core.util.Context.NONE); } } ``` @@ -723,13 +722,12 @@ public final class AssetsListStreamingLocatorsSamples { ### 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/2022-08-01/examples/assets-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json */ /** * Sample code: Update an Asset. @@ -738,7 +736,10 @@ public final class AssetsUpdateSamples { */ public static void updateAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { Asset resource = - manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountBaker", Context.NONE).getValue(); + manager + .assets() + .getWithResponse("contoso", "contosomedia", "ClimbingMountBaker", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withDescription("A documentary showing the ascent of Mount Baker in HD").apply(); } } @@ -769,7 +770,7 @@ import java.util.Arrays; /** Samples for ContentKeyPolicies CreateOrUpdate. */ public final class ContentKeyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json */ /** * Sample code: Creates a Content Key Policy with multiple options. @@ -808,7 +809,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json */ /** * Sample code: Creates a Content Key Policy with ClearKey option and Token Restriction. @@ -840,7 +841,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json */ /** * Sample code: Creates a Content Key Policy with PlayReady option and Open Restriction. @@ -888,7 +889,7 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json */ /** * Sample code: Creates a Content Key Policy with Widevine option and Token Restriction. @@ -933,12 +934,10 @@ public final class ContentKeyPoliciesCreateOrUpdateSamples { ### 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/2022-08-01/examples/content-key-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json */ /** * Sample code: Delete a Key Policy. @@ -948,7 +947,11 @@ public final class ContentKeyPoliciesDeleteSamples { public static void deleteAKeyPolicy(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .deleteWithResponse("contoso", "contosomedia", "PolicyWithPlayReadyOptionAndOpenRestriction", Context.NONE); + .deleteWithResponse( + "contoso", + "contosomedia", + "PolicyWithPlayReadyOptionAndOpenRestriction", + com.azure.core.util.Context.NONE); } } ``` @@ -956,12 +959,10 @@ public final class ContentKeyPoliciesDeleteSamples { ### 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/2022-08-01/examples/content-key-policies-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json */ /** * Sample code: Get a Content Key Policy by name. @@ -972,7 +973,7 @@ public final class ContentKeyPoliciesGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .getWithResponse("contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE); + .getWithResponse("contoso", "contosomedia", "PolicyWithMultipleOptions", com.azure.core.util.Context.NONE); } } ``` @@ -980,12 +981,10 @@ public final class ContentKeyPoliciesGetSamples { ### 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/2022-08-01/examples/content-key-policies-get-with-secrets.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json */ /** * Sample code: Get an Content Key Policy with secrets. @@ -997,7 +996,7 @@ public final class ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples { manager .contentKeyPolicies() .getPolicyPropertiesWithSecretsWithResponse( - "contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE); + "contoso", "contosomedia", "PolicyWithMultipleOptions", com.azure.core.util.Context.NONE); } } ``` @@ -1005,12 +1004,10 @@ public final class ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples { ### 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/2022-08-01/examples/content-key-policies-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json */ /** * Sample code: Lists all Content Key Policies. @@ -1019,11 +1016,13 @@ public final class ContentKeyPoliciesListSamples { */ public static void listsAllContentKeyPolicies( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.contentKeyPolicies().list("contoso", "contosomedia", null, null, null, Context.NONE); + manager + .contentKeyPolicies() + .list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json */ /** * Sample code: Lists Content Key Policies with created and last modified filters. @@ -1040,11 +1039,11 @@ public final class ContentKeyPoliciesListSamples { "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01", null, null, - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json */ /** * Sample code: Lists Content Key Policies ordered by last modified. @@ -1055,7 +1054,7 @@ public final class ContentKeyPoliciesListSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .list("contoso", "contosomedia", null, null, "properties/lastModified", Context.NONE); + .list("contoso", "contosomedia", null, null, "properties/lastModified", com.azure.core.util.Context.NONE); } } ``` @@ -1063,7 +1062,6 @@ public final class ContentKeyPoliciesListSamples { ### 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; @@ -1073,7 +1071,7 @@ import java.util.Arrays; /** Samples for ContentKeyPolicies Update. */ public final class ContentKeyPoliciesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json */ /** * Sample code: Update a Content Key Policy. @@ -1084,7 +1082,11 @@ public final class ContentKeyPoliciesUpdateSamples { ContentKeyPolicy resource = manager .contentKeyPolicies() - .getWithResponse("contoso", "contosomedia", "PolicyWithClearKeyOptionAndTokenRestriction", Context.NONE) + .getWithResponse( + "contoso", + "contosomedia", + "PolicyWithClearKeyOptionAndTokenRestriction", + com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -1104,12 +1106,10 @@ public final class ContentKeyPoliciesUpdateSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json */ /** * Sample code: Cancel a Job. @@ -1119,7 +1119,8 @@ public final class JobsCancelJobSamples { public static void cancelAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .jobs() - .cancelJobWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE); + .cancelJobWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE); } } ``` @@ -1136,7 +1137,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json */ /** * Sample code: Create a Job. @@ -1170,12 +1171,10 @@ public final class JobsCreateSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json */ /** * Sample code: Delete a Job. @@ -1185,7 +1184,12 @@ public final class JobsDeleteSamples { public static void deleteAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .jobs() - .deleteWithResponse("contosoresources", "contosomedia", "exampleTransform", "jobToDelete", Context.NONE); + .deleteWithResponse( + "contosoresources", + "contosomedia", + "exampleTransform", + "jobToDelete", + com.azure.core.util.Context.NONE); } } ``` @@ -1193,12 +1197,10 @@ public final class JobsDeleteSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json */ /** * Sample code: Get a Job by name. @@ -1206,7 +1208,10 @@ public final class JobsGetSamples { * @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); + manager + .jobs() + .getWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE); } } ``` @@ -1214,12 +1219,10 @@ public final class JobsGetSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json */ /** * Sample code: Lists Jobs for the Transform filter by state not equal. @@ -1236,11 +1239,11 @@ public final class JobsListSamples { "exampleTransform", "properties/state ne Microsoft.Media.JobState'processing'", null, - Context.NONE); + com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json */ /** * Sample code: Lists Jobs for the Transform filter by state equal. @@ -1257,11 +1260,11 @@ public final class JobsListSamples { "exampleTransform", "properties/state eq Microsoft.Media.JobState'Processing'", null, - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json */ /** * Sample code: Lists Jobs for the Transform filter by name. @@ -1278,11 +1281,11 @@ public final class JobsListSamples { "exampleTransform", "name eq 'job1' or name eq 'job2'", "name", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json */ /** * Sample code: Lists Jobs for the Transform filter by lastmodified. @@ -1297,14 +1300,14 @@ public final class JobsListSamples { "contosoresources", "contosomedia", "exampleTransform", - "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:20.0000000Z", "properties/lastmodified desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json */ /** * Sample code: Lists Jobs for the Transform filter by created. @@ -1319,14 +1322,14 @@ public final class JobsListSamples { "contosoresources", "contosomedia", "exampleTransform", - "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le" + + " 2021-06-01T00:00:20.0000000Z", "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json */ /** * Sample code: Lists all of the Jobs for the Transform. @@ -1335,11 +1338,13 @@ public final class JobsListSamples { */ public static void listsAllOfTheJobsForTheTransform( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.jobs().list("contosoresources", "contosomedia", "exampleTransform", null, null, Context.NONE); + manager + .jobs() + .list("contosoresources", "contosomedia", "exampleTransform", null, null, com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json */ /** * Sample code: Lists Jobs for the Transform filter by name and state. @@ -1356,7 +1361,7 @@ public final class JobsListSamples { "exampleTransform", "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'", null, - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1364,7 +1369,6 @@ public final class JobsListSamples { ### 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; @@ -1374,7 +1378,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json */ /** * Sample code: Update a Job. @@ -1385,7 +1389,8 @@ public final class JobsUpdateSamples { Job resource = manager .jobs() - .getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE) + .getWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -1401,12 +1406,10 @@ public final class JobsUpdateSamples { ### 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/2022-08-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. @@ -1414,7 +1417,9 @@ public final class LiveEventsAllocateSamples { * @param manager Entry point to MediaServicesManager. */ public static void allocateALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().allocate("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .allocate("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1422,12 +1427,10 @@ public final class LiveEventsAllocateSamples { ### LiveEvents_AsyncOperation ```java -import com.azure.core.util.Context; - /** Samples for LiveEvents AsyncOperation. */ public final class LiveEventsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveEvent operation status. @@ -1439,7 +1442,10 @@ public final class LiveEventsAsyncOperationSamples { manager .liveEvents() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } ``` @@ -1461,7 +1467,7 @@ import java.util.Map; /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. @@ -1490,7 +1496,7 @@ public final class LiveEventsCreateSamples { .withName("AllowAll") .withAddress("0.0.0.0") .withSubnetPrefixLength(0))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( @@ -1523,12 +1529,10 @@ public final class LiveEventsCreateSamples { ### 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/2022-08-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. @@ -1536,7 +1540,9 @@ public final class LiveEventsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().delete("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .delete("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1544,12 +1550,10 @@ public final class LiveEventsDeleteSamples { ### 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/2022-08-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. @@ -1557,7 +1561,9 @@ public final class LiveEventsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getALiveEventByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1565,12 +1571,10 @@ public final class LiveEventsGetSamples { ### 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/2022-08-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. @@ -1578,7 +1582,7 @@ public final class LiveEventsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllLiveEvents(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().list("mediaresources", "slitestmedia10", Context.NONE); + manager.liveEvents().list("mediaresources", "slitestmedia10", com.azure.core.util.Context.NONE); } } ``` @@ -1586,12 +1590,10 @@ public final class LiveEventsListSamples { ### LiveEvents_OperationLocation ```java -import com.azure.core.util.Context; - /** Samples for LiveEvents OperationLocation. */ public final class LiveEventsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json */ /** * Sample code: Get the LiveEvent operation status. @@ -1607,7 +1609,7 @@ public final class LiveEventsOperationLocationSamples { "slitestmedia10", "myLiveEvent1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1615,12 +1617,10 @@ public final class LiveEventsOperationLocationSamples { ### 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/2022-08-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. @@ -1628,7 +1628,9 @@ public final class LiveEventsResetSamples { * @param manager Entry point to MediaServicesManager. */ public static void resetALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().reset("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .reset("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1636,12 +1638,10 @@ public final class LiveEventsResetSamples { ### 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/2022-08-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. @@ -1649,7 +1649,9 @@ public final class LiveEventsStartSamples { * @param manager Entry point to MediaServicesManager. */ public static void startALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().start("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .start("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1657,13 +1659,12 @@ public final class LiveEventsStartSamples { ### 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/2022-08-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. @@ -1678,7 +1679,7 @@ public final class LiveEventsStopSamples { "slitestmedia10", "myLiveEvent1", new LiveEventActionInput().withRemoveOutputsOnStop(false), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1686,7 +1687,6 @@ public final class LiveEventsStopSamples { ### 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; @@ -1702,7 +1702,7 @@ import java.util.Map; /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. @@ -1713,7 +1713,7 @@ public final class LiveEventsUpdateSamples { LiveEvent resource = manager .liveEvents() - .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE) + .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -1728,7 +1728,7 @@ public final class LiveEventsUpdateSamples { new IpAccessControl() .withAllow( Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0"))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( @@ -1756,12 +1756,10 @@ public final class LiveEventsUpdateSamples { ### LiveOutputs_AsyncOperation ```java -import com.azure.core.util.Context; - /** Samples for LiveOutputs AsyncOperation. */ public final class LiveOutputsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveOutput operation status. @@ -1773,7 +1771,10 @@ public final class LiveOutputsAsyncOperationSamples { manager .liveOutputs() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } ``` @@ -1787,7 +1788,7 @@ import java.time.Duration; /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. @@ -1813,12 +1814,10 @@ public final class LiveOutputsCreateSamples { ### 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/2022-08-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. @@ -1826,7 +1825,10 @@ public final class LiveOutputsDeleteSamples { * @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); + manager + .liveOutputs() + .delete( + "mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", com.azure.core.util.Context.NONE); } } ``` @@ -1834,12 +1836,10 @@ public final class LiveOutputsDeleteSamples { ### 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/2022-08-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. @@ -1849,7 +1849,8 @@ public final class LiveOutputsGetSamples { public static void getALiveOutputByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .liveOutputs() - .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", Context.NONE); + .getWithResponse( + "mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", com.azure.core.util.Context.NONE); } } ``` @@ -1857,12 +1858,10 @@ public final class LiveOutputsGetSamples { ### 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/2022-08-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. @@ -1870,7 +1869,9 @@ public final class LiveOutputsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllLiveOutputs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveOutputs().list("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveOutputs() + .list("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } ``` @@ -1878,12 +1879,10 @@ public final class LiveOutputsListSamples { ### LiveOutputs_OperationLocation ```java -import com.azure.core.util.Context; - /** Samples for LiveOutputs OperationLocation. */ public final class LiveOutputsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json */ /** * Sample code: Get the LiveOutput operation status. @@ -1900,7 +1899,7 @@ public final class LiveOutputsOperationLocationSamples { "myLiveEvent1", "myLiveOutput1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1908,13 +1907,12 @@ public final class LiveOutputsOperationLocationSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json */ /** * Sample code: Check Name Availability. @@ -1927,7 +1925,7 @@ public final class LocationsCheckNameAvailabilitySamples { .checkNameAvailabilityWithResponse( "japanwest", new CheckNameAvailabilityInput().withName("contosotv").withType("videoAnalyzers"), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -1935,12 +1933,10 @@ public final class LocationsCheckNameAvailabilitySamples { ### MediaServicesOperationResults_Get ```java -import com.azure.core.util.Context; - /** Samples for MediaServicesOperationResults Get. */ public final class MediaServicesOperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json */ /** * Sample code: Get status of asynchronous operation. @@ -1951,7 +1947,7 @@ public final class MediaServicesOperationResultsGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationResults() - .getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", Context.NONE); + .getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", com.azure.core.util.Context.NONE); } } ``` @@ -1959,12 +1955,10 @@ public final class MediaServicesOperationResultsGetSamples { ### MediaServicesOperationStatuses_Get ```java -import com.azure.core.util.Context; - /** Samples for MediaServicesOperationStatuses Get. */ public final class MediaServicesOperationStatusesGetSamples { /* - * 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -1975,11 +1969,11 @@ public final class MediaServicesOperationStatusesGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -1990,11 +1984,11 @@ public final class MediaServicesOperationStatusesGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -2005,7 +1999,7 @@ public final class MediaServicesOperationStatusesGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.Context.NONE); } } ``` @@ -2032,7 +2026,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json */ /** * Sample code: Create a Media Services account. @@ -2099,12 +2093,10 @@ public final class MediaservicesCreateOrUpdateSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json */ /** * Sample code: Delete a Media Services account. @@ -2113,7 +2105,9 @@ public final class MediaservicesDeleteSamples { */ public static void deleteAMediaServicesAccount( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().deleteWithResponse("contoso", "contososports", Context.NONE); + manager + .mediaservices() + .deleteByResourceGroupWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } ``` @@ -2121,12 +2115,10 @@ public final class MediaservicesDeleteSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json */ /** * Sample code: Get a Media Services account by name. @@ -2135,7 +2127,9 @@ public final class MediaservicesGetByResourceGroupSamples { */ public static void getAMediaServicesAccountByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().getByResourceGroupWithResponse("contoso", "contosotv", Context.NONE); + manager + .mediaservices() + .getByResourceGroupWithResponse("contoso", "contosotv", com.azure.core.util.Context.NONE); } } ``` @@ -2143,12 +2137,10 @@ public final class MediaservicesGetByResourceGroupSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -2157,7 +2149,7 @@ public final class MediaservicesListSamples { */ public static void listAllMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().list(Context.NONE); + manager.mediaservices().list(com.azure.core.util.Context.NONE); } } ``` @@ -2165,12 +2157,10 @@ public final class MediaservicesListSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -2179,7 +2169,7 @@ public final class MediaservicesListByResourceGroupSamples { */ public static void listAllMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().listByResourceGroup("contoso", Context.NONE); + manager.mediaservices().listByResourceGroup("contoso", com.azure.core.util.Context.NONE); } } ``` @@ -2187,13 +2177,12 @@ public final class MediaservicesListByResourceGroupSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json */ /** * Sample code: List the media edge policies. @@ -2207,7 +2196,7 @@ public final class MediaservicesListEdgePoliciesSamples { "contoso", "contososports", new ListEdgePoliciesInput().withDeviceId("contosiothubhost_contosoiotdevice"), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2215,13 +2204,12 @@ public final class MediaservicesListEdgePoliciesSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json */ /** * Sample code: Synchronizes Storage Account Keys. @@ -2233,7 +2221,10 @@ public final class MediaservicesSyncStorageKeysSamples { manager .mediaservices() .syncStorageKeysWithResponse( - "contoso", "contososports", new SyncStorageKeysInput().withId("contososportsstore"), Context.NONE); + "contoso", + "contososports", + new SyncStorageKeysInput().withId("contososportsstore"), + com.azure.core.util.Context.NONE); } } ``` @@ -2241,7 +2232,6 @@ public final class MediaservicesSyncStorageKeysSamples { ### Mediaservices_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.MediaService; import java.util.HashMap; import java.util.Map; @@ -2249,7 +2239,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json */ /** * Sample code: Update a Media Services accounts. @@ -2259,7 +2249,10 @@ public final class MediaservicesUpdateSamples { public static void updateAMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { MediaService resource = - manager.mediaservices().getByResourceGroupWithResponse("contoso", "contososports", Context.NONE).getValue(); + manager + .mediaservices() + .getByResourceGroupWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "value3")).apply(); } @@ -2279,12 +2272,10 @@ public final class MediaservicesUpdateSamples { ### 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/2022-08-01/examples/asset-tracks-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json */ /** * Sample code: Get result of asynchronous operation. @@ -2301,7 +2292,7 @@ public final class OperationResultsGetSamples { "ClimbingMountRainer", "text1", "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2309,12 +2300,10 @@ public final class OperationResultsGetSamples { ### 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/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-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. @@ -2331,11 +2320,11 @@ public final class OperationStatusesGetSamples { "ClimbingMountRainer", "text1", "86835197-3b47-402e-b313-70b82eaba296", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -2352,11 +2341,11 @@ public final class OperationStatusesGetSamples { "ClimbingMountRainer", "text1", "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. @@ -2373,7 +2362,7 @@ public final class OperationStatusesGetSamples { "ClimbingMountRainer", "text1", "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2381,12 +2370,10 @@ public final class OperationStatusesGetSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json */ /** * Sample code: List Operations. @@ -2394,7 +2381,7 @@ public final class OperationsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listOperations(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.operations().listWithResponse(Context.NONE); + manager.operations().listWithResponse(com.azure.core.util.Context.NONE); } } ``` @@ -2402,7 +2389,6 @@ public final class OperationsListSamples { ### 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; @@ -2410,7 +2396,7 @@ import com.azure.resourcemanager.mediaservices.models.PrivateLinkServiceConnecti /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json */ /** * Sample code: Update private endpoint connection. @@ -2422,7 +2408,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { PrivateEndpointConnection resource = manager .privateEndpointConnections() - .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE) + .getWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -2438,12 +2424,10 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json */ /** * Sample code: Delete private endpoint connection. @@ -2454,7 +2438,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .privateEndpointConnections() - .deleteWithResponse("contoso", "contososports", "connectionName1", Context.NONE); + .deleteWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE); } } ``` @@ -2462,12 +2446,10 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json */ /** * Sample code: Get private endpoint connection. @@ -2478,7 +2460,7 @@ public final class PrivateEndpointConnectionsGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .privateEndpointConnections() - .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE); + .getWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE); } } ``` @@ -2486,12 +2468,10 @@ public final class PrivateEndpointConnectionsGetSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json */ /** * Sample code: Get all private endpoint connections. @@ -2500,7 +2480,9 @@ public final class PrivateEndpointConnectionsListSamples { */ public static void getAllPrivateEndpointConnections( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateEndpointConnections().listWithResponse("contoso", "contososports", Context.NONE); + manager + .privateEndpointConnections() + .listWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } ``` @@ -2508,12 +2490,10 @@ public final class PrivateEndpointConnectionsListSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json */ /** * Sample code: Get details of a group ID. @@ -2521,7 +2501,9 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getDetailsOfAGroupID(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateLinkResources().getWithResponse("contoso", "contososports", "keydelivery", Context.NONE); + manager + .privateLinkResources() + .getWithResponse("contoso", "contososports", "keydelivery", com.azure.core.util.Context.NONE); } } ``` @@ -2529,12 +2511,10 @@ public final class PrivateLinkResourcesGetSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json */ /** * Sample code: Get list of all group IDs. @@ -2542,7 +2522,7 @@ public final class PrivateLinkResourcesListSamples { * @param manager Entry point to MediaServicesManager. */ public static void getListOfAllGroupIDs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateLinkResources().listWithResponse("contoso", "contososports", Context.NONE); + manager.privateLinkResources().listWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } ``` @@ -2550,12 +2530,10 @@ public final class PrivateLinkResourcesListSamples { ### StreamingEndpoints_AsyncOperation ```java -import com.azure.core.util.Context; - /** Samples for StreamingEndpoints AsyncOperation. */ public final class StreamingEndpointsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -2567,7 +2545,10 @@ public final class StreamingEndpointsAsyncOperationSamples { manager .streamingEndpoints() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } ``` @@ -2588,7 +2569,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. @@ -2614,11 +2595,11 @@ public final class StreamingEndpointsCreateSamples { .asList( new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id1") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2029-12-31T16:00:00-08:00")), new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id2") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2030-12-31T16:00:00-08:00"))))) .withIp( new IpAccessControl() @@ -2643,12 +2624,10 @@ public final class StreamingEndpointsCreateSamples { ### 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/2022-08-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. @@ -2656,7 +2635,9 @@ public final class StreamingEndpointsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().delete("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .delete("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } ``` @@ -2664,12 +2645,10 @@ public final class StreamingEndpointsDeleteSamples { ### 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/2022-08-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. @@ -2680,7 +2659,8 @@ public final class StreamingEndpointsGetSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingEndpoints() - .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + .getWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } ``` @@ -2688,12 +2668,10 @@ public final class StreamingEndpointsGetSamples { ### 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/2022-08-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. @@ -2701,7 +2679,7 @@ public final class StreamingEndpointsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllStreamingEndpoints(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().list("mediaresources", "slitestmedia10", Context.NONE); + manager.streamingEndpoints().list("mediaresources", "slitestmedia10", com.azure.core.util.Context.NONE); } } ``` @@ -2709,12 +2687,10 @@ public final class StreamingEndpointsListSamples { ### StreamingEndpoints_OperationLocation ```java -import com.azure.core.util.Context; - /** Samples for StreamingEndpoints OperationLocation. */ public final class StreamingEndpointsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -2730,7 +2706,7 @@ public final class StreamingEndpointsOperationLocationSamples { "slitestmedia10", "myStreamingEndpoint1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2738,13 +2714,12 @@ public final class StreamingEndpointsOperationLocationSamples { ### 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/2022-08-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. @@ -2759,7 +2734,7 @@ public final class StreamingEndpointsScaleSamples { "slitestmedia10", "myStreamingEndpoint1", new StreamingEntityScaleUnit().withScaleUnit(5), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -2767,12 +2742,10 @@ public final class StreamingEndpointsScaleSamples { ### 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/2022-08-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. @@ -2782,7 +2755,8 @@ public final class StreamingEndpointsSkusSamples { public static void listAStreamingEndpointSku(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingEndpoints() - .skusWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + .skusWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } ``` @@ -2790,12 +2764,10 @@ public final class StreamingEndpointsSkusSamples { ### 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/2022-08-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. @@ -2803,7 +2775,9 @@ public final class StreamingEndpointsStartSamples { * @param manager Entry point to MediaServicesManager. */ public static void startAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().start("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .start("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } ``` @@ -2811,12 +2785,10 @@ public final class StreamingEndpointsStartSamples { ### 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/2022-08-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. @@ -2824,7 +2796,9 @@ public final class StreamingEndpointsStopSamples { * @param manager Entry point to MediaServicesManager. */ public static void stopAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().stop("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .stop("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } ``` @@ -2832,7 +2806,6 @@ public final class StreamingEndpointsStopSamples { ### StreamingEndpoints_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.StreamingEndpoint; import java.util.HashMap; import java.util.Map; @@ -2840,7 +2813,7 @@ import java.util.Map; /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint. @@ -2851,7 +2824,8 @@ public final class StreamingEndpointsUpdateSamples { StreamingEndpoint resource = manager .streamingEndpoints() - .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE) + .getWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -2886,7 +2860,7 @@ import java.util.UUID; /** Samples for StreamingLocators Create. */ public final class StreamingLocatorsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json */ /** * Sample code: Creates a Streaming Locator with clear streaming. @@ -2905,7 +2879,7 @@ public final class StreamingLocatorsCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json */ /** * Sample code: Creates a Streaming Locator with secure streaming. @@ -2926,7 +2900,7 @@ public final class StreamingLocatorsCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json */ /** * Sample code: Creates a Streaming Locator with user defined content keys. @@ -2965,12 +2939,10 @@ public final class StreamingLocatorsCreateSamples { ### 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/2022-08-01/examples/streaming-locators-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json */ /** * Sample code: Delete a Streaming Locator. @@ -2980,7 +2952,7 @@ public final class StreamingLocatorsDeleteSamples { public static void deleteAStreamingLocator(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .deleteWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + .deleteWithResponse("contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } ``` @@ -2988,12 +2960,10 @@ public final class StreamingLocatorsDeleteSamples { ### 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/2022-08-01/examples/streaming-locators-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json */ /** * Sample code: Get a Streaming Locator by name. @@ -3002,7 +2972,9 @@ public final class StreamingLocatorsGetSamples { */ public static void getAStreamingLocatorByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingLocators().getWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + manager + .streamingLocators() + .getWithResponse("contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } ``` @@ -3010,12 +2982,10 @@ public final class StreamingLocatorsGetSamples { ### 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/2022-08-01/examples/streaming-locators-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json */ /** * Sample code: Lists Streaming Locators. @@ -3023,7 +2993,7 @@ public final class StreamingLocatorsListSamples { * @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); + manager.streamingLocators().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3031,12 +3001,10 @@ public final class StreamingLocatorsListSamples { ### 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/2022-08-01/examples/streaming-locators-list-content-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json */ /** * Sample code: List Content Keys. @@ -3046,7 +3014,8 @@ public final class StreamingLocatorsListContentKeysSamples { public static void listContentKeys(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listContentKeysWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE); + .listContentKeysWithResponse( + "contoso", "contosomedia", "secureStreamingLocator", com.azure.core.util.Context.NONE); } } ``` @@ -3054,12 +3023,10 @@ public final class StreamingLocatorsListContentKeysSamples { ### 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/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json */ /** * Sample code: List Paths which has streaming paths only. @@ -3070,11 +3037,12 @@ public final class StreamingLocatorsListPathsSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listPathsWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE); + .listPathsWithResponse( + "contoso", "contosomedia", "secureStreamingLocator", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json */ /** * Sample code: List Paths which has streaming paths and download paths. @@ -3085,7 +3053,8 @@ public final class StreamingLocatorsListPathsSamples { com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listPathsWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + .listPathsWithResponse( + "contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } ``` @@ -3115,7 +3084,7 @@ import java.util.Arrays; /** Samples for StreamingPolicies Create. */ public final class StreamingPoliciesCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json */ /** * Sample code: Creates a Streaming Policy with secure streaming. @@ -3139,8 +3108,7 @@ public final class StreamingPoliciesCreateSamples { .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .withCommonEncryptionCenc( new CommonEncryptionCenc() .withEnabledProtocols( @@ -3194,7 +3162,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc. @@ -3231,13 +3199,12 @@ public final class StreamingPoliciesCreateSamples { new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCenc only. @@ -3287,7 +3254,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCbcs only. @@ -3322,7 +3289,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs. @@ -3348,13 +3315,12 @@ public final class StreamingPoliciesCreateSamples { new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json */ /** * Sample code: Creates a Streaming Policy with clear streaming. @@ -3379,7 +3345,7 @@ public final class StreamingPoliciesCreateSamples { } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json */ /** * Sample code: Creates a Streaming Policy with envelopeEncryption only. @@ -3403,8 +3369,7 @@ public final class StreamingPoliciesCreateSamples { .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .create(); } } @@ -3413,12 +3378,10 @@ public final class StreamingPoliciesCreateSamples { ### 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/2022-08-01/examples/streaming-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json */ /** * Sample code: Delete a Streaming Policy. @@ -3429,7 +3392,10 @@ public final class StreamingPoliciesDeleteSamples { manager .streamingPolicies() .deleteWithResponse( - "contoso", "contosomedia", "secureStreamingPolicyWithCommonEncryptionCbcsOnly", Context.NONE); + "contoso", + "contosomedia", + "secureStreamingPolicyWithCommonEncryptionCbcsOnly", + com.azure.core.util.Context.NONE); } } ``` @@ -3437,12 +3403,10 @@ public final class StreamingPoliciesDeleteSamples { ### 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/2022-08-01/examples/streaming-policy-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json */ /** * Sample code: Get a Streaming Policy by name. @@ -3450,7 +3414,9 @@ public final class StreamingPoliciesGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAStreamingPolicyByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingPolicies().getWithResponse("contoso", "contosomedia", "clearStreamingPolicy", Context.NONE); + manager + .streamingPolicies() + .getWithResponse("contoso", "contosomedia", "clearStreamingPolicy", com.azure.core.util.Context.NONE); } } ``` @@ -3458,12 +3424,10 @@ public final class StreamingPoliciesGetSamples { ### 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/2022-08-01/examples/streaming-policies-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json */ /** * Sample code: Lists Streaming Policies. @@ -3471,7 +3435,7 @@ public final class StreamingPoliciesListSamples { * @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); + manager.streamingPolicies().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3485,7 +3449,7 @@ 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/2022-08-01/examples/asset-tracks-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json */ /** * Sample code: Creates a Track. @@ -3510,12 +3474,10 @@ public final class TracksCreateOrUpdateSamples { ### 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/2022-08-01/examples/asset-tracks-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json */ /** * Sample code: Delete a Track. @@ -3523,7 +3485,9 @@ public final class TracksDeleteSamples { * @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); + manager + .tracks() + .delete("contoso", "contosomedia", "ClimbingMountRainer", "text2", com.azure.core.util.Context.NONE); } } ``` @@ -3531,12 +3495,10 @@ public final class TracksDeleteSamples { ### 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/2022-08-01/examples/asset-tracks-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json */ /** * Sample code: Get a Track by name. @@ -3544,7 +3506,10 @@ public final class TracksGetSamples { * @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); + manager + .tracks() + .getWithResponse( + "contoso", "contosomedia", "ClimbingMountRainer", "text1", com.azure.core.util.Context.NONE); } } ``` @@ -3552,12 +3517,10 @@ public final class TracksGetSamples { ### 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/2022-08-01/examples/asset-tracks-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json */ /** * Sample code: Lists all Tracks. @@ -3565,7 +3528,7 @@ public final class TracksListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listsAllTracks(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.tracks().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE); + manager.tracks().list("contoso", "contosomedia", "ClimbingMountRainer", com.azure.core.util.Context.NONE); } } ``` @@ -3573,14 +3536,13 @@ public final class TracksListSamples { ### 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/2022-08-01/examples/asset-tracks-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json */ /** * Sample code: Update a Track. @@ -3591,7 +3553,8 @@ public final class TracksUpdateSamples { AssetTrack resource = manager .tracks() - .getWithResponse("contoso", "contosomedia", "ClimbingMountRainer", "text1", Context.NONE) + .getWithResponse( + "contoso", "contosomedia", "ClimbingMountRainer", "text1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTrack(new TextTrack().withDisplayName("A new name")).apply(); } @@ -3601,12 +3564,10 @@ public final class TracksUpdateSamples { ### 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/2022-08-01/examples/asset-tracks-update-data.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json */ /** * Sample code: Update the data for a tracks. @@ -3614,7 +3575,10 @@ public final class TracksUpdateTrackDataSamples { * @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); + manager + .tracks() + .updateTrackData( + "contoso", "contosomedia", "ClimbingMountRainer", "text2", com.azure.core.util.Context.NONE); } } ``` @@ -3630,7 +3594,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json */ /** * Sample code: Create or update a Transform. @@ -3658,12 +3622,10 @@ public final class TransformsCreateOrUpdateSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json */ /** * Sample code: Delete a Transform. @@ -3671,7 +3633,10 @@ public final class TransformsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.transforms().deleteWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE); + manager + .transforms() + .deleteWithResponse( + "contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE); } } ``` @@ -3679,12 +3644,10 @@ public final class TransformsDeleteSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json */ /** * Sample code: Get a Transform by name. @@ -3692,7 +3655,9 @@ public final class TransformsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getATransformByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.transforms().getWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE); + manager + .transforms() + .getWithResponse("contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE); } } ``` @@ -3700,12 +3665,10 @@ public final class TransformsGetSamples { ### 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json */ /** * Sample code: Lists the Transforms filter by created. @@ -3719,14 +3682,14 @@ public final class TransformsListSamples { .list( "contosoresources", "contosomedia", - "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le" + + " 2021-06-01T00:00:10.0000000Z", "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json */ /** * Sample code: Lists the Transforms filter by name. @@ -3742,11 +3705,11 @@ public final class TransformsListSamples { "contosomedia", "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", "name desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json */ /** * Sample code: Lists the Transforms filter by lastmodified. @@ -3760,14 +3723,14 @@ public final class TransformsListSamples { .list( "contosoresources", "contosomedia", - "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:10.0000000Z", "properties/lastmodified desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json */ /** * Sample code: Lists the Transforms. @@ -3775,7 +3738,7 @@ public final class TransformsListSamples { * @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); + manager.transforms().list("contosoresources", "contosomedia", null, null, com.azure.core.util.Context.NONE); } } ``` @@ -3783,7 +3746,6 @@ public final class TransformsListSamples { ### 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; @@ -3794,7 +3756,7 @@ 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json */ /** * Sample code: Update a Transform. @@ -3805,7 +3767,8 @@ public final class TransformsUpdateSamples { Transform resource = manager .transforms() - .getWithResponse("contosoresources", "contosomedia", "transformToUpdate", Context.NONE) + .getWithResponse( + "contosoresources", "contosomedia", "transformToUpdate", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml b/sdk/mediaservices/azure-resourcemanager-mediaservices/pom.xml index c5912c6ce108..158cbf48756e 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-metadata-2022-08. + 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-encoding-2022-07. 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 e999753e7b67..398e2f1b320b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/MediaServicesManager.java @@ -283,7 +283,7 @@ public MediaServicesManager authenticate(TokenCredential credential, AzureProfil .append("-") .append("com.azure.resourcemanager.mediaservices") .append("/") - .append("2.2.0"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/AccountFiltersClient.java index aec462332713..6f9cb4d3348a 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 @@ -44,22 +44,6 @@ public interface AccountFiltersClient { @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String resourceGroupName, String accountName, Context context); - /** - * Get an Account Filter. - * - *

Get the details of an Account Filter in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param filterName The Account Filter 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 an Account Filter in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner get(String resourceGroupName, String accountName, String filterName); - /** * Get an Account Filter. * @@ -79,22 +63,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context); /** - * Create or update an Account Filter + * Get an Account Filter. * - *

Creates or updates an Account Filter in the Media Services account. + *

Get the details of an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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 Account Filter. + * @return the details of an Account Filter in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner createOrUpdate( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); + AccountFilterInner get(String resourceGroupName, String accountName, String filterName); /** * Create or update an Account Filter @@ -120,19 +102,22 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Account Filter. + * Create or update an Account Filter * - *

Deletes an Account Filter in the Media Services account. + *

Creates or updates an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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 Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String filterName); + AccountFilterInner createOrUpdate( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); /** * Delete an Account Filter. @@ -152,22 +137,19 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** - * Update an Account Filter + * Delete an Account Filter. * - *

Updates an existing Account Filter in the Media Services account. + *

Deletes an Account Filter in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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 Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - AccountFilterInner update( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); + void delete(String resourceGroupName, String accountName, String filterName); /** * Update an Account Filter @@ -191,4 +173,22 @@ Response updateWithResponse( String filterName, AccountFilterInner parameters, Context context); + + /** + * Update an Account Filter + * + *

Updates an existing Account Filter in the Media Services account. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param filterName The Account Filter 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 Account Filter. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AccountFilterInner update( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters); } 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 e8e448e825ec..fabde06a579d 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 @@ -47,23 +47,6 @@ public interface AssetFiltersClient { PagedIterable list( String resourceGroupName, String accountName, String assetName, Context context); - /** - * Get an Asset Filter. - * - *

Get the details of an Asset Filter associated with the specified Asset. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param assetName The Asset name. - * @param filterName The Asset Filter 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 an Asset Filter associated with the specified Asset. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName); - /** * Get an Asset Filter. * @@ -84,23 +67,21 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Create or update an Asset Filter + * Get an Asset Filter. * - *

Creates or updates an Asset Filter associated with the specified Asset. + *

Get the details of an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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 Filter. + * @return the details of an Asset Filter associated with the specified Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner createOrUpdate( - String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); + AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName); /** * Create or update an Asset Filter @@ -128,20 +109,23 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete an Asset Filter. + * Create or update an Asset Filter * - *

Deletes an Asset Filter associated with the specified Asset. + *

Creates or updates an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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 Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String assetName, String filterName); + AssetFilterInner createOrUpdate( + String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); /** * Delete an Asset Filter. @@ -163,23 +147,20 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** - * Update an Asset Filter + * Delete an Asset Filter. * - *

Updates an existing Asset Filter associated with the specified Asset. + *

Deletes an Asset Filter associated with the specified Asset. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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 Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetFilterInner update( - String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); + void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** * Update an Asset Filter @@ -205,4 +186,23 @@ Response updateWithResponse( String filterName, AssetFilterInner parameters, Context context); + + /** + * Update an Asset Filter + * + *

Updates an existing Asset Filter associated with the specified Asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param assetName The Asset name. + * @param filterName The Asset Filter 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 Filter. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AssetFilterInner update( + String resourceGroupName, String accountName, String assetName, String filterName, AssetFilterInner parameters); } 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 9c35e9aa5285..cd20d6c0520b 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 @@ -53,22 +53,6 @@ public interface AssetsClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get an Asset - * - *

Get the details of an Asset in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @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 the details of an Asset in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner get(String resourceGroupName, String accountName, String assetName); - /** * Get an Asset * @@ -88,21 +72,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * Create or update an Asset + * Get an Asset * - *

Creates or updates an Asset in the Media Services account. + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset 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. + * @return the details of an Asset in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters); + AssetInner get(String resourceGroupName, String accountName, String assetName); /** * Create or update an Asset @@ -124,19 +107,21 @@ Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * Delete an Asset. + * Create or update an Asset * - *

Deletes an Asset in the Media Services account. + *

Creates or updates an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String assetName); + AssetInner createOrUpdate(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** * Delete an Asset. @@ -156,21 +141,19 @@ Response createOrUpdateWithResponse( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Update an Asset + * Delete an Asset. * - *

Updates an existing Asset in the Media Services account. + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset 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. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters); + void delete(String resourceGroupName, String accountName, String assetName); /** * Update an Asset @@ -192,10 +175,9 @@ Response updateWithResponse( String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context); /** - * List the Asset URLs + * Update an Asset * - *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. - * The signatures are derived from the storage account keys. + *

Updates an existing Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -204,11 +186,10 @@ 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 Asset Storage container SAS URLs. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetContainerSasInner listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); + AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters); /** * List the Asset URLs @@ -235,21 +216,23 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage key + * List the Asset URLs * - *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset Storage container SAS URLs. */ @ServiceMethod(returns = ReturnType.SINGLE) - StorageEncryptedAssetDecryptionDataInner getEncryptionKey( - String resourceGroupName, String accountName, String assetName); + AssetContainerSasInner listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** * Gets the Asset storage key @@ -271,9 +254,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * List Streaming Locators + * Gets the Asset storage key * - *

Lists Streaming Locators which are associated with this asset. + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -281,10 +264,10 @@ Response getEncryptionKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListStreamingLocatorsResponseInner listStreamingLocators( + StorageEncryptedAssetDecryptionDataInner getEncryptionKey( String resourceGroupName, String accountName, String assetName); /** @@ -304,4 +287,21 @@ ListStreamingLocatorsResponseInner listStreamingLocators( @ServiceMethod(returns = ReturnType.SINGLE) Response listStreamingLocatorsWithResponse( String resourceGroupName, String accountName, String assetName, Context context); + + /** + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @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 the Streaming Locators associated with this Asset. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListStreamingLocatorsResponseInner listStreamingLocators( + String resourceGroupName, String accountName, String assetName); } 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 397f799b7a1a..f3266a405cba 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 @@ -50,22 +50,6 @@ public interface ContentKeyPoliciesClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get a Content Key Policy - * - *

Get the details of a Content Key Policy in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName); - /** * Get a Content Key Policy * @@ -85,22 +69,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Create or update an Content Key Policy + * Get a Content Key Policy * - *

Create or update a Content Key Policy in the Media Services account. + *

Get the details of a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy resource. + * @return the details of a Content Key Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner createOrUpdate( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); + ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Create or update an Content Key Policy @@ -126,19 +108,22 @@ Response createOrUpdateWithResponse( Context context); /** - * Delete a Content Key Policy + * Create or update an Content Key Policy * - *

Deletes a Content Key Policy in the Media Services account. + *

Create or update a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); + ContentKeyPolicyInner createOrUpdate( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** * Delete a Content Key Policy @@ -159,22 +144,19 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** - * Update a Content Key Policy + * Delete a Content Key Policy * - *

Updates an existing Content Key Policy in the Media Services account. + *

Deletes a Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyInner update( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); + void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Update a Content Key Policy @@ -200,21 +182,22 @@ Response updateWithResponse( Context context); /** - * Get a Content Key Policy with secrets + * Update a Content Key Policy * - *

Get a Content Key Policy including secret values. + *

Updates an existing Content Key Policy in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy including secret values. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName); + ContentKeyPolicyInner update( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters); /** * Get a Content Key Policy with secrets @@ -233,4 +216,21 @@ ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( @ServiceMethod(returns = ReturnType.SINGLE) Response getPolicyPropertiesWithSecretsWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + + /** + * Get a Content Key Policy with secrets + * + *

Get a Content Key Policy including secret values. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy including secret values. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName); } 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 f5d919f2b364..3e5bfa6ad713 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 @@ -54,23 +54,6 @@ PagedIterable list( String orderby, Context context); - /** - * Get Job - * - *

Gets a Job. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param transformName The Transform name. - * @param jobName The Job 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 Job. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - JobInner get(String resourceGroupName, String accountName, String transformName, String jobName); - /** * Get Job * @@ -91,23 +74,21 @@ Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Create Job + * Get Job * - *

Creates a Job. + *

Gets a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job resource type. + * @return a Job. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner create( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); + JobInner get(String resourceGroupName, String accountName, String transformName, String jobName); /** * Create Job @@ -135,20 +116,23 @@ Response createWithResponse( Context context); /** - * Delete Job + * Create Job * - *

Deletes a Job. + *

Creates a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String transformName, String jobName); + JobInner create( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** * Delete Job @@ -170,24 +154,20 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** - * Update Job + * Delete Job * - *

Update is only supported for description and priority. Updating Priority will take effect when the Job state - * is Queued or Scheduled and depending on the timing the priority update may be ignored. + *

Deletes a Job. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - JobInner update( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); + void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** * Update Job @@ -216,20 +196,24 @@ Response updateWithResponse( Context context); /** - * Cancel Job + * Update Job * - *

Cancel a Job. + *

Update is only supported for description and priority. Updating Priority will take effect when the Job state + * is Queued or Scheduled and depending on the timing the priority update may be ignored. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); + JobInner update( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters); /** * Cancel Job @@ -249,4 +233,20 @@ Response updateWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response cancelJobWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context); + + /** + * Cancel Job + * + *

Cancel a Job. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param transformName The Transform name. + * @param jobName The Job 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 cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); } 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 23f14b074fa6..f4b6b2bef027 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 @@ -56,13 +56,15 @@ public interface LiveEventsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. + * @param 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 properties of a live event. + * @return properties of a live event along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner get(String resourceGroupName, String accountName, String liveEventName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context); /** * Get Live Event @@ -72,15 +74,13 @@ public interface LiveEventsClient { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param 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 properties of a live event along with {@link Response}. + * @return properties of a live event. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context); + LiveEventInner get(String resourceGroupName, String accountName, String liveEventName); /** * Create Live Event @@ -91,7 +91,6 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -99,11 +98,7 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, LiveEventInner> beginCreate( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart); + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters); /** * Create Live Event @@ -130,29 +125,6 @@ SyncPoller, LiveEventInner> beginCreate( Boolean autoStart, Context context); - /** - * Create Live Event - * - *

Creates a new live event. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param liveEventName The name of the live event, maximum length is 32. - * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner create( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart); - /** * Create Live Event * @@ -618,13 +590,15 @@ SyncPoller, Void> beginReset( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -634,15 +608,13 @@ SyncPoller, Void> beginReset( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -653,14 +625,15 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveEventInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); /** * Get operation status. @@ -671,13 +644,12 @@ LiveEventInner operationLocation( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); + LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId); } 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 ba1afabd8109..7cb9b2b45bed 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 @@ -59,13 +59,15 @@ PagedIterable list( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output. + * @return a live output along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveOutputInner get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); + Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** * Get Live Output @@ -76,15 +78,13 @@ PagedIterable list( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); + LiveOutputInner get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** * Create Live Output @@ -261,13 +261,15 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -277,15 +279,13 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -297,14 +297,20 @@ Response asyncOperationWithResponse( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - LiveOutputInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); /** * Get operation status. @@ -316,18 +322,12 @@ LiveOutputInner operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context); + LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); } 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 a648c8ef1f48..950e115b6854 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 @@ -20,14 +20,15 @@ public interface LocationsClient { * * @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) - EntityNameAvailabilityCheckOutputInner checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters); + Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context); /** * Check Name Availability @@ -36,13 +37,12 @@ EntityNameAvailabilityCheckOutputInner checkNameAvailability( * * @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 along with {@link Response}. + * @return the response from the check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context); + EntityNameAvailabilityCheckOutputInner checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java index 79bfb376866b..33f2f1488c8a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationResultsClient.java @@ -19,13 +19,14 @@ public interface MediaServicesOperationResultsClient { * * @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) - MediaServiceInner get(String locationName, String operationId); + MediaServicesOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context); /** * Get operation result. @@ -34,12 +35,11 @@ public interface MediaServicesOperationResultsClient { * * @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) - MediaServicesOperationResultsGetResponse getWithResponse(String locationName, String operationId, Context context); + MediaServiceInner get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java index d01953576ccc..37e9e18dd939 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/MediaServicesOperationStatusesClient.java @@ -19,13 +19,15 @@ public interface MediaServicesOperationStatusesClient { * * @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. + * @return media service operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServiceOperationStatusInner get(String locationName, String operationId); + Response getWithResponse( + String locationName, String operationId, Context context); /** * Get operation status. @@ -34,13 +36,11 @@ public interface MediaServicesOperationStatusesClient { * * @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}. + * @return media service operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String locationName, String operationId, Context context); + MediaServiceOperationStatusInner get(String locationName, String operationId); } 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 5408e2dfb442..d8a491d3e34a 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 @@ -55,13 +55,15 @@ public interface MediaservicesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get a Media Services account @@ -70,15 +72,13 @@ public interface MediaservicesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName); /** * Create or update a Media Services account @@ -156,12 +156,14 @@ MediaServiceInner createOrUpdate( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName); + Response deleteWithResponse(String resourceGroupName, String accountName, Context context); /** * Delete a Media Services account. @@ -170,14 +172,12 @@ MediaServiceInner createOrUpdate( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String accountName, Context context); + void delete(String resourceGroupName, String accountName); /** * Update a Media Services account @@ -256,12 +256,15 @@ MediaServiceInner update( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -271,15 +274,12 @@ MediaServiceInner update( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -289,13 +289,15 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -305,15 +307,13 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); + EdgePoliciesInner listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** * List Media Services accounts diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java index bc9e66f81e84..6cf80e1de543 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationResultsClient.java @@ -22,14 +22,20 @@ public interface OperationResultsClient { * @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) - AssetTrackInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + OperationResultsGetResponse getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation result. @@ -41,18 +47,12 @@ AssetTrackInner get( * @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); + AssetTrackInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java index 130ec62a46c8..216b4b0114cf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/OperationStatusesClient.java @@ -22,14 +22,20 @@ public interface OperationStatusesClient { * @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. + * @return asset track operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetTrackOperationStatusInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation status. @@ -41,18 +47,12 @@ AssetTrackOperationStatusInner get( * @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}. + * @return asset track operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrackOperationStatusInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } 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 6afa1d17403b..4915495ed0b7 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 @@ -17,24 +17,24 @@ public interface OperationsClient { * *

Lists all the Media Services operations. * + * @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 Operation items. + * @return a collection of Operation items along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - OperationCollectionInner list(); + Response listWithResponse(Context context); /** * List Operations * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return a collection of Operation items. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse(Context context); + OperationCollectionInner list(); } 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 a351f3db07ad..215c064d7cb9 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 @@ -20,13 +20,16 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * List private endpoint connections. @@ -35,16 +38,13 @@ public interface PrivateEndpointConnectionsClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName); /** * Get private endpoint connection. @@ -54,13 +54,15 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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 private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get private endpoint connection. @@ -70,15 +72,13 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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 private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name); /** * Update a private endpoint connection. @@ -89,14 +89,19 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param name The name parameter. * @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 Private Endpoint Connection resource. + * @return the Private Endpoint Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner createOrUpdate( - String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters); + Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String name, + PrivateEndpointConnectionInner parameters, + Context context); /** * Update a private endpoint connection. @@ -107,19 +112,14 @@ PrivateEndpointConnectionInner createOrUpdate( * @param accountName The Media Services account name. * @param name The name parameter. * @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 Private Endpoint Connection resource along with {@link Response}. + * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String name, - PrivateEndpointConnectionInner parameters, - Context context); + PrivateEndpointConnectionInner createOrUpdate( + String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters); /** * Delete a private endpoint connection. @@ -129,12 +129,14 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String name); + Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); /** * Delete a private endpoint connection. @@ -144,12 +146,10 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); + void delete(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/PrivateLinkResourcesClient.java index 1229eef90c37..e6408854d7b3 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 @@ -20,13 +20,15 @@ public interface PrivateLinkResourcesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private link resources. + * @return a list of private link resources along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get list of group IDs. @@ -35,15 +37,13 @@ public interface PrivateLinkResourcesClient { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private link resources along with {@link Response}. + * @return a list of private link resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName); /** * Get group ID. @@ -53,13 +53,15 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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 details of a group ID. + * @return details of a group ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get group ID. @@ -69,13 +71,11 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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 details of a group ID along with {@link Response}. + * @return details of a group ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/StreamingEndpointsClient.java index 1de41352d9a7..49c81e44e4c5 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 @@ -57,13 +57,15 @@ public interface StreamingEndpointsClient { * @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 a streaming endpoint. + * @return a streaming endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * Get StreamingEndpoint @@ -73,15 +75,13 @@ public interface StreamingEndpointsClient { * @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 a streaming endpoint along with {@link Response}. + * @return a streaming endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName); /** * Create StreamingEndpoint @@ -92,7 +92,6 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -100,11 +99,7 @@ Response getWithResponse( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, StreamingEndpointInner> beginCreate( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart); + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters); /** * Create StreamingEndpoint @@ -131,29 +126,6 @@ SyncPoller, StreamingEndpointInner> beginCrea Boolean autoStart, Context context); - /** - * Create StreamingEndpoint - * - *

Creates a streaming endpoint. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner create( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart); - /** * Create StreamingEndpoint * @@ -353,14 +325,15 @@ SyncPoller, Void> beginDelete( * @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 response. + * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointSkuInfoListResultInner skus( - String resourceGroupName, String accountName, String streamingEndpointName); + Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * List StreamingEndpoint skus @@ -370,15 +343,14 @@ StreamingEndpointSkuInfoListResultInner 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 response body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointSkuInfoListResultInner skus( + String resourceGroupName, String accountName, String streamingEndpointName); /** * Start StreamingEndpoint @@ -606,13 +578,15 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -622,15 +596,13 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -641,14 +613,19 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingEndpointInner operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); /** * Get operation status. @@ -659,17 +636,12 @@ StreamingEndpointInner operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context); + StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); } 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 7f427fdb3c2f..eef8a8f40a11 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 @@ -51,22 +51,6 @@ public interface StreamingLocatorsClient { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get a Streaming Locator - * - *

Get the details of a Streaming Locator in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingLocatorName The Streaming Locator 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 Streaming Locator in the Media Services account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName); - /** * Get a Streaming Locator * @@ -86,22 +70,20 @@ Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * Create a Streaming Locator + * Get a Streaming Locator * - *

Create a Streaming Locator in the Media Services account. + *

Get the details of a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 Streaming Locator resource. + * @return the details of a Streaming Locator in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingLocatorInner create( - String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters); + StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName); /** * Create a Streaming Locator @@ -127,19 +109,22 @@ Response createWithResponse( Context context); /** - * Delete a Streaming Locator + * Create a Streaming Locator * - *

Deletes a Streaming Locator in the Media Services account. + *

Create a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 Streaming Locator resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String streamingLocatorName); + StreamingLocatorInner create( + String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters); /** * Delete a Streaming Locator @@ -160,9 +145,9 @@ Response deleteWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Content Keys + * Delete a Streaming Locator * - *

List Content Keys used by this Streaming Locator. + *

Deletes a Streaming Locator in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -170,11 +155,9 @@ Response deleteWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListContentKeysResponseInner listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName); + void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Content Keys @@ -195,9 +178,9 @@ Response listContentKeysWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** - * List Paths + * List Content Keys * - *

List Paths supported by this Streaming Locator. + *

List Content Keys used by this Streaming Locator. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -205,10 +188,11 @@ 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 listContentKeys action. */ @ServiceMethod(returns = ReturnType.SINGLE) - ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName); + ListContentKeysResponseInner listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName); /** * List Paths @@ -227,4 +211,20 @@ Response listContentKeysWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) Response listPathsWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context); + + /** + * List Paths + * + *

List Paths supported by this Streaming Locator. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingLocatorName The Streaming Locator 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 class of response for listPaths action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName); } 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 26253116c8f5..d41802545868 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 @@ -57,13 +57,15 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 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) - StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Get a Streaming Policy @@ -73,15 +75,13 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName); /** * Create a Streaming Policy @@ -92,14 +92,19 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 Streaming Policy resource. + * @return a Streaming Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - StreamingPolicyInner create( - String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters); + Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingPolicyName, + StreamingPolicyInner parameters, + Context context); /** * Create a Streaming Policy @@ -110,19 +115,14 @@ StreamingPolicyInner create( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 Streaming Policy resource along with {@link Response}. + * @return a Streaming Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingPolicyName, - StreamingPolicyInner parameters, - Context context); + StreamingPolicyInner create( + String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters); /** * Delete a Streaming Policy @@ -132,12 +132,15 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String streamingPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Delete a Streaming Policy @@ -147,13 +150,10 @@ Response createWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String streamingPolicyName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java index 0c7fead19204..5b3804c5c9c2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/TracksClient.java @@ -58,13 +58,15 @@ PagedIterable list( * @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. + * @return the details of a Track in the Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName); + Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** * Get a Track @@ -75,15 +77,13 @@ PagedIterable list( * @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}. + * @return the details of a Track in the Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context); + AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName); /** * Create or update a Track 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 8b850c20d3e8..53ac450e1d1c 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 @@ -55,13 +55,15 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform. + * @return a Transform along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - TransformInner get(String resourceGroupName, String accountName, String transformName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Get Transform @@ -71,15 +73,13 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform along with {@link Response}. + * @return a Transform. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + TransformInner get(String resourceGroupName, String accountName, String transformName); /** * Create or Update Transform @@ -90,15 +90,16 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform 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 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) - TransformInner createOrUpdate( - String resourceGroupName, String accountName, String transformName, TransformInner parameters); + Response createOrUpdateWithResponse( + String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); /** * Create or Update Transform @@ -109,16 +110,15 @@ TransformInner createOrUpdate( * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); + TransformInner createOrUpdate( + String resourceGroupName, String accountName, String transformName, TransformInner parameters); /** * Delete Transform @@ -128,12 +128,15 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String transformName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Delete Transform @@ -143,15 +146,12 @@ Response createOrUpdateWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + void delete(String resourceGroupName, String accountName, String transformName); /** * Update Transform @@ -162,15 +162,16 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform 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 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) - TransformInner update( - String resourceGroupName, String accountName, String transformName, TransformInner parameters); + Response updateWithResponse( + String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); /** * Update Transform @@ -181,14 +182,13 @@ TransformInner update( * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse( - String resourceGroupName, String accountName, String transformName, TransformInner parameters, Context context); + TransformInner update( + String resourceGroupName, String accountName, String transformName, TransformInner parameters); } 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 fb29b76fa382..01092ac158f3 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 @@ -28,6 +28,10 @@ public final class AccountFilterInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AccountFilterInner class. */ + public AccountFilterInner() { + } + /** * Get the innerProperties property: The Media Filter properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java index 04bb80a57012..a8505a2a9b40 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AssetContainerSasInner.java @@ -17,6 +17,10 @@ public final class AssetContainerSasInner { @JsonProperty(value = "assetContainerSasUrls") private List assetContainerSasUrls; + /** Creates an instance of AssetContainerSasInner class. */ + public AssetContainerSasInner() { + } + /** * Get the assetContainerSasUrls property: The list of Asset container SAS URLs. * 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 1367005f089e..a34ee5e8f8cd 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 @@ -28,6 +28,10 @@ public final class AssetFilterInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AssetFilterInner class. */ + public AssetFilterInner() { + } + /** * Get the innerProperties property: The Media Filter properties. * 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 b3d9e4f54bd1..d99e84e0ce36 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 @@ -27,6 +27,10 @@ public final class AssetInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of AssetInner class. */ + public AssetInner() { + } + /** * Get the innerProperties property: The resource properties. * 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 index 184b32936cf9..28bf1982a72f 100644 --- 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 @@ -61,6 +61,10 @@ public final class AssetProperties { @JsonProperty(value = "storageEncryptionFormat", access = JsonProperty.Access.WRITE_ONLY) private AssetStorageEncryptionFormat storageEncryptionFormat; + /** Creates an instance of AssetProperties class. */ + public AssetProperties() { + } + /** * Get the assetId property: The Asset ID. * 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 index ab5d3464f0cc..897cd1ba01dc 100644 --- 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 @@ -19,6 +19,10 @@ public final class AssetTrackInner extends ProxyResource { @JsonProperty(value = "properties") private AssetTrackProperties innerProperties; + /** Creates an instance of AssetTrackInner class. */ + public AssetTrackInner() { + } + /** * Get the innerProperties property: The resource properties. * 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 index 012714e3856b..be802800a060 100644 --- 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 @@ -49,6 +49,10 @@ public final class AssetTrackOperationStatusInner { @JsonProperty(value = "error") private ManagementError error; + /** Creates an instance of AssetTrackOperationStatusInner class. */ + public AssetTrackOperationStatusInner() { + } + /** * Get the name property: Operation identifier. * 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 index 9269a1e5dcb2..19f73e5eca66 100644 --- 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 @@ -24,6 +24,10 @@ public final class AssetTrackProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private ProvisioningState provisioningState; + /** Creates an instance of AssetTrackProperties class. */ + public AssetTrackProperties() { + } + /** * Get the track property: Detailed information about a track in the asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java index 444bd5ac9db4..b85e79bc6f62 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/AsyncOperationResultInner.java @@ -30,6 +30,10 @@ public final class AsyncOperationResultInner { @JsonProperty(value = "status") private AsyncOperationStatus status; + /** Creates an instance of AsyncOperationResultInner class. */ + public AsyncOperationResultInner() { + } + /** * Get the error property: The error object. * 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 b960bc6ad9f9..0a639b0bdf1b 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 @@ -28,6 +28,10 @@ public final class ContentKeyPolicyInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ContentKeyPolicyInner class. */ + public ContentKeyPolicyInner() { + } + /** * Get the innerProperties property: The properties of the Content Key Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java index 0159e22f2288..84417a46eccd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ContentKeyPolicyPropertiesInner.java @@ -45,6 +45,10 @@ public final class ContentKeyPolicyPropertiesInner { @JsonProperty(value = "options", required = true) private List options; + /** Creates an instance of ContentKeyPolicyPropertiesInner class. */ + public ContentKeyPolicyPropertiesInner() { + } + /** * Get the policyId property: The legacy Policy ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java index d6fcdfdd4496..d2e2b10b7225 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EdgePoliciesInner.java @@ -17,6 +17,10 @@ public final class EdgePoliciesInner { @JsonProperty(value = "usageDataCollectionPolicy") private EdgeUsageDataCollectionPolicy usageDataCollectionPolicy; + /** Creates an instance of EdgePoliciesInner class. */ + public EdgePoliciesInner() { + } + /** * Get the usageDataCollectionPolicy property: The usageDataCollectionPolicy property. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java index 9b2bc23a424d..8e043b23259c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/EntityNameAvailabilityCheckOutputInner.java @@ -28,6 +28,10 @@ public final class EntityNameAvailabilityCheckOutputInner { @JsonProperty(value = "message") private String message; + /** Creates an instance of EntityNameAvailabilityCheckOutputInner class. */ + public EntityNameAvailabilityCheckOutputInner() { + } + /** * Get the nameAvailable property: Specifies if the name is available. * 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 4735597a2e8a..76b099d9f6fc 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 @@ -34,6 +34,10 @@ public final class JobInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of JobInner class. */ + public JobInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java index 250a6ac656da..f0ab9ecf309e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/JobProperties.java @@ -81,6 +81,10 @@ public final class JobProperties { @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime endTime; + /** Creates an instance of JobProperties class. */ + public JobProperties() { + } + /** * Get the created property: The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' * format. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java index def2efb17c89..1ba9b1c99771 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListContentKeysResponseInner.java @@ -18,6 +18,10 @@ public final class ListContentKeysResponseInner { @JsonProperty(value = "contentKeys") private List contentKeys; + /** Creates an instance of ListContentKeysResponseInner class. */ + public ListContentKeysResponseInner() { + } + /** * Get the contentKeys property: ContentKeys used by current Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java index 7900c7d49857..681afc547ed9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListPathsResponseInner.java @@ -24,6 +24,10 @@ public final class ListPathsResponseInner { @JsonProperty(value = "downloadPaths") private List downloadPaths; + /** Creates an instance of ListPathsResponseInner class. */ + public ListPathsResponseInner() { + } + /** * Get the streamingPaths property: Streaming Paths supported by current Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java index 672972f27683..338292ffa60a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/ListStreamingLocatorsResponseInner.java @@ -18,6 +18,10 @@ public final class ListStreamingLocatorsResponseInner { @JsonProperty(value = "streamingLocators", access = JsonProperty.Access.WRITE_ONLY) private List streamingLocators; + /** Creates an instance of ListStreamingLocatorsResponseInner class. */ + public ListStreamingLocatorsResponseInner() { + } + /** * Get the streamingLocators property: The list of Streaming Locators. * 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 767268a01a03..4b1d58f7cde4 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 @@ -34,6 +34,10 @@ public final class LiveEventInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of LiveEventInner class. */ + public LiveEventInner() { + } + /** * Get the innerProperties property: The live event properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java index 83cae0d56801..fcccbbeb1c10 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveEventProperties.java @@ -105,6 +105,10 @@ public final class LiveEventProperties { @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; + /** Creates an instance of LiveEventProperties class. */ + public LiveEventProperties() { + } + /** * Get the description property: A description for the live event. * 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 f3247a69ba71..420acd0d4706 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 @@ -28,6 +28,10 @@ public final class LiveOutputInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of LiveOutputInner class. */ + public LiveOutputInner() { + } + /** * Get the innerProperties property: Live output properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java index 29fb1f6e455d..2b493f01c909 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/LiveOutputProperties.java @@ -86,6 +86,10 @@ public final class LiveOutputProperties { @JsonProperty(value = "resourceState", access = JsonProperty.Access.WRITE_ONLY) private LiveOutputResourceState resourceState; + /** Creates an instance of LiveOutputProperties class. */ + public LiveOutputProperties() { + } + /** * Get the description property: The description of the live output. * 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 index 83d3ac32eb5d..17cc3da3af96 100644 --- 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 @@ -32,6 +32,10 @@ public final class MediaFilterProperties { @JsonProperty(value = "tracks") private List tracks; + /** Creates an instance of MediaFilterProperties class. */ + public MediaFilterProperties() { + } + /** * Get the presentationTimeRange property: The presentation time range. * 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 bdcdcb4e5788..f7e05b07a90c 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 @@ -40,6 +40,10 @@ public final class MediaServiceInner extends Resource { @JsonProperty(value = "identity") private MediaServiceIdentity identity; + /** Creates an instance of MediaServiceInner class. */ + public MediaServiceInner() { + } + /** * Get the innerProperties property: The resource properties. * 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 index 5b72ed4f13f1..254bb719326b 100644 --- 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 @@ -49,6 +49,10 @@ public final class MediaServiceOperationStatusInner { @JsonProperty(value = "error") private ManagementError error; + /** Creates an instance of MediaServiceOperationStatusInner class. */ + public MediaServiceOperationStatusInner() { + } + /** * Get the name property: Operation identifier. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java index 2ef1846a4597..d9038a8ac7f7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/MediaServiceProperties.java @@ -66,6 +66,10 @@ public final class MediaServiceProperties { @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; + /** Creates an instance of MediaServiceProperties class. */ + public MediaServiceProperties() { + } + /** * Get the mediaServiceId property: The Media Services account ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java index fe7b987cb9c8..01e7c3a112f9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/OperationCollectionInner.java @@ -18,6 +18,10 @@ public final class OperationCollectionInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of OperationCollectionInner class. */ + public OperationCollectionInner() { + } + /** * Get the value property: A collection of Operation items. * 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 35ab44fe7986..c79b495aefbf 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 @@ -20,6 +20,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java index fe1e69f02805..b9fd1fad93a2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionListResultInner.java @@ -17,6 +17,10 @@ public final class PrivateEndpointConnectionListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateEndpointConnectionListResultInner class. */ + public PrivateEndpointConnectionListResultInner() { + } + /** * Get the value property: Array of private endpoint connections. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java index 416902d7e3b6..3e8f3a2ac514 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateEndpointConnectionProperties.java @@ -32,6 +32,10 @@ public final class PrivateEndpointConnectionProperties { @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY) private PrivateEndpointConnectionProvisioningState provisioningState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the privateEndpoint property: The resource of private end point. * 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 3932d5be8bbb..9b57e2120562 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 @@ -18,6 +18,10 @@ public final class PrivateLinkResourceInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateLinkResourceProperties innerProperties; + /** Creates an instance of PrivateLinkResourceInner class. */ + public PrivateLinkResourceInner() { + } + /** * Get the innerProperties property: Resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java index 1ac116cabe5d..48993a567962 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceListResultInner.java @@ -17,6 +17,10 @@ public final class PrivateLinkResourceListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of PrivateLinkResourceListResultInner class. */ + public PrivateLinkResourceListResultInner() { + } + /** * Get the value property: Array of private link resources. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java index 81e689a95a31..e82abe02c94c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/PrivateLinkResourceProperties.java @@ -29,6 +29,10 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames") private List requiredZoneNames; + /** Creates an instance of PrivateLinkResourceProperties class. */ + public PrivateLinkResourceProperties() { + } + /** * Get the groupId property: The private link resource group id. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java index f0ec05ab9b7e..4846e758a4fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StorageEncryptedAssetDecryptionDataInner.java @@ -25,6 +25,10 @@ public final class StorageEncryptedAssetDecryptionDataInner { @JsonProperty(value = "assetFileEncryptionMetadata") private List assetFileEncryptionMetadata; + /** Creates an instance of StorageEncryptedAssetDecryptionDataInner class. */ + public StorageEncryptedAssetDecryptionDataInner() { + } + /** * Get the key property: The Asset File storage encryption key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java index d7ecb7850f0b..382be9360b13 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointInner.java @@ -37,6 +37,10 @@ public final class StreamingEndpointInner extends Resource { @JsonProperty(value = "sku") private ArmStreamingEndpointCurrentSku sku; + /** Creates an instance of StreamingEndpointInner class. */ + public StreamingEndpointInner() { + } + /** * Get the innerProperties property: The streaming endpoint properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java index 385f704a4902..875259c12204 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointProperties.java @@ -111,6 +111,10 @@ public final class StreamingEndpointProperties { @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; + /** Creates an instance of StreamingEndpointProperties class. */ + public StreamingEndpointProperties() { + } + /** * Get the description property: The streaming endpoint description. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java index 6e51cb3165e0..1394ce5bad1b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingEndpointSkuInfoListResultInner.java @@ -18,6 +18,10 @@ public final class StreamingEndpointSkuInfoListResultInner { @JsonProperty(value = "value") private List value; + /** Creates an instance of StreamingEndpointSkuInfoListResultInner class. */ + public StreamingEndpointSkuInfoListResultInner() { + } + /** * Get the value property: The result of the List StreamingEndpoint skus. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java index 128984457a34..0406649f9dbe 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorInner.java @@ -28,6 +28,10 @@ public final class StreamingLocatorInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of StreamingLocatorInner class. */ + public StreamingLocatorInner() { + } + /** * Get the innerProperties property: Properties of the Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java index a6d1198b3da5..e9d5ffb7708b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingLocatorProperties.java @@ -78,6 +78,10 @@ public final class StreamingLocatorProperties { @JsonProperty(value = "filters") private List filters; + /** Creates an instance of StreamingLocatorProperties class. */ + public StreamingLocatorProperties() { + } + /** * Get the assetName property: Asset Name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java index 27a2bb793765..4e1025346e27 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyInner.java @@ -29,6 +29,10 @@ public final class StreamingPolicyInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of StreamingPolicyInner class. */ + public StreamingPolicyInner() { + } + /** * Get the innerProperties property: Class to specify properties of Streaming Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java index 0b80f01df76a..bf7863b7167c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/StreamingPolicyProperties.java @@ -51,6 +51,10 @@ public final class StreamingPolicyProperties { @JsonProperty(value = "noEncryption") private NoEncryption noEncryption; + /** Creates an instance of StreamingPolicyProperties class. */ + public StreamingPolicyProperties() { + } + /** * Get the created property: Creation time of Streaming Policy. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java index 9721e02bebe4..6709d54e674a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformInner.java @@ -31,6 +31,10 @@ public final class TransformInner extends ProxyResource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of TransformInner class. */ + public TransformInner() { + } + /** * Get the innerProperties property: The resource properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java index 3150f1734f7e..760b044f7ce4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/fluent/models/TransformProperties.java @@ -38,6 +38,10 @@ public final class TransformProperties { @JsonProperty(value = "outputs", required = true) private List outputs; + /** Creates an instance of TransformProperties class. */ + public TransformProperties() { + } + /** * Get the created property: The UTC date and time when the Transform was created, in 'YYYY-MM-DDThh:mm:ssZ' format. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java index f32af20910f4..562cd55ac36e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersClientImpl.java @@ -59,7 +59,7 @@ public final class AccountFiltersClientImpl implements AccountFiltersClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAc") - private interface AccountFiltersService { + public interface AccountFiltersService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -483,14 +483,16 @@ private Mono getAsync(String resourceGroupName, String accou * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) - public AccountFilterInner get(String resourceGroupName, String accountName, String filterName) { - return getAsync(resourceGroupName, accountName, filterName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String filterName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); } /** @@ -501,16 +503,14 @@ public AccountFilterInner get(String resourceGroupName, String accountName, Stri * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Account Filter in the Media Services account along with {@link Response}. + * @return the details of an Account Filter in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String filterName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); + public AccountFilterInner get(String resourceGroupName, String accountName, String filterName) { + return getWithResponse(resourceGroupName, accountName, filterName, Context.NONE).getValue(); } /** @@ -671,15 +671,20 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. + * @return an Account Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AccountFilterInner createOrUpdate( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, filterName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String filterName, + AccountFilterInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); } /** @@ -691,20 +696,16 @@ public AccountFilterInner createOrUpdate( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter along with {@link Response}. + * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String filterName, - AccountFilterInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); + public AccountFilterInner createOrUpdate( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, filterName, parameters, Context.NONE) + .getValue(); } /** @@ -843,13 +844,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String filterName) { - deleteAsync(resourceGroupName, accountName, filterName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String filterName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); } /** @@ -860,16 +864,13 @@ public void delete(String resourceGroupName, String accountName, String filterNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String filterName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, filterName, context).block(); + public void delete(String resourceGroupName, String accountName, String filterName) { + deleteWithResponse(resourceGroupName, accountName, filterName, Context.NONE); } /** @@ -1030,15 +1031,20 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter. + * @return an Account Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AccountFilterInner update( - String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { - return updateAsync(resourceGroupName, accountName, filterName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String filterName, + AccountFilterInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); } /** @@ -1050,20 +1056,15 @@ public AccountFilterInner update( * @param accountName The Media Services account name. * @param filterName The Account Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Account Filter along with {@link Response}. + * @return an Account Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String filterName, - AccountFilterInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, filterName, parameters, context).block(); + public AccountFilterInner update( + String resourceGroupName, String accountName, String filterName, AccountFilterInner parameters) { + return updateWithResponse(resourceGroupName, accountName, filterName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java index ec4715db71d3..2172bdc77bb1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AccountFiltersImpl.java @@ -37,15 +37,6 @@ public PagedIterable list(String resourceGroupName, String accoun return Utils.mapPage(inner, inner1 -> new AccountFilterImpl(inner1, this.manager())); } - public AccountFilter get(String resourceGroupName, String accountName, String filterName) { - AccountFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, filterName); - if (inner != null) { - return new AccountFilterImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String filterName, Context context) { Response inner = @@ -61,8 +52,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String filterName) { - this.serviceClient().delete(resourceGroupName, accountName, filterName); + public AccountFilter get(String resourceGroupName, String accountName, String filterName) { + AccountFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, filterName); + if (inner != null) { + return new AccountFilterImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -70,6 +66,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, filterName, context); } + public void delete(String resourceGroupName, String accountName, String filterName) { + this.serviceClient().delete(resourceGroupName, accountName, filterName); + } + public AccountFilter getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java index fe4d38a9ca25..72c121a8e921 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersClientImpl.java @@ -59,7 +59,7 @@ public final class AssetFiltersClientImpl implements AssetFiltersClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAs") - private interface AssetFiltersService { + public interface AssetFiltersService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -520,14 +520,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) - public AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName) { - return getAsync(resourceGroupName, accountName, assetName, filterName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); } /** @@ -539,16 +541,14 @@ public AssetFilterInner get(String resourceGroupName, String accountName, String * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of an Asset Filter associated with the specified Asset along with {@link Response}. + * @return the details of an Asset Filter associated with the specified Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); + public AssetFilterInner get(String resourceGroupName, String accountName, String assetName, String filterName) { + return getWithResponse(resourceGroupName, accountName, assetName, filterName, Context.NONE).getValue(); } /** @@ -730,19 +730,23 @@ private Mono createOrUpdateAsync( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. + * @return an Asset Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetFilterInner createOrUpdate( + public Response createOrUpdateWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, assetName, filterName, parameters).block(); + AssetFilterInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, accountName, assetName, filterName, parameters, context) + .block(); } /** @@ -755,23 +759,21 @@ public AssetFilterInner createOrUpdate( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter along with {@link Response}. + * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( + public AssetFilterInner createOrUpdate( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, accountName, assetName, filterName, parameters, context) - .block(); + AssetFilterInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, accountName, assetName, filterName, parameters, Context.NONE) + .getValue(); } /** @@ -923,13 +925,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { - deleteAsync(resourceGroupName, accountName, assetName, filterName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); } /** @@ -941,16 +946,13 @@ public void delete(String resourceGroupName, String accountName, String assetNam * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, assetName, filterName, context).block(); + public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { + deleteWithResponse(resourceGroupName, accountName, assetName, filterName, Context.NONE); } /** @@ -1132,19 +1134,22 @@ private Mono updateAsync( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter. + * @return an Asset Filter along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetFilterInner update( + public Response updateWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters) { - return updateAsync(resourceGroupName, accountName, assetName, filterName, parameters).block(); + AssetFilterInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, assetName, filterName, parameters, context) + .block(); } /** @@ -1157,22 +1162,20 @@ public AssetFilterInner update( * @param assetName The Asset name. * @param filterName The Asset Filter name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset Filter along with {@link Response}. + * @return an Asset Filter. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( + public AssetFilterInner update( String resourceGroupName, String accountName, String assetName, String filterName, - AssetFilterInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, assetName, filterName, parameters, context) - .block(); + AssetFilterInner parameters) { + return updateWithResponse(resourceGroupName, accountName, assetName, filterName, parameters, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java index 61a9f12ed440..40bde3996ea3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetFiltersImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetFilterImpl(inner1, this.manager())); } - public AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName) { - AssetFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, filterName); - if (inner != null) { - return new AssetFilterImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, String filterName, Context context) { Response inner = @@ -63,8 +54,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { - this.serviceClient().delete(resourceGroupName, accountName, assetName, filterName); + public AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName) { + AssetFilterInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, filterName); + if (inner != null) { + return new AssetFilterImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -72,6 +68,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, assetName, filterName, context); } + public void delete(String resourceGroupName, String accountName, String assetName, String filterName) { + this.serviceClient().delete(resourceGroupName, accountName, assetName, filterName); + } + public AssetFilter getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java index 3f0391cc8684..b89282cf252a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetImpl.java @@ -172,26 +172,22 @@ public Asset refresh(Context context) { return this; } - public AssetContainerSas listContainerSas(ListContainerSasInput parameters) { - return serviceManager.assets().listContainerSas(resourceGroupName, accountName, assetName, parameters); - } - public Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context) { return serviceManager .assets() .listContainerSasWithResponse(resourceGroupName, accountName, assetName, parameters, context); } - public StorageEncryptedAssetDecryptionData getEncryptionKey() { - return serviceManager.assets().getEncryptionKey(resourceGroupName, accountName, assetName); + public AssetContainerSas listContainerSas(ListContainerSasInput parameters) { + return serviceManager.assets().listContainerSas(resourceGroupName, accountName, assetName, parameters); } public Response getEncryptionKeyWithResponse(Context context) { return serviceManager.assets().getEncryptionKeyWithResponse(resourceGroupName, accountName, assetName, context); } - public ListStreamingLocatorsResponse listStreamingLocators() { - return serviceManager.assets().listStreamingLocators(resourceGroupName, accountName, assetName); + public StorageEncryptedAssetDecryptionData getEncryptionKey() { + return serviceManager.assets().getEncryptionKey(resourceGroupName, accountName, assetName); } public Response listStreamingLocatorsWithResponse(Context context) { @@ -200,6 +196,10 @@ public Response listStreamingLocatorsWithResponse .listStreamingLocatorsWithResponse(resourceGroupName, accountName, assetName, context); } + public ListStreamingLocatorsResponse listStreamingLocators() { + return serviceManager.assets().listStreamingLocators(resourceGroupName, accountName, assetName); + } + public AssetImpl withAlternateId(String alternateId) { this.innerModel().withAlternateId(alternateId); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java index ffd79b9bb01b..82018522bdf4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsClientImpl.java @@ -63,7 +63,7 @@ public final class AssetsClientImpl implements AssetsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesAs") - private interface AssetsService { + public interface AssetsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -593,14 +593,16 @@ private Mono getAsync(String resourceGroupName, String accountName, * @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 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) - public AssetInner get(String resourceGroupName, String accountName, String assetName) { - return getAsync(resourceGroupName, accountName, assetName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -611,16 +613,14 @@ public AssetInner get(String resourceGroupName, String accountName, String 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 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 along with {@link Response}. + * @return the details of an Asset in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public AssetInner get(String resourceGroupName, String accountName, String assetName) { + return getWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** @@ -777,15 +777,16 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. + * @return an Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetInner createOrUpdate( - String resourceGroupName, String accountName, String assetName, AssetInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); } /** @@ -797,16 +798,16 @@ public AssetInner createOrUpdate( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset along with {@link Response}. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); + public AssetInner createOrUpdate( + String resourceGroupName, String accountName, String assetName, AssetInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE) + .getValue(); } /** @@ -945,13 +946,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String assetName) { - deleteAsync(resourceGroupName, accountName, assetName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -962,16 +966,13 @@ public void delete(String resourceGroupName, String accountName, String assetNam * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public void delete(String resourceGroupName, String accountName, String assetName) { + deleteWithResponse(resourceGroupName, accountName, assetName, Context.NONE); } /** @@ -1128,14 +1129,16 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset. + * @return an Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters) { - return updateAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); } /** @@ -1147,16 +1150,14 @@ public AssetInner update(String resourceGroupName, String accountName, String as * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an Asset along with {@link Response}. + * @return an Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, String accountName, String assetName, AssetInner parameters, Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context).block(); + public AssetInner update(String resourceGroupName, String accountName, String assetName, AssetInner parameters) { + return updateWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE).getValue(); } /** @@ -1323,15 +1324,21 @@ private Mono listContainerSasAsync( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. + * @return the Asset Storage container SAS URLs along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetContainerSasInner listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { - return listContainerSasAsync(resourceGroupName, accountName, assetName, parameters).block(); + public Response listContainerSasWithResponse( + String resourceGroupName, + String accountName, + String assetName, + ListContainerSasInput parameters, + Context context) { + return listContainerSasWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context) + .block(); } /** @@ -1344,21 +1351,16 @@ public AssetContainerSasInner listContainerSas( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs along with {@link Response}. + * @return the Asset Storage container SAS URLs. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listContainerSasWithResponse( - String resourceGroupName, - String accountName, - String assetName, - ListContainerSasInput parameters, - Context context) { - return listContainerSasWithResponseAsync(resourceGroupName, accountName, assetName, parameters, context) - .block(); + public AssetContainerSasInner listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { + return listContainerSasWithResponse(resourceGroupName, accountName, assetName, parameters, Context.NONE) + .getValue(); } /** @@ -1502,15 +1504,17 @@ private Mono getEncryptionKeyAsync( * @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 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) - public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( - String resourceGroupName, String accountName, String assetName) { - return getEncryptionKeyAsync(resourceGroupName, accountName, assetName).block(); + public Response getEncryptionKeyWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return getEncryptionKeyWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -1521,17 +1525,15 @@ public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( * @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 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 - * along with {@link Response}. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getEncryptionKeyWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return getEncryptionKeyWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public StorageEncryptedAssetDecryptionDataInner getEncryptionKey( + String resourceGroupName, String accountName, String assetName) { + return getEncryptionKeyWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** @@ -1674,15 +1676,16 @@ private Mono listStreamingLocatorsAsync( * @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 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) - public ListStreamingLocatorsResponseInner listStreamingLocators( - String resourceGroupName, String accountName, String assetName) { - return listStreamingLocatorsAsync(resourceGroupName, accountName, assetName).block(); + public Response listStreamingLocatorsWithResponse( + String resourceGroupName, String accountName, String assetName, Context context) { + return listStreamingLocatorsWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); } /** @@ -1693,16 +1696,15 @@ public ListStreamingLocatorsResponseInner listStreamingLocators( * @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 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 along with {@link Response}. + * @return the Streaming Locators associated with this Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listStreamingLocatorsWithResponse( - String resourceGroupName, String accountName, String assetName, Context context) { - return listStreamingLocatorsWithResponseAsync(resourceGroupName, accountName, assetName, context).block(); + public ListStreamingLocatorsResponseInner listStreamingLocators( + String resourceGroupName, String accountName, String assetName) { + return listStreamingLocatorsWithResponse(resourceGroupName, accountName, assetName, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java index 6bfb70f846f1..c4659e754d66 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/AssetsImpl.java @@ -46,15 +46,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetImpl(inner1, this.manager())); } - public Asset get(String resourceGroupName, String accountName, String assetName) { - AssetInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName); - if (inner != null) { - return new AssetImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, Context context) { Response inner = @@ -70,8 +61,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String assetName) { - this.serviceClient().delete(resourceGroupName, accountName, assetName); + public Asset get(String resourceGroupName, String accountName, String assetName) { + AssetInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName); + if (inner != null) { + return new AssetImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -79,15 +75,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, assetName, context); } - public AssetContainerSas listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { - AssetContainerSasInner inner = - this.serviceClient().listContainerSas(resourceGroupName, accountName, assetName, parameters); - if (inner != null) { - return new AssetContainerSasImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String assetName) { + this.serviceClient().delete(resourceGroupName, accountName, assetName); } public Response listContainerSasWithResponse( @@ -111,12 +100,12 @@ public Response listContainerSasWithResponse( } } - public StorageEncryptedAssetDecryptionData getEncryptionKey( - String resourceGroupName, String accountName, String assetName) { - StorageEncryptedAssetDecryptionDataInner inner = - this.serviceClient().getEncryptionKey(resourceGroupName, accountName, assetName); + public AssetContainerSas listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters) { + AssetContainerSasInner inner = + this.serviceClient().listContainerSas(resourceGroupName, accountName, assetName, parameters); if (inner != null) { - return new StorageEncryptedAssetDecryptionDataImpl(inner, this.manager()); + return new AssetContainerSasImpl(inner, this.manager()); } else { return null; } @@ -137,12 +126,12 @@ public Response getEncryptionKeyWithRespons } } - public ListStreamingLocatorsResponse listStreamingLocators( + public StorageEncryptedAssetDecryptionData getEncryptionKey( String resourceGroupName, String accountName, String assetName) { - ListStreamingLocatorsResponseInner inner = - this.serviceClient().listStreamingLocators(resourceGroupName, accountName, assetName); + StorageEncryptedAssetDecryptionDataInner inner = + this.serviceClient().getEncryptionKey(resourceGroupName, accountName, assetName); if (inner != null) { - return new ListStreamingLocatorsResponseImpl(inner, this.manager()); + return new StorageEncryptedAssetDecryptionDataImpl(inner, this.manager()); } else { return null; } @@ -163,6 +152,17 @@ public Response listStreamingLocatorsWithResponse } } + public ListStreamingLocatorsResponse listStreamingLocators( + String resourceGroupName, String accountName, String assetName) { + ListStreamingLocatorsResponseInner inner = + this.serviceClient().listStreamingLocators(resourceGroupName, accountName, assetName); + if (inner != null) { + return new ListStreamingLocatorsResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public Asset getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java index 02b710b5eae3..4c69e85142d5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesClientImpl.java @@ -61,7 +61,7 @@ public final class ContentKeyPoliciesClientImpl implements ContentKeyPoliciesCli */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesCo") - private interface ContentKeyPoliciesService { + public interface ContentKeyPoliciesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -564,14 +564,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) - public ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName) { - return getAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); } /** @@ -582,16 +584,14 @@ public ContentKeyPolicyInner get(String resourceGroupName, String accountName, S * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Content Key Policy in the Media Services account along with {@link Response}. + * @return the details of a Content Key Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); + public ContentKeyPolicyInner get(String resourceGroupName, String accountName, String contentKeyPolicyName) { + return getWithResponse(resourceGroupName, accountName, contentKeyPolicyName, Context.NONE).getValue(); } /** @@ -754,15 +754,22 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. + * @return a Content Key Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyInner createOrUpdate( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String contentKeyPolicyName, + ContentKeyPolicyInner parameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, accountName, contentKeyPolicyName, parameters, context) + .block(); } /** @@ -774,22 +781,17 @@ public ContentKeyPolicyInner createOrUpdate( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource along with {@link Response}. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String contentKeyPolicyName, - ContentKeyPolicyInner parameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, accountName, contentKeyPolicyName, parameters, context) - .block(); + public ContentKeyPolicyInner createOrUpdate( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { + return createOrUpdateWithResponse( + resourceGroupName, accountName, contentKeyPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -931,13 +933,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { - deleteAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); } /** @@ -948,16 +953,13 @@ public void delete(String resourceGroupName, String accountName, String contentK * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, context).block(); + public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { + deleteWithResponse(resourceGroupName, accountName, contentKeyPolicyName, Context.NONE); } /** @@ -1120,15 +1122,21 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource. + * @return a Content Key Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyInner update( - String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { - return updateAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String contentKeyPolicyName, + ContentKeyPolicyInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters, context) + .block(); } /** @@ -1140,21 +1148,16 @@ public ContentKeyPolicyInner update( * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy resource along with {@link Response}. + * @return a Content Key Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String contentKeyPolicyName, - ContentKeyPolicyInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, contentKeyPolicyName, parameters, context) - .block(); + public ContentKeyPolicyInner update( + String resourceGroupName, String accountName, String contentKeyPolicyName, ContentKeyPolicyInner parameters) { + return updateWithResponse(resourceGroupName, accountName, contentKeyPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -1299,15 +1302,18 @@ private Mono getPolicyPropertiesWithSecretsAsyn * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values. + * @return a Content Key Policy including secret values along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName) { - return getPolicyPropertiesWithSecretsAsync(resourceGroupName, accountName, contentKeyPolicyName).block(); + public Response getPolicyPropertiesWithSecretsWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { + return getPolicyPropertiesWithSecretsWithResponseAsync( + resourceGroupName, accountName, contentKeyPolicyName, context) + .block(); } /** @@ -1318,18 +1324,17 @@ public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Content Key Policy including secret values along with {@link Response}. + * @return a Content Key Policy including secret values. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getPolicyPropertiesWithSecretsWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { - return getPolicyPropertiesWithSecretsWithResponseAsync( - resourceGroupName, accountName, contentKeyPolicyName, context) - .block(); + public ContentKeyPolicyPropertiesInner getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName) { + return getPolicyPropertiesWithSecretsWithResponse( + resourceGroupName, accountName, contentKeyPolicyName, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java index b000ae0f4bb2..a0380d28cd96 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPoliciesImpl.java @@ -42,15 +42,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new ContentKeyPolicyImpl(inner1, this.manager())); } - public ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName) { - ContentKeyPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, contentKeyPolicyName); - if (inner != null) { - return new ContentKeyPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String contentKeyPolicyName, Context context) { Response inner = @@ -66,8 +57,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, contentKeyPolicyName); + public ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName) { + ContentKeyPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, contentKeyPolicyName); + if (inner != null) { + return new ContentKeyPolicyImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -75,15 +71,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); } - public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName) { - ContentKeyPolicyPropertiesInner inner = - this.serviceClient().getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); - if (inner != null) { - return new ContentKeyPolicyPropertiesImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String contentKeyPolicyName) { + this.serviceClient().delete(resourceGroupName, accountName, contentKeyPolicyName); } public Response getPolicyPropertiesWithSecretsWithResponse( @@ -104,6 +93,17 @@ public Response getPolicyPropertiesWithSecretsWithRe } } + public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName) { + ContentKeyPolicyPropertiesInner inner = + this.serviceClient().getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); + if (inner != null) { + return new ContentKeyPolicyPropertiesImpl(inner, this.manager()); + } else { + return null; + } + } + public ContentKeyPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java index 17a48b7028f3..04567dc6ce10 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/ContentKeyPolicyImpl.java @@ -170,16 +170,16 @@ public ContentKeyPolicy refresh(Context context) { return this; } - public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets() { + public Response getPolicyPropertiesWithSecretsWithResponse(Context context) { return serviceManager .contentKeyPolicies() - .getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); + .getPolicyPropertiesWithSecretsWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); } - public Response getPolicyPropertiesWithSecretsWithResponse(Context context) { + public ContentKeyPolicyProperties getPolicyPropertiesWithSecrets() { return serviceManager .contentKeyPolicies() - .getPolicyPropertiesWithSecretsWithResponse(resourceGroupName, accountName, contentKeyPolicyName, context); + .getPolicyPropertiesWithSecrets(resourceGroupName, accountName, contentKeyPolicyName); } public ContentKeyPolicyImpl withDescription(String description) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java index b062e9655a0e..b694b561d37e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobImpl.java @@ -197,16 +197,16 @@ public Job refresh(Context context) { return this; } - public void cancelJob() { - serviceManager.jobs().cancelJob(resourceGroupName, accountName, transformName, jobName); - } - public Response cancelJobWithResponse(Context context) { return serviceManager .jobs() .cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, context); } + public void cancelJob() { + serviceManager.jobs().cancelJob(resourceGroupName, accountName, transformName, jobName); + } + public JobImpl withDescription(String description) { this.innerModel().withDescription(description); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java index 3f39b114d68c..dfc4a1a6cfd8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsClientImpl.java @@ -59,7 +59,7 @@ public final class JobsClientImpl implements JobsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesJo") - private interface JobsService { + public interface JobsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -216,7 +216,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -291,7 +291,7 @@ private Mono> listSinglePageAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -480,7 +480,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -542,7 +542,7 @@ private Mono> getWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -588,14 +588,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job. + * @return a Job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner get(String resourceGroupName, String accountName, String transformName, String jobName) { - return getAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -607,16 +609,14 @@ public JobInner get(String resourceGroupName, String accountName, String transfo * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job along with {@link Response}. + * @return a Job. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public JobInner get(String resourceGroupName, String accountName, String transformName, String jobName) { + return getWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE).getValue(); } /** @@ -667,7 +667,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -741,7 +741,7 @@ private Mono> createWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -790,15 +790,22 @@ private Mono createAsync( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. + * @return a Job resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner create( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { - return createAsync(resourceGroupName, accountName, transformName, jobName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String transformName, + String jobName, + JobInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) + .block(); } /** @@ -811,22 +818,16 @@ public JobInner create( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type along with {@link Response}. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String transformName, - String jobName, - JobInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) - .block(); + public JobInner create( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { + return createWithResponse(resourceGroupName, accountName, transformName, jobName, parameters, Context.NONE) + .getValue(); } /** @@ -871,7 +872,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -933,7 +934,7 @@ private Mono> deleteWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -978,13 +979,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { - deleteAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -996,16 +1000,13 @@ public void delete(String resourceGroupName, String accountName, String transfor * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { + deleteWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE); } /** @@ -1057,7 +1058,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1132,7 +1133,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1183,15 +1184,22 @@ private Mono updateAsync( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type. + * @return a Job resource type along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public JobInner update( - String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { - return updateAsync(resourceGroupName, accountName, transformName, jobName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + String jobName, + JobInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) + .block(); } /** @@ -1205,22 +1213,16 @@ public JobInner update( * @param transformName The Transform name. * @param jobName The Job name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Job resource type along with {@link Response}. + * @return a Job resource type. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - String jobName, - JobInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, transformName, jobName, parameters, context) - .block(); + public JobInner update( + String resourceGroupName, String accountName, String transformName, String jobName, JobInner parameters) { + return updateWithResponse(resourceGroupName, accountName, transformName, jobName, parameters, Context.NONE) + .getValue(); } /** @@ -1265,7 +1267,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1327,7 +1329,7 @@ private Mono> cancelJobWithResponseAsync( if (jobName == null) { return Mono.error(new IllegalArgumentException("Parameter jobName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1373,13 +1375,16 @@ private Mono cancelJobAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { - cancelJobAsync(resourceGroupName, accountName, transformName, jobName).block(); + public Response cancelJobWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context) { + return cancelJobWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); } /** @@ -1391,16 +1396,13 @@ public void cancelJob(String resourceGroupName, String accountName, String trans * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response cancelJobWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context) { - return cancelJobWithResponseAsync(resourceGroupName, accountName, transformName, jobName, context).block(); + public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { + cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, Context.NONE); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java index 361a0a0ec1ea..10b5326b2293 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/JobsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new JobImpl(inner1, this.manager())); } - public Job get(String resourceGroupName, String accountName, String transformName, String jobName) { - JobInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName, jobName); - if (inner != null) { - return new JobImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String transformName, String jobName, Context context) { Response inner = @@ -68,8 +59,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { - this.serviceClient().delete(resourceGroupName, accountName, transformName, jobName); + public Job get(String resourceGroupName, String accountName, String transformName, String jobName) { + JobInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName, jobName); + if (inner != null) { + return new JobImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -77,8 +73,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, transformName, jobName, context); } - public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { - this.serviceClient().cancelJob(resourceGroupName, accountName, transformName, jobName); + public void delete(String resourceGroupName, String accountName, String transformName, String jobName) { + this.serviceClient().delete(resourceGroupName, accountName, transformName, jobName); } public Response cancelJobWithResponse( @@ -88,6 +84,10 @@ public Response cancelJobWithResponse( .cancelJobWithResponse(resourceGroupName, accountName, transformName, jobName, context); } + public void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName) { + this.serviceClient().cancelJob(resourceGroupName, accountName, transformName, jobName); + } + public Job getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java index faeebff9a685..84639b0446e9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsClientImpl.java @@ -67,7 +67,7 @@ public final class LiveEventsClientImpl implements LiveEventsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLi") - private interface LiveEventsService { + public interface LiveEventsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -586,14 +586,16 @@ private Mono getAsync(String resourceGroupName, String accountNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event. + * @return properties of a live event along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner get(String resourceGroupName, String accountName, String liveEventName) { - return getAsync(resourceGroupName, accountName, liveEventName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, liveEventName, context).block(); } /** @@ -604,16 +606,14 @@ public LiveEventInner get(String resourceGroupName, String accountName, String l * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return properties of a live event along with {@link Response}. + * @return properties of a live event. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, liveEventName, context).block(); + public LiveEventInner get(String resourceGroupName, String accountName, String liveEventName) { + return getWithResponse(resourceGroupName, accountName, liveEventName, Context.NONE).getValue(); } /** @@ -787,6 +787,36 @@ private PollerFlux, LiveEventInner> beginCreateAsync( this.client.getContext()); } + /** + * Create Live Event + * + *

Creates a new live event. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param liveEventName The name of the live event, maximum length is 32. + * @param parameters Live event properties needed for creation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the live event. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, LiveEventInner> beginCreateAsync( + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters) { + final Boolean autoStart = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + LiveEventInner.class, + LiveEventInner.class, + this.client.getContext()); + } + /** * Create Live Event * @@ -829,7 +859,6 @@ private PollerFlux, LiveEventInner> beginCreateAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -837,12 +866,11 @@ private PollerFlux, LiveEventInner> beginCreateAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LiveEventInner> beginCreate( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart) { - return beginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart).getSyncPoller(); + String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters) { + final Boolean autoStart = null; + return this + .beginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart) + .getSyncPoller(); } /** @@ -869,7 +897,8 @@ public SyncPoller, LiveEventInner> beginCreate( LiveEventInner parameters, Boolean autoStart, Context context) { - return beginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart, context) + return this + .beginCreateAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart, context) .getSyncPoller(); } @@ -952,31 +981,6 @@ private Mono createAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create Live Event - * - *

Creates a new live event. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param liveEventName The name of the live event, maximum length is 32. - * @param parameters Live event properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the live event. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner create( - String resourceGroupName, - String accountName, - String liveEventName, - LiveEventInner parameters, - Boolean autoStart) { - return createAsync(resourceGroupName, accountName, liveEventName, parameters, autoStart).block(); - } - /** * Create Live Event * @@ -1220,7 +1224,7 @@ private PollerFlux, LiveEventInner> beginUpdateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, LiveEventInner> beginUpdate( String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters) { - return beginUpdateAsync(resourceGroupName, accountName, liveEventName, parameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, accountName, liveEventName, parameters).getSyncPoller(); } /** @@ -1243,7 +1247,9 @@ public SyncPoller, LiveEventInner> beginUpdate( String liveEventName, LiveEventInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, liveEventName, parameters, context).getSyncPoller(); + return this + .beginUpdateAsync(resourceGroupName, accountName, liveEventName, parameters, context) + .getSyncPoller(); } /** @@ -1506,7 +1512,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName) { - return beginDeleteAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); } /** @@ -1526,7 +1532,7 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); } /** @@ -1781,7 +1787,7 @@ private PollerFlux, Void> beginAllocateAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAllocate( String resourceGroupName, String accountName, String liveEventName) { - return beginAllocateAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); + return this.beginAllocateAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); } /** @@ -1801,7 +1807,7 @@ public SyncPoller, Void> beginAllocate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginAllocate( String resourceGroupName, String accountName, String liveEventName, Context context) { - return beginAllocateAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); + return this.beginAllocateAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); } /** @@ -2055,7 +2061,7 @@ private PollerFlux, Void> beginStartAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String liveEventName) { - return beginStartAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); + return this.beginStartAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); } /** @@ -2075,7 +2081,7 @@ public SyncPoller, Void> beginStart( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String liveEventName, Context context) { - return beginStartAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); + return this.beginStartAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); } /** @@ -2354,7 +2360,7 @@ private PollerFlux, Void> beginStopAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String liveEventName, LiveEventActionInput parameters) { - return beginStopAsync(resourceGroupName, accountName, liveEventName, parameters).getSyncPoller(); + return this.beginStopAsync(resourceGroupName, accountName, liveEventName, parameters).getSyncPoller(); } /** @@ -2379,7 +2385,7 @@ public SyncPoller, Void> beginStop( String liveEventName, LiveEventActionInput parameters, Context context) { - return beginStopAsync(resourceGroupName, accountName, liveEventName, parameters, context).getSyncPoller(); + return this.beginStopAsync(resourceGroupName, accountName, liveEventName, parameters, context).getSyncPoller(); } /** @@ -2658,7 +2664,7 @@ private PollerFlux, Void> beginResetAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReset( String resourceGroupName, String accountName, String liveEventName) { - return beginResetAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); + return this.beginResetAsync(resourceGroupName, accountName, liveEventName).getSyncPoller(); } /** @@ -2680,7 +2686,7 @@ public SyncPoller, Void> beginReset( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginReset( String resourceGroupName, String accountName, String liveEventName, Context context) { - return beginResetAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); + return this.beginResetAsync(resourceGroupName, accountName, liveEventName, context).getSyncPoller(); } /** @@ -2905,14 +2911,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -2923,16 +2931,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -3085,15 +3091,17 @@ private Mono operationLocationAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveEventInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, liveEventName, operationId).block(); + public Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { + return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId, context) + .block(); } /** @@ -3105,17 +3113,16 @@ public LiveEventInner operationLocation( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context) { - return operationLocationWithResponseAsync(resourceGroupName, accountName, liveEventName, operationId, context) - .block(); + public LiveEventInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + return operationLocationWithResponse(resourceGroupName, accountName, liveEventName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java index 4dbab9fe3643..a4aeb1207a9b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveEventsImpl.java @@ -40,15 +40,6 @@ public PagedIterable list(String resourceGroupName, String accountNam return Utils.mapPage(inner, inner1 -> new LiveEventImpl(inner1, this.manager())); } - public LiveEvent get(String resourceGroupName, String accountName, String liveEventName) { - LiveEventInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName); - if (inner != null) { - return new LiveEventImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, Context context) { Response inner = @@ -64,6 +55,15 @@ public Response getWithResponse( } } + public LiveEvent get(String resourceGroupName, String accountName, String liveEventName) { + LiveEventInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName); + if (inner != null) { + return new LiveEventImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String liveEventName) { this.serviceClient().delete(resourceGroupName, accountName, liveEventName); } @@ -110,16 +110,6 @@ public void reset(String resourceGroupName, String accountName, String liveEvent this.serviceClient().reset(resourceGroupName, accountName, liveEventName, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -135,12 +125,11 @@ public Response asyncOperationWithResponse( } } - public LiveEvent operationLocation( - String resourceGroupName, String accountName, String liveEventName, String operationId) { - LiveEventInner inner = - this.serviceClient().operationLocation(resourceGroupName, accountName, liveEventName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new LiveEventImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -163,6 +152,17 @@ public Response operationLocationWithResponse( } } + public LiveEvent operationLocation( + String resourceGroupName, String accountName, String liveEventName, String operationId) { + LiveEventInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, liveEventName, operationId); + if (inner != null) { + return new LiveEventImpl(inner, this.manager()); + } else { + return null; + } + } + public LiveEvent getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java index db6aa9d03faa..1c0a5d77474e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsClientImpl.java @@ -64,7 +64,7 @@ public final class LiveOutputsClientImpl implements LiveOutputsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLi") - private interface LiveOutputsService { + public interface LiveOutputsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -537,15 +537,16 @@ private Mono getAsync( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output. + * @return a live output along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveOutputInner get( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { - return getAsync(resourceGroupName, accountName, liveEventName, liveOutputName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).block(); } /** @@ -557,16 +558,15 @@ public LiveOutputInner get( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).block(); + public LiveOutputInner get( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { + return getWithResponse(resourceGroupName, accountName, liveEventName, liveOutputName, Context.NONE).getValue(); } /** @@ -801,7 +801,8 @@ public SyncPoller, LiveOutputInner> beginCreate( String liveEventName, String liveOutputName, LiveOutputInner parameters) { - return beginCreateAsync(resourceGroupName, accountName, liveEventName, liveOutputName, parameters) + return this + .beginCreateAsync(resourceGroupName, accountName, liveEventName, liveOutputName, parameters) .getSyncPoller(); } @@ -829,7 +830,8 @@ public SyncPoller, LiveOutputInner> beginCreate( String liveOutputName, LiveOutputInner parameters, Context context) { - return beginCreateAsync(resourceGroupName, accountName, liveEventName, liveOutputName, parameters, context) + return this + .beginCreateAsync(resourceGroupName, accountName, liveEventName, liveOutputName, parameters, context) .getSyncPoller(); } @@ -1129,7 +1131,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { - return beginDeleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName).getSyncPoller(); } /** @@ -1150,7 +1152,9 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context).getSyncPoller(); + return this + .beginDeleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName, context) + .getSyncPoller(); } /** @@ -1374,14 +1378,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -1392,16 +1398,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -1572,15 +1576,22 @@ private Mono operationLocationAsync( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public LiveOutputInner operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, liveEventName, liveOutputName, operationId) + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context) .block(); } @@ -1594,23 +1605,17 @@ public LiveOutputInner operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context) { - return operationLocationWithResponseAsync( - resourceGroupName, accountName, liveEventName, liveOutputName, operationId, context) - .block(); + public LiveOutputInner operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + return operationLocationWithResponse( + resourceGroupName, accountName, liveEventName, liveOutputName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java index a7fddf0e792c..266aaa037607 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LiveOutputsImpl.java @@ -41,15 +41,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new LiveOutputImpl(inner1, this.manager())); } - public LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { - LiveOutputInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName, liveOutputName); - if (inner != null) { - return new LiveOutputImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context) { Response inner = @@ -67,6 +58,15 @@ public Response getWithResponse( } } + public LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { + LiveOutputInner inner = this.serviceClient().get(resourceGroupName, accountName, liveEventName, liveOutputName); + if (inner != null) { + return new LiveOutputImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String liveEventName, String liveOutputName) { this.serviceClient().delete(resourceGroupName, accountName, liveEventName, liveOutputName); } @@ -76,16 +76,6 @@ public void delete( this.serviceClient().delete(resourceGroupName, accountName, liveEventName, liveOutputName, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -101,14 +91,11 @@ public Response asyncOperationWithResponse( } } - public LiveOutput operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { - LiveOutputInner inner = - this - .serviceClient() - .operationLocation(resourceGroupName, accountName, liveEventName, liveOutputName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new LiveOutputImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -137,6 +124,19 @@ public Response operationLocationWithResponse( } } + public LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId) { + LiveOutputInner inner = + this + .serviceClient() + .operationLocation(resourceGroupName, accountName, liveEventName, liveOutputName, operationId); + if (inner != null) { + return new LiveOutputImpl(inner, this.manager()); + } else { + return null; + } + } + public LiveOutput getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java index 54ad1a9b224c..aaf4fd58d138 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsClientImpl.java @@ -52,7 +52,7 @@ public final class LocationsClientImpl implements LocationsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesLo") - private interface LocationsService { + public interface LocationsService { @Headers({"Content-Type: application/json"}) @Post( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}/checkNameAvailability") @@ -198,15 +198,16 @@ private Mono checkNameAvailabilityAsync( * * @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 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) - public EntityNameAvailabilityCheckOutputInner checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters) { - return checkNameAvailabilityAsync(locationName, parameters).block(); + public Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context) { + return checkNameAvailabilityWithResponseAsync(locationName, parameters, context).block(); } /** @@ -216,15 +217,14 @@ public EntityNameAvailabilityCheckOutputInner checkNameAvailability( * * @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 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 along with {@link Response}. + * @return the response from the check name availability request. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context) { - return checkNameAvailabilityWithResponseAsync(locationName, parameters, context).block(); + public EntityNameAvailabilityCheckOutputInner checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters) { + return checkNameAvailabilityWithResponse(locationName, parameters, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java index 3c779d397a0e..33f17176960b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/LocationsImpl.java @@ -27,17 +27,6 @@ public LocationsImpl( this.serviceManager = serviceManager; } - public EntityNameAvailabilityCheckOutput checkNameAvailability( - String locationName, CheckNameAvailabilityInput parameters) { - EntityNameAvailabilityCheckOutputInner inner = - this.serviceClient().checkNameAvailability(locationName, parameters); - if (inner != null) { - return new EntityNameAvailabilityCheckOutputImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( String locationName, CheckNameAvailabilityInput parameters, Context context) { Response inner = @@ -53,6 +42,17 @@ public Response checkNameAvailabilityWithResp } } + public EntityNameAvailabilityCheckOutput checkNameAvailability( + String locationName, CheckNameAvailabilityInput parameters) { + EntityNameAvailabilityCheckOutputInner inner = + this.serviceClient().checkNameAvailability(locationName, parameters); + if (inner != null) { + return new EntityNameAvailabilityCheckOutputImpl(inner, this.manager()); + } else { + return null; + } + } + private LocationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java index e280487b0f3b..b6234e072c2d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServiceImpl.java @@ -220,18 +220,14 @@ public MediaService refresh(Context context) { return this; } - public void syncStorageKeys(SyncStorageKeysInput parameters) { - serviceManager.mediaservices().syncStorageKeys(resourceGroupName, accountName, parameters); - } - public Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context) { return serviceManager .mediaservices() .syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, context); } - public EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters) { - return serviceManager.mediaservices().listEdgePolicies(resourceGroupName, accountName, parameters); + public void syncStorageKeys(SyncStorageKeysInput parameters) { + serviceManager.mediaservices().syncStorageKeys(resourceGroupName, accountName, parameters); } public Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context) { @@ -240,6 +236,10 @@ public Response listEdgePoliciesWithResponse(ListEdgePoliciesInput .listEdgePoliciesWithResponse(resourceGroupName, accountName, parameters, context); } + public EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters) { + return serviceManager.mediaservices().listEdgePolicies(resourceGroupName, accountName, parameters); + } + public MediaServiceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java index ca2d6460af9c..64b4a6e59f6b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsClientImpl.java @@ -54,7 +54,7 @@ public final class MediaServicesOperationResultsClientImpl implements MediaServi */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaServicesOperationResultsService { + public interface MediaServicesOperationResultsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}" @@ -193,14 +193,16 @@ private Mono getAsync(String locationName, String operationId * * @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 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) - public MediaServiceInner get(String locationName, String operationId) { - return getAsync(locationName, operationId).block(); + public MediaServicesOperationResultsGetResponse getWithResponse( + String locationName, String operationId, Context context) { + return getWithResponseAsync(locationName, operationId, context).block(); } /** @@ -210,15 +212,13 @@ public MediaServiceInner get(String locationName, String operationId) { * * @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 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) - public MediaServicesOperationResultsGetResponse getWithResponse( - String locationName, String operationId, Context context) { - return getWithResponseAsync(locationName, operationId, context).block(); + public MediaServiceInner get(String locationName, String operationId) { + return getWithResponse(locationName, operationId, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java index dbd496009c86..aef4825cef31 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationResultsImpl.java @@ -28,15 +28,6 @@ public MediaServicesOperationResultsImpl( this.serviceManager = serviceManager; } - public MediaService get(String locationName, String operationId) { - MediaServiceInner inner = this.serviceClient().get(locationName, operationId); - if (inner != null) { - return new MediaServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse(String locationName, String operationId, Context context) { MediaServicesOperationResultsGetResponse inner = this.serviceClient().getWithResponse(locationName, operationId, context); @@ -51,6 +42,15 @@ public Response getWithResponse(String locationName, String operat } } + public MediaService get(String locationName, String operationId) { + MediaServiceInner inner = this.serviceClient().get(locationName, operationId); + if (inner != null) { + return new MediaServiceImpl(inner, this.manager()); + } else { + return null; + } + } + private MediaServicesOperationResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java index 36b404e645cc..ba8fca52cd83 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesClientImpl.java @@ -54,7 +54,7 @@ public final class MediaServicesOperationStatusesClientImpl implements MediaServ */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaServicesOperationStatusesService { + public interface MediaServicesOperationStatusesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/providers/Microsoft.Media/locations/{locationName}" @@ -193,14 +193,16 @@ private Mono getAsync(String locationName, Str * * @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 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. + * @return media service operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServiceOperationStatusInner get(String locationName, String operationId) { - return getAsync(locationName, operationId).block(); + public Response getWithResponse( + String locationName, String operationId, Context context) { + return getWithResponseAsync(locationName, operationId, context).block(); } /** @@ -210,15 +212,13 @@ public MediaServiceOperationStatusInner get(String locationName, String operatio * * @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 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}. + * @return media service operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String locationName, String operationId, Context context) { - return getWithResponseAsync(locationName, operationId, context).block(); + public MediaServiceOperationStatusInner get(String locationName, String operationId) { + return getWithResponse(locationName, operationId, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java index a175cc9109e9..928ae37af8ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaServicesOperationStatusesImpl.java @@ -27,15 +27,6 @@ public MediaServicesOperationStatusesImpl( this.serviceManager = serviceManager; } - public MediaServiceOperationStatus get(String locationName, String operationId) { - MediaServiceOperationStatusInner inner = this.serviceClient().get(locationName, operationId); - if (inner != null) { - return new MediaServiceOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String locationName, String operationId, Context context) { Response inner = @@ -51,6 +42,15 @@ public Response getWithResponse( } } + public MediaServiceOperationStatus get(String locationName, String operationId) { + MediaServiceOperationStatusInner inner = this.serviceClient().get(locationName, operationId); + if (inner != null) { + return new MediaServiceOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + private MediaServicesOperationStatusesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java index 98cec829b2f7..15f3d0d8ecc3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesClientImpl.java @@ -69,7 +69,7 @@ public final class MediaservicesClientImpl implements MediaservicesClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesMe") - private interface MediaservicesService { + public interface MediaservicesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media" @@ -515,14 +515,16 @@ private Mono getByResourceGroupAsync(String resourceGroupName * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupAsync(resourceGroupName, accountName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -532,16 +534,14 @@ public MediaServiceInner getByResourceGroup(String resourceGroupName, String acc * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName, context).block(); + public MediaServiceInner getByResourceGroup(String resourceGroupName, String accountName) { + return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -728,7 +728,7 @@ private PollerFlux, MediaServiceInner> beginCreate @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, MediaServiceInner> beginCreateOrUpdate( String resourceGroupName, String accountName, MediaServiceInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); } /** @@ -748,7 +748,7 @@ public SyncPoller, MediaServiceInner> beginCreateO @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, MediaServiceInner> beginCreateOrUpdate( String resourceGroupName, String accountName, MediaServiceInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller(); + return this.beginCreateOrUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller(); } /** @@ -956,13 +956,15 @@ private Mono deleteAsync(String resourceGroupName, String accountName) { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName) { - deleteAsync(resourceGroupName, accountName).block(); + public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -972,15 +974,13 @@ public void delete(String resourceGroupName, String accountName) { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, context).block(); + public void delete(String resourceGroupName, String accountName) { + deleteWithResponse(resourceGroupName, accountName, Context.NONE); } /** @@ -1166,7 +1166,7 @@ private PollerFlux, MediaServiceInner> beginUpdate @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, MediaServiceInner> beginUpdate( String resourceGroupName, String accountName, MediaServiceUpdate parameters) { - return beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, accountName, parameters).getSyncPoller(); } /** @@ -1186,7 +1186,7 @@ public SyncPoller, MediaServiceInner> beginUpdate( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, MediaServiceInner> beginUpdate( String resourceGroupName, String accountName, MediaServiceUpdate parameters, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, accountName, parameters, context).getSyncPoller(); } /** @@ -1412,13 +1412,16 @@ private Mono syncStorageKeysAsync( * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { - syncStorageKeysAsync(resourceGroupName, accountName, parameters).block(); + public Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context) { + return syncStorageKeysWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); } /** @@ -1429,16 +1432,13 @@ public void syncStorageKeys(String resourceGroupName, String accountName, SyncSt * @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 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}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context) { - return syncStorageKeysWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { + syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, Context.NONE); } /** @@ -1583,15 +1583,16 @@ private Mono listEdgePoliciesAsync( * @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 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) - public EdgePoliciesInner listEdgePolicies( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { - return listEdgePoliciesAsync(resourceGroupName, accountName, parameters).block(); + public Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context) { + return listEdgePoliciesWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); } /** @@ -1602,16 +1603,15 @@ public EdgePoliciesInner listEdgePolicies( * @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 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 body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context) { - return listEdgePoliciesWithResponseAsync(resourceGroupName, accountName, parameters, context).block(); + public EdgePoliciesInner listEdgePolicies( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { + return listEdgePoliciesWithResponse(resourceGroupName, accountName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java index 88ada499fa7a..89c955602841 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/MediaservicesImpl.java @@ -41,15 +41,6 @@ public PagedIterable listByResourceGroup(String resourceGroupName, return Utils.mapPage(inner, inner1 -> new MediaServiceImpl(inner1, this.manager())); } - public MediaService getByResourceGroup(String resourceGroupName, String accountName) { - MediaServiceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); - if (inner != null) { - return new MediaServiceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -65,16 +56,22 @@ public Response getByResourceGroupWithResponse( } } - public void deleteByResourceGroup(String resourceGroupName, String accountName) { - this.serviceClient().delete(resourceGroupName, accountName); + public MediaService getByResourceGroup(String resourceGroupName, String accountName) { + MediaServiceInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); + if (inner != null) { + return new MediaServiceImpl(inner, this.manager()); + } else { + return null; + } } - public Response deleteWithResponse(String resourceGroupName, String accountName, Context context) { + public Response deleteByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, context); } - public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { - this.serviceClient().syncStorageKeys(resourceGroupName, accountName, parameters); + public void deleteByResourceGroup(String resourceGroupName, String accountName) { + this.serviceClient().delete(resourceGroupName, accountName); } public Response syncStorageKeysWithResponse( @@ -82,14 +79,8 @@ public Response syncStorageKeysWithResponse( return this.serviceClient().syncStorageKeysWithResponse(resourceGroupName, accountName, parameters, context); } - public EdgePolicies listEdgePolicies( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { - EdgePoliciesInner inner = this.serviceClient().listEdgePolicies(resourceGroupName, accountName, parameters); - if (inner != null) { - return new EdgePoliciesImpl(inner, this.manager()); - } else { - return null; - } + public void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters) { + this.serviceClient().syncStorageKeys(resourceGroupName, accountName, parameters); } public Response listEdgePoliciesWithResponse( @@ -107,6 +98,16 @@ public Response listEdgePoliciesWithResponse( } } + public EdgePolicies listEdgePolicies( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters) { + EdgePoliciesInner inner = this.serviceClient().listEdgePolicies(resourceGroupName, accountName, parameters); + if (inner != null) { + return new EdgePoliciesImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new MediaServiceImpl(inner1, this.manager())); @@ -171,7 +172,7 @@ public void deleteById(String id) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'mediaservices'.", id))); } - this.deleteWithResponse(resourceGroupName, accountName, Context.NONE); + this.deleteByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE); } public Response deleteByIdWithResponse(String id, Context context) { @@ -190,7 +191,7 @@ public Response deleteByIdWithResponse(String id, Context context) { new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'mediaservices'.", id))); } - return this.deleteWithResponse(resourceGroupName, accountName, context); + return this.deleteByResourceGroupWithResponse(resourceGroupName, accountName, context); } private MediaservicesClient serviceClient() { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java index 91dcbdbabd29..7d0139239595 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsClientImpl.java @@ -50,7 +50,7 @@ public final class OperationResultsClientImpl implements OperationResultsClient */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationResultsService { + public interface OperationResultsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -237,15 +237,21 @@ private Mono getAsync( * @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 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) - public AssetTrackInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - return getAsync(resourceGroupName, accountName, assetName, trackName, operationId).block(); + public OperationResultsGetResponse getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); } /** @@ -258,20 +264,15 @@ public AssetTrackInner get( * @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 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) - public OperationResultsGetResponse getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); + public AssetTrackInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, operationId, Context.NONE) + .getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java index 04e8bdc732bf..59269fa483f5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationResultsImpl.java @@ -28,17 +28,6 @@ public OperationResultsImpl( this.serviceManager = serviceManager; } - public AssetTrack get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - AssetTrackInner inner = - this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); - if (inner != null) { - return new AssetTrackImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -61,6 +50,17 @@ public Response getWithResponse( } } + public AssetTrack get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + AssetTrackInner inner = + this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); + if (inner != null) { + return new AssetTrackImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationResultsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java index 67598bba5b00..4bd432b58ed4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesClientImpl.java @@ -50,7 +50,7 @@ public final class OperationStatusesClientImpl implements OperationStatusesClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationStatusesService { + public interface OperationStatusesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -237,15 +237,21 @@ private Mono getAsync( * @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 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. + * @return asset track operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetTrackOperationStatusInner get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - return getAsync(resourceGroupName, accountName, assetName, trackName, operationId).block(); + public Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); } /** @@ -258,20 +264,15 @@ public AssetTrackOperationStatusInner get( * @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 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}. + * @return asset track operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, operationId, context).block(); + public AssetTrackOperationStatusInner get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, operationId, Context.NONE) + .getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java index cf39b7daac31..e333686ac841 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationStatusesImpl.java @@ -27,17 +27,6 @@ public OperationStatusesImpl( this.serviceManager = serviceManager; } - public AssetTrackOperationStatus get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { - AssetTrackOperationStatusInner inner = - this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); - if (inner != null) { - return new AssetTrackOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, @@ -60,6 +49,17 @@ public Response getWithResponse( } } + public AssetTrackOperationStatus get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId) { + AssetTrackOperationStatusInner inner = + this.serviceClient().get(resourceGroupName, accountName, assetName, trackName, operationId); + if (inner != null) { + return new AssetTrackOperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationStatusesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java index 887830a6ca73..937844a8bb60 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsClientImpl.java @@ -49,7 +49,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesOp") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Get("/providers/Microsoft.Media/operations") @ExpectedResponses({200}) @@ -129,13 +129,15 @@ private Mono listAsync() { * *

Lists all the Media Services operations. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items. + * @return a collection of Operation items along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public OperationCollectionInner list() { - return listAsync().block(); + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); } /** @@ -143,14 +145,12 @@ public OperationCollectionInner list() { * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a collection of Operation items along with {@link Response}. + * @return a collection of Operation items. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse(Context context) { - return listWithResponseAsync(context).block(); + public OperationCollectionInner list() { + return listWithResponse(Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java index 0288f85f2847..e34e8b849809 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/OperationsImpl.java @@ -26,15 +26,6 @@ public OperationsImpl( this.serviceManager = serviceManager; } - public OperationCollection list() { - OperationCollectionInner inner = this.serviceClient().list(); - if (inner != null) { - return new OperationCollectionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse(Context context) { Response inner = this.serviceClient().listWithResponse(context); if (inner != null) { @@ -48,6 +39,15 @@ public Response listWithResponse(Context context) { } } + public OperationCollection list() { + OperationCollectionInner inner = this.serviceClient().list(); + if (inner != null) { + return new OperationCollectionImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java index 1c47d0b68b6d..7b9ce60559b3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsClientImpl.java @@ -56,7 +56,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesPr") - private interface PrivateEndpointConnectionsService { + public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -249,14 +249,17 @@ private Mono listAsync(String resource * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName) { - return listAsync(resourceGroupName, accountName).block(); + public Response listWithResponse( + String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -266,17 +269,14 @@ public PrivateEndpointConnectionListResultInner list(String resourceGroupName, S * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String accountName, Context context) { - return listWithResponseAsync(resourceGroupName, accountName, context).block(); + public PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName) { + return listWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -418,14 +418,16 @@ private Mono getAsync(String resourceGroupName, * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name) { - return getAsync(resourceGroupName, accountName, name).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -436,16 +438,14 @@ public PrivateEndpointConnectionInner get(String resourceGroupName, String accou * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public PrivateEndpointConnectionInner get(String resourceGroupName, String accountName, String name) { + return getWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue(); } /** @@ -608,15 +608,20 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource. + * @return the Private Endpoint Connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner createOrUpdate( - String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, name, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String name, + PrivateEndpointConnectionInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, name, parameters, context).block(); } /** @@ -628,20 +633,15 @@ public PrivateEndpointConnectionInner createOrUpdate( * @param accountName The Media Services account name. * @param name The name parameter. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Private Endpoint Connection resource along with {@link Response}. + * @return the Private Endpoint Connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String name, - PrivateEndpointConnectionInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, name, parameters, context).block(); + public PrivateEndpointConnectionInner createOrUpdate( + String resourceGroupName, String accountName, String name, PrivateEndpointConnectionInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, name, parameters, Context.NONE).getValue(); } /** @@ -779,13 +779,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String name) { - deleteAsync(resourceGroupName, accountName, name).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -796,15 +799,12 @@ public void delete(String resourceGroupName, String accountName, String name) { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public void delete(String resourceGroupName, String accountName, String name) { + deleteWithResponse(resourceGroupName, accountName, name, Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java index 21be3759222e..a3898f9058aa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateEndpointConnectionsImpl.java @@ -29,15 +29,6 @@ public PrivateEndpointConnectionsImpl( this.serviceManager = serviceManager; } - public PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName) { - PrivateEndpointConnectionListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); - if (inner != null) { - return new PrivateEndpointConnectionListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public PrivateEndpointConnection get(String resourceGroupName, String accountName, String name) { - PrivateEndpointConnectionInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + public PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName) { + PrivateEndpointConnectionListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); + return new PrivateEndpointConnectionListResultImpl(inner, this.manager()); } else { return null; } @@ -77,8 +68,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String name) { - this.serviceClient().delete(resourceGroupName, accountName, name); + public PrivateEndpointConnection get(String resourceGroupName, String accountName, String name) { + PrivateEndpointConnectionInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -86,6 +82,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, name, context); } + public void delete(String resourceGroupName, String accountName, String name) { + this.serviceClient().delete(resourceGroupName, accountName, name); + } + public PrivateEndpointConnection getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java index f6cf5ccd5c04..7a7b1df75156 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesClientImpl.java @@ -52,7 +52,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesPr") - private interface PrivateLinkResourcesService { + public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -209,14 +209,16 @@ private Mono listAsync(String resourceGroupN * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources. + * @return a list of private link resources along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName) { - return listAsync(resourceGroupName, accountName).block(); + public Response listWithResponse( + String resourceGroupName, String accountName, Context context) { + return listWithResponseAsync(resourceGroupName, accountName, context).block(); } /** @@ -226,16 +228,14 @@ public PrivateLinkResourceListResultInner list(String resourceGroupName, String * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of private link resources along with {@link Response}. + * @return a list of private link resources. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listWithResponse( - String resourceGroupName, String accountName, Context context) { - return listWithResponseAsync(resourceGroupName, accountName, context).block(); + public PrivateLinkResourceListResultInner list(String resourceGroupName, String accountName) { + return listWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } /** @@ -375,14 +375,16 @@ private Mono getAsync(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID. + * @return details of a group ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name) { - return getAsync(resourceGroupName, accountName, name).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); } /** @@ -393,15 +395,13 @@ public PrivateLinkResourceInner get(String resourceGroupName, String accountName * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return details of a group ID along with {@link Response}. + * @return details of a group ID. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, name, context).block(); + public PrivateLinkResourceInner get(String resourceGroupName, String accountName, String name) { + return getWithResponse(resourceGroupName, accountName, name, Context.NONE).getValue(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java index e5809ecac8aa..cef262e66aac 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/PrivateLinkResourcesImpl.java @@ -29,15 +29,6 @@ public PrivateLinkResourcesImpl( this.serviceManager = serviceManager; } - public PrivateLinkResourceListResult list(String resourceGroupName, String accountName) { - PrivateLinkResourceListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); - if (inner != null) { - return new PrivateLinkResourceListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response listWithResponse( String resourceGroupName, String accountName, Context context) { Response inner = @@ -53,10 +44,10 @@ public Response listWithResponse( } } - public PrivateLinkResource get(String resourceGroupName, String accountName, String name) { - PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + public PrivateLinkResourceListResult list(String resourceGroupName, String accountName) { + PrivateLinkResourceListResultInner inner = this.serviceClient().list(resourceGroupName, accountName); if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); + return new PrivateLinkResourceListResultImpl(inner, this.manager()); } else { return null; } @@ -77,6 +68,15 @@ public Response getWithResponse( } } + public PrivateLinkResource get(String resourceGroupName, String accountName, String name) { + PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, accountName, name); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private PrivateLinkResourcesClient serviceClient() { return this.innerClient; } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java index 203b9b928151..4e7c5fe8b0b0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsClientImpl.java @@ -68,7 +68,7 @@ public final class StreamingEndpointsClientImpl implements StreamingEndpointsCli */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingEndpointsService { + public interface StreamingEndpointsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices" @@ -591,14 +591,16 @@ private Mono getAsync( * @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 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) - public StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName) { - return getAsync(resourceGroupName, accountName, streamingEndpointName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); } /** @@ -609,16 +611,14 @@ public StreamingEndpointInner get(String resourceGroupName, String accountName, * @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 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 along with {@link Response}. + * @return a streaming endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); + public StreamingEndpointInner get(String resourceGroupName, String accountName, String streamingEndpointName) { + return getWithResponse(resourceGroupName, accountName, streamingEndpointName, Context.NONE).getValue(); } /** @@ -794,6 +794,36 @@ private PollerFlux, StreamingEndpointInner> b this.client.getContext()); } + /** + * Create StreamingEndpoint + * + *

Creates a streaming endpoint. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. + * @param parameters Streaming endpoint properties needed for creation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the streaming endpoint. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, StreamingEndpointInner> beginCreateAsync( + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters) { + final Boolean autoStart = null; + Mono>> mono = + createWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart); + return this + .client + .getLroResult( + mono, + this.client.getHttpPipeline(), + StreamingEndpointInner.class, + StreamingEndpointInner.class, + this.client.getContext()); + } + /** * Create StreamingEndpoint * @@ -841,7 +871,6 @@ private PollerFlux, StreamingEndpointInner> b * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -849,12 +878,10 @@ private PollerFlux, StreamingEndpointInner> b */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StreamingEndpointInner> beginCreate( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart) { - return beginCreateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart) + String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters) { + final Boolean autoStart = null; + return this + .beginCreateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart) .getSyncPoller(); } @@ -882,7 +909,8 @@ public SyncPoller, StreamingEndpointInner> be StreamingEndpointInner parameters, Boolean autoStart, Context context) { - return beginCreateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart, context) + return this + .beginCreateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart, context) .getSyncPoller(); } @@ -965,31 +993,6 @@ private Mono createAsync( .flatMap(this.client::getLroFinalResultOrError); } - /** - * Create StreamingEndpoint - * - *

Creates a streaming endpoint. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. - * @param parameters Streaming endpoint properties needed for creation. - * @param autoStart The flag indicates if the resource should be automatically started on creation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the streaming endpoint. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointInner create( - String resourceGroupName, - String accountName, - String streamingEndpointName, - StreamingEndpointInner parameters, - Boolean autoStart) { - return createAsync(resourceGroupName, accountName, streamingEndpointName, parameters, autoStart).block(); - } - /** * Create StreamingEndpoint * @@ -1250,7 +1253,7 @@ private PollerFlux, StreamingEndpointInner> b @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, StreamingEndpointInner> beginUpdate( String resourceGroupName, String accountName, String streamingEndpointName, StreamingEndpointInner parameters) { - return beginUpdateAsync(resourceGroupName, accountName, streamingEndpointName, parameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, accountName, streamingEndpointName, parameters).getSyncPoller(); } /** @@ -1275,7 +1278,8 @@ public SyncPoller, StreamingEndpointInner> be String streamingEndpointName, StreamingEndpointInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, context) + return this + .beginUpdateAsync(resourceGroupName, accountName, streamingEndpointName, parameters, context) .getSyncPoller(); } @@ -1550,7 +1554,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String streamingEndpointName) { - return beginDeleteAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); } /** @@ -1570,7 +1574,7 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); } /** @@ -1790,15 +1794,16 @@ private Mono skusAsync( * @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 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) - public StreamingEndpointSkuInfoListResultInner skus( - String resourceGroupName, String accountName, String streamingEndpointName) { - return skusAsync(resourceGroupName, accountName, streamingEndpointName).block(); + public Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context) { + return skusWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); } /** @@ -1809,16 +1814,15 @@ public StreamingEndpointSkuInfoListResultInner 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 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 body along with {@link Response}. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return skusWithResponseAsync(resourceGroupName, accountName, streamingEndpointName, context).block(); + public StreamingEndpointSkuInfoListResultInner skus( + String resourceGroupName, String accountName, String streamingEndpointName) { + return skusWithResponse(resourceGroupName, accountName, streamingEndpointName, Context.NONE).getValue(); } /** @@ -1998,7 +2002,7 @@ private PollerFlux, Void> beginStartAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String streamingEndpointName) { - return beginStartAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); + return this.beginStartAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); } /** @@ -2018,7 +2022,7 @@ public SyncPoller, Void> beginStart( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStart( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return beginStartAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); + return this.beginStartAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); } /** @@ -2275,7 +2279,7 @@ private PollerFlux, Void> beginStopAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String streamingEndpointName) { - return beginStopAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); + return this.beginStopAsync(resourceGroupName, accountName, streamingEndpointName).getSyncPoller(); } /** @@ -2295,7 +2299,7 @@ public SyncPoller, Void> beginStop( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginStop( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { - return beginStopAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); + return this.beginStopAsync(resourceGroupName, accountName, streamingEndpointName, context).getSyncPoller(); } /** @@ -2586,7 +2590,7 @@ public SyncPoller, Void> beginScale( String accountName, String streamingEndpointName, StreamingEntityScaleUnit parameters) { - return beginScaleAsync(resourceGroupName, accountName, streamingEndpointName, parameters).getSyncPoller(); + return this.beginScaleAsync(resourceGroupName, accountName, streamingEndpointName, parameters).getSyncPoller(); } /** @@ -2611,7 +2615,8 @@ public SyncPoller, Void> beginScale( String streamingEndpointName, StreamingEntityScaleUnit parameters, Context context) { - return beginScaleAsync(resourceGroupName, accountName, streamingEndpointName, parameters, context) + return this + .beginScaleAsync(resourceGroupName, accountName, streamingEndpointName, parameters, context) .getSyncPoller(); } @@ -2853,14 +2858,16 @@ private Mono asyncOperationAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { - return asyncOperationAsync(resourceGroupName, accountName, operationId).block(); + public Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context) { + return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); } /** @@ -2871,16 +2878,14 @@ public AsyncOperationResultInner asyncOperation(String resourceGroupName, String * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context) { - return asyncOperationWithResponseAsync(resourceGroupName, accountName, operationId, context).block(); + public AsyncOperationResultInner asyncOperation(String resourceGroupName, String accountName, String operationId) { + return asyncOperationWithResponse(resourceGroupName, accountName, operationId, Context.NONE).getValue(); } /** @@ -3041,15 +3046,22 @@ private Mono operationLocationAsync( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingEndpointInner operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { - return operationLocationAsync(resourceGroupName, accountName, streamingEndpointName, operationId).block(); + public Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context) { + return operationLocationWithResponseAsync( + resourceGroupName, accountName, streamingEndpointName, operationId, context) + .block(); } /** @@ -3061,22 +3073,17 @@ public StreamingEndpointInner operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context) { - return operationLocationWithResponseAsync( - resourceGroupName, accountName, streamingEndpointName, operationId, context) - .block(); + public StreamingEndpointInner operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + return operationLocationWithResponse( + resourceGroupName, accountName, streamingEndpointName, operationId, Context.NONE) + .getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java index e41510b6f438..574445d251af 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingEndpointsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list(String resourceGroupName, String ac return Utils.mapPage(inner, inner1 -> new StreamingEndpointImpl(inner1, this.manager())); } - public StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName) { - StreamingEndpointInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingEndpointName); - if (inner != null) { - return new StreamingEndpointImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { Response inner = @@ -68,6 +59,15 @@ public Response getWithResponse( } } + public StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName) { + StreamingEndpointInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingEndpointName); + if (inner != null) { + return new StreamingEndpointImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String streamingEndpointName) { this.serviceClient().delete(resourceGroupName, accountName, streamingEndpointName); } @@ -76,17 +76,6 @@ public void delete(String resourceGroupName, String accountName, String streamin this.serviceClient().delete(resourceGroupName, accountName, streamingEndpointName, context); } - public StreamingEndpointSkuInfoListResult skus( - String resourceGroupName, String accountName, String streamingEndpointName) { - StreamingEndpointSkuInfoListResultInner inner = - this.serviceClient().skus(resourceGroupName, accountName, streamingEndpointName); - if (inner != null) { - return new StreamingEndpointSkuInfoListResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response skusWithResponse( String resourceGroupName, String accountName, String streamingEndpointName, Context context) { Response inner = @@ -102,6 +91,17 @@ public Response skusWithResponse( } } + public StreamingEndpointSkuInfoListResult skus( + String resourceGroupName, String accountName, String streamingEndpointName) { + StreamingEndpointSkuInfoListResultInner inner = + this.serviceClient().skus(resourceGroupName, accountName, streamingEndpointName); + if (inner != null) { + return new StreamingEndpointSkuInfoListResultImpl(inner, this.manager()); + } else { + return null; + } + } + public void start(String resourceGroupName, String accountName, String streamingEndpointName) { this.serviceClient().start(resourceGroupName, accountName, streamingEndpointName); } @@ -135,16 +135,6 @@ public void scale( this.serviceClient().scale(resourceGroupName, accountName, streamingEndpointName, parameters, context); } - public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { - AsyncOperationResultInner inner = - this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); - if (inner != null) { - return new AsyncOperationResultImpl(inner, this.manager()); - } else { - return null; - } - } - public Response asyncOperationWithResponse( String resourceGroupName, String accountName, String operationId, Context context) { Response inner = @@ -160,12 +150,11 @@ public Response asyncOperationWithResponse( } } - public StreamingEndpoint operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { - StreamingEndpointInner inner = - this.serviceClient().operationLocation(resourceGroupName, accountName, streamingEndpointName, operationId); + public AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId) { + AsyncOperationResultInner inner = + this.serviceClient().asyncOperation(resourceGroupName, accountName, operationId); if (inner != null) { - return new StreamingEndpointImpl(inner, this.manager()); + return new AsyncOperationResultImpl(inner, this.manager()); } else { return null; } @@ -193,6 +182,17 @@ public Response operationLocationWithResponse( } } + public StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId) { + StreamingEndpointInner inner = + this.serviceClient().operationLocation(resourceGroupName, accountName, streamingEndpointName, operationId); + if (inner != null) { + return new StreamingEndpointImpl(inner, this.manager()); + } else { + return null; + } + } + public StreamingEndpoint getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java index a98cb68e4d0f..61e17fd158d8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorImpl.java @@ -162,18 +162,14 @@ public StreamingLocator refresh(Context context) { return this; } - public ListContentKeysResponse listContentKeys() { - return serviceManager.streamingLocators().listContentKeys(resourceGroupName, accountName, streamingLocatorName); - } - public Response listContentKeysWithResponse(Context context) { return serviceManager .streamingLocators() .listContentKeysWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } - public ListPathsResponse listPaths() { - return serviceManager.streamingLocators().listPaths(resourceGroupName, accountName, streamingLocatorName); + public ListContentKeysResponse listContentKeys() { + return serviceManager.streamingLocators().listContentKeys(resourceGroupName, accountName, streamingLocatorName); } public Response listPathsWithResponse(Context context) { @@ -182,6 +178,10 @@ public Response listPathsWithResponse(Context context) { .listPathsWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } + public ListPathsResponse listPaths() { + return serviceManager.streamingLocators().listPaths(resourceGroupName, accountName, streamingLocatorName); + } + public StreamingLocatorImpl withAssetName(String assetName) { this.innerModel().withAssetName(assetName); return this; diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java index c345653065a3..e298a5b2f97b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsClientImpl.java @@ -61,7 +61,7 @@ public final class StreamingLocatorsClientImpl implements StreamingLocatorsClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingLocatorsService { + public interface StreamingLocatorsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -563,14 +563,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) - public StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName) { - return getAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -581,16 +583,14 @@ public StreamingLocatorInner get(String resourceGroupName, String accountName, S * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. + * @return the details of a Streaming Locator in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public StreamingLocatorInner get(String resourceGroupName, String accountName, String streamingLocatorName) { + return getWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE).getValue(); } /** @@ -753,15 +753,21 @@ private Mono createAsync( * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Locator resource. + * @return a Streaming Locator resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingLocatorInner create( - String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { - return createAsync(resourceGroupName, accountName, streamingLocatorName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingLocatorName, + StreamingLocatorInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, parameters, context) + .block(); } /** @@ -773,21 +779,16 @@ public StreamingLocatorInner create( * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Locator resource along with {@link Response}. + * @return a Streaming Locator resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingLocatorName, - StreamingLocatorInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, parameters, context) - .block(); + public StreamingLocatorInner create( + String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { + return createWithResponse(resourceGroupName, accountName, streamingLocatorName, parameters, Context.NONE) + .getValue(); } /** @@ -929,13 +930,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { - deleteAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -946,16 +950,13 @@ public void delete(String resourceGroupName, String accountName, String streamin * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { + deleteWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE); } /** @@ -1100,15 +1101,16 @@ private Mono listContentKeysAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action. + * @return class of response for listContentKeys action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListContentKeysResponseInner listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName) { - return listContentKeysAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response listContentKeysWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return listContentKeysWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -1119,16 +1121,16 @@ public ListContentKeysResponseInner listContentKeys( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listContentKeys action along with {@link Response}. + * @return class of response for listContentKeys action. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listContentKeysWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return listContentKeysWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public ListContentKeysResponseInner listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName) { + return listContentKeysWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE) + .getValue(); } /** @@ -1273,14 +1275,16 @@ private Mono listPathsAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action. + * @return class of response for listPaths action along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { - return listPathsAsync(resourceGroupName, accountName, streamingLocatorName).block(); + public Response listPathsWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context) { + return listPathsWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); } /** @@ -1291,16 +1295,14 @@ public ListPathsResponseInner listPaths(String resourceGroupName, String account * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return class of response for listPaths action along with {@link Response}. + * @return class of response for listPaths action. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response listPathsWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context) { - return listPathsWithResponseAsync(resourceGroupName, accountName, streamingLocatorName, context).block(); + public ListPathsResponseInner listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { + return listPathsWithResponse(resourceGroupName, accountName, streamingLocatorName, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java index 48e3dc49c22e..3053fc6b122b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingLocatorsImpl.java @@ -44,15 +44,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new StreamingLocatorImpl(inner1, this.manager())); } - public StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName) { - StreamingLocatorInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingLocatorName); - if (inner != null) { - return new StreamingLocatorImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingLocatorName, Context context) { Response inner = @@ -68,8 +59,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { - this.serviceClient().delete(resourceGroupName, accountName, streamingLocatorName); + public StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName) { + StreamingLocatorInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingLocatorName); + if (inner != null) { + return new StreamingLocatorImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -77,15 +73,8 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, streamingLocatorName, context); } - public ListContentKeysResponse listContentKeys( - String resourceGroupName, String accountName, String streamingLocatorName) { - ListContentKeysResponseInner inner = - this.serviceClient().listContentKeys(resourceGroupName, accountName, streamingLocatorName); - if (inner != null) { - return new ListContentKeysResponseImpl(inner, this.manager()); - } else { - return null; - } + public void delete(String resourceGroupName, String accountName, String streamingLocatorName) { + this.serviceClient().delete(resourceGroupName, accountName, streamingLocatorName); } public Response listContentKeysWithResponse( @@ -105,11 +94,12 @@ public Response listContentKeysWithResponse( } } - public ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { - ListPathsResponseInner inner = - this.serviceClient().listPaths(resourceGroupName, accountName, streamingLocatorName); + public ListContentKeysResponse listContentKeys( + String resourceGroupName, String accountName, String streamingLocatorName) { + ListContentKeysResponseInner inner = + this.serviceClient().listContentKeys(resourceGroupName, accountName, streamingLocatorName); if (inner != null) { - return new ListPathsResponseImpl(inner, this.manager()); + return new ListContentKeysResponseImpl(inner, this.manager()); } else { return null; } @@ -130,6 +120,16 @@ public Response listPathsWithResponse( } } + public ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName) { + ListPathsResponseInner inner = + this.serviceClient().listPaths(resourceGroupName, accountName, streamingLocatorName); + if (inner != null) { + return new ListPathsResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public StreamingLocator getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java index 270177af0dc6..c0a282709b25 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesClientImpl.java @@ -58,7 +58,7 @@ public final class StreamingPoliciesClientImpl implements StreamingPoliciesClien */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesSt") - private interface StreamingPoliciesService { + public interface StreamingPoliciesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -527,14 +527,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return 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) - public StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName) { - return getAsync(resourceGroupName, accountName, streamingPolicyName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); } /** @@ -545,16 +547,14 @@ public StreamingPolicyInner get(String resourceGroupName, String accountName, St * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); + public StreamingPolicyInner get(String resourceGroupName, String accountName, String streamingPolicyName) { + return getWithResponse(resourceGroupName, accountName, streamingPolicyName, Context.NONE).getValue(); } /** @@ -717,15 +717,21 @@ private Mono createAsync( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource. + * @return a Streaming Policy resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public StreamingPolicyInner create( - String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters) { - return createAsync(resourceGroupName, accountName, streamingPolicyName, parameters).block(); + public Response createWithResponse( + String resourceGroupName, + String accountName, + String streamingPolicyName, + StreamingPolicyInner parameters, + Context context) { + return createWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, parameters, context) + .block(); } /** @@ -737,21 +743,16 @@ public StreamingPolicyInner create( * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Streaming Policy resource along with {@link Response}. + * @return a Streaming Policy resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createWithResponse( - String resourceGroupName, - String accountName, - String streamingPolicyName, - StreamingPolicyInner parameters, - Context context) { - return createWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, parameters, context) - .block(); + public StreamingPolicyInner create( + String resourceGroupName, String accountName, String streamingPolicyName, StreamingPolicyInner parameters) { + return createWithResponse(resourceGroupName, accountName, streamingPolicyName, parameters, Context.NONE) + .getValue(); } /** @@ -893,13 +894,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { - deleteAsync(resourceGroupName, accountName, streamingPolicyName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); } /** @@ -910,16 +914,13 @@ public void delete(String resourceGroupName, String accountName, String streamin * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, streamingPolicyName, context).block(); + public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { + deleteWithResponse(resourceGroupName, accountName, streamingPolicyName, Context.NONE); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java index a74a060dc4c7..c11e00a80a69 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/StreamingPoliciesImpl.java @@ -40,15 +40,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new StreamingPolicyImpl(inner1, this.manager())); } - public StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName) { - StreamingPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingPolicyName); - if (inner != null) { - return new StreamingPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String streamingPolicyName, Context context) { Response inner = @@ -64,8 +55,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, streamingPolicyName); + public StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName) { + StreamingPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, streamingPolicyName); + if (inner != null) { + return new StreamingPolicyImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -73,6 +69,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, streamingPolicyName, context); } + public void delete(String resourceGroupName, String accountName, String streamingPolicyName) { + this.serviceClient().delete(resourceGroupName, accountName, streamingPolicyName); + } + public StreamingPolicy getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java index 51e8c379dc8c..299ec235a262 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksClientImpl.java @@ -64,7 +64,7 @@ public final class TracksClientImpl implements TracksClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesTr") - private interface TracksService { + public interface TracksService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -515,14 +515,16 @@ private Mono getAsync( * @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 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. + * @return the details of a Track in the Asset along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName) { - return getAsync(resourceGroupName, accountName, assetName, trackName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, context).block(); } /** @@ -534,16 +536,14 @@ public AssetTrackInner get(String resourceGroupName, String accountName, String * @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 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}. + * @return the details of a Track in the Asset. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, assetName, trackName, context).block(); + public AssetTrackInner get(String resourceGroupName, String accountName, String assetName, String trackName) { + return getWithResponse(resourceGroupName, accountName, assetName, trackName, Context.NONE).getValue(); } /** @@ -766,7 +766,8 @@ private PollerFlux, AssetTrackInner> beginCreateOrUp @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AssetTrackInner> beginCreateOrUpdate( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters) + return this + .beginCreateOrUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters) .getSyncPoller(); } @@ -794,7 +795,8 @@ public SyncPoller, AssetTrackInner> beginCreateOrUpd String trackName, AssetTrackInner parameters, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters, context) + return this + .beginCreateOrUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters, context) .getSyncPoller(); } @@ -1086,7 +1088,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String assetName, String trackName) { - return beginDeleteAsync(resourceGroupName, accountName, assetName, trackName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, assetName, trackName).getSyncPoller(); } /** @@ -1107,7 +1109,7 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String accountName, String assetName, String trackName, Context context) { - return beginDeleteAsync(resourceGroupName, accountName, assetName, trackName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, accountName, assetName, trackName, context).getSyncPoller(); } /** @@ -1412,7 +1414,7 @@ private PollerFlux, AssetTrackInner> beginUpdateAsyn @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, AssetTrackInner> beginUpdate( String resourceGroupName, String accountName, String assetName, String trackName, AssetTrackInner parameters) { - return beginUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters).getSyncPoller(); } /** @@ -1439,7 +1441,8 @@ public SyncPoller, AssetTrackInner> beginUpdate( String trackName, AssetTrackInner parameters, Context context) { - return beginUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters, context) + return this + .beginUpdateAsync(resourceGroupName, accountName, assetName, trackName, parameters, context) .getSyncPoller(); } @@ -1746,7 +1749,7 @@ private PollerFlux, Void> beginUpdateTrackDataAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdateTrackData( String resourceGroupName, String accountName, String assetName, String trackName) { - return beginUpdateTrackDataAsync(resourceGroupName, accountName, assetName, trackName).getSyncPoller(); + return this.beginUpdateTrackDataAsync(resourceGroupName, accountName, assetName, trackName).getSyncPoller(); } /** @@ -1770,7 +1773,9 @@ public SyncPoller, Void> beginUpdateTrackData( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginUpdateTrackData( String resourceGroupName, String accountName, String assetName, String trackName, Context context) { - return beginUpdateTrackDataAsync(resourceGroupName, accountName, assetName, trackName, context).getSyncPoller(); + return this + .beginUpdateTrackDataAsync(resourceGroupName, accountName, assetName, trackName, context) + .getSyncPoller(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java index 42c9f7a16d9b..bc632487b076 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TracksImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new AssetTrackImpl(inner1, this.manager())); } - public AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName) { - AssetTrackInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, trackName); - if (inner != null) { - return new AssetTrackImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String assetName, String trackName, Context context) { Response inner = @@ -63,6 +54,15 @@ public Response getWithResponse( } } + public AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName) { + AssetTrackInner inner = this.serviceClient().get(resourceGroupName, accountName, assetName, trackName); + if (inner != null) { + return new AssetTrackImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String accountName, String assetName, String trackName) { this.serviceClient().delete(resourceGroupName, accountName, assetName, trackName); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java index 7a2830e730b8..2c7269f14338 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsClientImpl.java @@ -59,7 +59,7 @@ public final class TransformsClientImpl implements TransformsClient { */ @Host("{$host}") @ServiceInterface(name = "AzureMediaServicesTr") - private interface TransformsService { + public interface TransformsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices" @@ -191,7 +191,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -257,7 +257,7 @@ private Mono> listSinglePageAsync( if (accountName == null) { return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -426,7 +426,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -483,7 +483,7 @@ private Mono> getWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -525,14 +525,16 @@ private Mono getAsync(String resourceGroupName, String accountNa * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform. + * @return a Transform along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public TransformInner get(String resourceGroupName, String accountName, String transformName) { - return getAsync(resourceGroupName, accountName, transformName).block(); + public Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context) { + return getWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); } /** @@ -543,16 +545,14 @@ public TransformInner get(String resourceGroupName, String accountName, String t * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Transform along with {@link Response}. + * @return a Transform. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context) { - return getWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); + public TransformInner get(String resourceGroupName, String accountName, String transformName) { + return getWithResponse(resourceGroupName, accountName, transformName, Context.NONE).getValue(); } /** @@ -601,7 +601,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -671,7 +671,7 @@ private Mono> createOrUpdateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -718,16 +718,22 @@ private Mono createOrUpdateAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a 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) - public TransformInner createOrUpdate( - String resourceGroupName, String accountName, String transformName, TransformInner parameters) { - return createOrUpdateAsync(resourceGroupName, accountName, transformName, parameters).block(); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + TransformInner parameters, + Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context) + .block(); } /** @@ -739,22 +745,17 @@ public TransformInner createOrUpdate( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - TransformInner parameters, - Context context) { - return createOrUpdateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context) - .block(); + public TransformInner createOrUpdate( + String resourceGroupName, String accountName, String transformName, TransformInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, accountName, transformName, parameters, Context.NONE) + .getValue(); } /** @@ -795,7 +796,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -852,7 +853,7 @@ private Mono> deleteWithResponseAsync( if (transformName == null) { return Mono.error(new IllegalArgumentException("Parameter transformName is required and cannot be null.")); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -893,13 +894,16 @@ private Mono deleteAsync(String resourceGroupName, String accountName, Str * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String accountName, String transformName) { - deleteAsync(resourceGroupName, accountName, transformName).block(); + public Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context) { + return deleteWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); } /** @@ -910,16 +914,13 @@ public void delete(String resourceGroupName, String accountName, String transfor * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context) { - return deleteWithResponseAsync(resourceGroupName, accountName, transformName, context).block(); + public void delete(String resourceGroupName, String accountName, String transformName) { + deleteWithResponse(resourceGroupName, accountName, transformName, Context.NONE); } /** @@ -968,7 +969,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; return FluxUtil .withContext( @@ -1038,7 +1039,7 @@ private Mono> updateWithResponseAsync( } else { parameters.validate(); } - final String apiVersion = "2021-11-01"; + final String apiVersion = "2022-07-01"; final String accept = "application/json"; context = this.client.mergeContext(context); return service @@ -1085,16 +1086,21 @@ private Mono updateAsync( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a 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) - public TransformInner update( - String resourceGroupName, String accountName, String transformName, TransformInner parameters) { - return updateAsync(resourceGroupName, accountName, transformName, parameters).block(); + public Response updateWithResponse( + String resourceGroupName, + String accountName, + String transformName, + TransformInner parameters, + Context context) { + return updateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context).block(); } /** @@ -1106,21 +1112,16 @@ public TransformInner update( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a Transform encapsulates the rules or instructions for generating desired outputs from input media, such - * as by transcoding or by extracting insights along with {@link Response}. + * as by transcoding or by extracting insights. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse( - String resourceGroupName, - String accountName, - String transformName, - TransformInner parameters, - Context context) { - return updateWithResponseAsync(resourceGroupName, accountName, transformName, parameters, context).block(); + public TransformInner update( + String resourceGroupName, String accountName, String transformName, TransformInner parameters) { + return updateWithResponse(resourceGroupName, accountName, transformName, parameters, Context.NONE).getValue(); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java index 38371dcdb5ab..c2f8fde0bc7a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/implementation/TransformsImpl.java @@ -39,15 +39,6 @@ public PagedIterable list( return Utils.mapPage(inner, inner1 -> new TransformImpl(inner1, this.manager())); } - public Transform get(String resourceGroupName, String accountName, String transformName) { - TransformInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName); - if (inner != null) { - return new TransformImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String accountName, String transformName, Context context) { Response inner = @@ -63,8 +54,13 @@ public Response getWithResponse( } } - public void delete(String resourceGroupName, String accountName, String transformName) { - this.serviceClient().delete(resourceGroupName, accountName, transformName); + public Transform get(String resourceGroupName, String accountName, String transformName) { + TransformInner inner = this.serviceClient().get(resourceGroupName, accountName, transformName); + if (inner != null) { + return new TransformImpl(inner, this.manager()); + } else { + return null; + } } public Response deleteWithResponse( @@ -72,6 +68,10 @@ public Response deleteWithResponse( return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, transformName, context); } + public void delete(String resourceGroupName, String accountName, String transformName) { + this.serviceClient().delete(resourceGroupName, accountName, transformName); + } + public Transform getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java index 0c4623315c46..a86f8dc75bc6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudio.java @@ -20,6 +20,10 @@ public final class AacAudio extends Audio { @JsonProperty(value = "profile") private AacAudioProfile profile; + /** Creates an instance of AacAudio class. */ + public AacAudio() { + } + /** * Get the profile property: The encoding profile to be used when encoding audio with AAC. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudioProfile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudioProfile.java index 90db2dd240db..7ba2ddc42e18 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudioProfile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AacAudioProfile.java @@ -19,6 +19,15 @@ public final class AacAudioProfile extends ExpandableStringEnum /** Static value HeAacV2 for AacAudioProfile. */ public static final AacAudioProfile HE_AAC_V2 = fromString("HeAacV2"); + /** + * Creates a new instance of AacAudioProfile value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AacAudioProfile() { + } + /** * Creates or finds a AacAudioProfile from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java index 4d433de456ef..037c4614b53b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AbsoluteClipTime.java @@ -26,6 +26,10 @@ public final class AbsoluteClipTime extends ClipTime { @JsonProperty(value = "time", required = true) private Duration time; + /** Creates an instance of AbsoluteClipTime class. */ + public AbsoluteClipTime() { + } + /** * Get the time property: The time position on the timeline of the input media. It is usually specified as an * ISO8601 period. e.g PT30S for 30 seconds. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java index 06a719f4dd85..f3a856cfb219 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccessControl.java @@ -24,6 +24,10 @@ public final class AccessControl { @JsonProperty(value = "ipAllowList") private List ipAllowList; + /** Creates an instance of AccessControl class. */ + public AccessControl() { + } + /** * Get the defaultAction property: The behavior for IP access control in Key Delivery. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java index fdcee0e2de92..0226bf8fb3f1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryption.java @@ -35,6 +35,10 @@ public final class AccountEncryption { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; + /** Creates an instance of AccountEncryption class. */ + public AccountEncryption() { + } + /** * Get the type property: The type of key used to encrypt the Account Key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryptionKeyType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryptionKeyType.java index 6969a9ea6d90..c756b0e2ea5f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryptionKeyType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AccountEncryptionKeyType.java @@ -16,6 +16,15 @@ public final class AccountEncryptionKeyType extends ExpandableStringEnum getWithResponse( + String resourceGroupName, String accountName, String filterName, Context context); /** * Get an Account Filter. @@ -62,14 +64,12 @@ public interface AccountFilters { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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 an Account Filter in the Media Services account along with {@link Response}. + * @return the details of an Account Filter in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String filterName, Context context); + AccountFilter get(String resourceGroupName, String accountName, String filterName); /** * Delete an Account Filter. @@ -79,11 +79,13 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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}. */ - void delete(String resourceGroupName, String accountName, String filterName); + Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); /** * Delete an Account Filter. @@ -93,13 +95,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filterName The Account Filter 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}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String filterName, Context context); + void delete(String resourceGroupName, String accountName, String filterName); /** * Get an Account Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ActionType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ActionType.java index 93ddbf2f4900..e0f814f15840 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ActionType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ActionType.java @@ -13,6 +13,15 @@ public final class ActionType extends ExpandableStringEnum { /** Static value Internal for ActionType. */ public static final ActionType INTERNAL = fromString("Internal"); + /** + * Creates a new instance of ActionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ActionType() { + } + /** * Creates or finds a ActionType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java index d12ddbc21ced..110a91ef05fd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiAccessControl.java @@ -17,6 +17,10 @@ public final class AkamaiAccessControl { @JsonProperty(value = "akamaiSignatureHeaderAuthenticationKeyList") private List akamaiSignatureHeaderAuthenticationKeyList; + /** Creates an instance of AkamaiAccessControl class. */ + public AkamaiAccessControl() { + } + /** * Get the akamaiSignatureHeaderAuthenticationKeyList property: authentication key list. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java index cbac3a36eb84..323ee18b9a5c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AkamaiSignatureHeaderAuthenticationKey.java @@ -29,6 +29,10 @@ public final class AkamaiSignatureHeaderAuthenticationKey { @JsonProperty(value = "expiration") private OffsetDateTime expiration; + /** Creates an instance of AkamaiSignatureHeaderAuthenticationKey class. */ + public AkamaiSignatureHeaderAuthenticationKey() { + } + /** * Get the identifier property: identifier of the key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AnalysisResolution.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AnalysisResolution.java index 36144a004259..68c3ed148a7d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AnalysisResolution.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AnalysisResolution.java @@ -24,6 +24,15 @@ public final class AnalysisResolution extends ExpandableStringEnum listContainerSasWithResponse(ListContainerSasInput parameters, Context context); /** * List the Asset URLs @@ -303,60 +304,59 @@ interface WithStorageAccountName { * The signatures are derived from the storage account keys. * * @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 Asset Storage container SAS URLs along with {@link Response}. + * @return the Asset Storage container SAS URLs. */ - Response listContainerSasWithResponse(ListContainerSasInput parameters, Context context); + AssetContainerSas listContainerSas(ListContainerSasInput parameters); /** * Gets the Asset storage key * *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - StorageEncryptedAssetDecryptionData getEncryptionKey(); + Response getEncryptionKeyWithResponse(Context context); /** * Gets the Asset storage key * *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 - * along with {@link Response}. + * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ - Response getEncryptionKeyWithResponse(Context context); + StorageEncryptedAssetDecryptionData getEncryptionKey(); /** * List Streaming Locators * *

Lists Streaming Locators which are associated with this asset. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - ListStreamingLocatorsResponse listStreamingLocators(); + Response listStreamingLocatorsWithResponse(Context context); /** * List Streaming Locators * *

Lists Streaming Locators which are associated with this asset. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return the Streaming Locators associated with this Asset. */ - Response listStreamingLocatorsWithResponse(Context context); + ListStreamingLocatorsResponse listStreamingLocators(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java index a78249131045..7e4f3f59c964 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetCollection.java @@ -25,6 +25,10 @@ public final class AssetCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of AssetCollection class. */ + public AssetCollection() { + } + /** * Get the value property: A collection of Asset items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetContainerPermission.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetContainerPermission.java index 8a03740db723..0317702f84e5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetContainerPermission.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetContainerPermission.java @@ -19,6 +19,15 @@ public final class AssetContainerPermission extends ExpandableStringEnum getWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** * Get an Asset Filter. @@ -66,14 +68,12 @@ public interface AssetFilters { * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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 an Asset Filter associated with the specified Asset along with {@link Response}. + * @return the details of an Asset Filter associated with the specified Asset. */ - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context); + AssetFilter get(String resourceGroupName, String accountName, String assetName, String filterName); /** * Delete an Asset Filter. @@ -84,11 +84,14 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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}. */ - void delete(String resourceGroupName, String accountName, String assetName, String filterName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String assetName, String filterName, Context context); /** * Delete an Asset Filter. @@ -99,14 +102,11 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param assetName The Asset name. * @param filterName The Asset Filter 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String assetName, String filterName, Context context); + void delete(String resourceGroupName, String accountName, String assetName, String filterName); /** * Get an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStorageEncryptionFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStorageEncryptionFormat.java index 9dd426e1f23a..76b1e59afaf2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStorageEncryptionFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AssetStorageEncryptionFormat.java @@ -17,6 +17,15 @@ public final class AssetStorageEncryptionFormat extends ExpandableStringEnum value; + /** Creates an instance of AssetTrackCollection class. */ + public AssetTrackCollection() { + } + /** * Get the value property: A collection of AssetTrack items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java index 8e51ed49af2a..fe099149da57 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Assets.java @@ -44,21 +44,6 @@ public interface Assets { PagedIterable list( String resourceGroupName, String accountName, String filter, Integer top, String orderby, Context context); - /** - * Get an Asset - * - *

Get the details of an Asset in the Media Services account. - * - * @param resourceGroupName The name of the resource group within the Azure subscription. - * @param accountName The Media Services account name. - * @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 the details of an Asset in the Media Services account. - */ - Asset get(String resourceGroupName, String accountName, String assetName); - /** * Get an Asset * @@ -76,9 +61,9 @@ PagedIterable list( Response getWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * Delete an Asset. + * Get an Asset * - *

Deletes an Asset in the Media Services account. + *

Get the details of an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -86,8 +71,9 @@ 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. */ - void delete(String resourceGroupName, String accountName, String assetName); + Asset get(String resourceGroupName, String accountName, String assetName); /** * Delete an Asset. @@ -106,22 +92,18 @@ PagedIterable list( Response deleteWithResponse(String resourceGroupName, String accountName, String assetName, Context context); /** - * List the Asset URLs + * Delete an Asset. * - *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. - * The signatures are derived from the storage account keys. + *

Deletes an Asset in the Media Services account. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. - * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset Storage container SAS URLs. */ - AssetContainerSas listContainerSas( - String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); + void delete(String resourceGroupName, String accountName, String assetName); /** * List the Asset URLs @@ -147,20 +129,22 @@ Response listContainerSasWithResponse( Context context); /** - * Gets the Asset storage key + * List the Asset URLs * - *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + *

Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. + * The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param assetName The Asset name. + * @param parameters The request parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. + * @return the Asset Storage container SAS URLs. */ - StorageEncryptedAssetDecryptionData getEncryptionKey( - String resourceGroupName, String accountName, String assetName); + AssetContainerSas listContainerSas( + String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters); /** * Gets the Asset storage key @@ -181,9 +165,9 @@ Response getEncryptionKeyWithResponse( String resourceGroupName, String accountName, String assetName, Context context); /** - * List Streaming Locators + * Gets the Asset storage key * - *

Lists Streaming Locators which are associated with this asset. + *

Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. @@ -191,9 +175,10 @@ Response getEncryptionKeyWithResponse( * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API. */ - ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName); + StorageEncryptedAssetDecryptionData getEncryptionKey( + String resourceGroupName, String accountName, String assetName); /** * List Streaming Locators @@ -212,6 +197,21 @@ Response getEncryptionKeyWithResponse( Response listStreamingLocatorsWithResponse( String resourceGroupName, String accountName, String assetName, Context context); + /** + * List Streaming Locators + * + *

Lists Streaming Locators which are associated with this asset. + * + * @param resourceGroupName The name of the resource group within the Azure subscription. + * @param accountName The Media Services account name. + * @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 the Streaming Locators associated with this Asset. + */ + ListStreamingLocatorsResponse listStreamingLocators(String resourceGroupName, String accountName, String assetName); + /** * Get an Asset * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java index 7856c071bcf4..f5e6d0654f5c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AsyncOperationStatus.java @@ -19,6 +19,15 @@ public final class AsyncOperationStatus extends ExpandableStringEnum /** Static value ValueEquals for AttributeFilter. */ public static final AttributeFilter VALUE_EQUALS = fromString("ValueEquals"); + /** + * Creates a new instance of AttributeFilter value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AttributeFilter() { + } + /** * Creates or finds a AttributeFilter from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java index 9c78b41250a1..e597e211e99d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Audio.java @@ -17,7 +17,10 @@ property = "@odata.type", defaultImpl = Audio.class) @JsonTypeName("#Microsoft.Media.Audio") -@JsonSubTypes({@JsonSubTypes.Type(name = "#Microsoft.Media.AacAudio", value = AacAudio.class)}) +@JsonSubTypes({ + @JsonSubTypes.Type(name = "#Microsoft.Media.AacAudio", value = AacAudio.class), + @JsonSubTypes.Type(name = "#Microsoft.Media.DDAudio", value = DDAudio.class) +}) @Fluent public class Audio extends Codec { /* @@ -38,6 +41,10 @@ public class Audio extends Codec { @JsonProperty(value = "bitrate") private Integer bitrate; + /** Creates an instance of Audio class. */ + public Audio() { + } + /** * Get the channels property: The number of channels in the audio. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalysisMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalysisMode.java index a6bdfdea50fb..4efdea51c792 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalysisMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioAnalysisMode.java @@ -19,6 +19,15 @@ public final class AudioAnalysisMode extends ExpandableStringEnum experimentalOptions; + /** Creates an instance of AudioAnalyzerPreset class. */ + public AudioAnalyzerPreset() { + } + /** * Get the audioLanguage property: The language for the audio payload in the input using the BCP-47 format of * 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java index 13c1db9cfa43..ef5a870b3a37 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioOverlay.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.AudioOverlay") @Fluent public final class AudioOverlay extends Overlay { + /** Creates an instance of AudioOverlay class. */ + public AudioOverlay() { + } + /** {@inheritDoc} */ @Override public AudioOverlay withInputLabel(String inputLabel) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java index f97d14e7af59..fe8726105e5d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrack.java @@ -56,6 +56,10 @@ public final class AudioTrack extends TrackBase { @JsonProperty(value = "bitRate", access = JsonProperty.Access.WRITE_ONLY) private Integer bitRate; + /** Creates an instance of AudioTrack class. */ + public AudioTrack() { + } + /** * Get the fileName property: The file name to the source file. This file is located in the storage container of the * asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java index 9233d32b584f..98b3af49f137 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/AudioTrackDescriptor.java @@ -32,6 +32,10 @@ public class AudioTrackDescriptor extends TrackDescriptor { @JsonProperty(value = "channelMapping") private ChannelMapping channelMapping; + /** Creates an instance of AudioTrackDescriptor class. */ + public AudioTrackDescriptor() { + } + /** * Get the channelMapping property: Optional designation for single channel audio tracks. Can be used to combine the * tracks into stereo or multi-channel audio tracks. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java index e3cc442a788f..a272f228c28a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BlurType.java @@ -25,6 +25,15 @@ public final class BlurType extends ExpandableStringEnum { /** Static value Black for BlurType. */ public static final BlurType BLACK = fromString("Black"); + /** + * Creates a new instance of BlurType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public BlurType() { + } + /** * Creates or finds a BlurType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java index 1cbf0fd16c22..de7c2e212971 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/BuiltInStandardEncoderPreset.java @@ -28,6 +28,10 @@ public final class BuiltInStandardEncoderPreset extends Preset { @JsonProperty(value = "presetName", required = true) private EncoderNamedPreset presetName; + /** Creates an instance of BuiltInStandardEncoderPreset class. */ + public BuiltInStandardEncoderPreset() { + } + /** * Get the configurations property: Optional configuration settings for encoder. Configurations is only supported * for ContentAwareEncoding and H265ContentAwareEncoding BuiltInStandardEncoderPreset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java index 9807c62f7105..2a4d9f56ab80 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CbcsDrmConfiguration.java @@ -28,6 +28,10 @@ public final class CbcsDrmConfiguration { @JsonProperty(value = "widevine") private StreamingPolicyWidevineConfiguration widevine; + /** Creates an instance of CbcsDrmConfiguration class. */ + public CbcsDrmConfiguration() { + } + /** * Get the fairPlay property: FairPlay configurations. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java index a7736baccb19..8c479e82cf71 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CencDrmConfiguration.java @@ -22,6 +22,10 @@ public final class CencDrmConfiguration { @JsonProperty(value = "widevine") private StreamingPolicyWidevineConfiguration widevine; + /** Creates an instance of CencDrmConfiguration class. */ + public CencDrmConfiguration() { + } + /** * Get the playReady property: PlayReady configurations. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java index 1f819b301e9a..81b622028204 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ChannelMapping.java @@ -37,6 +37,15 @@ public final class ChannelMapping extends ExpandableStringEnum { /** Static value StereoRight for ChannelMapping. */ public static final ChannelMapping STEREO_RIGHT = fromString("StereoRight"); + /** + * Creates a new instance of ChannelMapping value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChannelMapping() { + } + /** * Creates or finds a ChannelMapping from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java index 307235861f96..1f6cae57e221 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CheckNameAvailabilityInput.java @@ -22,6 +22,10 @@ public final class CheckNameAvailabilityInput { @JsonProperty(value = "type") private String type; + /** Creates an instance of CheckNameAvailabilityInput class. */ + public CheckNameAvailabilityInput() { + } + /** * Get the name property: The account name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java index 852753862687..548faafd0659 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClearKeyEncryptionConfiguration.java @@ -19,6 +19,10 @@ public final class ClearKeyEncryptionConfiguration { @JsonProperty(value = "customKeysAcquisitionUrlTemplate") private String customKeysAcquisitionUrlTemplate; + /** Creates an instance of ClearKeyEncryptionConfiguration class. */ + public ClearKeyEncryptionConfiguration() { + } + /** * Get the customKeysAcquisitionUrlTemplate property: Template for the URL of the custom service delivering content * keys to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java index 61b1a518533e..7e06685b4861 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ClipTime.java @@ -22,6 +22,10 @@ }) @Immutable public class ClipTime { + /** Creates an instance of ClipTime class. */ + public ClipTime() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java index b670086cf0a7..1b29547f5b80 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Codec.java @@ -31,6 +31,10 @@ public class Codec { @JsonProperty(value = "label") private String label; + /** Creates an instance of Codec class. */ + public Codec() { + } + /** * Get the label property: An optional label for the codec. The label can be used to control muxing behavior. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java index 23eb7aec60b7..c6dca39b8e27 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCbcs.java @@ -41,6 +41,10 @@ public final class CommonEncryptionCbcs { @JsonProperty(value = "clearKeyEncryptionConfiguration") private ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration; + /** Creates an instance of CommonEncryptionCbcs class. */ + public CommonEncryptionCbcs() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java index 72ffe79a3331..2a162365f0a1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CommonEncryptionCenc.java @@ -41,6 +41,10 @@ public final class CommonEncryptionCenc { @JsonProperty(value = "clearKeyEncryptionConfiguration") private ClearKeyEncryptionConfiguration clearKeyEncryptionConfiguration; + /** Creates an instance of CommonEncryptionCenc class. */ + public CommonEncryptionCenc() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Complexity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Complexity.java index 593fc804cb30..37dd7196ef75 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Complexity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Complexity.java @@ -22,6 +22,15 @@ public final class Complexity extends ExpandableStringEnum { /** Static value Quality for Complexity. */ public static final Complexity QUALITY = fromString("Quality"); + /** + * Creates a new instance of Complexity value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Complexity() { + } + /** * Creates or finds a Complexity from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java index 2e52d2747c65..1d514dd422ab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicies.java @@ -52,12 +52,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 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}. */ - ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Get a Content Key Policy @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy in the Media Services account along with {@link Response}. + * @return the details of a Content Key Policy in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + ContentKeyPolicy get(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Delete a Content Key Policy @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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}. */ - void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Delete a Content Key Policy @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Get a Content Key Policy with secrets @@ -115,13 +115,14 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy including secret values. + * @return a Content Key Policy including secret values along with {@link Response}. */ - ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( - String resourceGroupName, String accountName, String contentKeyPolicyName); + Response getPolicyPropertiesWithSecretsWithResponse( + String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); /** * Get a Content Key Policy with secrets @@ -131,14 +132,13 @@ ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param contentKeyPolicyName The Content Key Policy 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 Content Key Policy including secret values along with {@link Response}. + * @return a Content Key Policy including secret values. */ - Response getPolicyPropertiesWithSecretsWithResponse( - String resourceGroupName, String accountName, String contentKeyPolicyName, Context context); + ContentKeyPolicyProperties getPolicyPropertiesWithSecrets( + String resourceGroupName, String accountName, String contentKeyPolicyName); /** * Get a Content Key Policy diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java index 373ebbcdcd6e..783e27b5ad2d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicy.java @@ -219,22 +219,22 @@ interface WithOptions { * *

Get a Content Key Policy including secret values. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - ContentKeyPolicyProperties getPolicyPropertiesWithSecrets(); + Response getPolicyPropertiesWithSecretsWithResponse(Context context); /** * Get a Content Key Policy with secrets * *

Get a Content Key Policy including secret values. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return a Content Key Policy including secret values. */ - Response getPolicyPropertiesWithSecretsWithResponse(Context context); + ContentKeyPolicyProperties getPolicyPropertiesWithSecrets(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java index 7378e19332e9..2f9ff113613d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyClearKeyConfiguration.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyClearKeyConfiguration") @Immutable public final class ContentKeyPolicyClearKeyConfiguration extends ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyClearKeyConfiguration class. */ + public ContentKeyPolicyClearKeyConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java index 05975a9f85ed..880b6b144a85 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyCollection.java @@ -25,6 +25,10 @@ public final class ContentKeyPolicyCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of ContentKeyPolicyCollection class. */ + public ContentKeyPolicyCollection() { + } + /** * Get the value property: A collection of ContentKeyPolicy items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java index 75244d8d54dd..4f73cce45718 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyConfiguration.java @@ -35,6 +35,10 @@ }) @Immutable public class ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyConfiguration class. */ + public ContentKeyPolicyConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java index 0fdb74c0f5f9..08e713b64ef2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayConfiguration.java @@ -17,7 +17,7 @@ @Fluent public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolicyConfiguration { /* - * The key that must be used as FairPlay Application Secret key. + * The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded. */ @JsonProperty(value = "ask", required = true) private byte[] ask; @@ -52,8 +52,13 @@ public final class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolic @JsonProperty(value = "offlineRentalConfiguration") private ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration; + /** Creates an instance of ContentKeyPolicyFairPlayConfiguration class. */ + public ContentKeyPolicyFairPlayConfiguration() { + } + /** - * Get the ask property: The key that must be used as FairPlay Application Secret key. + * Get the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 + * encoded. * * @return the ask value. */ @@ -62,7 +67,8 @@ public byte[] ask() { } /** - * Set the ask property: The key that must be used as FairPlay Application Secret key. + * Set the ask property: The key that must be used as FairPlay Application Secret key. This needs to be base64 + * encoded. * * @param ask the ask value to set. * @return the ContentKeyPolicyFairPlayConfiguration object itself. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java index c1900f9afca8..b6b8bb9854a9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyFairPlayOfflineRentalConfiguration { @JsonProperty(value = "storageDurationSeconds", required = true) private long storageDurationSeconds; + /** Creates an instance of ContentKeyPolicyFairPlayOfflineRentalConfiguration class. */ + public ContentKeyPolicyFairPlayOfflineRentalConfiguration() { + } + /** * Get the playbackDurationSeconds property: Playback duration. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java index 459c121cd7a9..ca258a944082 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java @@ -28,6 +28,15 @@ public final class ContentKeyPolicyFairPlayRentalAndLeaseKeyType public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_LIMITED = fromString("PersistentLimited"); + /** + * Creates a new instance of ContentKeyPolicyFairPlayRentalAndLeaseKeyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentKeyPolicyFairPlayRentalAndLeaseKeyType() { + } + /** * Creates or finds a ContentKeyPolicyFairPlayRentalAndLeaseKeyType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java index 908415af29bf..259056f3cbdb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOpenRestriction.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyOpenRestriction") @Immutable public final class ContentKeyPolicyOpenRestriction extends ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyOpenRestriction class. */ + public ContentKeyPolicyOpenRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java index ebee9b711cf8..1c852727b8f3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyOption.java @@ -36,6 +36,10 @@ public final class ContentKeyPolicyOption { @JsonProperty(value = "restriction", required = true) private ContentKeyPolicyRestriction restriction; + /** Creates an instance of ContentKeyPolicyOption class. */ + public ContentKeyPolicyOption() { + } + /** * Get the policyOptionId property: The legacy Policy Option ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java index 15351b5643d9..cf6c472891fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyConfiguration.java @@ -28,6 +28,10 @@ public final class ContentKeyPolicyPlayReadyConfiguration extends ContentKeyPoli @JsonProperty(value = "responseCustomData") private String responseCustomData; + /** Creates an instance of ContentKeyPolicyPlayReadyConfiguration class. */ + public ContentKeyPolicyPlayReadyConfiguration() { + } + /** * Get the licenses property: The PlayReady licenses. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java index 00c38cab725a..16b1ed76c015 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader.java @@ -14,6 +14,10 @@ @Immutable public final class ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader extends ContentKeyPolicyPlayReadyContentKeyLocation { + /** Creates an instance of ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader class. */ + public ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java index 71d2bf3ed77d..6daf21190462 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier.java @@ -23,6 +23,10 @@ public final class ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifie @JsonProperty(value = "keyId", required = true) private UUID keyId; + /** Creates an instance of ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier class. */ + public ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier() { + } + /** * Get the keyId property: The content key ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java index 89d4634fa3ac..5ba68405adaf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentKeyLocation.java @@ -26,6 +26,10 @@ }) @Immutable public class ContentKeyPolicyPlayReadyContentKeyLocation { + /** Creates an instance of ContentKeyPolicyPlayReadyContentKeyLocation class. */ + public ContentKeyPolicyPlayReadyContentKeyLocation() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentType.java index 6e57e3f51c90..5adf9095d36a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyContentType.java @@ -24,6 +24,15 @@ public final class ContentKeyPolicyPlayReadyContentType public static final ContentKeyPolicyPlayReadyContentType ULTRA_VIOLET_STREAMING = fromString("UltraVioletStreaming"); + /** + * Creates a new instance of ContentKeyPolicyPlayReadyContentType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentKeyPolicyPlayReadyContentType() { + } + /** * Creates or finds a ContentKeyPolicyPlayReadyContentType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java index 122d3b3817aa..3d4daf09fd83 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction.java @@ -25,6 +25,10 @@ public final class ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction @JsonProperty(value = "configurationData", required = true) private int configurationData; + /** Creates an instance of ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction class. */ + public ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction() { + } + /** * Get the bestEffort property: Indicates whether this restriction is enforced on a Best Effort basis. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java index 80eec5231242..ad10f30e177e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicense.java @@ -79,6 +79,10 @@ public final class ContentKeyPolicyPlayReadyLicense { @JsonProperty(value = "contentType", required = true) private ContentKeyPolicyPlayReadyContentType contentType; + /** Creates an instance of ContentKeyPolicyPlayReadyLicense class. */ + public ContentKeyPolicyPlayReadyLicense() { + } + /** * Get the allowTestDevices property: A flag indicating whether test devices can use the license. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicenseType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicenseType.java index 063576690d4d..f6425562e9f7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicenseType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyLicenseType.java @@ -20,6 +20,15 @@ public final class ContentKeyPolicyPlayReadyLicenseType /** Static value Persistent for ContentKeyPolicyPlayReadyLicenseType. */ public static final ContentKeyPolicyPlayReadyLicenseType PERSISTENT = fromString("Persistent"); + /** + * Creates a new instance of ContentKeyPolicyPlayReadyLicenseType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentKeyPolicyPlayReadyLicenseType() { + } + /** * Creates or finds a ContentKeyPolicyPlayReadyLicenseType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java index 84f1eb68c22c..bd266e341393 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyPlayRight.java @@ -91,6 +91,10 @@ public final class ContentKeyPolicyPlayReadyPlayRight { @JsonProperty(value = "uncompressedDigitalAudioOpl") private Integer uncompressedDigitalAudioOpl; + /** Creates an instance of ContentKeyPolicyPlayReadyPlayRight class. */ + public ContentKeyPolicyPlayReadyPlayRight() { + } + /** * Get the firstPlayExpiration property: The amount of time that the license is valid after the license is first * used to play content. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java index 06567f1a4899..4a016cb994b0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java @@ -24,6 +24,15 @@ public final class ContentKeyPolicyPlayReadyUnknownOutputPassingOption public static final ContentKeyPolicyPlayReadyUnknownOutputPassingOption ALLOWED_WITH_VIDEO_CONSTRICTION = fromString("AllowedWithVideoConstriction"); + /** + * Creates a new instance of ContentKeyPolicyPlayReadyUnknownOutputPassingOption value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentKeyPolicyPlayReadyUnknownOutputPassingOption() { + } + /** * Creates or finds a ContentKeyPolicyPlayReadyUnknownOutputPassingOption from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java index 33b5585e5541..9ca6c6083664 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestriction.java @@ -29,6 +29,10 @@ }) @Immutable public class ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyRestriction class. */ + public ContentKeyPolicyRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java index 0f117dd35da2..b59e52737b22 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenKey.java @@ -29,6 +29,10 @@ }) @Immutable public class ContentKeyPolicyRestrictionTokenKey { + /** Creates an instance of ContentKeyPolicyRestrictionTokenKey class. */ + public ContentKeyPolicyRestrictionTokenKey() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenType.java index 0788e2738412..0125e016d9f4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRestrictionTokenType.java @@ -20,6 +20,15 @@ public final class ContentKeyPolicyRestrictionTokenType /** Static value Jwt for ContentKeyPolicyRestrictionTokenType. */ public static final ContentKeyPolicyRestrictionTokenType JWT = fromString("Jwt"); + /** + * Creates a new instance of ContentKeyPolicyRestrictionTokenType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ContentKeyPolicyRestrictionTokenType() { + } + /** * Creates or finds a ContentKeyPolicyRestrictionTokenType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java index 6103418cdd27..144182162187 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyRsaTokenKey.java @@ -28,6 +28,10 @@ public final class ContentKeyPolicyRsaTokenKey extends ContentKeyPolicyRestricti @JsonProperty(value = "modulus", required = true) private byte[] modulus; + /** Creates an instance of ContentKeyPolicyRsaTokenKey class. */ + public ContentKeyPolicyRsaTokenKey() { + } + /** * Get the exponent property: The RSA Parameter exponent. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java index 5b63bcc687cf..fa5311f816fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicySymmetricTokenKey.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicySymmetricTokenKey extends ContentKeyPolicyRes @JsonProperty(value = "keyValue", required = true) private byte[] keyValue; + /** Creates an instance of ContentKeyPolicySymmetricTokenKey class. */ + public ContentKeyPolicySymmetricTokenKey() { + } + /** * Get the keyValue property: The key value of the key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java index a71f548ec7a9..efc32aeef59f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenClaim.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyTokenClaim { @JsonProperty(value = "claimValue") private String claimValue; + /** Creates an instance of ContentKeyPolicyTokenClaim class. */ + public ContentKeyPolicyTokenClaim() { + } + /** * Get the claimType property: Token claim type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java index 361a62fb8352..fcc6d54b2e23 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyTokenRestriction.java @@ -60,6 +60,10 @@ public final class ContentKeyPolicyTokenRestriction extends ContentKeyPolicyRest @JsonProperty(value = "openIdConnectDiscoveryDocument") private String openIdConnectDiscoveryDocument; + /** Creates an instance of ContentKeyPolicyTokenRestriction class. */ + public ContentKeyPolicyTokenRestriction() { + } + /** * Get the issuer property: The token issuer. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java index 4d4eb45086b9..85a4168a5312 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownConfiguration.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyUnknownConfiguration") @Immutable public final class ContentKeyPolicyUnknownConfiguration extends ContentKeyPolicyConfiguration { + /** Creates an instance of ContentKeyPolicyUnknownConfiguration class. */ + public ContentKeyPolicyUnknownConfiguration() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java index 01a2ab165147..37e93b4c8d0e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyUnknownRestriction.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.ContentKeyPolicyUnknownRestriction") @Immutable public final class ContentKeyPolicyUnknownRestriction extends ContentKeyPolicyRestriction { + /** Creates an instance of ContentKeyPolicyUnknownRestriction class. */ + public ContentKeyPolicyUnknownRestriction() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java index 81648417bce4..1ee43c44b3a0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyWidevineConfiguration.java @@ -21,6 +21,10 @@ public final class ContentKeyPolicyWidevineConfiguration extends ContentKeyPolic @JsonProperty(value = "widevineTemplate", required = true) private String widevineTemplate; + /** Creates an instance of ContentKeyPolicyWidevineConfiguration class. */ + public ContentKeyPolicyWidevineConfiguration() { + } + /** * Get the widevineTemplate property: The Widevine template. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java index 7ac89ac41deb..2bc441225eb8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ContentKeyPolicyX509CertificateTokenKey.java @@ -22,6 +22,10 @@ public final class ContentKeyPolicyX509CertificateTokenKey extends ContentKeyPol @JsonProperty(value = "rawBody", required = true) private byte[] rawBody; + /** Creates an instance of ContentKeyPolicyX509CertificateTokenKey class. */ + public ContentKeyPolicyX509CertificateTokenKey() { + } + /** * Get the rawBody property: The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET). * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java index 399413cb9871..04612e03d30e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyAudio.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.CopyAudio") @Fluent public final class CopyAudio extends Codec { + /** Creates an instance of CopyAudio class. */ + public CopyAudio() { + } + /** {@inheritDoc} */ @Override public CopyAudio withLabel(String label) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java index 7f91ddef7733..f18df5a466bb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CopyVideo.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.CopyVideo") @Fluent public final class CopyVideo extends Codec { + /** Creates an instance of CopyVideo class. */ + public CopyVideo() { + } + /** {@inheritDoc} */ @Override public CopyVideo withLabel(String label) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java index 4f83c868ea0e..6a240cc49770 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/CrossSiteAccessPolicies.java @@ -22,6 +22,10 @@ public final class CrossSiteAccessPolicies { @JsonProperty(value = "crossDomainPolicy") private String crossDomainPolicy; + /** Creates an instance of CrossSiteAccessPolicies class. */ + public CrossSiteAccessPolicies() { + } + /** * Get the clientAccessPolicy property: The content of clientaccesspolicy.xml used by Silverlight. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java new file mode 100644 index 000000000000..4b7294d3ba8f --- /dev/null +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DDAudio.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.mediaservices.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Describes Dolby Digital Audio Codec (AC3) audio encoding settings. The current implementation for Dolby Digital Audio + * support are: Audio channel numbers at 1((mono), 2(stereo), 6(5.1side); Audio sampling frequency rates at: + * 32K/44.1K/48K Hz; Audio bitrate values as AC3 specification supports: 32000, 40000, 48000, 56000, 64000, 80000, + * 96000, 112000, 128000, 160000, 192000, 224000, 256000, 320000, 384000, 448000, 512000, 576000, 640000 bps. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") +@JsonTypeName("#Microsoft.Media.DDAudio") +@Fluent +public final class DDAudio extends Audio { + /** Creates an instance of DDAudio class. */ + public DDAudio() { + } + + /** {@inheritDoc} */ + @Override + public DDAudio withChannels(Integer channels) { + super.withChannels(channels); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withSamplingRate(Integer samplingRate) { + super.withSamplingRate(samplingRate); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withBitrate(Integer bitrate) { + super.withBitrate(bitrate); + return this; + } + + /** {@inheritDoc} */ + @Override + public DDAudio withLabel(String label) { + super.withLabel(label); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + super.validate(); + } +} diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java index 1775e43bb614..a2960525d41b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DashSettings.java @@ -16,6 +16,10 @@ public final class DashSettings { @JsonProperty(value = "role") private String role; + /** Creates an instance of DashSettings class. */ + public DashSettings() { + } + /** * Get the role property: The role for the DASH setting. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultAction.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultAction.java index 27de9df8f7bb..ecbe7323bce3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultAction.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultAction.java @@ -16,6 +16,15 @@ public final class DefaultAction extends ExpandableStringEnum { /** Static value Deny for DefaultAction. */ public static final DefaultAction DENY = fromString("Deny"); + /** + * Creates a new instance of DefaultAction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DefaultAction() { + } + /** * Creates or finds a DefaultAction from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java index 9b127bc8871e..d165ac427c0e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DefaultKey.java @@ -22,6 +22,10 @@ public final class DefaultKey { @JsonProperty(value = "policyName") private String policyName; + /** Creates an instance of DefaultKey class. */ + public DefaultKey() { + } + /** * Get the label property: Label can be used to specify Content Key when creating a Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java index 1799004020cb..4eb8d53e4bfb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Deinterlace.java @@ -22,6 +22,10 @@ public final class Deinterlace { @JsonProperty(value = "mode") private DeinterlaceMode mode; + /** Creates an instance of Deinterlace class. */ + public Deinterlace() { + } + /** * Get the parity property: The field parity for de-interlacing, defaults to Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceMode.java index e966c26b3e36..17883b3ccd58 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceMode.java @@ -16,6 +16,15 @@ public final class DeinterlaceMode extends ExpandableStringEnum /** Static value AutoPixelAdaptive for DeinterlaceMode. */ public static final DeinterlaceMode AUTO_PIXEL_ADAPTIVE = fromString("AutoPixelAdaptive"); + /** + * Creates a new instance of DeinterlaceMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DeinterlaceMode() { + } + /** * Creates or finds a DeinterlaceMode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceParity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceParity.java index aa810d2c8d9d..7442e0cd04dd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceParity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/DeinterlaceParity.java @@ -19,6 +19,15 @@ public final class DeinterlaceParity extends ExpandableStringEnum { /** Static value Cavlc for EntropyMode. */ public static final EntropyMode CAVLC = fromString("Cavlc"); + /** + * Creates a new instance of EntropyMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EntropyMode() { + } + /** * Creates or finds a EntropyMode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java index 83b186cc91c4..2c6d2ab97344 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/EnvelopeEncryption.java @@ -39,6 +39,10 @@ public final class EnvelopeEncryption { @JsonProperty(value = "customKeyAcquisitionUrlTemplate") private String customKeyAcquisitionUrlTemplate; + /** Creates an instance of EnvelopeEncryption class. */ + public EnvelopeEncryption() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java index 2479f55b9d64..a9e5b18fb41e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceDetectorPreset.java @@ -56,6 +56,10 @@ public final class FaceDetectorPreset extends Preset { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map experimentalOptions; + /** Creates an instance of FaceDetectorPreset class. */ + public FaceDetectorPreset() { + } + /** * Get the resolution property: Specifies the maximum resolution at which your video is analyzed. The default * behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceRedactorMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceRedactorMode.java index aca04966268f..10259c2206be 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceRedactorMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FaceRedactorMode.java @@ -26,6 +26,15 @@ public final class FaceRedactorMode extends ExpandableStringEnum trackSelections; + /** Creates an instance of FilterTrackSelection class. */ + public FilterTrackSelection() { + } + /** * Get the trackSelections property: The track selections. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java index 8e4f9d06a4e9..e0d6dff10b4c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Filters.java @@ -32,12 +32,28 @@ public final class Filters { @JsonProperty(value = "crop") private Rectangle crop; + /* + * Describes the properties of a Fade effect applied to the input media. + */ + @JsonProperty(value = "fadeIn") + private Fade fadeIn; + + /* + * Describes the properties of a Fade effect applied to the input media. + */ + @JsonProperty(value = "fadeOut") + private Fade fadeOut; + /* * The properties of overlays to be applied to the input video. These could be audio, image or video overlays. */ @JsonProperty(value = "overlays") private List overlays; + /** Creates an instance of Filters class. */ + public Filters() { + } + /** * Get the deinterlace property: The de-interlacing settings. * @@ -100,6 +116,46 @@ public Filters withCrop(Rectangle crop) { return this; } + /** + * Get the fadeIn property: Describes the properties of a Fade effect applied to the input media. + * + * @return the fadeIn value. + */ + public Fade fadeIn() { + return this.fadeIn; + } + + /** + * Set the fadeIn property: Describes the properties of a Fade effect applied to the input media. + * + * @param fadeIn the fadeIn value to set. + * @return the Filters object itself. + */ + public Filters withFadeIn(Fade fadeIn) { + this.fadeIn = fadeIn; + return this; + } + + /** + * Get the fadeOut property: Describes the properties of a Fade effect applied to the input media. + * + * @return the fadeOut value. + */ + public Fade fadeOut() { + return this.fadeOut; + } + + /** + * Set the fadeOut property: Describes the properties of a Fade effect applied to the input media. + * + * @param fadeOut the fadeOut value to set. + * @return the Filters object itself. + */ + public Filters withFadeOut(Fade fadeOut) { + this.fadeOut = fadeOut; + return this; + } + /** * Get the overlays property: The properties of overlays to be applied to the input video. These could be audio, * image or video overlays. @@ -134,6 +190,12 @@ public void validate() { if (crop() != null) { crop().validate(); } + if (fadeIn() != null) { + fadeIn().validate(); + } + if (fadeOut() != null) { + fadeOut().validate(); + } if (overlays() != null) { overlays().forEach(e -> e.validate()); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java index 839d085beabc..f50ffe018631 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FirstQuality.java @@ -16,6 +16,10 @@ public final class FirstQuality { @JsonProperty(value = "bitrate", required = true) private int bitrate; + /** Creates an instance of FirstQuality class. */ + public FirstQuality() { + } + /** * Get the bitrate property: The first quality bitrate. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java index 5787102fa554..f167daffb79c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Format.java @@ -25,29 +25,34 @@ @Fluent public class Format { /* - * The pattern of the file names for the generated output files. The following macros are supported in the file + * The file naming pattern used for the creation of output files. The following macros are supported in the file * name: {Basename} - An expansion macro that will use the name of the input video file. If the base name(the file * suffix is not included) of the input video file is less than 32 characters long, the base name of input video * files will be used. If the length of base name of the input video file exceeds 32 characters, the base name is * truncated to the first 32 characters in total length. {Extension} - The appropriate extension for this format. * {Label} - The label assigned to the codec/layer. {Index} - A unique index for thumbnails. Only applicable to - * thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. {Codec} - The type of the - * audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed - * from the filename. + * thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). {Bitrate} - The audio/video + * bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video codec. {Resolution} - The + * video resolution. Any unsubstituted macros will be collapsed and removed from the filename. */ @JsonProperty(value = "filenamePattern", required = true) private String filenamePattern; + /** Creates an instance of Format class. */ + public Format() { + } + /** - * Get the filenamePattern property: The pattern of the file names for the generated output files. The following + * Get the filenamePattern property: The file naming pattern used for the creation of output files. The following * macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video * file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, * the base name of input video files will be used. If the length of base name of the input video file exceeds 32 * characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate * extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for - * thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. - * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will - * be collapsed and removed from the filename. + * thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). + * {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video + * codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the + * filename. * * @return the filenamePattern value. */ @@ -56,15 +61,16 @@ public String filenamePattern() { } /** - * Set the filenamePattern property: The pattern of the file names for the generated output files. The following + * Set the filenamePattern property: The file naming pattern used for the creation of output files. The following * macros are supported in the file name: {Basename} - An expansion macro that will use the name of the input video * file. If the base name(the file suffix is not included) of the input video file is less than 32 characters long, * the base name of input video files will be used. If the length of base name of the input video file exceeds 32 * characters, the base name is truncated to the first 32 characters in total length. {Extension} - The appropriate * extension for this format. {Label} - The label assigned to the codec/layer. {Index} - A unique index for - * thumbnails. Only applicable to thumbnails. {Bitrate} - The audio/video bitrate. Not applicable to thumbnails. - * {Codec} - The type of the audio/video codec. {Resolution} - The video resolution. Any unsubstituted macros will - * be collapsed and removed from the filename. + * thumbnails. Only applicable to thumbnails. {AudioStream} - string "Audio" plus audio stream number(start from 1). + * {Bitrate} - The audio/video bitrate in kbps. Not applicable to thumbnails. {Codec} - The type of the audio/video + * codec. {Resolution} - The video resolution. Any unsubstituted macros will be collapsed and removed from the + * filename. * * @param filenamePattern the filenamePattern value to set. * @return the Format object itself. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java index 8c2eaee6ed30..91107b933790 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromAllInputFile.java @@ -18,6 +18,10 @@ @JsonTypeName("#Microsoft.Media.FromAllInputFile") @Fluent public final class FromAllInputFile extends InputDefinition { + /** Creates an instance of FromAllInputFile class. */ + public FromAllInputFile() { + } + /** {@inheritDoc} */ @Override public FromAllInputFile withIncludedTracks(List includedTracks) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java index 43d45b71aba5..d70f54a6d08a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/FromEachInputFile.java @@ -17,6 +17,10 @@ @JsonTypeName("#Microsoft.Media.FromEachInputFile") @Fluent public final class FromEachInputFile extends InputDefinition { + /** Creates an instance of FromEachInputFile class. */ + public FromEachInputFile() { + } + /** {@inheritDoc} */ @Override public FromEachInputFile withIncludedTracks(List includedTracks) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Complexity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Complexity.java index a0130f067f76..5adc2fcc27fb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Complexity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Complexity.java @@ -19,6 +19,15 @@ public final class H264Complexity extends ExpandableStringEnum { /** Static value Quality for H264Complexity. */ public static final H264Complexity QUALITY = fromString("Quality"); + /** + * Creates a new instance of H264Complexity value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public H264Complexity() { + } + /** * Creates or finds a H264Complexity from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java index b06f64750bdc..c7554145a16e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264Layer.java @@ -57,6 +57,10 @@ public final class H264Layer extends VideoLayer { @JsonProperty(value = "entropyMode") private EntropyMode entropyMode; + /** Creates an instance of H264Layer class. */ + public H264Layer() { + } + /** * Get the profile property: We currently support Baseline, Main, High, High422, High444. Default is Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264RateControlMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264RateControlMode.java index 34b421d4a8a8..1dc976da6d80 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264RateControlMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H264RateControlMode.java @@ -19,6 +19,15 @@ public final class H264RateControlMode extends ExpandableStringEnum { /** Static value Quality for H265Complexity. */ public static final H265Complexity QUALITY = fromString("Quality"); + /** + * Creates a new instance of H265Complexity value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public H265Complexity() { + } + /** * Creates or finds a H265Complexity from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java index 39d9a68fe931..148e3c3b7d23 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Layer.java @@ -50,6 +50,10 @@ public final class H265Layer extends H265VideoLayer { @JsonProperty(value = "referenceFrames") private Integer referenceFrames; + /** Creates an instance of H265Layer class. */ + public H265Layer() { + } + /** * Get the profile property: We currently support Main. Default is Auto. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java index 93bd9690de93..10ff853778ba 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265Video.java @@ -38,6 +38,10 @@ public final class H265Video extends Video { @JsonProperty(value = "layers") private List layers; + /** Creates an instance of H265Video class. */ + public H265Video() { + } + /** * Get the sceneChangeDetection property: Specifies whether or not the encoder should insert key frames at scene * changes. If not specified, the default is false. This flag should be set to true only when the encoder is being diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java index c84e51c1331e..97718956c45d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoLayer.java @@ -54,6 +54,10 @@ public class H265VideoLayer extends Layer { @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; + /** Creates an instance of H265VideoLayer class. */ + public H265VideoLayer() { + } + /** * Get the bitrate property: The average bitrate in bits per second at which to encode the input video when * generating this layer. For example: a target bitrate of 3000Kbps or 3Mbps means this value should be 3000000 This diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java index 665a3e6e0465..37f181b7f3cb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/H265VideoProfile.java @@ -19,6 +19,15 @@ public final class H265VideoProfile extends ExpandableStringEnum includedTracks; + /** Creates an instance of InputDefinition class. */ + public InputDefinition() { + } + /** * Get the includedTracks property: The list of TrackDescriptors which define the metadata and selection of tracks * in the input. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java index 355e395f47ad..8b90556dae55 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InputFile.java @@ -21,6 +21,10 @@ public final class InputFile extends InputDefinition { @JsonProperty(value = "filename") private String filename; + /** Creates an instance of InputFile class. */ + public InputFile() { + } + /** * Get the filename property: Name of the file that this input definition applies to. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InsightsType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InsightsType.java index 7cf8aa02f06c..5f7e6e3f9c75 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InsightsType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InsightsType.java @@ -26,6 +26,15 @@ public final class InsightsType extends ExpandableStringEnum { /** Static value AllInsights for InsightsType. */ public static final InsightsType ALL_INSIGHTS = fromString("AllInsights"); + /** + * Creates a new instance of InsightsType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InsightsType() { + } + /** * Creates or finds a InsightsType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InterleaveOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InterleaveOutput.java index 0f2dfaa5887e..9aeea1c0d5f2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InterleaveOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/InterleaveOutput.java @@ -19,6 +19,15 @@ public final class InterleaveOutput extends ExpandableStringEnum allow; + /** Creates an instance of IpAccessControl class. */ + public IpAccessControl() { + } + /** * Get the allow property: The IP allow list. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java index 8fa5b34ab3ce..6554e0add6af 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/IpRange.java @@ -28,6 +28,10 @@ public final class IpRange { @JsonProperty(value = "subnetPrefixLength") private Integer subnetPrefixLength; + /** Creates an instance of IpRange class. */ + public IpRange() { + } + /** * Get the name property: The friendly name for the IP address range. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java index c4f02ab31d24..945e9795dadf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Job.java @@ -337,21 +337,21 @@ interface WithCorrelationData { * *

Cancel a Job. * + * @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}. */ - void cancelJob(); + Response cancelJobWithResponse(Context context); /** * Cancel Job * *

Cancel a Job. * - * @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}. */ - Response cancelJobWithResponse(Context context); + void cancelJob(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java index df970af4ac7a..02d58810d785 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobCollection.java @@ -25,6 +25,10 @@ public final class JobCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of JobCollection class. */ + public JobCollection() { + } + /** * Get the value property: A collection of Job items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java index c21047d8b0f5..7cc870dab0f3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobError.java @@ -42,6 +42,10 @@ public final class JobError { @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY) private List details; + /** Creates an instance of JobError class. */ + public JobError() { + } + /** * Get the code property: Error code describing the error. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java index 4b18a9b61564..ea3f47e2b502 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorCategory.java @@ -25,6 +25,18 @@ public final class JobErrorCategory extends ExpandableStringEnum { /** Static value ContentUnsupported for JobErrorCode. */ public static final JobErrorCode CONTENT_UNSUPPORTED = fromString("ContentUnsupported"); + /** Static value IdentityUnsupported for JobErrorCode. */ + public static final JobErrorCode IDENTITY_UNSUPPORTED = fromString("IdentityUnsupported"); + + /** + * Creates a new instance of JobErrorCode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JobErrorCode() { + } + /** * Creates or finds a JobErrorCode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java index 365d01cd9f30..3bdfa9c77d59 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobErrorDetail.java @@ -22,6 +22,10 @@ public final class JobErrorDetail { @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; + /** Creates an instance of JobErrorDetail class. */ + public JobErrorDetail() { + } + /** * Get the code property: Code describing the error detail. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java index f646f8d5976f..0a2e2f1ea737 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInput.java @@ -23,6 +23,10 @@ }) @Immutable public class JobInput { + /** Creates an instance of JobInput class. */ + public JobInput() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java index b6a496f37246..d9ec750e7e68 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputAsset.java @@ -22,6 +22,10 @@ public final class JobInputAsset extends JobInputClip { @JsonProperty(value = "assetName", required = true) private String assetName; + /** Creates an instance of JobInputAsset class. */ + public JobInputAsset() { + } + /** * Get the assetName property: The name of the input Asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java index 125bd53d39b1..50d97897ff03 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputClip.java @@ -61,6 +61,10 @@ public class JobInputClip extends JobInput { @JsonProperty(value = "inputDefinitions") private List inputDefinitions; + /** Creates an instance of JobInputClip class. */ + public JobInputClip() { + } + /** * Get the files property: List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings * will not be returned in service responses to prevent sensitive data exposure. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java index 5811820354a0..1f195f759481 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputHttp.java @@ -23,6 +23,10 @@ public final class JobInputHttp extends JobInputClip { @JsonProperty(value = "baseUri") private String baseUri; + /** Creates an instance of JobInputHttp class. */ + public JobInputHttp() { + } + /** * Get the baseUri property: Base URI for HTTPS job input. It will be concatenated with provided file names. If no * base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java index f0af74bd1c67..545c542913ca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputSequence.java @@ -24,6 +24,10 @@ public final class JobInputSequence extends JobInput { @JsonProperty(value = "inputs") private List inputs; + /** Creates an instance of JobInputSequence class. */ + public JobInputSequence() { + } + /** * Get the inputs property: JobInputs that make up the timeline. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java index 4e88836c3e52..0697a912b80d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobInputs.java @@ -21,6 +21,10 @@ public final class JobInputs extends JobInput { @JsonProperty(value = "inputs") private List inputs; + /** Creates an instance of JobInputs class. */ + public JobInputs() { + } + /** * Get the inputs property: List of inputs to a Job. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java index b77d4b108fee..0724ba18cd6d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutput.java @@ -72,6 +72,10 @@ public class JobOutput { @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime endTime; + /** Creates an instance of JobOutput class. */ + public JobOutput() { + } + /** * Get the error property: If the JobOutput is in the Error state, it contains the details of the error. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java index de43bf2e7332..1e7cb0eae670 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobOutputAsset.java @@ -21,6 +21,10 @@ public final class JobOutputAsset extends JobOutput { @JsonProperty(value = "assetName", required = true) private String assetName; + /** Creates an instance of JobOutputAsset class. */ + public JobOutputAsset() { + } + /** * Get the assetName property: The name of the output Asset. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobRetry.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobRetry.java index f754283c9988..1d334dcc69ac 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobRetry.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobRetry.java @@ -19,6 +19,15 @@ public final class JobRetry extends ExpandableStringEnum { /** Static value MayRetry for JobRetry. */ public static final JobRetry MAY_RETRY = fromString("MayRetry"); + /** + * Creates a new instance of JobRetry value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JobRetry() { + } + /** * Creates or finds a JobRetry from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobState.java index d616321458de..d75712be8b4f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JobState.java @@ -31,6 +31,15 @@ public final class JobState extends ExpandableStringEnum { /** Static value Scheduled for JobState. */ public static final JobState SCHEDULED = fromString("Scheduled"); + /** + * Creates a new instance of JobState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JobState() { + } + /** * Creates or finds a JobState from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java index da3da6bc419f..d01fdf1d7440 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Jobs.java @@ -58,12 +58,14 @@ PagedIterable list( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job. + * @return a Job along with {@link Response}. */ - Job get(String resourceGroupName, String accountName, String transformName, String jobName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Get Job @@ -74,14 +76,12 @@ PagedIterable list( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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 Job along with {@link Response}. + * @return a Job. */ - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + Job get(String resourceGroupName, String accountName, String transformName, String jobName); /** * Delete Job @@ -92,11 +92,14 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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}. */ - void delete(String resourceGroupName, String accountName, String transformName, String jobName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Delete Job @@ -107,14 +110,11 @@ Response getWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + void delete(String resourceGroupName, String accountName, String transformName, String jobName); /** * Cancel Job @@ -125,11 +125,14 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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}. */ - void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); + Response cancelJobWithResponse( + String resourceGroupName, String accountName, String transformName, String jobName, Context context); /** * Cancel Job @@ -140,14 +143,11 @@ Response deleteWithResponse( * @param accountName The Media Services account name. * @param transformName The Transform name. * @param jobName The Job 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}. */ - Response cancelJobWithResponse( - String resourceGroupName, String accountName, String transformName, String jobName, Context context); + void cancelJob(String resourceGroupName, String accountName, String transformName, String jobName); /** * Get Job diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java index 58e844d06d5c..4fd8fdb9ac46 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgFormat.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.JpgFormat") @Fluent public final class JpgFormat extends ImageFormat { + /** Creates an instance of JpgFormat class. */ + public JpgFormat() { + } + /** {@inheritDoc} */ @Override public JpgFormat withFilenamePattern(String filenamePattern) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java index 28b7f98db4ae..2ae0c1111622 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgImage.java @@ -31,6 +31,10 @@ public final class JpgImage extends Image { @JsonProperty(value = "spriteColumn") private Integer spriteColumn; + /** Creates an instance of JpgImage class. */ + public JpgImage() { + } + /** * Get the layers property: A collection of output JPEG image layers to be produced by the encoder. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java index 173fb959df67..65ae799a30c5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/JpgLayer.java @@ -16,6 +16,10 @@ public final class JpgLayer extends Layer { @JsonProperty(value = "quality") private Integer quality; + /** Creates an instance of JpgLayer class. */ + public JpgLayer() { + } + /** * Get the quality property: The compression quality of the JPEG output. Range is from 0-100 and the default is 70. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java index 418d8eb48025..3cf0d8fd4428 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyDelivery.java @@ -16,6 +16,10 @@ public final class KeyDelivery { @JsonProperty(value = "accessControl") private AccessControl accessControl; + /** Creates an instance of KeyDelivery class. */ + public KeyDelivery() { + } + /** * Get the accessControl property: The access control properties for Key Delivery. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java index 9936de72431f..b5c33d3819ed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/KeyVaultProperties.java @@ -23,6 +23,10 @@ public final class KeyVaultProperties { @JsonProperty(value = "currentKeyIdentifier", access = JsonProperty.Access.WRITE_ONLY) private String currentKeyIdentifier; + /** Creates an instance of KeyVaultProperties class. */ + public KeyVaultProperties() { + } + /** * Get the keyIdentifier property: The URL of the Key Vault key used to encrypt the account. The key may either be * versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java index ced15e047984..ce74f5ec6c38 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Layer.java @@ -34,6 +34,10 @@ public class Layer { @JsonProperty(value = "label") private String label; + /** Creates an instance of Layer class. */ + public Layer() { + } + /** * Get the width property: The width of the output video for this layer. The value can be absolute (in pixels) or * relative (in percentage). For example 50% means the output video has half as many pixels in width as the input. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java index 32cbb583f180..627c8f3bd9c3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListContainerSasInput.java @@ -23,6 +23,10 @@ public final class ListContainerSasInput { @JsonProperty(value = "expiryTime") private OffsetDateTime expiryTime; + /** Creates an instance of ListContainerSasInput class. */ + public ListContainerSasInput() { + } + /** * Get the permissions property: The permissions to set on the SAS URL. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java index 802323d65637..87a2aad1f3e8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ListEdgePoliciesInput.java @@ -16,6 +16,10 @@ public final class ListEdgePoliciesInput { @JsonProperty(value = "deviceId") private String deviceId; + /** Creates an instance of ListEdgePoliciesInput class. */ + public ListEdgePoliciesInput() { + } + /** * Get the deviceId property: Unique identifier of the edge device. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java index 289408cd1f1f..810f85606542 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventActionInput.java @@ -17,6 +17,10 @@ public final class LiveEventActionInput { @JsonProperty(value = "removeOutputsOnStop") private Boolean removeOutputsOnStop; + /** Creates an instance of LiveEventActionInput class. */ + public LiveEventActionInput() { + } + /** * Get the removeOutputsOnStop property: The flag indicates whether live outputs are automatically deleted when live * event is being stopped. Deleting live outputs do not delete the underlying assets. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java index f62800e45f06..28f3ce9a853f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncoding.java @@ -45,6 +45,10 @@ public final class LiveEventEncoding { @JsonProperty(value = "keyFrameInterval") private Duration keyFrameInterval; + /** Creates an instance of LiveEventEncoding class. */ + public LiveEventEncoding() { + } + /** * Get the encodingType property: Live event type. When encodingType is set to PassthroughBasic or * PassthroughStandard, the service simply passes through the incoming video and audio layer(s) to the output. When diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncodingType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncodingType.java index 2907a633e16b..38a3d853e3f8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncodingType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventEncodingType.java @@ -31,6 +31,15 @@ public final class LiveEventEncodingType extends ExpandableStringEnum endpoints; + /** Creates an instance of LiveEventInput class. */ + public LiveEventInput() { + } + /** * Get the streamingProtocol property: The input protocol for the live event. This is specified at creation time and * cannot be updated. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java index 2b443872de1b..8bea90db4c2b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputAccessControl.java @@ -16,6 +16,10 @@ public final class LiveEventInputAccessControl { @JsonProperty(value = "ip") private IpAccessControl ip; + /** Creates an instance of LiveEventInputAccessControl class. */ + public LiveEventInputAccessControl() { + } + /** * Get the ip property: The IP access control properties. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputProtocol.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputProtocol.java index a67ba2bb73ed..60370a048fbc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputProtocol.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveEventInputProtocol.java @@ -16,6 +16,15 @@ public final class LiveEventInputProtocol extends ExpandableStringEnum getWithResponse( + String resourceGroupName, String accountName, String liveEventName, Context context); /** * Get Live Event @@ -62,14 +64,12 @@ public interface LiveEvents { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. - * @param 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 properties of a live event along with {@link Response}. + * @return properties of a live event. */ - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, Context context); + LiveEvent get(String resourceGroupName, String accountName, String liveEventName); /** * Delete Live Event @@ -235,12 +235,14 @@ void stop( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -250,14 +252,12 @@ void stop( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -268,12 +268,14 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status. + * @return a live event operation status along with {@link Response}. */ - LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); /** * Get operation status. @@ -284,14 +286,12 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live event operation status along with {@link Response}. + * @return a live event operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, String accountName, String liveEventName, String operationId, Context context); + LiveEvent operationLocation(String resourceGroupName, String accountName, String liveEventName, String operationId); /** * Get Live Event diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java index e69a51174878..1486fcad42a9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputListResult.java @@ -34,6 +34,10 @@ public final class LiveOutputListResult { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of LiveOutputListResult class. */ + public LiveOutputListResult() { + } + /** * Get the value property: The result of the List LiveOutput operation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputResourceState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputResourceState.java index 02f17917d0e4..150bd1b61571 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputResourceState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LiveOutputResourceState.java @@ -19,6 +19,15 @@ public final class LiveOutputResourceState extends ExpandableStringEnum getWithResponse( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); /** * Get Live Output @@ -66,14 +68,12 @@ public interface LiveOutputs { * @param accountName The Media Services account name. * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a live output along with {@link Response}. + * @return a live output. */ - Response getWithResponse( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, Context context); + LiveOutput get(String resourceGroupName, String accountName, String liveEventName, String liveOutputName); /** * Delete Live Output @@ -115,12 +115,14 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -130,14 +132,12 @@ void delete( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -149,13 +149,19 @@ Response asyncOperationWithResponse( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status. + * @return a Live Output operation status along with {@link Response}. */ - LiveOutput operationLocation( - String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String liveEventName, + String liveOutputName, + String operationId, + Context context); /** * Get operation status. @@ -167,19 +173,13 @@ LiveOutput operationLocation( * @param liveEventName The name of the live event, maximum length is 32. * @param liveOutputName The name of the live output. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a Live Output operation status along with {@link Response}. + * @return a Live Output operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String liveEventName, - String liveOutputName, - String operationId, - Context context); + LiveOutput operationLocation( + String resourceGroupName, String accountName, String liveEventName, String liveOutputName, String operationId); /** * Get Live Output diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java index db4bd4020ddc..2781db56c4e4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Locations.java @@ -16,12 +16,14 @@ public interface Locations { * * @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}. */ - EntityNameAvailabilityCheckOutput checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters); + Response checkNameAvailabilityWithResponse( + String locationName, CheckNameAvailabilityInput parameters, Context context); /** * Check Name Availability @@ -30,12 +32,10 @@ public interface Locations { * * @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 along with {@link Response}. + * @return the response from the check name availability request. */ - Response checkNameAvailabilityWithResponse( - String locationName, CheckNameAvailabilityInput parameters, Context context); + EntityNameAvailabilityCheckOutput checkNameAvailability(String locationName, CheckNameAvailabilityInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java index d1d1e21bd1a9..bb1d13cfb7b8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/LogSpecification.java @@ -28,6 +28,10 @@ public final class LogSpecification { @JsonProperty(value = "blobDuration", access = JsonProperty.Access.WRITE_ONLY) private String blobDuration; + /** Creates an instance of LogSpecification class. */ + public LogSpecification() { + } + /** * Get the name property: The diagnostic log category name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java index 5ae6bf8d31b9..0d95252c7555 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaService.java @@ -417,11 +417,13 @@ interface WithPublicNetworkAccess { *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - void syncStorageKeys(SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -429,13 +431,11 @@ interface WithPublicNetworkAccess { *

Synchronizes storage account keys for a storage account associated with the Media Service account. * * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - Response syncStorageKeysWithResponse(SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -443,12 +443,13 @@ interface WithPublicNetworkAccess { *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -456,11 +457,10 @@ interface WithPublicNetworkAccess { *

List all the media edge policies associated with the Media Services account. * * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 body along with {@link Response}. + * @return the response. */ - Response listEdgePoliciesWithResponse(ListEdgePoliciesInput parameters, Context context); + EdgePolicies listEdgePolicies(ListEdgePoliciesInput parameters); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java index fc477a5cc3f8..dfb631f4f598 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceCollection.java @@ -25,6 +25,10 @@ public final class MediaServiceCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of MediaServiceCollection class. */ + public MediaServiceCollection() { + } + /** * Get the value property: A collection of MediaService items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java index 3739c4de7f4e..ead90e8a51cc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceIdentity.java @@ -39,6 +39,10 @@ public class MediaServiceIdentity { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map userAssignedIdentities; + /** Creates an instance of MediaServiceIdentity class. */ + public MediaServiceIdentity() { + } + /** * Get the type property: The identity type. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java index f81d141899f3..e66b53ca2bd0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServiceUpdate.java @@ -35,6 +35,10 @@ public final class MediaServiceUpdate { @JsonProperty(value = "identity") private MediaServiceIdentity identity; + /** Creates an instance of MediaServiceUpdate class. */ + public MediaServiceUpdate() { + } + /** * Get the tags property: Resource tags. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java index 2cee82cedf63..876d88cd2e2c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResults.java @@ -16,12 +16,13 @@ public interface MediaServicesOperationResults { * * @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. */ - MediaService get(String locationName, String operationId); + Response getWithResponse(String locationName, String operationId, Context context); /** * Get operation result. @@ -30,11 +31,10 @@ public interface MediaServicesOperationResults { * * @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. */ - Response getWithResponse(String locationName, String operationId, Context context); + MediaService get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java index fa39cdcd4142..a795008abf71 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationResultsGetHeaders.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.fasterxml.jackson.annotation.JsonProperty; @@ -29,6 +30,8 @@ public final class MediaServicesOperationResultsGetHeaders { @JsonProperty(value = "Location") private String location; + private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); + // HttpHeaders containing the raw property values. /** * Creates an instance of MediaServicesOperationResultsGetHeaders class. @@ -36,9 +39,12 @@ public final class MediaServicesOperationResultsGetHeaders { * @param rawHeaders The raw HttpHeaders that will be used to create the property values. */ public MediaServicesOperationResultsGetHeaders(HttpHeaders rawHeaders) { - this.retryAfter = Integer.parseInt(rawHeaders.getValue("Retry-After")); - this.azureAsyncOperation = rawHeaders.getValue("Azure-AsyncOperation"); - this.location = rawHeaders.getValue("Location"); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } + this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java index 41f6a7d512d4..bcc377f6810e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MediaServicesOperationStatuses.java @@ -16,12 +16,13 @@ public interface MediaServicesOperationStatuses { * * @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. + * @return media service operation status along with {@link Response}. */ - MediaServiceOperationStatus get(String locationName, String operationId); + Response getWithResponse(String locationName, String operationId, Context context); /** * Get operation status. @@ -30,11 +31,10 @@ public interface MediaServicesOperationStatuses { * * @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}. + * @return media service operation status. */ - Response getWithResponse(String locationName, String operationId, Context context); + MediaServiceOperationStatus get(String locationName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java index 78e39e262586..ed3c33f09397 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mediaservices.java @@ -44,12 +44,14 @@ public interface Mediaservices { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 Media Services account. + * @return the details of a Media Services account along with {@link Response}. */ - MediaService getByResourceGroup(String resourceGroupName, String accountName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get a Media Services account @@ -58,14 +60,12 @@ public interface Mediaservices { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 Media Services account along with {@link Response}. + * @return the details of a Media Services account. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String accountName, Context context); + MediaService getByResourceGroup(String resourceGroupName, String accountName); /** * Delete a Media Services account. @@ -74,11 +74,13 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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}. */ - void deleteByResourceGroup(String resourceGroupName, String accountName); + Response deleteByResourceGroupWithResponse(String resourceGroupName, String accountName, Context context); /** * Delete a Media Services account. @@ -87,13 +89,11 @@ Response getByResourceGroupWithResponse( * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, Context context); + void deleteByResourceGroup(String resourceGroupName, String accountName); /** * Synchronizes Storage Account Keys @@ -103,11 +103,14 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. */ - void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); + Response syncStorageKeysWithResponse( + String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); /** * Synchronizes Storage Account Keys @@ -117,14 +120,11 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. */ - Response syncStorageKeysWithResponse( - String resourceGroupName, String accountName, SyncStorageKeysInput parameters, Context context); + void syncStorageKeys(String resourceGroupName, String accountName, SyncStorageKeysInput parameters); /** * List the media edge policies associated with the Media Services account. @@ -134,12 +134,14 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response. + * @return the response body along with {@link Response}. */ - EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); + Response listEdgePoliciesWithResponse( + String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); /** * List the media edge policies associated with the Media Services account. @@ -149,14 +151,12 @@ Response syncStorageKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param parameters The request parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. + * @return the response. */ - Response listEdgePoliciesWithResponse( - String resourceGroupName, String accountName, ListEdgePoliciesInput parameters, Context context); + EdgePolicies listEdgePolicies(String resourceGroupName, String accountName, ListEdgePoliciesInput parameters); /** * List Media Services accounts diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricAggregationType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricAggregationType.java index 54723bb9733b..d6b4ff594e90 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricAggregationType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricAggregationType.java @@ -19,6 +19,15 @@ public final class MetricAggregationType extends ExpandableStringEnum supportedTimeGrainTypes; + /** Creates an instance of MetricSpecification class. */ + public MetricSpecification() { + } + /** * Get the name property: The metric name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricUnit.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricUnit.java index 9331f173e7be..02a2a5940cef 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricUnit.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MetricUnit.java @@ -19,6 +19,15 @@ public final class MetricUnit extends ExpandableStringEnum { /** Static value Milliseconds for MetricUnit. */ public static final MetricUnit MILLISECONDS = fromString("Milliseconds"); + /** + * Creates a new instance of MetricUnit value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MetricUnit() { + } + /** * Creates or finds a MetricUnit from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java index f429a36db938..72352621f552 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Mp4Format.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.Mp4Format") @Fluent public final class Mp4Format extends MultiBitrateFormat { + /** Creates an instance of Mp4Format class. */ + public Mp4Format() { + } + /** {@inheritDoc} */ @Override public Mp4Format withOutputFiles(List outputFiles) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java index a072238803ee..946504f0a594 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/MultiBitrateFormat.java @@ -35,6 +35,10 @@ public class MultiBitrateFormat extends Format { @JsonProperty(value = "outputFiles") private List outputFiles; + /** Creates an instance of MultiBitrateFormat class. */ + public MultiBitrateFormat() { + } + /** * Get the outputFiles property: The list of output files to produce. Each entry in the list is a set of audio and * video layer labels to be muxed together . diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java index bfedb4364189..2beaab332a0a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/NoEncryption.java @@ -16,6 +16,10 @@ public final class NoEncryption { @JsonProperty(value = "enabledProtocols") private EnabledProtocols enabledProtocols; + /** Creates an instance of NoEncryption class. */ + public NoEncryption() { + } + /** * Get the enabledProtocols property: Representing supported protocols. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OnErrorType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OnErrorType.java index f7f9f141f1e3..ddcf32ac819f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OnErrorType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OnErrorType.java @@ -20,6 +20,15 @@ public final class OnErrorType extends ExpandableStringEnum { /** Static value ContinueJob for OnErrorType. */ public static final OnErrorType CONTINUE_JOB = fromString("ContinueJob"); + /** + * Creates a new instance of OnErrorType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public OnErrorType() { + } + /** * Creates or finds a OnErrorType from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java index 7231d008dc42..ccb2f8ef2c4f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operation.java @@ -47,6 +47,10 @@ public final class Operation { @JsonProperty(value = "actionType") private ActionType actionType; + /** Creates an instance of Operation class. */ + public Operation() { + } + /** * Get the name property: The operation name. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java index 85fabb5b63d9..c536d4f3e81b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationDisplay.java @@ -34,6 +34,10 @@ public final class OperationDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDisplay class. */ + public OperationDisplay() { + } + /** * Get the provider property: The service provider. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java index dd575ba97a08..1551da3109ca 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResults.java @@ -19,13 +19,19 @@ public interface OperationResults { * @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. */ - AssetTrack get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation result. @@ -37,17 +43,11 @@ AssetTrack get( * @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. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrack get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java index 8fde5c9dfced..4a73845d5137 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationResultsGetHeaders.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.mediaservices.models; import com.azure.core.annotation.Fluent; +import com.azure.core.http.HttpHeaderName; import com.azure.core.http.HttpHeaders; import com.fasterxml.jackson.annotation.JsonProperty; @@ -29,6 +30,8 @@ public final class OperationResultsGetHeaders { @JsonProperty(value = "Location") private String location; + private static final HttpHeaderName AZURE_ASYNC_OPERATION = HttpHeaderName.fromString("Azure-AsyncOperation"); + // HttpHeaders containing the raw property values. /** * Creates an instance of OperationResultsGetHeaders class. @@ -36,9 +39,12 @@ public final class OperationResultsGetHeaders { * @param rawHeaders The raw HttpHeaders that will be used to create the property values. */ public OperationResultsGetHeaders(HttpHeaders rawHeaders) { - this.retryAfter = Integer.parseInt(rawHeaders.getValue("Retry-After")); - this.azureAsyncOperation = rawHeaders.getValue("Azure-AsyncOperation"); - this.location = rawHeaders.getValue("Location"); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } + this.azureAsyncOperation = rawHeaders.getValue(AZURE_ASYNC_OPERATION); + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); } /** diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java index 75e37e5cc36d..fbe6344e0960 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OperationStatuses.java @@ -19,13 +19,19 @@ public interface OperationStatuses { * @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. + * @return asset track operation status along with {@link Response}. */ - AssetTrackOperationStatus get( - String resourceGroupName, String accountName, String assetName, String trackName, String operationId); + Response getWithResponse( + String resourceGroupName, + String accountName, + String assetName, + String trackName, + String operationId, + Context context); /** * Get operation status. @@ -37,17 +43,11 @@ AssetTrackOperationStatus get( * @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}. + * @return asset track operation status. */ - Response getWithResponse( - String resourceGroupName, - String accountName, - String assetName, - String trackName, - String operationId, - Context context); + AssetTrackOperationStatus get( + String resourceGroupName, String accountName, String assetName, String trackName, String operationId); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java index 272a4b62680c..8c793858ebf5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Operations.java @@ -14,22 +14,22 @@ public interface Operations { * *

Lists all the Media Services operations. * + * @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 Operation items. + * @return a collection of Operation items along with {@link Response}. */ - OperationCollection list(); + Response listWithResponse(Context context); /** * List Operations * *

Lists all the Media Services operations. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return a collection of Operation items. */ - Response listWithResponse(Context context); + OperationCollection list(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java index 018788510698..2beca552cff9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/OutputFile.java @@ -21,6 +21,10 @@ public final class OutputFile { @JsonProperty(value = "labels", required = true) private List labels; + /** Creates an instance of OutputFile class. */ + public OutputFile() { + } + /** * Get the labels property: The list of labels that describe how the encoder should multiplex video and audio into * an output file. For example, if the encoder is producing two video layers with labels v1 and v2, and one audio diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java index a068e8bfe20f..60c968a56e32 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Overlay.java @@ -71,6 +71,10 @@ public class Overlay { @JsonProperty(value = "audioGainLevel") private Double audioGainLevel; + /** Creates an instance of Overlay class. */ + public Overlay() { + } + /** * Get the inputLabel property: The label of the job input which is to be used as an overlay. The Input must specify * exactly one file. You can specify an image file in JPG, PNG, GIF or BMP format, or an audio file (such as a WAV, diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java index 91034df34d96..e012b875d829 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngFormat.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.PngFormat") @Fluent public final class PngFormat extends ImageFormat { + /** Creates an instance of PngFormat class. */ + public PngFormat() { + } + /** {@inheritDoc} */ @Override public PngFormat withFilenamePattern(String filenamePattern) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java index 8b3572be9edb..3ebc8d6279ce 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngImage.java @@ -22,6 +22,10 @@ public final class PngImage extends Image { @JsonProperty(value = "layers") private List layers; + /** Creates an instance of PngImage class. */ + public PngImage() { + } + /** * Get the layers property: A collection of output PNG image layers to be produced by the encoder. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java index 965296f54314..169d74831a8f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PngLayer.java @@ -9,6 +9,10 @@ /** Describes the settings to produce a PNG image from the input video. */ @Fluent public final class PngLayer extends Layer { + /** Creates an instance of PngLayer class. */ + public PngLayer() { + } + /** {@inheritDoc} */ @Override public PngLayer withWidth(String width) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java index 522cf78be6ab..b37eae371419 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresentationTimeRange.java @@ -46,6 +46,10 @@ public final class PresentationTimeRange { @JsonProperty(value = "forceEndTimestamp") private Boolean forceEndTimestamp; + /** Creates an instance of PresentationTimeRange class. */ + public PresentationTimeRange() { + } + /** * Get the startTimestamp property: The absolute start time boundary. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java index f796f784201d..19446513b513 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Preset.java @@ -28,6 +28,10 @@ }) @Immutable public class Preset { + /** Creates an instance of Preset class. */ + public Preset() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java index e6e5faff3acd..44490ee5acfa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PresetConfigurations.java @@ -67,6 +67,10 @@ public final class PresetConfigurations { @JsonProperty(value = "minHeight") private Integer minHeight; + /** Creates an instance of PresetConfigurations class. */ + public PresetConfigurations() { + } + /** * Get the complexity property: Allows you to configure the encoder settings to control the balance between speed * and quality. Example: set Complexity as Speed for faster encoding but less compression efficiency. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Priority.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Priority.java index 77d0f41282a6..2394ec3d8a25 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Priority.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Priority.java @@ -22,6 +22,15 @@ public final class Priority extends ExpandableStringEnum { /** Static value High for Priority. */ public static final Priority HIGH = fromString("High"); + /** + * Creates a new instance of Priority value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Priority() { + } + /** * Creates or finds a Priority from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java index c835a44d1134..b393dff57ef8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpoint.java @@ -16,6 +16,10 @@ public final class PrivateEndpoint { @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id; + /** Creates an instance of PrivateEndpoint class. */ + public PrivateEndpoint() { + } + /** * Get the id property: The ARM identifier for Private Endpoint. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnectionProvisioningState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnectionProvisioningState.java index 1a78ab65f45e..afa8d1b9ace5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnectionProvisioningState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnectionProvisioningState.java @@ -23,6 +23,15 @@ public final class PrivateEndpointConnectionProvisioningState /** Static value Failed for PrivateEndpointConnectionProvisioningState. */ public static final PrivateEndpointConnectionProvisioningState FAILED = fromString("Failed"); + /** + * Creates a new instance of PrivateEndpointConnectionProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PrivateEndpointConnectionProvisioningState() { + } + /** * Creates or finds a PrivateEndpointConnectionProvisioningState from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java index 74236240639b..47e2e8acbc04 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointConnections.java @@ -16,12 +16,15 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private endpoint connection associated with the specified storage account. + * @return list of private endpoint connection associated with the specified storage account along with {@link + * Response}. */ - PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * List private endpoint connections. @@ -30,15 +33,12 @@ public interface PrivateEndpointConnections { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private endpoint connection associated with the specified storage account along with {@link - * Response}. + * @return list of private endpoint connection associated with the specified storage account. */ - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateEndpointConnectionListResult list(String resourceGroupName, String accountName); /** * Get private endpoint connection. @@ -48,12 +48,14 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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 private endpoint connection. + * @return the details of a private endpoint connection along with {@link Response}. */ - PrivateEndpointConnection get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get private endpoint connection. @@ -63,14 +65,12 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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 private endpoint connection along with {@link Response}. + * @return the details of a private endpoint connection. */ - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateEndpointConnection get(String resourceGroupName, String accountName, String name); /** * Delete a private endpoint connection. @@ -80,11 +80,13 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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}. */ - void delete(String resourceGroupName, String accountName, String name); + Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); /** * Delete a private endpoint connection. @@ -94,13 +96,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String name, Context context); + void delete(String resourceGroupName, String accountName, String name); /** * Get private endpoint connection. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointServiceConnectionStatus.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointServiceConnectionStatus.java index f0987133a427..b51a8c82a86d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointServiceConnectionStatus.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateEndpointServiceConnectionStatus.java @@ -20,6 +20,15 @@ public final class PrivateEndpointServiceConnectionStatus /** Static value Rejected for PrivateEndpointServiceConnectionStatus. */ public static final PrivateEndpointServiceConnectionStatus REJECTED = fromString("Rejected"); + /** + * Creates a new instance of PrivateEndpointServiceConnectionStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PrivateEndpointServiceConnectionStatus() { + } + /** * Creates or finds a PrivateEndpointServiceConnectionStatus from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java index 5070d2e70227..7cb32883ba7e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkResources.java @@ -16,12 +16,14 @@ public interface PrivateLinkResources { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private link resources. + * @return a list of private link resources along with {@link Response}. */ - PrivateLinkResourceListResult list(String resourceGroupName, String accountName); + Response listWithResponse( + String resourceGroupName, String accountName, Context context); /** * Get list of group IDs. @@ -30,14 +32,12 @@ public interface PrivateLinkResources { * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account 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 list of private link resources along with {@link Response}. + * @return a list of private link resources. */ - Response listWithResponse( - String resourceGroupName, String accountName, Context context); + PrivateLinkResourceListResult list(String resourceGroupName, String accountName); /** * Get group ID. @@ -47,12 +47,14 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. + * @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 details of a group ID. + * @return details of a group ID along with {@link Response}. */ - PrivateLinkResource get(String resourceGroupName, String accountName, String name); + Response getWithResponse( + String resourceGroupName, String accountName, String name, Context context); /** * Get group ID. @@ -62,12 +64,10 @@ Response listWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param name The name parameter. - * @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 details of a group ID along with {@link Response}. + * @return details of a group ID. */ - Response getWithResponse( - String resourceGroupName, String accountName, String name, Context context); + PrivateLinkResource get(String resourceGroupName, String accountName, String name); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java index 88611207d292..6901c23f5035 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/PrivateLinkServiceConnectionState.java @@ -28,6 +28,10 @@ public final class PrivateLinkServiceConnectionState { @JsonProperty(value = "actionsRequired") private String actionsRequired; + /** Creates an instance of PrivateLinkServiceConnectionState class. */ + public PrivateLinkServiceConnectionState() { + } + /** * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the * service. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java index 5389058be59f..f049388fb213 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Properties.java @@ -16,6 +16,10 @@ public final class Properties { @JsonProperty(value = "serviceSpecification", access = JsonProperty.Access.WRITE_ONLY) private ServiceSpecification serviceSpecification; + /** Creates an instance of Properties class. */ + public Properties() { + } + /** * Get the serviceSpecification property: The service specifications. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ProvisioningState.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ProvisioningState.java index e2397b051832..cd44fbc57044 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ProvisioningState.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ProvisioningState.java @@ -19,6 +19,15 @@ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Rotate270 for Rotation. */ public static final Rotation ROTATE270 = fromString("Rotate270"); + /** + * Creates a new instance of Rotation value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Rotation() { + } + /** * Creates or finds a Rotation from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SecurityLevel.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SecurityLevel.java index 76c6c11007a6..a5635e407d69 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SecurityLevel.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SecurityLevel.java @@ -22,6 +22,15 @@ public final class SecurityLevel extends ExpandableStringEnum { /** Static value SL3000 for SecurityLevel. */ public static final SecurityLevel SL3000 = fromString("SL3000"); + /** + * Creates a new instance of SecurityLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SecurityLevel() { + } + /** * Creates or finds a SecurityLevel from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java index c1e343f390cf..89839d39a1aa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackByAttribute.java @@ -34,6 +34,10 @@ public final class SelectAudioTrackByAttribute extends AudioTrackDescriptor { @JsonProperty(value = "filterValue") private String filterValue; + /** Creates an instance of SelectAudioTrackByAttribute class. */ + public SelectAudioTrackByAttribute() { + } + /** * Get the attribute property: The TrackAttribute to filter the tracks by. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java index 9eb2b6acd0dc..2067e5d15599 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectAudioTrackById.java @@ -20,6 +20,10 @@ public final class SelectAudioTrackById extends AudioTrackDescriptor { @JsonProperty(value = "trackId", required = true) private long trackId; + /** Creates an instance of SelectAudioTrackById class. */ + public SelectAudioTrackById() { + } + /** * Get the trackId property: Track identifier to select. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java index 6148f9f0702b..f2dc577a9002 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackByAttribute.java @@ -35,6 +35,10 @@ public final class SelectVideoTrackByAttribute extends VideoTrackDescriptor { @JsonProperty(value = "filterValue") private String filterValue; + /** Creates an instance of SelectVideoTrackByAttribute class. */ + public SelectVideoTrackByAttribute() { + } + /** * Get the attribute property: The TrackAttribute to filter the tracks by. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java index f06932f59e24..72a296ae794f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SelectVideoTrackById.java @@ -20,6 +20,10 @@ public final class SelectVideoTrackById extends VideoTrackDescriptor { @JsonProperty(value = "trackId", required = true) private long trackId; + /** Creates an instance of SelectVideoTrackById class. */ + public SelectVideoTrackById() { + } + /** * Get the trackId property: Track identifier to select. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java index c441975cb205..15792e79a15b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/ServiceSpecification.java @@ -23,6 +23,10 @@ public final class ServiceSpecification { @JsonProperty(value = "metricSpecifications", access = JsonProperty.Access.WRITE_ONLY) private List metricSpecifications; + /** Creates an instance of ServiceSpecification class. */ + public ServiceSpecification() { + } + /** * Get the logSpecifications property: List of log specifications. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java index fcea5d7c3080..057c347bdfdc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StandardEncoderPreset.java @@ -6,16 +6,25 @@ import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.List; +import java.util.Map; /** Describes all the settings to be used when encoding the input video with the Standard Encoder. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Media.StandardEncoderPreset") @Fluent public final class StandardEncoderPreset extends Preset { + /* + * Dictionary containing key value pairs for parameters not exposed in the preset itself + */ + @JsonProperty(value = "experimentalOptions") + @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) + private Map experimentalOptions; + /* * One or more filtering operations that are applied to the input media before encoding. */ @@ -34,6 +43,32 @@ public final class StandardEncoderPreset extends Preset { @JsonProperty(value = "formats", required = true) private List formats; + /** Creates an instance of StandardEncoderPreset class. */ + public StandardEncoderPreset() { + } + + /** + * Get the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the + * preset itself. + * + * @return the experimentalOptions value. + */ + public Map experimentalOptions() { + return this.experimentalOptions; + } + + /** + * Set the experimentalOptions property: Dictionary containing key value pairs for parameters not exposed in the + * preset itself. + * + * @param experimentalOptions the experimentalOptions value to set. + * @return the StandardEncoderPreset object itself. + */ + public StandardEncoderPreset withExperimentalOptions(Map experimentalOptions) { + this.experimentalOptions = experimentalOptions; + return this; + } + /** * Get the filters property: One or more filtering operations that are applied to the input media before encoding. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java index a66ca6e3ede6..7c56f5996bec 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccount.java @@ -37,6 +37,10 @@ public final class StorageAccount { @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY) private String status; + /** Creates an instance of StorageAccount class. */ + public StorageAccount() { + } + /** * Get the id property: The ID of the storage account resource. Media Services relies on tables and queues as well * as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccountType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccountType.java index e31e636b26d5..c59fa5c8aaf2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccountType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StorageAccountType.java @@ -16,6 +16,15 @@ public final class StorageAccountType extends ExpandableStringEnum getWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * Get StreamingEndpoint @@ -62,14 +64,12 @@ public interface StreamingEndpoints { * @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 a streaming endpoint along with {@link Response}. + * @return a streaming endpoint. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpoint get(String resourceGroupName, String accountName, String streamingEndpointName); /** * Delete StreamingEndpoint @@ -108,12 +108,14 @@ Response getWithResponse( * @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 response. + * @return the response body along with {@link Response}. */ - StreamingEndpointSkuInfoListResult skus(String resourceGroupName, String accountName, String streamingEndpointName); + Response skusWithResponse( + String resourceGroupName, String accountName, String streamingEndpointName, Context context); /** * List StreamingEndpoint skus @@ -123,14 +125,12 @@ Response getWithResponse( * @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 response body along with {@link Response}. + * @return the response. */ - Response skusWithResponse( - String resourceGroupName, String accountName, String streamingEndpointName, Context context); + StreamingEndpointSkuInfoListResult skus(String resourceGroupName, String accountName, String streamingEndpointName); /** * Start StreamingEndpoint @@ -238,12 +238,14 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ - AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); + Response asyncOperationWithResponse( + String resourceGroupName, String accountName, String operationId, Context context); /** * Get operation status. @@ -253,14 +255,12 @@ void scale( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ - Response asyncOperationWithResponse( - String resourceGroupName, String accountName, String operationId, Context context); + AsyncOperationResult asyncOperation(String resourceGroupName, String accountName, String operationId); /** * Get operation status. @@ -271,13 +271,18 @@ Response asyncOperationWithResponse( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status. + * @return a streaming endpoint operation status along with {@link Response}. */ - StreamingEndpoint operationLocation( - String resourceGroupName, String accountName, String streamingEndpointName, String operationId); + Response operationLocationWithResponse( + String resourceGroupName, + String accountName, + String streamingEndpointName, + String operationId, + Context context); /** * Get operation status. @@ -288,18 +293,13 @@ StreamingEndpoint operationLocation( * @param accountName The Media Services account name. * @param streamingEndpointName The name of the streaming endpoint, maximum length is 24. * @param operationId The ID of an ongoing async operation. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a streaming endpoint operation status along with {@link Response}. + * @return a streaming endpoint operation status. */ - Response operationLocationWithResponse( - String resourceGroupName, - String accountName, - String streamingEndpointName, - String operationId, - Context context); + StreamingEndpoint operationLocation( + String resourceGroupName, String accountName, String streamingEndpointName, String operationId); /** * Get StreamingEndpoint diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java index 11a80d6d5dd0..674a04de99b7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingEntityScaleUnit.java @@ -16,6 +16,10 @@ public final class StreamingEntityScaleUnit { @JsonProperty(value = "scaleUnit") private Integer scaleUnit; + /** Creates an instance of StreamingEntityScaleUnit class. */ + public StreamingEntityScaleUnit() { + } + /** * Get the scaleUnit property: The scale unit number of the streaming endpoint. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java index a57e5908d650..fa4398fba4ab 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocator.java @@ -293,46 +293,46 @@ interface WithFilters { * *

List Content Keys used by this Streaming Locator. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - ListContentKeysResponse listContentKeys(); + Response listContentKeysWithResponse(Context context); /** * List Content Keys * *

List Content Keys used by this Streaming Locator. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return class of response for listContentKeys action. */ - Response listContentKeysWithResponse(Context context); + ListContentKeysResponse listContentKeys(); /** * List Paths * *

List Paths supported by this Streaming Locator. * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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}. */ - ListPathsResponse listPaths(); + Response listPathsWithResponse(Context context); /** * List Paths * *

List Paths supported by this Streaming Locator. * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.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 along with {@link Response}. + * @return class of response for listPaths action. */ - Response listPathsWithResponse(Context context); + ListPathsResponse listPaths(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java index 09fa12ba4eca..112f5b031c16 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorCollection.java @@ -25,6 +25,10 @@ public final class StreamingLocatorCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of StreamingLocatorCollection class. */ + public StreamingLocatorCollection() { + } + /** * Get the value property: A collection of StreamingLocator items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java index 7b09cce7eb53..dde13ef1d93d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKey.java @@ -49,6 +49,10 @@ public final class StreamingLocatorContentKey { @JsonProperty(value = "tracks", access = JsonProperty.Access.WRITE_ONLY) private List tracks; + /** Creates an instance of StreamingLocatorContentKey class. */ + public StreamingLocatorContentKey() { + } + /** * Get the id property: ID of Content Key. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKeyType.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKeyType.java index 83070a192fe9..ffc9e0a9a625 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKeyType.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingLocatorContentKeyType.java @@ -19,6 +19,15 @@ public final class StreamingLocatorContentKeyType extends ExpandableStringEnum list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 Streaming Locator in the Media Services account. + * @return the details of a Streaming Locator in the Media Services account along with {@link Response}. */ - StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * Get a Streaming Locator @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 Streaming Locator in the Media Services account along with {@link Response}. + * @return the details of a Streaming Locator in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + StreamingLocator get(String resourceGroupName, String accountName, String streamingLocatorName); /** * Delete a Streaming Locator @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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}. */ - void delete(String resourceGroupName, String accountName, String streamingLocatorName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * Delete a Streaming Locator @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + void delete(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Content Keys @@ -115,12 +115,14 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 class of response for listContentKeys action. + * @return class of response for listContentKeys action along with {@link Response}. */ - ListContentKeysResponse listContentKeys(String resourceGroupName, String accountName, String streamingLocatorName); + Response listContentKeysWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * List Content Keys @@ -130,14 +132,12 @@ Response deleteWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 class of response for listContentKeys action along with {@link Response}. + * @return class of response for listContentKeys action. */ - Response listContentKeysWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + ListContentKeysResponse listContentKeys(String resourceGroupName, String accountName, String streamingLocatorName); /** * List Paths @@ -147,12 +147,14 @@ Response listContentKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 class of response for listPaths action. + * @return class of response for listPaths action along with {@link Response}. */ - ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName); + Response listPathsWithResponse( + String resourceGroupName, String accountName, String streamingLocatorName, Context context); /** * List Paths @@ -162,14 +164,12 @@ Response listContentKeysWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingLocatorName The Streaming Locator 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 class of response for listPaths action along with {@link Response}. + * @return class of response for listPaths action. */ - Response listPathsWithResponse( - String resourceGroupName, String accountName, String streamingLocatorName, Context context); + ListPathsResponse listPaths(String resourceGroupName, String accountName, String streamingLocatorName); /** * Get a Streaming Locator diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java index 2d74213d4bda..3194f815310b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPath.java @@ -30,6 +30,10 @@ public final class StreamingPath { @JsonProperty(value = "paths") private List paths; + /** Creates an instance of StreamingPath class. */ + public StreamingPath() { + } + /** * Get the streamingProtocol property: Streaming protocol. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java index bb710f06e43f..fa6f54c69693 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicies.java @@ -52,12 +52,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 Streaming Policy in the Media Services account. + * @return the details of a Streaming Policy in the Media Services account along with {@link Response}. */ - StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName); + Response getWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Get a Streaming Policy @@ -67,14 +69,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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 Streaming Policy in the Media Services account along with {@link Response}. + * @return the details of a Streaming Policy in the Media Services account. */ - Response getWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + StreamingPolicy get(String resourceGroupName, String accountName, String streamingPolicyName); /** * Delete a Streaming Policy @@ -84,11 +84,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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}. */ - void delete(String resourceGroupName, String accountName, String streamingPolicyName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String streamingPolicyName, Context context); /** * Delete a Streaming Policy @@ -98,14 +101,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param streamingPolicyName The Streaming Policy 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String streamingPolicyName, Context context); + void delete(String resourceGroupName, String accountName, String streamingPolicyName); /** * Get a Streaming Policy diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java index 556959f334b0..ccaca163bd62 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyCollection.java @@ -25,6 +25,10 @@ public final class StreamingPolicyCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of StreamingPolicyCollection class. */ + public StreamingPolicyCollection() { + } + /** * Get the value property: A collection of StreamingPolicy items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java index 777ea3ed2835..185a58129f95 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKey.java @@ -29,6 +29,10 @@ public final class StreamingPolicyContentKey { @JsonProperty(value = "tracks") private List tracks; + /** Creates an instance of StreamingPolicyContentKey class. */ + public StreamingPolicyContentKey() { + } + /** * Get the label property: Label can be used to specify Content Key when creating a Streaming Locator. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java index 54fd0479a9ba..8f569f740b64 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyContentKeys.java @@ -23,6 +23,10 @@ public final class StreamingPolicyContentKeys { @JsonProperty(value = "keyToTrackMappings") private List keyToTrackMappings; + /** Creates an instance of StreamingPolicyContentKeys class. */ + public StreamingPolicyContentKeys() { + } + /** * Get the defaultKey property: Default content key for an encryption scheme. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java index 3d73230852ab..6a05b1d9cef8 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyFairPlayConfiguration.java @@ -26,6 +26,10 @@ public final class StreamingPolicyFairPlayConfiguration { @JsonProperty(value = "allowPersistentLicense", required = true) private boolean allowPersistentLicense; + /** Creates an instance of StreamingPolicyFairPlayConfiguration class. */ + public StreamingPolicyFairPlayConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java index 5036a2e6779c..da34f7da88dc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyPlayReadyConfiguration.java @@ -26,6 +26,10 @@ public final class StreamingPolicyPlayReadyConfiguration { @JsonProperty(value = "playReadyCustomAttributes") private String playReadyCustomAttributes; + /** Creates an instance of StreamingPolicyPlayReadyConfiguration class. */ + public StreamingPolicyPlayReadyConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyStreamingProtocol.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyStreamingProtocol.java index d93dc991aca8..d6a1ff8c0d31 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyStreamingProtocol.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyStreamingProtocol.java @@ -22,6 +22,15 @@ public final class StreamingPolicyStreamingProtocol extends ExpandableStringEnum /** Static value Download for StreamingPolicyStreamingProtocol. */ public static final StreamingPolicyStreamingProtocol DOWNLOAD = fromString("Download"); + /** + * Creates a new instance of StreamingPolicyStreamingProtocol value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StreamingPolicyStreamingProtocol() { + } + /** * Creates or finds a StreamingPolicyStreamingProtocol from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java index f0928d52b101..96b8e9e5f9a4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StreamingPolicyWidevineConfiguration.java @@ -20,6 +20,10 @@ public final class StreamingPolicyWidevineConfiguration { @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; + /** Creates an instance of StreamingPolicyWidevineConfiguration class. */ + public StreamingPolicyWidevineConfiguration() { + } + /** * Get the customLicenseAcquisitionUrlTemplate property: Template for the URL of the custom service delivering * licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StretchMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StretchMode.java index 1cd16017293f..08b080071c2f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StretchMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/StretchMode.java @@ -21,6 +21,15 @@ public final class StretchMode extends ExpandableStringEnum { /** Static value AutoFit for StretchMode. */ public static final StretchMode AUTO_FIT = fromString("AutoFit"); + /** + * Creates a new instance of StretchMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public StretchMode() { + } + /** * Creates or finds a StretchMode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java index 8088ac875eed..1d74777e0831 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/SyncStorageKeysInput.java @@ -16,6 +16,10 @@ public final class SyncStorageKeysInput { @JsonProperty(value = "id") private String id; + /** Creates an instance of SyncStorageKeysInput class. */ + public SyncStorageKeysInput() { + } + /** * Get the id property: The ID of the storage account resource. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java index bb779f2aa5b0..76f663dbd79c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TextTrack.java @@ -49,6 +49,10 @@ public final class TextTrack extends TrackBase { @JsonProperty(value = "hlsSettings") private HlsSettings hlsSettings; + /** Creates an instance of TextTrack class. */ + public TextTrack() { + } + /** * Get the fileName property: The file name to the source file. This file is located in the storage container of the * asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java index 929ffa390cca..6cb974e27b75 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackAttribute.java @@ -16,6 +16,15 @@ public final class TrackAttribute extends ExpandableStringEnum { /** Static value Language for TrackAttribute. */ public static final TrackAttribute LANGUAGE = fromString("Language"); + /** + * Creates a new instance of TrackAttribute value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public TrackAttribute() { + } + /** * Creates or finds a TrackAttribute from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java index 7e8f39144f61..0aeaf0ea2098 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackBase.java @@ -23,6 +23,10 @@ }) @Immutable public class TrackBase { + /** Creates an instance of TrackBase class. */ + public TrackBase() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java index 2d7b575e17ad..081e748bd96f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackDescriptor.java @@ -25,6 +25,10 @@ }) @Immutable public class TrackDescriptor { + /** Creates an instance of TrackDescriptor class. */ + public TrackDescriptor() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCompareOperation.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCompareOperation.java index adeb3e1414fd..73abbf58cce5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCompareOperation.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TrackPropertyCompareOperation.java @@ -16,6 +16,15 @@ public final class TrackPropertyCompareOperation extends ExpandableStringEnum trackSelections; + /** Creates an instance of TrackSelection class. */ + public TrackSelection() { + } + /** * Get the trackSelections property: TrackSelections is a track property condition list which can specify track(s). * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java index f7bc794c0419..da8a76030b3e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Tracks.java @@ -50,12 +50,14 @@ public interface Tracks { * @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. + * @return the details of a Track in the Asset along with {@link Response}. */ - AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName); + Response getWithResponse( + String resourceGroupName, String accountName, String assetName, String trackName, Context context); /** * Get a Track @@ -66,14 +68,12 @@ public interface Tracks { * @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}. + * @return the details of a Track in the Asset. */ - Response getWithResponse( - String resourceGroupName, String accountName, String assetName, String trackName, Context context); + AssetTrack get(String resourceGroupName, String accountName, String assetName, String trackName); /** * Delete a Track diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java index 08ac27f38eac..224f1e844cd6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformCollection.java @@ -25,6 +25,10 @@ public final class TransformCollection { @JsonProperty(value = "@odata.nextLink") private String odataNextLink; + /** Creates an instance of TransformCollection class. */ + public TransformCollection() { + } + /** * Get the value property: A collection of Transform items. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java index ffcd946ecad3..ce2ed8dee2be 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransformOutput.java @@ -35,6 +35,10 @@ public final class TransformOutput { @JsonProperty(value = "preset", required = true) private Preset preset; + /** Creates an instance of TransformOutput class. */ + public TransformOutput() { + } + /** * Get the onError property: A Transform can define more than one outputs. This property defines what the service * should do when one output fails - either continue to produce other outputs, or, stop the other outputs. The diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java index abad63703fb9..bfdf2fc3aae4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Transforms.java @@ -50,12 +50,14 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform. + * @return a Transform along with {@link Response}. */ - Transform get(String resourceGroupName, String accountName, String transformName); + Response getWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Get Transform @@ -65,14 +67,12 @@ PagedIterable list( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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 Transform along with {@link Response}. + * @return a Transform. */ - Response getWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + Transform get(String resourceGroupName, String accountName, String transformName); /** * Delete Transform @@ -82,11 +82,14 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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}. */ - void delete(String resourceGroupName, String accountName, String transformName); + Response deleteWithResponse( + String resourceGroupName, String accountName, String transformName, Context context); /** * Delete Transform @@ -96,14 +99,11 @@ Response getWithResponse( * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param transformName The Transform 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}. */ - Response deleteWithResponse( - String resourceGroupName, String accountName, String transformName, Context context); + void delete(String resourceGroupName, String accountName, String transformName); /** * Get Transform diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java index 62fe4ca29b5a..1513c53c8f66 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/TransportStreamFormat.java @@ -14,6 +14,10 @@ @JsonTypeName("#Microsoft.Media.TransportStreamFormat") @Fluent public final class TransportStreamFormat extends MultiBitrateFormat { + /** Creates an instance of TransportStreamFormat class. */ + public TransportStreamFormat() { + } + /** {@inheritDoc} */ @Override public TransportStreamFormat withOutputFiles(List outputFiles) { diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java index 1f659e945d90..88827e56ad64 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UserAssignedManagedIdentity.java @@ -23,6 +23,10 @@ public class UserAssignedManagedIdentity { @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private UUID principalId; + /** Creates an instance of UserAssignedManagedIdentity class. */ + public UserAssignedManagedIdentity() { + } + /** * Get the clientId property: The client ID. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java index e994e076fbae..a66913edf969 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/UtcClipTime.java @@ -25,6 +25,10 @@ public final class UtcClipTime extends ClipTime { @JsonProperty(value = "time", required = true) private OffsetDateTime time; + /** Creates an instance of UtcClipTime class. */ + public UtcClipTime() { + } + /** * Get the time property: The time position on the timeline of the input media based on Utc time. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java index 6ab19bc3721c..235d41357c92 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Video.java @@ -46,6 +46,10 @@ public class Video extends Codec { @JsonProperty(value = "syncMode") private VideoSyncMode syncMode; + /** Creates an instance of Video class. */ + public Video() { + } + /** * Get the keyFrameInterval property: The distance between two key frames. The value should be non-zero in the range * [0.5, 20] seconds, specified in ISO 8601 format. The default is 2 seconds(PT2S). Note that this setting is diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java index 3fa4f725079a..856552176e4b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoAnalyzerPreset.java @@ -29,6 +29,10 @@ public final class VideoAnalyzerPreset extends AudioAnalyzerPreset { @JsonProperty(value = "insightsToExtract") private InsightsType insightsToExtract; + /** Creates an instance of VideoAnalyzerPreset class. */ + public VideoAnalyzerPreset() { + } + /** * Get the insightsToExtract property: Defines the type of insights that you want the service to generate. The * allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java index 2157064807ce..ef7c3117da19 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoLayer.java @@ -54,6 +54,10 @@ public class VideoLayer extends Layer { @JsonProperty(value = "adaptiveBFrame") private Boolean adaptiveBFrame; + /** Creates an instance of VideoLayer class. */ + public VideoLayer() { + } + /** * Get the bitrate property: The average bitrate in bits per second at which to encode the input video when * generating this layer. This is a required field. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java index 69b0a9a2cf0a..5072e891e369 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoOverlay.java @@ -34,6 +34,10 @@ public final class VideoOverlay extends Overlay { @JsonProperty(value = "cropRectangle") private Rectangle cropRectangle; + /** Creates an instance of VideoOverlay class. */ + public VideoOverlay() { + } + /** * Get the position property: The location in the input video where the overlay is applied. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoSyncMode.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoSyncMode.java index d544d7c2e1ab..a127146f533c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoSyncMode.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoSyncMode.java @@ -22,6 +22,15 @@ public final class VideoSyncMode extends ExpandableStringEnum { /** Static value Vfr for VideoSyncMode. */ public static final VideoSyncMode VFR = fromString("Vfr"); + /** + * Creates a new instance of VideoSyncMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VideoSyncMode() { + } + /** * Creates or finds a VideoSyncMode from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java index e08edf0551e1..67172abc7ab6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrack.java @@ -13,6 +13,10 @@ @JsonTypeName("#Microsoft.Media.VideoTrack") @Immutable public final class VideoTrack extends TrackBase { + /** Creates an instance of VideoTrack class. */ + public VideoTrack() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java index f60aee310327..56c1db4acc6c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/VideoTrackDescriptor.java @@ -24,6 +24,10 @@ }) @Immutable public class VideoTrackDescriptor extends TrackDescriptor { + /** Creates an instance of VideoTrackDescriptor class. */ + public VideoTrackDescriptor() { + } + /** * Validates the instance. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Visibility.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Visibility.java index fea06f26b4dc..ca7891127c2a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Visibility.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/main/java/com/azure/resourcemanager/mediaservices/models/Visibility.java @@ -20,6 +20,15 @@ public final class Visibility extends ExpandableStringEnum { /** Static value Visible for Visibility. */ public static final Visibility VISIBLE = fromString("Visible"); + /** + * Creates a new instance of Visibility value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Visibility() { + } + /** * Creates or finds a Visibility from its string representation. * diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java index 26027a2fe504..9500cedb554f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for AccountFilters CreateOrUpdate. */ public final class AccountFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-create.json */ /** * Sample code: Create an Account Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java index 952806bc4160..9fc8d27bcf6e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/accountFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-delete.json */ /** * Sample code: Delete an Account Filter. @@ -19,6 +17,7 @@ public final class AccountFiltersDeleteSamples { public static void deleteAnAccountFilter(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .accountFilters() - .deleteWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE); + .deleteWithResponse( + "contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java index f52aaec4ecb0..b9c23567b649 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/accountFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-get-by-name.json */ /** * Sample code: Get an Account Filter by name. @@ -17,6 +15,8 @@ public final class AccountFiltersGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAnAccountFilterByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.accountFilters().getWithResponse("contoso", "contosomedia", "accountFilterWithTrack", Context.NONE); + manager + .accountFilters() + .getWithResponse("contoso", "contosomedia", "accountFilterWithTrack", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java index 9251c9e3e39c..d259a98e4216 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/accountFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-list-all.json */ /** * Sample code: List all Account Filters. @@ -17,6 +15,6 @@ public final class AccountFiltersListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllAccountFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.accountFilters().list("contoso", "contosomedia", Context.NONE); + manager.accountFilters().list("contoso", "contosomedia", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java index 05e6d035f698..579fa16ec432 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AccountFiltersUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -12,7 +11,7 @@ /** Samples for AccountFilters Update. */ public final class AccountFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/accountFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/accountFilters-update.json */ /** * Sample code: Update an Account Filter. @@ -23,7 +22,8 @@ public static void updateAnAccountFilter(com.azure.resourcemanager.mediaservices AccountFilter resource = manager .accountFilters() - .getWithResponse("contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", Context.NONE) + .getWithResponse( + "contoso", "contosomedia", "accountFilterWithTimeWindowAndTrack", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java index 805a28579199..cc69e35d3de5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersCreateOrUpdateSamples.java @@ -15,7 +15,7 @@ /** Samples for AssetFilters CreateOrUpdate. */ public final class AssetFiltersCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-create.json */ /** * Sample code: Create an Asset Filter. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java index ff137f2623b5..2bfd05660b08 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assetFilters-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-delete.json */ /** * Sample code: Delete an Asset Filter. @@ -20,6 +18,10 @@ public static void deleteAnAssetFilter(com.azure.resourcemanager.mediaservices.M manager .assetFilters() .deleteWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE); + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java index 5afcbfd68399..268a6df160b9 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assetFilters-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-get-by-name.json */ /** * Sample code: Get an Asset Filter by name. @@ -20,6 +18,10 @@ public static void getAnAssetFilterByName(com.azure.resourcemanager.mediaservice manager .assetFilters() .getWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE); + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java index d970808b4c66..d60cd949dfee 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assetFilters-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-list-all.json */ /** * Sample code: List all Asset Filters. @@ -17,6 +15,6 @@ public final class AssetFiltersListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllAssetFilters(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assetFilters().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE); + manager.assetFilters().list("contoso", "contosomedia", "ClimbingMountRainer", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java index 6982831f753a..0429f9bae570 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetFiltersUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -12,7 +11,7 @@ /** Samples for AssetFilters Update. */ public final class AssetFiltersUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assetFilters-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assetFilters-update.json */ /** * Sample code: Update an Asset Filter. @@ -24,7 +23,11 @@ public static void updateAnAssetFilter(com.azure.resourcemanager.mediaservices.M manager .assetFilters() .getWithResponse( - "contoso", "contosomedia", "ClimbingMountRainer", "assetFilterWithTimeWindowAndTrack", Context.NONE) + "contoso", + "contosomedia", + "ClimbingMountRainer", + "assetFilterWithTimeWindowAndTrack", + com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java index 24c5ceb1b014..622ba131960a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsCreateOrUpdateSamples.java @@ -7,7 +7,7 @@ /** Samples for Assets CreateOrUpdate. */ public final class AssetsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-create.json */ /** * Sample code: Create an Asset. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java index 66339746cd64..a3e34b268abd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-delete.json */ /** * Sample code: Delete an Asset. @@ -17,6 +15,8 @@ public final class AssetsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assets().deleteWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE); + manager + .assets() + .deleteWithResponse("contoso", "contosomedia", "ClimbingMountAdams", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java index 7722033dcda8..65243cc7fbaf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetEncryptionKeySamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-get-encryption-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-encryption-keys.json */ /** * Sample code: Get Asset Storage Encryption Keys. @@ -20,6 +18,7 @@ public static void getAssetStorageEncryptionKeys( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .assets() - .getEncryptionKeyWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE); + .getEncryptionKeyWithResponse( + "contoso", "contosomedia", "ClimbingMountSaintHelens", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java index c7f2685f5ec3..c5b513b3d24d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-get-by-name.json */ /** * Sample code: Get an Asset by name. @@ -17,6 +15,8 @@ public final class AssetsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAnAssetByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountAdams", Context.NONE); + manager + .assets() + .getWithResponse("contoso", "contosomedia", "ClimbingMountAdams", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java index 944a1ba2ed01..ee04e20c4260 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListContainerSasSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.AssetContainerPermission; import com.azure.resourcemanager.mediaservices.models.ListContainerSasInput; import java.time.OffsetDateTime; @@ -12,7 +11,7 @@ /** Samples for Assets ListContainerSas. */ public final class AssetsListContainerSasSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-sas-urls.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-sas-urls.json */ /** * Sample code: List Asset SAS URLs. @@ -29,6 +28,6 @@ public static void listAssetSASURLs(com.azure.resourcemanager.mediaservices.Medi new ListContainerSasInput() .withPermissions(AssetContainerPermission.READ_WRITE) .withExpiryTime(OffsetDateTime.parse("2018-01-01T10:00:00.007Z")), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java index f6c38f8c2290..041e86780ff1 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-list-by-date.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-by-date.json */ /** * Sample code: List Asset ordered by date. @@ -17,11 +15,13 @@ public final class AssetsListSamples { * @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); + manager + .assets() + .list("contoso", "contosomedia", null, null, "properties/created", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-in-date-range.json */ /** * Sample code: List Asset created in a date range. @@ -38,11 +38,11 @@ public static void listAssetCreatedInADateRange( "properties/created gt 2012-06-01 and properties/created lt 2013-07-01", null, "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/assets-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-all.json */ /** * Sample code: List all Assets. @@ -50,6 +50,6 @@ public static void listAssetCreatedInADateRange( * @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); + manager.assets().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java index 5655b1c9e683..c60c8217b178 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsListStreamingLocatorsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-list-streaming-locators.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-list-streaming-locators.json */ /** * Sample code: List Asset SAS URLs. @@ -19,6 +17,7 @@ public final class AssetsListStreamingLocatorsSamples { public static void listAssetSASURLs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .assets() - .listStreamingLocatorsWithResponse("contoso", "contosomedia", "ClimbingMountSaintHelens", Context.NONE); + .listStreamingLocatorsWithResponse( + "contoso", "contosomedia", "ClimbingMountSaintHelens", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java index 0782b1320dbf..d052d9a661f0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/AssetsUpdateSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/assets-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/assets-update.json */ /** * Sample code: Update an Asset. @@ -19,7 +18,10 @@ public final class AssetsUpdateSamples { */ public static void updateAnAsset(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { Asset resource = - manager.assets().getWithResponse("contoso", "contosomedia", "ClimbingMountBaker", Context.NONE).getValue(); + manager + .assets() + .getWithResponse("contoso", "contosomedia", "ClimbingMountBaker", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withDescription("A documentary showing the ascent of Mount Baker in HD").apply(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java index 73af20c2cc75..eca5e7940838 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesCreateOrUpdateSamples.java @@ -26,7 +26,7 @@ /** Samples for ContentKeyPolicies CreateOrUpdate. */ public final class ContentKeyPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-multiple-options.json */ /** * Sample code: Creates a Content Key Policy with multiple options. @@ -65,7 +65,7 @@ public static void createsAContentKeyPolicyWithMultipleOptions( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-nodrm-token.json */ /** * Sample code: Creates a Content Key Policy with ClearKey option and Token Restriction. @@ -97,7 +97,7 @@ public static void createsAContentKeyPolicyWithClearKeyOptionAndTokenRestriction } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-playready-open.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-playready-open.json */ /** * Sample code: Creates a Content Key Policy with PlayReady option and Open Restriction. @@ -145,7 +145,7 @@ public static void createsAContentKeyPolicyWithPlayReadyOptionAndOpenRestriction } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-create-widevine-token.json */ /** * Sample code: Creates a Content Key Policy with Widevine option and Token Restriction. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java index b29f152fbb60..286c1a549d6e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/content-key-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-delete.json */ /** * Sample code: Delete a Key Policy. @@ -19,6 +17,10 @@ public final class ContentKeyPoliciesDeleteSamples { public static void deleteAKeyPolicy(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .deleteWithResponse("contoso", "contosomedia", "PolicyWithPlayReadyOptionAndOpenRestriction", Context.NONE); + .deleteWithResponse( + "contoso", + "contosomedia", + "PolicyWithPlayReadyOptionAndOpenRestriction", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java index 4617a8f64369..5ea2e3d32a27 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetPolicyPropertiesWithSecretsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/content-key-policies-get-with-secrets.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-with-secrets.json */ /** * Sample code: Get an Content Key Policy with secrets. @@ -21,6 +19,6 @@ public static void getAnContentKeyPolicyWithSecrets( manager .contentKeyPolicies() .getPolicyPropertiesWithSecretsWithResponse( - "contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE); + "contoso", "contosomedia", "PolicyWithMultipleOptions", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java index 69b02337b767..6267f2c49f7a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/content-key-policies-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-get-by-name.json */ /** * Sample code: Get a Content Key Policy by name. @@ -20,6 +18,6 @@ public static void getAContentKeyPolicyByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .getWithResponse("contoso", "contosomedia", "PolicyWithMultipleOptions", Context.NONE); + .getWithResponse("contoso", "contosomedia", "PolicyWithMultipleOptions", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java index 2db9ded9d933..f3adad5373fa 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/content-key-policies-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-all.json */ /** * Sample code: Lists all Content Key Policies. @@ -18,11 +16,13 @@ public final class ContentKeyPoliciesListSamples { */ public static void listsAllContentKeyPolicies( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.contentKeyPolicies().list("contoso", "contosomedia", null, null, null, Context.NONE); + manager + .contentKeyPolicies() + .list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-in-date-range.json */ /** * Sample code: Lists Content Key Policies with created and last modified filters. @@ -39,11 +39,11 @@ public static void listsContentKeyPoliciesWithCreatedAndLastModifiedFilters( "properties/lastModified gt 2016-06-01 and properties/created lt 2013-07-01", null, null, - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-list-by-lastModified.json */ /** * Sample code: Lists Content Key Policies ordered by last modified. @@ -54,6 +54,6 @@ public static void listsContentKeyPoliciesOrderedByLastModified( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .contentKeyPolicies() - .list("contoso", "contosomedia", null, null, "properties/lastModified", Context.NONE); + .list("contoso", "contosomedia", null, null, "properties/lastModified", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java index 1e1f3ff6ab47..b430e078fcf3 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/ContentKeyPoliciesUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -14,7 +13,7 @@ /** Samples for ContentKeyPolicies Update. */ public final class ContentKeyPoliciesUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/content-key-policies-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/content-key-policies-update.json */ /** * Sample code: Update a Content Key Policy. @@ -25,7 +24,11 @@ public static void updateAContentKeyPolicy(com.azure.resourcemanager.mediaservic ContentKeyPolicy resource = manager .contentKeyPolicies() - .getWithResponse("contoso", "contosomedia", "PolicyWithClearKeyOptionAndTokenRestriction", Context.NONE) + .getWithResponse( + "contoso", + "contosomedia", + "PolicyWithClearKeyOptionAndTokenRestriction", + com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java index 2442b630b436..297225f98001 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCancelJobSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-cancel.json */ /** * Sample code: Cancel a Job. @@ -19,6 +17,7 @@ public final class JobsCancelJobSamples { public static void cancelAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .jobs() - .cancelJobWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE); + .cancelJobWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java index 60ba98800c0c..07a87c079a1f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsCreateSamples.java @@ -13,7 +13,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-create.json */ /** * Sample code: Create a Job. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java index 82a120eed6cc..b39cac708909 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-delete.json */ /** * Sample code: Delete a Job. @@ -19,6 +17,11 @@ public final class JobsDeleteSamples { public static void deleteAJob(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .jobs() - .deleteWithResponse("contosoresources", "contosomedia", "exampleTransform", "jobToDelete", Context.NONE); + .deleteWithResponse( + "contosoresources", + "contosomedia", + "exampleTransform", + "jobToDelete", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java index 6a8d9ba61ac4..9cd1c556fa71 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-get-by-name.json */ /** * Sample code: Get a Job by name. @@ -17,6 +15,9 @@ public final class JobsGetSamples { * @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); + manager + .jobs() + .getWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java index 8f5eff2eddf8..4cde85440d1b 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-ne.json */ /** * Sample code: Lists Jobs for the Transform filter by state not equal. @@ -26,11 +24,11 @@ public static void listsJobsForTheTransformFilterByStateNotEqual( "exampleTransform", "properties/state ne Microsoft.Media.JobState'processing'", null, - Context.NONE); + com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-state-eq.json */ /** * Sample code: Lists Jobs for the Transform filter by state equal. @@ -47,11 +45,11 @@ public static void listsJobsForTheTransformFilterByStateEqual( "exampleTransform", "properties/state eq Microsoft.Media.JobState'Processing'", null, - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name.json */ /** * Sample code: Lists Jobs for the Transform filter by name. @@ -68,11 +66,11 @@ public static void listsJobsForTheTransformFilterByName( "exampleTransform", "name eq 'job1' or name eq 'job2'", "name", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-lastmodified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-lastmodified.json */ /** * Sample code: Lists Jobs for the Transform filter by lastmodified. @@ -87,14 +85,14 @@ public static void listsJobsForTheTransformFilterByLastmodified( "contosoresources", "contosomedia", "exampleTransform", - "properties/lastmodified ge 2021-11-01T00:00:10.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/lastmodified ge 2021-06-01T00:00:10.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:20.0000000Z", "properties/lastmodified desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all-filter-by-created.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-created.json */ /** * Sample code: Lists Jobs for the Transform filter by created. @@ -109,14 +107,14 @@ public static void listsJobsForTheTransformFilterByCreated( "contosoresources", "contosomedia", "exampleTransform", - "properties/created ge 2021-11-01T00:00:10.0000000Z and properties/created le" - + " 2021-11-01T00:00:20.0000000Z", + "properties/created ge 2021-06-01T00:00:10.0000000Z and properties/created le" + + " 2021-06-01T00:00:20.0000000Z", "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/jobs-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all.json */ /** * Sample code: Lists all of the Jobs for the Transform. @@ -125,11 +123,13 @@ public static void listsJobsForTheTransformFilterByCreated( */ public static void listsAllOfTheJobsForTheTransform( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.jobs().list("contosoresources", "contosomedia", "exampleTransform", null, null, Context.NONE); + manager + .jobs() + .list("contosoresources", "contosomedia", "exampleTransform", null, null, com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-list-all-filter-by-name-and-state.json */ /** * Sample code: Lists Jobs for the Transform filter by name and state. @@ -146,6 +146,6 @@ public static void listsJobsForTheTransformFilterByNameAndState( "exampleTransform", "name eq 'job3' and properties/state eq Microsoft.Media.JobState'finished'", null, - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java index 65a684a1239f..e6c788b9db59 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/JobsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -14,7 +13,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/jobs-update.json */ /** * Sample code: Update a Job. @@ -25,7 +24,8 @@ public static void updateAJob(com.azure.resourcemanager.mediaservices.MediaServi Job resource = manager .jobs() - .getWithResponse("contosoresources", "contosomedia", "exampleTransform", "job1", Context.NONE) + .getWithResponse( + "contosoresources", "contosomedia", "exampleTransform", "job1", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java index a5b469aa6aa3..972125cc44c6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAllocateSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-allocate.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-allocate.json */ /** * Sample code: Allocate a LiveEvent. @@ -17,6 +15,8 @@ public final class LiveEventsAllocateSamples { * @param manager Entry point to MediaServicesManager. */ public static void allocateALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().allocate("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .allocate("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java index 54d289b44790..a4f6eaa3cff7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsAsyncOperationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for LiveEvents AsyncOperation. */ public final class LiveEventsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveEvent operation status. @@ -21,6 +19,9 @@ public static void getTheLiveEventOperationStatus( manager .liveEvents() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java index 8aa7be94b1fd..14d24d5aca91 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsCreateSamples.java @@ -18,7 +18,7 @@ /** Samples for LiveEvents Create. */ public final class LiveEventsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-create.json */ /** * Sample code: Create a LiveEvent. @@ -47,7 +47,7 @@ public static void createALiveEvent(com.azure.resourcemanager.mediaservices.Medi .withName("AllowAll") .withAddress("0.0.0.0") .withSubnetPrefixLength(0))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java index 700dadc406fa..855e1c71be31 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-delete.json */ /** * Sample code: Delete a LiveEvent. @@ -17,6 +15,8 @@ public final class LiveEventsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().delete("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .delete("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java index 05daeb76e5cd..00aab2109c43 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-by-name.json */ /** * Sample code: Get a LiveEvent by name. @@ -17,6 +15,8 @@ public final class LiveEventsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getALiveEventByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java index ef7962cd3bed..8d34616ec1ba 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-list-all.json */ /** * Sample code: List all LiveEvents. @@ -17,6 +15,6 @@ public final class LiveEventsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllLiveEvents(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().list("mediaresources", "slitestmedia10", Context.NONE); + manager.liveEvents().list("mediaresources", "slitestmedia10", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java index a46687272bec..939a0266eb3c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsOperationLocationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for LiveEvents OperationLocation. */ public final class LiveEventsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-operation-location.json */ /** * Sample code: Get the LiveEvent operation status. @@ -25,6 +23,6 @@ public static void getTheLiveEventOperationStatus( "slitestmedia10", "myLiveEvent1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java index fc52a8d31a0e..2c90c11e90eb 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsResetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-reset.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-reset.json */ /** * Sample code: Reset a LiveEvent. @@ -17,6 +15,8 @@ public final class LiveEventsResetSamples { * @param manager Entry point to MediaServicesManager. */ public static void resetALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().reset("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .reset("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java index c2bfe543a829..cd18b6479bed 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStartSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-start.json */ /** * Sample code: Start a LiveEvent. @@ -17,6 +15,8 @@ public final class LiveEventsStartSamples { * @param manager Entry point to MediaServicesManager. */ public static void startALiveEvent(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveEvents().start("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveEvents() + .start("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java index a6e7d1a51880..4de78584f648 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsStopSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveevent-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-stop.json */ /** * Sample code: Stop a LiveEvent. @@ -25,6 +24,6 @@ public static void stopALiveEvent(com.azure.resourcemanager.mediaservices.MediaS "slitestmedia10", "myLiveEvent1", new LiveEventActionInput().withRemoveOutputsOnStop(false), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java index 975c3ba94a27..a4db44e7ec90 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveEventsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -20,7 +19,7 @@ /** Samples for LiveEvents Update. */ public final class LiveEventsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveevent-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveevent-update.json */ /** * Sample code: Update a LiveEvent. @@ -31,7 +30,7 @@ public static void updateALiveEvent(com.azure.resourcemanager.mediaservices.Medi LiveEvent resource = manager .liveEvents() - .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE) + .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -46,7 +45,7 @@ public static void updateALiveEvent(com.azure.resourcemanager.mediaservices.Medi new IpAccessControl() .withAllow( Arrays.asList(new IpRange().withName("AllowOne").withAddress("192.1.1.0"))))) - .withKeyFrameIntervalDuration("PT6S")) + .withKeyFrameIntervalDuration("fakeTokenPlaceholder")) .withPreview( new LiveEventPreview() .withAccessControl( diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java index c3a7ccec746f..a971613efeb6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsAsyncOperationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for LiveOutputs AsyncOperation. */ public final class LiveOutputsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the LiveOutput operation status. @@ -21,6 +19,9 @@ public static void getTheLiveOutputOperationStatus( manager .liveOutputs() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java index dc328c7e8c0a..85dcba928558 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsCreateSamples.java @@ -10,7 +10,7 @@ /** Samples for LiveOutputs Create. */ public final class LiveOutputsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-create.json */ /** * Sample code: Create a LiveOutput. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java index a718bf74b396..0b5e5b283fe7 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveoutput-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-delete.json */ /** * Sample code: Delete a LiveOutput. @@ -17,6 +15,9 @@ public final class LiveOutputsDeleteSamples { * @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); + manager + .liveOutputs() + .delete( + "mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java index b2039a10bb7c..1e6b02f4ddfd 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveoutput-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-by-name.json */ /** * Sample code: Get a LiveOutput by name. @@ -19,6 +17,7 @@ public final class LiveOutputsGetSamples { public static void getALiveOutputByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .liveOutputs() - .getWithResponse("mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", Context.NONE); + .getWithResponse( + "mediaresources", "slitestmedia10", "myLiveEvent1", "myLiveOutput1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java index 174e51cbe4fa..3b4c0f7d6599 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/liveoutput-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-list-all.json */ /** * Sample code: List all LiveOutputs. @@ -17,6 +15,8 @@ public final class LiveOutputsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllLiveOutputs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.liveOutputs().list("mediaresources", "slitestmedia10", "myLiveEvent1", Context.NONE); + manager + .liveOutputs() + .list("mediaresources", "slitestmedia10", "myLiveEvent1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java index be92d5fedace..c8042fd95508 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LiveOutputsOperationLocationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for LiveOutputs OperationLocation. */ public final class LiveOutputsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/liveoutput-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/liveoutput-operation-location.json */ /** * Sample code: Get the LiveOutput operation status. @@ -26,6 +24,6 @@ public static void getTheLiveOutputOperationStatus( "myLiveEvent1", "myLiveOutput1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java index 8473c05b4f9e..df8f10f7dd0c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/LocationsCheckNameAvailabilitySamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-check-name-availability.json */ /** * Sample code: Check Name Availability. @@ -23,6 +22,6 @@ public static void checkNameAvailability(com.azure.resourcemanager.mediaservices .checkNameAvailabilityWithResponse( "japanwest", new CheckNameAvailabilityInput().withName("contosotv").withType("videoAnalyzers"), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java index 565cf9ca1655..876d8d4bec2a 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationResultsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for MediaServicesOperationResults Get. */ public final class MediaServicesOperationResultsGetSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/media-service-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/media-service-operation-result-by-id.json */ /** * Sample code: Get status of asynchronous operation. @@ -20,6 +18,6 @@ public static void getStatusOfAsynchronousOperation( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationResults() - .getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", Context.NONE); + .getWithResponse("westus", "6FBA62C4-99B5-4FF8-9826-FC4744A8864F", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java index b3609d899784..881f8018470e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaServicesOperationStatusesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for MediaServicesOperationStatuses Get. */ public final class MediaServicesOperationStatusesGetSamples { /* - * 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -20,11 +18,11 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -35,11 +33,11 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompleted( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/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. @@ -50,6 +48,6 @@ public static void getStatusOfAsynchronousOperationWhenItIsOngoing( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .mediaServicesOperationStatuses() - .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", Context.NONE); + .getWithResponse("westus", "D612C429-2526-49D5-961B-885AE11406FD", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java index 7cd585d7b98f..27e7a5101924 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-create.json */ /** * Sample code: Create a Media Services account. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java index 73f23a132460..950b60b34065 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-delete.json */ /** * Sample code: Delete a Media Services account. @@ -18,6 +16,8 @@ public final class MediaservicesDeleteSamples { */ public static void deleteAMediaServicesAccount( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().deleteWithResponse("contoso", "contososports", Context.NONE); + manager + .mediaservices() + .deleteByResourceGroupWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java index d3cbf1856fe5..5abfb5fe4f15 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesGetByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-get-by-name.json */ /** * Sample code: Get a Media Services account by name. @@ -18,6 +16,8 @@ public final class MediaservicesGetByResourceGroupSamples { */ public static void getAMediaServicesAccountByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().getByResourceGroupWithResponse("contoso", "contosotv", Context.NONE); + manager + .mediaservices() + .getByResourceGroupWithResponse("contoso", "contosotv", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java index 244716ad29b3..63a8d5516794 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListByResourceGroupSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -18,6 +16,6 @@ public final class MediaservicesListByResourceGroupSamples { */ public static void listAllMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().listByResourceGroup("contoso", Context.NONE); + manager.mediaservices().listByResourceGroup("contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java index dd05a8ef1505..a58acd6239fc 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListEdgePoliciesSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-list-media-edge-policies.json */ /** * Sample code: List the media edge policies. @@ -24,6 +23,6 @@ public static void listTheMediaEdgePolicies(com.azure.resourcemanager.mediaservi "contoso", "contososports", new ListEdgePoliciesInput().withDeviceId("contosiothubhost_contosoiotdevice"), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java index 2421aa94e80b..beebf1026129 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-subscription-list-all-accounts.json */ /** * Sample code: List all Media Services accounts. @@ -18,6 +16,6 @@ public final class MediaservicesListSamples { */ public static void listAllMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.mediaservices().list(Context.NONE); + manager.mediaservices().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java index aacf72fff672..9518c5567daf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesSyncStorageKeysSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/accounts-sync-storage-keys.json */ /** * Sample code: Synchronizes Storage Account Keys. @@ -22,6 +21,9 @@ public static void synchronizesStorageAccountKeys( manager .mediaservices() .syncStorageKeysWithResponse( - "contoso", "contososports", new SyncStorageKeysInput().withId("contososportsstore"), Context.NONE); + "contoso", + "contososports", + new SyncStorageKeysInput().withId("contososportsstore"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java index 153287dc2138..4103c812be82 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/MediaservicesUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.MediaService; import java.util.HashMap; import java.util.Map; @@ -12,7 +11,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/async-accounts-update.json */ /** * Sample code: Update a Media Services accounts. @@ -22,7 +21,10 @@ public final class MediaservicesUpdateSamples { public static void updateAMediaServicesAccounts( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { MediaService resource = - manager.mediaservices().getByResourceGroupWithResponse("contoso", "contososports", Context.NONE).getValue(); + manager + .mediaservices() + .getByResourceGroupWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE) + .getValue(); resource.update().withTags(mapOf("key1", "value3")).apply(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java index 86dc18caee73..f896ce3d1bb5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationResultsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-operation-result-by-id.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-result-by-id.json */ /** * Sample code: Get result of asynchronous operation. @@ -26,6 +24,6 @@ public static void getResultOfAsynchronousOperation( "ClimbingMountRainer", "text1", "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java index aec1221c309a..d0a7d08af453 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationStatusesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state-failed.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-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. @@ -26,11 +24,11 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompletedWithError( "ClimbingMountRainer", "text1", "86835197-3b47-402e-b313-70b82eaba296", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is completed. @@ -47,11 +45,11 @@ public static void getStatusOfAsynchronousOperationWhenItIsCompleted( "ClimbingMountRainer", "text1", "e78f8d40-7aaa-4f2f-8ae6-73987e7c5a08", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-operation-status-by-id-non-terminal-state.json */ /** * Sample code: Get status of asynchronous operation when it is ongoing. @@ -68,6 +66,6 @@ public static void getStatusOfAsynchronousOperationWhenItIsOngoing( "ClimbingMountRainer", "text1", "5827d9a1-1fb4-4e54-ac40-8eeed9b862c8", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java index 494d9dc54cfa..f8c8fb12e4cf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/OperationsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/operations-list-all.json */ /** * Sample code: List Operations. @@ -17,6 +15,6 @@ public final class OperationsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listOperations(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.operations().listWithResponse(Context.NONE); + manager.operations().listWithResponse(com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 12dd1a95bab5..8d0b38125800 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -12,7 +11,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-put.json */ /** * Sample code: Update private endpoint connection. @@ -24,7 +23,7 @@ public static void updatePrivateEndpointConnection( PrivateEndpointConnection resource = manager .privateEndpointConnections() - .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE) + .getWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java index fbc88b9c8762..ac6dcdf94e22 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-delete.json */ /** * Sample code: Delete private endpoint connection. @@ -20,6 +18,6 @@ public static void deletePrivateEndpointConnection( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .privateEndpointConnections() - .deleteWithResponse("contoso", "contososports", "connectionName1", Context.NONE); + .deleteWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java index 4470efcdf10e..757831e1f327 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-get-by-name.json */ /** * Sample code: Get private endpoint connection. @@ -20,6 +18,6 @@ public static void getPrivateEndpointConnection( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .privateEndpointConnections() - .getWithResponse("contoso", "contososports", "connectionName1", Context.NONE); + .getWithResponse("contoso", "contososports", "connectionName1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java index 3209b083b21e..b3f72d341a2c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateEndpointConnectionsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-endpoint-connection-list.json */ /** * Sample code: Get all private endpoint connections. @@ -18,6 +16,8 @@ public final class PrivateEndpointConnectionsListSamples { */ public static void getAllPrivateEndpointConnections( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateEndpointConnections().listWithResponse("contoso", "contososports", Context.NONE); + manager + .privateEndpointConnections() + .listWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java index 14e46a07a0f4..47d3b8dafa70 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-get-by-name.json */ /** * Sample code: Get details of a group ID. @@ -17,6 +15,8 @@ public final class PrivateLinkResourcesGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getDetailsOfAGroupID(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateLinkResources().getWithResponse("contoso", "contososports", "keydelivery", Context.NONE); + manager + .privateLinkResources() + .getWithResponse("contoso", "contososports", "keydelivery", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java index b1a9798f6d4b..231de8149538 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/PrivateLinkResourcesListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Accounts/stable/2021-11-01/examples/private-link-resources-list.json */ /** * Sample code: Get list of all group IDs. @@ -17,6 +15,6 @@ public final class PrivateLinkResourcesListSamples { * @param manager Entry point to MediaServicesManager. */ public static void getListOfAllGroupIDs(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.privateLinkResources().listWithResponse("contoso", "contososports", Context.NONE); + manager.privateLinkResources().listWithResponse("contoso", "contososports", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java index 5f16e8c70142..4112ba9aa574 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsAsyncOperationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for StreamingEndpoints AsyncOperation. */ public final class StreamingEndpointsAsyncOperationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/async-operation-result.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/async-operation-result.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -21,6 +19,9 @@ public static void getTheStreamingEndpointOperationStatus( manager .streamingEndpoints() .asyncOperationWithResponse( - "mediaresources", "slitestmedia10", "62e4d893-d233-4005-988e-a428d9f77076", Context.NONE); + "mediaresources", + "slitestmedia10", + "62e4d893-d233-4005-988e-a428d9f77076", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java index 824175598138..bda31d70b29d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsCreateSamples.java @@ -17,7 +17,7 @@ /** Samples for StreamingEndpoints Create. */ public final class StreamingEndpointsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-create.json */ /** * Sample code: Create a streaming endpoint. @@ -43,11 +43,11 @@ public static void createAStreamingEndpoint(com.azure.resourcemanager.mediaservi .asList( new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id1") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2029-12-31T16:00:00-08:00")), new AkamaiSignatureHeaderAuthenticationKey() .withIdentifier("id2") - .withBase64Key("dGVzdGlkMQ==") + .withBase64Key("fakeTokenPlaceholder") .withExpiration(OffsetDateTime.parse("2030-12-31T16:00:00-08:00"))))) .withIp( new IpAccessControl() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java index 16e058a966dd..333cc20a0282 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-delete.json */ /** * Sample code: Delete a streaming endpoint. @@ -17,6 +15,8 @@ public final class StreamingEndpointsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().delete("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .delete("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java index 378cf9bd2487..0d0b603a9aaf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-list-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-by-name.json */ /** * Sample code: Get a streaming endpoint by name. @@ -20,6 +18,7 @@ public static void getAStreamingEndpointByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingEndpoints() - .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + .getWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java index 4d074630b3e1..bb92517951a4 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-all.json */ /** * Sample code: List all streaming endpoints. @@ -17,6 +15,6 @@ public final class StreamingEndpointsListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listAllStreamingEndpoints(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().list("mediaresources", "slitestmedia10", Context.NONE); + manager.streamingEndpoints().list("mediaresources", "slitestmedia10", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java index 45b6190f85aa..0a993a5d46da 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsOperationLocationSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; - /** Samples for StreamingEndpoints OperationLocation. */ public final class StreamingEndpointsOperationLocationSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-operation-location.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-operation-location.json */ /** * Sample code: Get the streaming endpoint operation status. @@ -25,6 +23,6 @@ public static void getTheStreamingEndpointOperationStatus( "slitestmedia10", "myStreamingEndpoint1", "62e4d893-d233-4005-988e-a428d9f77076", - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java index 0013e5a0411d..562b72083fad 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsScaleSamples.java @@ -4,13 +4,12 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-scale.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-scale.json */ /** * Sample code: Scale a StreamingEndpoint. @@ -25,6 +24,6 @@ public static void scaleAStreamingEndpoint(com.azure.resourcemanager.mediaservic "slitestmedia10", "myStreamingEndpoint1", new StreamingEntityScaleUnit().withScaleUnit(5), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java index 989d09fcd09c..3aa0c7298378 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsSkusSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-list-skus.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-list-skus.json */ /** * Sample code: List a streaming endpoint sku. @@ -19,6 +17,7 @@ public final class StreamingEndpointsSkusSamples { public static void listAStreamingEndpointSku(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingEndpoints() - .skusWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + .skusWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java index afdba244ff2d..20c678dbbf82 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStartSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-start.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-start.json */ /** * Sample code: Start a streaming endpoint. @@ -17,6 +15,8 @@ public final class StreamingEndpointsStartSamples { * @param manager Entry point to MediaServicesManager. */ public static void startAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().start("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .start("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java index c7d2f83fd5c5..7fc7b7f29abf 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsStopSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streamingendpoint-stop.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-stop.json */ /** * Sample code: Stop a streaming endpoint. @@ -17,6 +15,8 @@ public final class StreamingEndpointsStopSamples { * @param manager Entry point to MediaServicesManager. */ public static void stopAStreamingEndpoint(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingEndpoints().stop("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE); + manager + .streamingEndpoints() + .stop("mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java index ddc4606f81fc..3091f4443340 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingEndpointsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.mediaservices.models.StreamingEndpoint; import java.util.HashMap; import java.util.Map; @@ -12,7 +11,7 @@ /** Samples for StreamingEndpoints Update. */ public final class StreamingEndpointsUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streamingendpoint-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Streaming/stable/2022-08-01/examples/streamingendpoint-update.json */ /** * Sample code: Update a streaming endpoint. @@ -23,7 +22,8 @@ public static void updateAStreamingEndpoint(com.azure.resourcemanager.mediaservi StreamingEndpoint resource = manager .streamingEndpoints() - .getWithResponse("mediaresources", "slitestmedia10", "myStreamingEndpoint1", Context.NONE) + .getWithResponse( + "mediaresources", "slitestmedia10", "myStreamingEndpoint1", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java index 8cb4a2f780e5..1f6770876a19 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsCreateSamples.java @@ -12,7 +12,7 @@ /** Samples for StreamingLocators Create. */ public final class StreamingLocatorsCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-clear.json */ /** * Sample code: Creates a Streaming Locator with clear streaming. @@ -31,7 +31,7 @@ public static void createsAStreamingLocatorWithClearStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure.json */ /** * Sample code: Creates a Streaming Locator with secure streaming. @@ -52,7 +52,7 @@ public static void createsAStreamingLocatorWithSecureStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-create-secure-userDefinedContentKeys.json */ /** * Sample code: Creates a Streaming Locator with user defined content keys. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java index 9c4ca72177f0..14c23fcfa74f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-locators-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-delete.json */ /** * Sample code: Delete a Streaming Locator. @@ -19,6 +17,6 @@ public final class StreamingLocatorsDeleteSamples { public static void deleteAStreamingLocator(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .deleteWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + .deleteWithResponse("contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java index f28ac3a6e36e..8d0680501635 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-locators-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-get-by-name.json */ /** * Sample code: Get a Streaming Locator by name. @@ -18,6 +16,8 @@ public final class StreamingLocatorsGetSamples { */ public static void getAStreamingLocatorByName( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingLocators().getWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + manager + .streamingLocators() + .getWithResponse("contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java index 7ff5c93a8b62..7ee474356c87 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListContentKeysSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-locators-list-content-keys.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-content-keys.json */ /** * Sample code: List Content Keys. @@ -19,6 +17,7 @@ public final class StreamingLocatorsListContentKeysSamples { public static void listContentKeys(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listContentKeysWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE); + .listContentKeysWithResponse( + "contoso", "contosomedia", "secureStreamingLocator", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java index 9c2a06b68045..1b7fd5ad7ea2 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListPathsSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-only.json */ /** * Sample code: List Paths which has streaming paths only. @@ -20,11 +18,12 @@ public static void listPathsWhichHasStreamingPathsOnly( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listPathsWithResponse("contoso", "contosomedia", "secureStreamingLocator", Context.NONE); + .listPathsWithResponse( + "contoso", "contosomedia", "secureStreamingLocator", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list-paths-streaming-and-download.json */ /** * Sample code: List Paths which has streaming paths and download paths. @@ -35,6 +34,7 @@ public static void listPathsWhichHasStreamingPathsAndDownloadPaths( com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { manager .streamingLocators() - .listPathsWithResponse("contoso", "contosomedia", "clearStreamingLocator", Context.NONE); + .listPathsWithResponse( + "contoso", "contosomedia", "clearStreamingLocator", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java index 59d808559174..7fdcaf77a002 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingLocatorsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-locators-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-locators-list.json */ /** * Sample code: Lists Streaming Locators. @@ -17,6 +15,6 @@ public final class StreamingLocatorsListSamples { * @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); + manager.streamingLocators().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java index ac78c929c1ae..877486b753c6 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesCreateSamples.java @@ -26,7 +26,7 @@ /** Samples for StreamingPolicies Create. */ public final class StreamingPoliciesCreateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-secure-streaming.json */ /** * Sample code: Creates a Streaming Policy with secure streaming. @@ -50,8 +50,7 @@ public static void createsAStreamingPolicyWithSecureStreaming( .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .withCommonEncryptionCenc( new CommonEncryptionCenc() .withEnabledProtocols( @@ -105,7 +104,7 @@ public static void createsAStreamingPolicyWithSecureStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCenc. @@ -142,13 +141,12 @@ public static void createsAStreamingPolicyWithClearKeyEncryptionInCommonEncrypti new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cencDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCenc-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCenc only. @@ -198,7 +196,7 @@ public static void createsAStreamingPolicyWithCommonEncryptionCencOnly( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-only.json */ /** * Sample code: Creates a Streaming Policy with commonEncryptionCbcs only. @@ -233,7 +231,7 @@ public static void createsAStreamingPolicyWithCommonEncryptionCbcsOnly( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-commonEncryptionCbcs-clearKeyEncryption.json */ /** * Sample code: Creates a Streaming Policy with ClearKey encryption in commonEncryptionCbcs. @@ -259,13 +257,12 @@ public static void createsAStreamingPolicyWithClearKeyEncryptionInCommonEncrypti new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("cbcsDefaultKey"))) .withClearKeyEncryptionConfiguration( new ClearKeyEncryptionConfiguration() - .withCustomKeysAcquisitionUrlTemplate( - "https://contoso.com/{AlternativeMediaId}/clearkey/"))) + .withCustomKeysAcquisitionUrlTemplate("fakeTokenPlaceholder"))) .create(); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-clear.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-clear.json */ /** * Sample code: Creates a Streaming Policy with clear streaming. @@ -290,7 +287,7 @@ public static void createsAStreamingPolicyWithClearStreaming( } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-create-envelopeEncryption-only.json */ /** * Sample code: Creates a Streaming Policy with envelopeEncryption only. @@ -314,8 +311,7 @@ public static void createsAStreamingPolicyWithEnvelopeEncryptionOnly( .withSmoothStreaming(true)) .withContentKeys( new StreamingPolicyContentKeys().withDefaultKey(new DefaultKey().withLabel("aesDefaultKey"))) - .withCustomKeyAcquisitionUrlTemplate( - "https://contoso.com/{AssetAlternativeId}/envelope/{ContentKeyId}")) + .withCustomKeyAcquisitionUrlTemplate("fakeTokenPlaceholder")) .create(); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java index f3e3f29a4c58..aa08dcdbd7b5 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-policies-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-delete.json */ /** * Sample code: Delete a Streaming Policy. @@ -20,6 +18,9 @@ public static void deleteAStreamingPolicy(com.azure.resourcemanager.mediaservice manager .streamingPolicies() .deleteWithResponse( - "contoso", "contosomedia", "secureStreamingPolicyWithCommonEncryptionCbcsOnly", Context.NONE); + "contoso", + "contosomedia", + "secureStreamingPolicyWithCommonEncryptionCbcsOnly", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java index fd943d916187..40a9f7241216 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-policy-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policy-get-by-name.json */ /** * Sample code: Get a Streaming Policy by name. @@ -17,6 +15,8 @@ public final class StreamingPoliciesGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getAStreamingPolicyByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.streamingPolicies().getWithResponse("contoso", "contosomedia", "clearStreamingPolicy", Context.NONE); + manager + .streamingPolicies() + .getWithResponse("contoso", "contosomedia", "clearStreamingPolicy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java index ea4a282d0372..3d3c9a51a220 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/StreamingPoliciesListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/streaming-policies-list.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/streaming-policies-list.json */ /** * Sample code: Lists Streaming Policies. @@ -17,6 +15,6 @@ public final class StreamingPoliciesListSamples { * @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); + manager.streamingPolicies().list("contoso", "contosomedia", null, null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java index 8cab28c13d4f..20f81c9cff54 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksCreateOrUpdateSamples.java @@ -10,7 +10,7 @@ /** Samples for Tracks CreateOrUpdate. */ public final class TracksCreateOrUpdateSamples { /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2022-08-01/examples/asset-tracks-create.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-create.json */ /** * Sample code: Creates a Track. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java index d809fe870897..cb35da45187e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-delete.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-delete.json */ /** * Sample code: Delete a Track. @@ -17,6 +15,8 @@ public final class TracksDeleteSamples { * @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); + manager + .tracks() + .delete("contoso", "contosomedia", "ClimbingMountRainer", "text2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java index 2f1f4a1e0841..7151b043f057 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-get-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-get-by-name.json */ /** * Sample code: Get a Track by name. @@ -17,6 +15,9 @@ public final class TracksGetSamples { * @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); + manager + .tracks() + .getWithResponse( + "contoso", "contosomedia", "ClimbingMountRainer", "text1", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java index 31a79a2c5f4a..4d3bbb9b2c9f 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-list-all.json */ /** * Sample code: Lists all Tracks. @@ -17,6 +15,6 @@ public final class TracksListSamples { * @param manager Entry point to MediaServicesManager. */ public static void listsAllTracks(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.tracks().list("contoso", "contosomedia", "ClimbingMountRainer", Context.NONE); + manager.tracks().list("contoso", "contosomedia", "ClimbingMountRainer", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java index b99da7a5c316..b65fdd1ede3e 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateSamples.java @@ -4,14 +4,13 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-update.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update.json */ /** * Sample code: Update a Track. @@ -22,7 +21,8 @@ public static void updateATrack(com.azure.resourcemanager.mediaservices.MediaSer AssetTrack resource = manager .tracks() - .getWithResponse("contoso", "contosomedia", "ClimbingMountRainer", "text1", Context.NONE) + .getWithResponse( + "contoso", "contosomedia", "ClimbingMountRainer", "text1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTrack(new TextTrack().withDisplayName("A new name")).apply(); } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java index 2e5c082139a1..86d9f93b8e69 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TracksUpdateTrackDataSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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/2022-08-01/examples/asset-tracks-update-data.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Metadata/stable/2022-08-01/examples/asset-tracks-update-data.json */ /** * Sample code: Update the data for a tracks. @@ -17,6 +15,9 @@ public final class TracksUpdateTrackDataSamples { * @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); + manager + .tracks() + .updateTrackData( + "contoso", "contosomedia", "ClimbingMountRainer", "text2", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java index dfd44d1be9bb..8bcfab9d5c9d 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-create.json */ /** * Sample code: Create or update a Transform. diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java index 9f36e0669677..e6ad88f3b700 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsDeleteSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-delete.json */ /** * Sample code: Delete a Transform. @@ -17,6 +15,9 @@ public final class TransformsDeleteSamples { * @param manager Entry point to MediaServicesManager. */ public static void deleteATransform(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.transforms().deleteWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE); + manager + .transforms() + .deleteWithResponse( + "contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java index 7ff34508bdbe..5aeaab3867d0 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsGetSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-get-by-name.json */ /** * Sample code: Get a Transform by name. @@ -17,6 +15,8 @@ public final class TransformsGetSamples { * @param manager Entry point to MediaServicesManager. */ public static void getATransformByName(com.azure.resourcemanager.mediaservices.MediaServicesManager manager) { - manager.transforms().getWithResponse("contosoresources", "contosomedia", "sampleTransform", Context.NONE); + manager + .transforms() + .getWithResponse("contosoresources", "contosomedia", "sampleTransform", com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java index 8d06eab476cc..9fedeaebc60c 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsListSamples.java @@ -4,12 +4,10 @@ package com.azure.resourcemanager.mediaservices.generated; -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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-created.json */ /** * Sample code: Lists the Transforms filter by created. @@ -23,14 +21,14 @@ public static void listsTheTransformsFilterByCreated( .list( "contosoresources", "contosomedia", - "properties/created gt 2021-11-01T00:00:00.0000000Z and properties/created le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/created gt 2021-06-01T00:00:00.0000000Z and properties/created le" + + " 2021-06-01T00:00:10.0000000Z", "properties/created", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-name.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-name.json */ /** * Sample code: Lists the Transforms filter by name. @@ -46,11 +44,11 @@ public static void listsTheTransformsFilterByName( "contosomedia", "(name eq 'sampleEncode') or (name eq 'sampleEncodeAndVideoIndex')", "name desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all-filter-by-lastmodified.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all-filter-by-lastmodified.json */ /** * Sample code: Lists the Transforms filter by lastmodified. @@ -64,14 +62,14 @@ public static void listsTheTransformsFilterByLastmodified( .list( "contosoresources", "contosomedia", - "properties/lastmodified gt 2021-11-01T00:00:00.0000000Z and properties/lastmodified le" - + " 2021-11-01T00:00:10.0000000Z", + "properties/lastmodified gt 2021-06-01T00:00:00.0000000Z and properties/lastmodified le" + + " 2021-06-01T00:00:10.0000000Z", "properties/lastmodified desc", - Context.NONE); + com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/stable/2021-11-01/examples/transforms-list-all.json + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-list-all.json */ /** * Sample code: Lists the Transforms. @@ -79,6 +77,6 @@ public static void listsTheTransformsFilterByLastmodified( * @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); + manager.transforms().list("contosoresources", "contosomedia", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java index d03a2b0a93ab..8195dd4d0221 100644 --- a/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java +++ b/sdk/mediaservices/azure-resourcemanager-mediaservices/src/samples/java/com/azure/resourcemanager/mediaservices/generated/TransformsUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.mediaservices.generated; -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; @@ -15,7 +14,7 @@ /** 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 + * x-ms-original-file: specification/mediaservices/resource-manager/Microsoft.Media/Encoding/stable/2022-07-01/examples/transforms-update.json */ /** * Sample code: Update a Transform. @@ -26,7 +25,8 @@ public static void updateATransform(com.azure.resourcemanager.mediaservices.Medi Transform resource = manager .transforms() - .getWithResponse("contosoresources", "contosomedia", "transformToUpdate", Context.NONE) + .getWithResponse( + "contosoresources", "contosomedia", "transformToUpdate", com.azure.core.util.Context.NONE) .getValue(); resource .update()