diff --git a/mediaservices/resource-manager/v2015_10_01/pom.xml b/mediaservices/resource-manager/v2015_10_01/pom.xml index 1fd3a380d5b5..32f5209bf119 100644 --- a/mediaservices/resource-manager/v2015_10_01/pom.xml +++ b/mediaservices/resource-manager/v2015_10_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.0.0 + 0.0.3-beta ../../../pom.xml azure-mgmt-media diff --git a/mediaservices/resource-manager/v2018_03_30_preview/pom.xml b/mediaservices/resource-manager/v2018_03_30_preview/pom.xml index 6bbf70506ca8..e2072d50fab0 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/pom.xml +++ b/mediaservices/resource-manager/v2018_03_30_preview/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.0.0 + 0.0.3-beta ../../../pom.xml azure-mgmt-media diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/DefaultKey.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/DefaultKey.java index fdd240e57d37..57a110da9b97 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/DefaultKey.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/DefaultKey.java @@ -16,7 +16,7 @@ */ public class DefaultKey { /** - * Label can be used to specify Content Key when creating Stremaing + * Label can be used to specify Content Key when creating Streaming * Locator. */ @JsonProperty(value = "label") @@ -29,7 +29,7 @@ public class DefaultKey { private String policyName; /** - * Get label can be used to specify Content Key when creating Stremaing Locator. + * Get label can be used to specify Content Key when creating Streaming Locator. * * @return the label value */ @@ -38,7 +38,7 @@ public String label() { } /** - * Set label can be used to specify Content Key when creating Stremaing Locator. + * Set label can be used to specify Content Key when creating Streaming Locator. * * @param label the label value to set * @return the DefaultKey object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EncoderNamedPreset.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EncoderNamedPreset.java index 3d5360286056..36c0cef4c05d 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EncoderNamedPreset.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EncoderNamedPreset.java @@ -15,7 +15,7 @@ * Defines values for EncoderNamedPreset. */ public enum EncoderNamedPreset { - /** Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will will have video and audio in separate MP4 files, which is optimal for adaptive streaming. */ + /** Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming. */ ADAPTIVE_STREAMING("AdaptiveStreaming"), /** Produces a single MP4 file containing only stereo audio encoded at 192 kbps. */ diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EnvelopeEncryption.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EnvelopeEncryption.java index eb7901b6f402..fc4dc8457ac8 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EnvelopeEncryption.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/EnvelopeEncryption.java @@ -35,7 +35,7 @@ public class EnvelopeEncryption { private StreamingPolicyContentKeys contentKeys; /** - * LicenseAcquistionUrlTemplate is used to point to user speicified service + * LicenseAcquisitionUrlTemplate is used to point to user specified service * to delivery content keys. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") @@ -102,7 +102,7 @@ public EnvelopeEncryption withContentKeys(StreamingPolicyContentKeys contentKeys } /** - * Get licenseAcquistionUrlTemplate is used to point to user speicified service to delivery content keys. + * Get licenseAcquisitionUrlTemplate is used to point to user specified service to delivery content keys. * * @return the customLicenseAcquisitionUrlTemplate value */ @@ -111,7 +111,7 @@ public String customLicenseAcquisitionUrlTemplate() { } /** - * Set licenseAcquistionUrlTemplate is used to point to user speicified service to delivery content keys. + * Set licenseAcquisitionUrlTemplate is used to point to user specified service to delivery content keys. * * @param customLicenseAcquisitionUrlTemplate the customLicenseAcquisitionUrlTemplate value to set * @return the EnvelopeEncryption object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/JobInputs.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/JobInputs.java index 4e843790d9d3..fcedd230f7bd 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/JobInputs.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/JobInputs.java @@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * Describes a list of of inputs to a Job. + * Describes a list of inputs to a Job. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Media.JobInputs") diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingLocatorContentKey.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingLocatorContentKey.java index e6fec4e95142..786b70907ed0 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingLocatorContentKey.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingLocatorContentKey.java @@ -36,7 +36,7 @@ public class StreamingLocatorContentKey { private UUID id; /** - * Value of of Content Key. + * Value of Content Key. */ @JsonProperty(value = "value") private String value; @@ -114,7 +114,7 @@ public StreamingLocatorContentKey withId(UUID id) { } /** - * Get value of of Content Key. + * Get value of Content Key. * * @return the value value */ @@ -123,7 +123,7 @@ public String value() { } /** - * Set value of of Content Key. + * Set value of Content Key. * * @param value the value value to set * @return the StreamingLocatorContentKey object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicy.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicy.java index 0d6c87ee2798..7e131f1b2ec0 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicy.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicy.java @@ -151,7 +151,7 @@ interface WithEnvelopeEncryption { interface WithNoEncryption { /** * Specifies noEncryption. - * @param noEncryption Configuations of NoEncryption + * @param noEncryption Configuration of NoEncryption * @return the next definition stage */ WithCreate withNoEncryption(NoEncryption noEncryption); @@ -229,7 +229,7 @@ interface WithEnvelopeEncryption { interface WithNoEncryption { /** * Specifies noEncryption. - * @param noEncryption Configuations of NoEncryption + * @param noEncryption Configuration of NoEncryption * @return the next update stage */ Update withNoEncryption(NoEncryption noEncryption); diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKey.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKey.java index ab6f82dc7186..8a5a85884693 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKey.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKey.java @@ -16,7 +16,7 @@ */ public class StreamingPolicyContentKey { /** - * Label can be used to specify Content Key when creating Stremaing + * Label can be used to specify Content Key when creating Streaming * Locator. */ @JsonProperty(value = "label") @@ -35,7 +35,7 @@ public class StreamingPolicyContentKey { private List tracks; /** - * Get label can be used to specify Content Key when creating Stremaing Locator. + * Get label can be used to specify Content Key when creating Streaming Locator. * * @return the label value */ @@ -44,7 +44,7 @@ public String label() { } /** - * Set label can be used to specify Content Key when creating Stremaing Locator. + * Set label can be used to specify Content Key when creating Streaming Locator. * * @param label the label value to set * @return the StreamingPolicyContentKey object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKeys.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKeys.java index 6b30435e9bbd..17d38f61ab3a 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKeys.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/StreamingPolicyContentKeys.java @@ -22,7 +22,7 @@ public class StreamingPolicyContentKeys { private DefaultKey defaultKey; /** - * Representing tracks needs sepearete content key. + * Representing tracks needs separate content key. */ @JsonProperty(value = "keyToTrackMappings") private List keyToTrackMappings; @@ -48,7 +48,7 @@ public StreamingPolicyContentKeys withDefaultKey(DefaultKey defaultKey) { } /** - * Get representing tracks needs sepearete content key. + * Get representing tracks needs separate content key. * * @return the keyToTrackMappings value */ @@ -57,7 +57,7 @@ public List keyToTrackMappings() { } /** - * Set representing tracks needs sepearete content key. + * Set representing tracks needs separate content key. * * @param keyToTrackMappings the keyToTrackMappings value to set * @return the StreamingPolicyContentKeys object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/TrackPropertyCondition.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/TrackPropertyCondition.java index ab44d40d1235..fb4f6fb5ccdb 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/TrackPropertyCondition.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/TrackPropertyCondition.java @@ -28,7 +28,7 @@ public class TrackPropertyCondition { private TrackPropertyCompareOperation operation; /** - * Track proprty value. + * Track property value. */ @JsonProperty(value = "value") private String value; @@ -74,7 +74,7 @@ public TrackPropertyCondition withOperation(TrackPropertyCompareOperation operat } /** - * Get track proprty value. + * Get track property value. * * @return the value value */ @@ -83,7 +83,7 @@ public String value() { } /** - * Set track proprty value. + * Set track property value. * * @param value the value value to set * @return the TrackPropertyCondition object itself. diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingLocatorsInner.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingLocatorsInner.java index 7e35b633d1e2..dc6bc1d40a7b 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingLocatorsInner.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingLocatorsInner.java @@ -224,7 +224,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -273,7 +273,7 @@ public Observable>> call(String next * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingLocatorInner> object */ @@ -295,7 +295,7 @@ public Page call(ServiceResponse>> call(ServiceResp ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingLocatorInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPoliciesInner.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPoliciesInner.java index 031bdc6a8573..47a5dc3c93d4 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPoliciesInner.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPoliciesInner.java @@ -215,7 +215,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -264,7 +264,7 @@ public Observable>> call(String nextP * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingPolicyInner> object */ @@ -286,7 +286,7 @@ public Page call(ServiceResponse>> call(ServiceRespo ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingPolicyInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPolicyInner.java b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPolicyInner.java index f13d66b0d653..298fca188623 100644 --- a/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPolicyInner.java +++ b/mediaservices/resource-manager/v2018_03_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_03_30_preview/implementation/StreamingPolicyInner.java @@ -53,7 +53,7 @@ public class StreamingPolicyInner extends ProxyResource { private CommonEncryptionCbcs commonEncryptionCbcs; /** - * Configuations of NoEncryption. + * Configuration of NoEncryption. */ @JsonProperty(value = "properties.noEncryption") private NoEncryption noEncryption; @@ -148,7 +148,7 @@ public StreamingPolicyInner withCommonEncryptionCbcs(CommonEncryptionCbcs common } /** - * Get configuations of NoEncryption. + * Get configuration of NoEncryption. * * @return the noEncryption value */ @@ -157,7 +157,7 @@ public NoEncryption noEncryption() { } /** - * Set configuations of NoEncryption. + * Set configuration of NoEncryption. * * @param noEncryption the noEncryption value to set * @return the StreamingPolicyInner object itself. diff --git a/mediaservices/resource-manager/v2018_06_01_preview/pom.xml b/mediaservices/resource-manager/v2018_06_01_preview/pom.xml index aa5bd8bccb76..9f7a6cae0b95 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/pom.xml +++ b/mediaservices/resource-manager/v2018_06_01_preview/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.0.0 + 0.0.3-beta ../../../pom.xml azure-mgmt-media diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EncoderNamedPreset.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EncoderNamedPreset.java index b5591fa082a3..8871c16fd30f 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EncoderNamedPreset.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EncoderNamedPreset.java @@ -15,7 +15,7 @@ * Defines values for EncoderNamedPreset. */ public enum EncoderNamedPreset { - /** Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will will have video and audio in separate MP4 files, which is optimal for adaptive streaming. */ + /** Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will have video and audio in separate MP4 files, which is optimal for adaptive streaming. */ ADAPTIVE_STREAMING("AdaptiveStreaming"), /** Produces a single MP4 file containing only stereo audio encoded at 192 kbps. */ diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EnvelopeEncryption.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EnvelopeEncryption.java index ab41921630b1..3655df3febff 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EnvelopeEncryption.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/EnvelopeEncryption.java @@ -35,7 +35,7 @@ public class EnvelopeEncryption { private StreamingPolicyContentKeys contentKeys; /** - * KeyAcquistionUrlTemplate is used to point to user specified service to + * KeyAcquisitionUrlTemplate is used to point to user specified service to * delivery content keys. */ @JsonProperty(value = "customKeyAcquisitionUrlTemplate") @@ -102,7 +102,7 @@ public EnvelopeEncryption withContentKeys(StreamingPolicyContentKeys contentKeys } /** - * Get keyAcquistionUrlTemplate is used to point to user specified service to delivery content keys. + * Get keyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys. * * @return the customKeyAcquisitionUrlTemplate value */ @@ -111,7 +111,7 @@ public String customKeyAcquisitionUrlTemplate() { } /** - * Set keyAcquistionUrlTemplate is used to point to user specified service to delivery content keys. + * Set keyAcquisitionUrlTemplate is used to point to user specified service to delivery content keys. * * @param customKeyAcquisitionUrlTemplate the customKeyAcquisitionUrlTemplate value to set * @return the EnvelopeEncryption object itself. diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/JobInputs.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/JobInputs.java index 3a92a9f018f6..528a50a6e7d1 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/JobInputs.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/JobInputs.java @@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * Describes a list of of inputs to a Job. + * Describes a list of inputs to a Job. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("#Microsoft.Media.JobInputs") diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/StreamingLocatorContentKey.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/StreamingLocatorContentKey.java index d32d0f0835e5..9bc0d9dc46d2 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/StreamingLocatorContentKey.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/StreamingLocatorContentKey.java @@ -36,7 +36,7 @@ public class StreamingLocatorContentKey { private String label; /** - * Value of of Content Key. + * Value of Content Key. */ @JsonProperty(value = "value") private String value; @@ -103,7 +103,7 @@ public StreamingLocatorContentKey withLabel(String label) { } /** - * Get value of of Content Key. + * Get value of Content Key. * * @return the value value */ @@ -112,7 +112,7 @@ public String value() { } /** - * Set value of of Content Key. + * Set value of Content Key. * * @param value the value value to set * @return the StreamingLocatorContentKey object itself. diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingLocatorsInner.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingLocatorsInner.java index 404f9656e09e..d126f905daa8 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingLocatorsInner.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingLocatorsInner.java @@ -224,7 +224,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -273,7 +273,7 @@ public Observable>> call(String next * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingLocatorInner> object */ @@ -295,7 +295,7 @@ public Page call(ServiceResponse>> call(ServiceResp ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingLocatorInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingPoliciesInner.java b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingPoliciesInner.java index cd6e8efb58af..df180a5d13e3 100644 --- a/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingPoliciesInner.java +++ b/mediaservices/resource-manager/v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/StreamingPoliciesInner.java @@ -215,7 +215,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -264,7 +264,7 @@ public Observable>> call(String nextP * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingPolicyInner> object */ @@ -286,7 +286,7 @@ public Page call(ServiceResponse>> call(ServiceRespo ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingPolicyInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_07_01/pom.xml b/mediaservices/resource-manager/v2018_07_01/pom.xml index 752b61185452..29dc7deb7094 100644 --- a/mediaservices/resource-manager/v2018_07_01/pom.xml +++ b/mediaservices/resource-manager/v2018_07_01/pom.xml @@ -11,7 +11,7 @@ com.microsoft.azure azure-arm-parent - 1.0.0 + 0.0.3-beta ../../../pom.xml azure-mgmt-media diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AacAudioProfile.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AacAudioProfile.java index f83145b882e0..6ffd75e8b9a7 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AacAudioProfile.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AacAudioProfile.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for AacAudioProfile. */ -public enum AacAudioProfile { - /** Specifies that the output audio is to be encoded into AAC Low Complexity profile (AAC-LC). */ - AAC_LC("AacLc"), +public final class AacAudioProfile extends ExpandableStringEnum { + /** Static value AacLc for AacAudioProfile. */ + public static final AacAudioProfile AAC_LC = fromString("AacLc"); - /** Specifies that the output audio is to be encoded into HE-AAC v1 profile. */ - HE_AAC_V1("HeAacV1"), + /** Static value HeAacV1 for AacAudioProfile. */ + public static final AacAudioProfile HE_AAC_V1 = fromString("HeAacV1"); - /** Specifies that the output audio is to be encoded into HE-AAC v2 profile. */ - HE_AAC_V2("HeAacV2"); - - /** The actual serialized value for a AacAudioProfile instance. */ - private String value; - - AacAudioProfile(String value) { - this.value = value; - } + /** Static value HeAacV2 for AacAudioProfile. */ + public static final AacAudioProfile HE_AAC_V2 = fromString("HeAacV2"); /** - * Parses a serialized value to a AacAudioProfile instance. - * - * @param value the serialized value to parse. - * @return the parsed AacAudioProfile object, or null if unable to parse. + * Creates or finds a AacAudioProfile from its string representation. + * @param name a name to look for + * @return the corresponding AacAudioProfile */ @JsonCreator - public static AacAudioProfile fromString(String value) { - AacAudioProfile[] items = AacAudioProfile.values(); - for (AacAudioProfile item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static AacAudioProfile fromString(String name) { + return fromString(name, AacAudioProfile.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known AacAudioProfile values + */ + public static Collection values() { + return values(AacAudioProfile.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AnalysisResolution.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AnalysisResolution.java new file mode 100644 index 000000000000..dce90d9205b4 --- /dev/null +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AnalysisResolution.java @@ -0,0 +1,41 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.mediaservices.v2018_07_01; + +import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.microsoft.rest.ExpandableStringEnum; + +/** + * Defines values for AnalysisResolution. + */ +public final class AnalysisResolution extends ExpandableStringEnum { + /** Static value SourceResolution for AnalysisResolution. */ + public static final AnalysisResolution SOURCE_RESOLUTION = fromString("SourceResolution"); + + /** Static value StandardDefinition for AnalysisResolution. */ + public static final AnalysisResolution STANDARD_DEFINITION = fromString("StandardDefinition"); + + /** + * Creates or finds a AnalysisResolution from its string representation. + * @param name a name to look for + * @return the corresponding AnalysisResolution + */ + @JsonCreator + public static AnalysisResolution fromString(String name) { + return fromString(name, AnalysisResolution.class); + } + + /** + * @return known AnalysisResolution values + */ + public static Collection values() { + return values(AnalysisResolution.class); + } +} diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetContainerPermission.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetContainerPermission.java index eb64cdf793c8..27e4d7d99824 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetContainerPermission.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetContainerPermission.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for AssetContainerPermission. */ -public enum AssetContainerPermission { - /** The SAS URL will allow read access to the container. */ - READ("Read"), +public final class AssetContainerPermission extends ExpandableStringEnum { + /** Static value Read for AssetContainerPermission. */ + public static final AssetContainerPermission READ = fromString("Read"); - /** The SAS URL will allow read and write access to the container. */ - READ_WRITE("ReadWrite"), + /** Static value ReadWrite for AssetContainerPermission. */ + public static final AssetContainerPermission READ_WRITE = fromString("ReadWrite"); - /** The SAS URL will allow read, write and delete access to the container. */ - READ_WRITE_DELETE("ReadWriteDelete"); - - /** The actual serialized value for a AssetContainerPermission instance. */ - private String value; - - AssetContainerPermission(String value) { - this.value = value; - } + /** Static value ReadWriteDelete for AssetContainerPermission. */ + public static final AssetContainerPermission READ_WRITE_DELETE = fromString("ReadWriteDelete"); /** - * Parses a serialized value to a AssetContainerPermission instance. - * - * @param value the serialized value to parse. - * @return the parsed AssetContainerPermission object, or null if unable to parse. + * Creates or finds a AssetContainerPermission from its string representation. + * @param name a name to look for + * @return the corresponding AssetContainerPermission */ @JsonCreator - public static AssetContainerPermission fromString(String value) { - AssetContainerPermission[] items = AssetContainerPermission.values(); - for (AssetContainerPermission item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static AssetContainerPermission fromString(String name) { + return fromString(name, AssetContainerPermission.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known AssetContainerPermission values + */ + public static Collection values() { + return values(AssetContainerPermission.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetStorageEncryptionFormat.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetStorageEncryptionFormat.java index 2dee5fc05ab1..b15debbb5ab8 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetStorageEncryptionFormat.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AssetStorageEncryptionFormat.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for AssetStorageEncryptionFormat. */ -public enum AssetStorageEncryptionFormat { - /** The Asset does not use client-side storage encryption (this is the only allowed value for new Assets). */ - NONE("None"), +public final class AssetStorageEncryptionFormat extends ExpandableStringEnum { + /** Static value None for AssetStorageEncryptionFormat. */ + public static final AssetStorageEncryptionFormat NONE = fromString("None"); - /** The Asset is encrypted with Media Services client-side encryption. */ - MEDIA_STORAGE_CLIENT_ENCRYPTION("MediaStorageClientEncryption"); - - /** The actual serialized value for a AssetStorageEncryptionFormat instance. */ - private String value; - - AssetStorageEncryptionFormat(String value) { - this.value = value; - } + /** Static value MediaStorageClientEncryption for AssetStorageEncryptionFormat. */ + public static final AssetStorageEncryptionFormat MEDIA_STORAGE_CLIENT_ENCRYPTION = fromString("MediaStorageClientEncryption"); /** - * Parses a serialized value to a AssetStorageEncryptionFormat instance. - * - * @param value the serialized value to parse. - * @return the parsed AssetStorageEncryptionFormat object, or null if unable to parse. + * Creates or finds a AssetStorageEncryptionFormat from its string representation. + * @param name a name to look for + * @return the corresponding AssetStorageEncryptionFormat */ @JsonCreator - public static AssetStorageEncryptionFormat fromString(String value) { - AssetStorageEncryptionFormat[] items = AssetStorageEncryptionFormat.values(); - for (AssetStorageEncryptionFormat item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static AssetStorageEncryptionFormat fromString(String name) { + return fromString(name, AssetStorageEncryptionFormat.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known AssetStorageEncryptionFormat values + */ + public static Collection values() { + return values(AssetStorageEncryptionFormat.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java index c1da8da065d3..d54f3a97dd5f 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java @@ -26,20 +26,27 @@ public class AudioAnalyzerPreset extends Preset { /** * The language for the audio payload in the input using the BCP-47 format - * of 'language tag-region' (e.g: 'en-US'). The list of supported languages - * are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', - * 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU', 'hi-IN'. If not specified, - * automatic language detection would be employed. This feature currently - * supports English, Chinese, French, German, Italian, Japanese, Spanish, - * Russian, and Portuguese. The automatic detection works best with audio - * recordings with clearly discernable speech. If automatic detection fails - * to find the language, transcription would fallback to English. + * of 'language tag-region' (e.g: 'en-US'). The list of supported + * languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and + * 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), + * Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic + * ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean + * ('ko-KR'). If you know the language of your content, it is recommended + * that you specify it. If the language isn't specified or set to null, + * automatic language detection will choose the first language detected and + * process with the selected language for the duration of the file. This + * language detection feature currently supports English, Chinese, French, + * German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not + * currently support dynamically switching between languages after the + * first language is detected. The automatic detection works best with + * audio recordings with clearly discernable speech. If automatic detection + * fails to find the language, transcription would fallback to 'en-US'.". */ @JsonProperty(value = "audioLanguage") private String audioLanguage; /** - * Get the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU', 'hi-IN'. If not specified, automatic language detection would be employed. This feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to English. + * Get the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.". * * @return the audioLanguage value */ @@ -48,7 +55,7 @@ public String audioLanguage() { } /** - * Set the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU', 'hi-IN'. If not specified, automatic language detection would be employed. This feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to English. + * Set the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.". * * @param audioLanguage the audioLanguage value to set * @return the AudioAnalyzerPreset object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java index 7d77ef5c547f..566543f2aae1 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java @@ -23,14 +23,14 @@ public class BuiltInStandardEncoderPreset extends Preset { * The built-in preset to be used for encoding videos. Possible values * include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', * 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', - * 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', - * 'H264MultipleBitrateSD'. + * 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', + * 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. */ @JsonProperty(value = "presetName", required = true) private EncoderNamedPreset presetName; /** - * Get the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. + * Get the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. * * @return the presetName value */ @@ -39,7 +39,7 @@ public EncoderNamedPreset presetName() { } /** - * Set the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. + * Set the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. * * @param presetName the presetName value to set * @return the BuiltInStandardEncoderPreset object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java index 51a342ae0afc..ec3bebb697ed 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java @@ -8,52 +8,40 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ -public enum ContentKeyPolicyFairPlayRentalAndLeaseKeyType { - /** Represents a ContentKeyPolicyFairPlayRentalAndLeaseKeyType that is unavailable in current API version. */ - UNKNOWN("Unknown"), +public final class ContentKeyPolicyFairPlayRentalAndLeaseKeyType extends ExpandableStringEnum { + /** Static value Unknown for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ + public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType UNKNOWN = fromString("Unknown"); - /** Key duration is not specified. */ - UNDEFINED("Undefined"), + /** Static value Undefined for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ + public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType UNDEFINED = fromString("Undefined"); - /** Content key can be persisted with an unlimited duration. */ - PERSISTENT_UNLIMITED("PersistentUnlimited"), + /** Static value PersistentUnlimited for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ + public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_UNLIMITED = fromString("PersistentUnlimited"); - /** Content key can be persisted and the valid duration is limited by the Rental Duration value. */ - PERSISTENT_LIMITED("PersistentLimited"); - - /** The actual serialized value for a ContentKeyPolicyFairPlayRentalAndLeaseKeyType instance. */ - private String value; - - ContentKeyPolicyFairPlayRentalAndLeaseKeyType(String value) { - this.value = value; - } + /** Static value PersistentLimited for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ + public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_LIMITED = fromString("PersistentLimited"); /** - * Parses a serialized value to a ContentKeyPolicyFairPlayRentalAndLeaseKeyType instance. - * - * @param value the serialized value to parse. - * @return the parsed ContentKeyPolicyFairPlayRentalAndLeaseKeyType object, or null if unable to parse. + * Creates or finds a ContentKeyPolicyFairPlayRentalAndLeaseKeyType from its string representation. + * @param name a name to look for + * @return the corresponding ContentKeyPolicyFairPlayRentalAndLeaseKeyType */ @JsonCreator - public static ContentKeyPolicyFairPlayRentalAndLeaseKeyType fromString(String value) { - ContentKeyPolicyFairPlayRentalAndLeaseKeyType[] items = ContentKeyPolicyFairPlayRentalAndLeaseKeyType.values(); - for (ContentKeyPolicyFairPlayRentalAndLeaseKeyType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ContentKeyPolicyFairPlayRentalAndLeaseKeyType fromString(String name) { + return fromString(name, ContentKeyPolicyFairPlayRentalAndLeaseKeyType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known ContentKeyPolicyFairPlayRentalAndLeaseKeyType values + */ + public static Collection values() { + return values(ContentKeyPolicyFairPlayRentalAndLeaseKeyType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyContentType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyContentType.java index fc40894ab01b..90309cc79fe7 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyContentType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyContentType.java @@ -8,52 +8,40 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for ContentKeyPolicyPlayReadyContentType. */ -public enum ContentKeyPolicyPlayReadyContentType { - /** Represents a ContentKeyPolicyPlayReadyContentType that is unavailable in current API version. */ - UNKNOWN("Unknown"), +public final class ContentKeyPolicyPlayReadyContentType extends ExpandableStringEnum { + /** Static value Unknown for ContentKeyPolicyPlayReadyContentType. */ + public static final ContentKeyPolicyPlayReadyContentType UNKNOWN = fromString("Unknown"); - /** Unspecified content type. */ - UNSPECIFIED("Unspecified"), + /** Static value Unspecified for ContentKeyPolicyPlayReadyContentType. */ + public static final ContentKeyPolicyPlayReadyContentType UNSPECIFIED = fromString("Unspecified"); - /** Ultraviolet download content type. */ - ULTRA_VIOLET_DOWNLOAD("UltraVioletDownload"), + /** Static value UltraVioletDownload for ContentKeyPolicyPlayReadyContentType. */ + public static final ContentKeyPolicyPlayReadyContentType ULTRA_VIOLET_DOWNLOAD = fromString("UltraVioletDownload"); - /** Ultraviolet streaming content type. */ - ULTRA_VIOLET_STREAMING("UltraVioletStreaming"); - - /** The actual serialized value for a ContentKeyPolicyPlayReadyContentType instance. */ - private String value; - - ContentKeyPolicyPlayReadyContentType(String value) { - this.value = value; - } + /** Static value UltraVioletStreaming for ContentKeyPolicyPlayReadyContentType. */ + public static final ContentKeyPolicyPlayReadyContentType ULTRA_VIOLET_STREAMING = fromString("UltraVioletStreaming"); /** - * Parses a serialized value to a ContentKeyPolicyPlayReadyContentType instance. - * - * @param value the serialized value to parse. - * @return the parsed ContentKeyPolicyPlayReadyContentType object, or null if unable to parse. + * Creates or finds a ContentKeyPolicyPlayReadyContentType from its string representation. + * @param name a name to look for + * @return the corresponding ContentKeyPolicyPlayReadyContentType */ @JsonCreator - public static ContentKeyPolicyPlayReadyContentType fromString(String value) { - ContentKeyPolicyPlayReadyContentType[] items = ContentKeyPolicyPlayReadyContentType.values(); - for (ContentKeyPolicyPlayReadyContentType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ContentKeyPolicyPlayReadyContentType fromString(String name) { + return fromString(name, ContentKeyPolicyPlayReadyContentType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known ContentKeyPolicyPlayReadyContentType values + */ + public static Collection values() { + return values(ContentKeyPolicyPlayReadyContentType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyLicenseType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyLicenseType.java index d781d03b75f1..23e258aee568 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyLicenseType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyLicenseType.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for ContentKeyPolicyPlayReadyLicenseType. */ -public enum ContentKeyPolicyPlayReadyLicenseType { - /** Represents a ContentKeyPolicyPlayReadyLicenseType that is unavailable in current API version. */ - UNKNOWN("Unknown"), +public final class ContentKeyPolicyPlayReadyLicenseType extends ExpandableStringEnum { + /** Static value Unknown for ContentKeyPolicyPlayReadyLicenseType. */ + public static final ContentKeyPolicyPlayReadyLicenseType UNKNOWN = fromString("Unknown"); - /** Non persistent license. */ - NON_PERSISTENT("NonPersistent"), + /** Static value NonPersistent for ContentKeyPolicyPlayReadyLicenseType. */ + public static final ContentKeyPolicyPlayReadyLicenseType NON_PERSISTENT = fromString("NonPersistent"); - /** Persistent license. Allows offline playback. */ - PERSISTENT("Persistent"); - - /** The actual serialized value for a ContentKeyPolicyPlayReadyLicenseType instance. */ - private String value; - - ContentKeyPolicyPlayReadyLicenseType(String value) { - this.value = value; - } + /** Static value Persistent for ContentKeyPolicyPlayReadyLicenseType. */ + public static final ContentKeyPolicyPlayReadyLicenseType PERSISTENT = fromString("Persistent"); /** - * Parses a serialized value to a ContentKeyPolicyPlayReadyLicenseType instance. - * - * @param value the serialized value to parse. - * @return the parsed ContentKeyPolicyPlayReadyLicenseType object, or null if unable to parse. + * Creates or finds a ContentKeyPolicyPlayReadyLicenseType from its string representation. + * @param name a name to look for + * @return the corresponding ContentKeyPolicyPlayReadyLicenseType */ @JsonCreator - public static ContentKeyPolicyPlayReadyLicenseType fromString(String value) { - ContentKeyPolicyPlayReadyLicenseType[] items = ContentKeyPolicyPlayReadyLicenseType.values(); - for (ContentKeyPolicyPlayReadyLicenseType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ContentKeyPolicyPlayReadyLicenseType fromString(String name) { + return fromString(name, ContentKeyPolicyPlayReadyLicenseType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known ContentKeyPolicyPlayReadyLicenseType values + */ + public static Collection values() { + return values(ContentKeyPolicyPlayReadyLicenseType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java index 51485d465ee0..ad75ce9e049f 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyPlayReadyUnknownOutputPassingOption.java @@ -8,52 +8,40 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for ContentKeyPolicyPlayReadyUnknownOutputPassingOption. */ -public enum ContentKeyPolicyPlayReadyUnknownOutputPassingOption { - /** Represents a ContentKeyPolicyPlayReadyUnknownOutputPassingOption that is unavailable in current API version. */ - UNKNOWN("Unknown"), +public final class ContentKeyPolicyPlayReadyUnknownOutputPassingOption extends ExpandableStringEnum { + /** Static value Unknown for ContentKeyPolicyPlayReadyUnknownOutputPassingOption. */ + public static final ContentKeyPolicyPlayReadyUnknownOutputPassingOption UNKNOWN = fromString("Unknown"); - /** Passing the video portion of protected content to an Unknown Output is not allowed. */ - NOT_ALLOWED("NotAllowed"), + /** Static value NotAllowed for ContentKeyPolicyPlayReadyUnknownOutputPassingOption. */ + public static final ContentKeyPolicyPlayReadyUnknownOutputPassingOption NOT_ALLOWED = fromString("NotAllowed"); - /** Passing the video portion of protected content to an Unknown Output is allowed. */ - ALLOWED("Allowed"), + /** Static value Allowed for ContentKeyPolicyPlayReadyUnknownOutputPassingOption. */ + public static final ContentKeyPolicyPlayReadyUnknownOutputPassingOption ALLOWED = fromString("Allowed"); - /** Passing the video portion of protected content to an Unknown Output is allowed but with constrained resolution. */ - ALLOWED_WITH_VIDEO_CONSTRICTION("AllowedWithVideoConstriction"); - - /** The actual serialized value for a ContentKeyPolicyPlayReadyUnknownOutputPassingOption instance. */ - private String value; - - ContentKeyPolicyPlayReadyUnknownOutputPassingOption(String value) { - this.value = value; - } + /** Static value AllowedWithVideoConstriction for ContentKeyPolicyPlayReadyUnknownOutputPassingOption. */ + public static final ContentKeyPolicyPlayReadyUnknownOutputPassingOption ALLOWED_WITH_VIDEO_CONSTRICTION = fromString("AllowedWithVideoConstriction"); /** - * Parses a serialized value to a ContentKeyPolicyPlayReadyUnknownOutputPassingOption instance. - * - * @param value the serialized value to parse. - * @return the parsed ContentKeyPolicyPlayReadyUnknownOutputPassingOption object, or null if unable to parse. + * Creates or finds a ContentKeyPolicyPlayReadyUnknownOutputPassingOption from its string representation. + * @param name a name to look for + * @return the corresponding ContentKeyPolicyPlayReadyUnknownOutputPassingOption */ @JsonCreator - public static ContentKeyPolicyPlayReadyUnknownOutputPassingOption fromString(String value) { - ContentKeyPolicyPlayReadyUnknownOutputPassingOption[] items = ContentKeyPolicyPlayReadyUnknownOutputPassingOption.values(); - for (ContentKeyPolicyPlayReadyUnknownOutputPassingOption item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ContentKeyPolicyPlayReadyUnknownOutputPassingOption fromString(String name) { + return fromString(name, ContentKeyPolicyPlayReadyUnknownOutputPassingOption.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known ContentKeyPolicyPlayReadyUnknownOutputPassingOption values + */ + public static Collection values() { + return values(ContentKeyPolicyPlayReadyUnknownOutputPassingOption.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyRestrictionTokenType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyRestrictionTokenType.java index 47db389c970f..7574366e42c3 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyRestrictionTokenType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyRestrictionTokenType.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for ContentKeyPolicyRestrictionTokenType. */ -public enum ContentKeyPolicyRestrictionTokenType { - /** Represents a ContentKeyPolicyRestrictionTokenType that is unavailable in current API version. */ - UNKNOWN("Unknown"), +public final class ContentKeyPolicyRestrictionTokenType extends ExpandableStringEnum { + /** Static value Unknown for ContentKeyPolicyRestrictionTokenType. */ + public static final ContentKeyPolicyRestrictionTokenType UNKNOWN = fromString("Unknown"); - /** Simple Web Token. */ - SWT("Swt"), + /** Static value Swt for ContentKeyPolicyRestrictionTokenType. */ + public static final ContentKeyPolicyRestrictionTokenType SWT = fromString("Swt"); - /** JSON Web Token. */ - JWT("Jwt"); - - /** The actual serialized value for a ContentKeyPolicyRestrictionTokenType instance. */ - private String value; - - ContentKeyPolicyRestrictionTokenType(String value) { - this.value = value; - } + /** Static value Jwt for ContentKeyPolicyRestrictionTokenType. */ + public static final ContentKeyPolicyRestrictionTokenType JWT = fromString("Jwt"); /** - * Parses a serialized value to a ContentKeyPolicyRestrictionTokenType instance. - * - * @param value the serialized value to parse. - * @return the parsed ContentKeyPolicyRestrictionTokenType object, or null if unable to parse. + * Creates or finds a ContentKeyPolicyRestrictionTokenType from its string representation. + * @param name a name to look for + * @return the corresponding ContentKeyPolicyRestrictionTokenType */ @JsonCreator - public static ContentKeyPolicyRestrictionTokenType fromString(String value) { - ContentKeyPolicyRestrictionTokenType[] items = ContentKeyPolicyRestrictionTokenType.values(); - for (ContentKeyPolicyRestrictionTokenType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static ContentKeyPolicyRestrictionTokenType fromString(String name) { + return fromString(name, ContentKeyPolicyRestrictionTokenType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known ContentKeyPolicyRestrictionTokenType values + */ + public static Collection values() { + return values(ContentKeyPolicyRestrictionTokenType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceMode.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceMode.java index 5a1ef00070a6..4805f785e106 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceMode.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceMode.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for DeinterlaceMode. */ -public enum DeinterlaceMode { - /** Disables de-interlacing of the source video. */ - OFF("Off"), +public final class DeinterlaceMode extends ExpandableStringEnum { + /** Static value Off for DeinterlaceMode. */ + public static final DeinterlaceMode OFF = fromString("Off"); - /** Apply automatic pixel adaptive de-interlacing on each frame in the input video. */ - AUTO_PIXEL_ADAPTIVE("AutoPixelAdaptive"); - - /** The actual serialized value for a DeinterlaceMode instance. */ - private String value; - - DeinterlaceMode(String value) { - this.value = value; - } + /** Static value AutoPixelAdaptive for DeinterlaceMode. */ + public static final DeinterlaceMode AUTO_PIXEL_ADAPTIVE = fromString("AutoPixelAdaptive"); /** - * Parses a serialized value to a DeinterlaceMode instance. - * - * @param value the serialized value to parse. - * @return the parsed DeinterlaceMode object, or null if unable to parse. + * Creates or finds a DeinterlaceMode from its string representation. + * @param name a name to look for + * @return the corresponding DeinterlaceMode */ @JsonCreator - public static DeinterlaceMode fromString(String value) { - DeinterlaceMode[] items = DeinterlaceMode.values(); - for (DeinterlaceMode item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static DeinterlaceMode fromString(String name) { + return fromString(name, DeinterlaceMode.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known DeinterlaceMode values + */ + public static Collection values() { + return values(DeinterlaceMode.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceParity.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceParity.java index 60e6c71eb91d..8e2a3f0f4805 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceParity.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/DeinterlaceParity.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for DeinterlaceParity. */ -public enum DeinterlaceParity { - /** Automatically detect the order of fields. */ - AUTO("Auto"), +public final class DeinterlaceParity extends ExpandableStringEnum { + /** Static value Auto for DeinterlaceParity. */ + public static final DeinterlaceParity AUTO = fromString("Auto"); - /** Apply top field first processing of input video. */ - TOP_FIELD_FIRST("TopFieldFirst"), + /** Static value TopFieldFirst for DeinterlaceParity. */ + public static final DeinterlaceParity TOP_FIELD_FIRST = fromString("TopFieldFirst"); - /** Apply bottom field first processing of input video. */ - BOTTOM_FIELD_FIRST("BottomFieldFirst"); - - /** The actual serialized value for a DeinterlaceParity instance. */ - private String value; - - DeinterlaceParity(String value) { - this.value = value; - } + /** Static value BottomFieldFirst for DeinterlaceParity. */ + public static final DeinterlaceParity BOTTOM_FIELD_FIRST = fromString("BottomFieldFirst"); /** - * Parses a serialized value to a DeinterlaceParity instance. - * - * @param value the serialized value to parse. - * @return the parsed DeinterlaceParity object, or null if unable to parse. + * Creates or finds a DeinterlaceParity from its string representation. + * @param name a name to look for + * @return the corresponding DeinterlaceParity */ @JsonCreator - public static DeinterlaceParity fromString(String value) { - DeinterlaceParity[] items = DeinterlaceParity.values(); - for (DeinterlaceParity item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static DeinterlaceParity fromString(String name) { + return fromString(name, DeinterlaceParity.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known DeinterlaceParity values + */ + public static Collection values() { + return values(DeinterlaceParity.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java index a6612f689694..82d64dfcac5b 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java @@ -8,64 +8,55 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for EncoderNamedPreset. */ -public enum EncoderNamedPreset { - /** Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. */ - H264SINGLE_BITRATE_SD("H264SingleBitrateSD"), +public final class EncoderNamedPreset extends ExpandableStringEnum { + /** Static value H264SingleBitrateSD for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264SINGLE_BITRATE_SD = fromString("H264SingleBitrateSD"); - /** Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. */ - H264SINGLE_BITRATE720P("H264SingleBitrate720p"), + /** Static value H264SingleBitrate720p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264SINGLE_BITRATE720P = fromString("H264SingleBitrate720p"); - /** Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 64 kbps. */ - H264SINGLE_BITRATE1080P("H264SingleBitrate1080p"), + /** Static value H264SingleBitrate1080p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264SINGLE_BITRATE1080P = fromString("H264SingleBitrate1080p"); - /** Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution and bitrate. The auto-generated preset will never exceed the input resolution and bitrate. For example, if the input is 720p at 3 Mbps, output will remain 720p at best, and will start at rates lower than 3 Mbps. The output will will have video and audio in separate MP4 files, which is optimal for adaptive streaming. */ - ADAPTIVE_STREAMING("AdaptiveStreaming"), + /** Static value AdaptiveStreaming for EncoderNamedPreset. */ + public static final EncoderNamedPreset ADAPTIVE_STREAMING = fromString("AdaptiveStreaming"); - /** Produces a single MP4 file containing only stereo audio encoded at 192 kbps. */ - AACGOOD_QUALITY_AUDIO("AACGoodQualityAudio"), + /** Static value AACGoodQualityAudio for EncoderNamedPreset. */ + public static final EncoderNamedPreset AACGOOD_QUALITY_AUDIO = fromString("AACGoodQualityAudio"); - /** Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p. */ - H264MULTIPLE_BITRATE1080P("H264MultipleBitrate1080p"), + /** Static value ContentAwareEncodingExperimental for EncoderNamedPreset. */ + public static final EncoderNamedPreset CONTENT_AWARE_ENCODING_EXPERIMENTAL = fromString("ContentAwareEncodingExperimental"); - /** Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p. */ - H264MULTIPLE_BITRATE720P("H264MultipleBitrate720p"), + /** Static value H264MultipleBitrate1080p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264MULTIPLE_BITRATE1080P = fromString("H264MultipleBitrate1080p"); - /** Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p. */ - H264MULTIPLE_BITRATE_SD("H264MultipleBitrateSD"); + /** Static value H264MultipleBitrate720p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264MULTIPLE_BITRATE720P = fromString("H264MultipleBitrate720p"); - /** The actual serialized value for a EncoderNamedPreset instance. */ - private String value; - - EncoderNamedPreset(String value) { - this.value = value; - } + /** Static value H264MultipleBitrateSD for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264MULTIPLE_BITRATE_SD = fromString("H264MultipleBitrateSD"); /** - * Parses a serialized value to a EncoderNamedPreset instance. - * - * @param value the serialized value to parse. - * @return the parsed EncoderNamedPreset object, or null if unable to parse. + * Creates or finds a EncoderNamedPreset from its string representation. + * @param name a name to look for + * @return the corresponding EncoderNamedPreset */ @JsonCreator - public static EncoderNamedPreset fromString(String value) { - EncoderNamedPreset[] items = EncoderNamedPreset.values(); - for (EncoderNamedPreset item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static EncoderNamedPreset fromString(String name) { + return fromString(name, EncoderNamedPreset.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known EncoderNamedPreset values + */ + public static Collection values() { + return values(EncoderNamedPreset.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncryptionScheme.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncryptionScheme.java index 098dfe82f958..a796802d17ca 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncryptionScheme.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncryptionScheme.java @@ -8,52 +8,40 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for EncryptionScheme. */ -public enum EncryptionScheme { - /** NoEncryption scheme. */ - NO_ENCRYPTION("NoEncryption"), +public final class EncryptionScheme extends ExpandableStringEnum { + /** Static value NoEncryption for EncryptionScheme. */ + public static final EncryptionScheme NO_ENCRYPTION = fromString("NoEncryption"); - /** EnvelopeEncryption scheme. */ - ENVELOPE_ENCRYPTION("EnvelopeEncryption"), + /** Static value EnvelopeEncryption for EncryptionScheme. */ + public static final EncryptionScheme ENVELOPE_ENCRYPTION = fromString("EnvelopeEncryption"); - /** CommonEncryptionCenc scheme. */ - COMMON_ENCRYPTION_CENC("CommonEncryptionCenc"), + /** Static value CommonEncryptionCenc for EncryptionScheme. */ + public static final EncryptionScheme COMMON_ENCRYPTION_CENC = fromString("CommonEncryptionCenc"); - /** CommonEncryptionCbcs scheme. */ - COMMON_ENCRYPTION_CBCS("CommonEncryptionCbcs"); - - /** The actual serialized value for a EncryptionScheme instance. */ - private String value; - - EncryptionScheme(String value) { - this.value = value; - } + /** Static value CommonEncryptionCbcs for EncryptionScheme. */ + public static final EncryptionScheme COMMON_ENCRYPTION_CBCS = fromString("CommonEncryptionCbcs"); /** - * Parses a serialized value to a EncryptionScheme instance. - * - * @param value the serialized value to parse. - * @return the parsed EncryptionScheme object, or null if unable to parse. + * Creates or finds a EncryptionScheme from its string representation. + * @param name a name to look for + * @return the corresponding EncryptionScheme */ @JsonCreator - public static EncryptionScheme fromString(String value) { - EncryptionScheme[] items = EncryptionScheme.values(); - for (EncryptionScheme item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static EncryptionScheme fromString(String name) { + return fromString(name, EncryptionScheme.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known EncryptionScheme values + */ + public static Collection values() { + return values(EncryptionScheme.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EntropyMode.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EntropyMode.java index bc6c28e73a82..e729948b8604 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EntropyMode.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EntropyMode.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for EntropyMode. */ -public enum EntropyMode { - /** Context Adaptive Binary Arithmetic Coder (CABAC) entropy encoding. */ - CABAC("Cabac"), +public final class EntropyMode extends ExpandableStringEnum { + /** Static value Cabac for EntropyMode. */ + public static final EntropyMode CABAC = fromString("Cabac"); - /** Context Adaptive Variable Length Coder (CAVLC) entropy encoding. */ - CAVLC("Cavlc"); - - /** The actual serialized value for a EntropyMode instance. */ - private String value; - - EntropyMode(String value) { - this.value = value; - } + /** Static value Cavlc for EntropyMode. */ + public static final EntropyMode CAVLC = fromString("Cavlc"); /** - * Parses a serialized value to a EntropyMode instance. - * - * @param value the serialized value to parse. - * @return the parsed EntropyMode object, or null if unable to parse. + * Creates or finds a EntropyMode from its string representation. + * @param name a name to look for + * @return the corresponding EntropyMode */ @JsonCreator - public static EntropyMode fromString(String value) { - EntropyMode[] items = EntropyMode.values(); - for (EntropyMode item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static EntropyMode fromString(String name) { + return fromString(name, EntropyMode.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known EntropyMode values + */ + public static Collection values() { + return values(EntropyMode.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnvelopeEncryption.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnvelopeEncryption.java index df5a9118ee2a..7ce49def6d06 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnvelopeEncryption.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnvelopeEncryption.java @@ -35,8 +35,13 @@ public class EnvelopeEncryption { private StreamingPolicyContentKeys contentKeys; /** - * KeyAcquistionUrlTemplate is used to point to user specified service to - * delivery content keys. + * Template for the URL of the custom service delivering keys to end user + * players. Not required when using Azure Media Services for issuing keys. + * The template supports replaceable tokens that the service will update at + * runtime with the value specific to the request. The currently supported + * token values are {AlternativeMediaId}, which is replaced with the value + * of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + * replaced with the value of identifier of the key being requested. */ @JsonProperty(value = "customKeyAcquisitionUrlTemplate") private String customKeyAcquisitionUrlTemplate; @@ -102,7 +107,7 @@ public EnvelopeEncryption withContentKeys(StreamingPolicyContentKeys contentKeys } /** - * Get keyAcquistionUrlTemplate is used to point to user specified service to delivery content keys. + * Get template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @return the customKeyAcquisitionUrlTemplate value */ @@ -111,7 +116,7 @@ public String customKeyAcquisitionUrlTemplate() { } /** - * Set keyAcquistionUrlTemplate is used to point to user specified service to delivery content keys. + * Set template for the URL of the custom service delivering keys to end user players. Not required when using Azure Media Services for issuing keys. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @param customKeyAcquisitionUrlTemplate the customKeyAcquisitionUrlTemplate value to set * @return the EnvelopeEncryption object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FaceDetectorPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FaceDetectorPreset.java new file mode 100644 index 000000000000..76f1beed325c --- /dev/null +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FaceDetectorPreset.java @@ -0,0 +1,60 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.mediaservices.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Describes all the settings to be used when analyzing a video in order to + * detect all the faces present. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") +@JsonTypeName("#Microsoft.Media.FaceDetectorPreset") +public class FaceDetectorPreset extends Preset { + /** + * Specifies the maximum resolution at which your video is analyzed. The + * default behavior is "SourceResolution," which will keep the input video + * at its original resolution when analyzed. Using "StandardDefinition" + * will resize input videos to standard definition while preserving the + * appropriate aspect ratio. It will only resize if the video is of higher + * resolution. For example, a 1920x1080 input would be scaled to 640x360 + * before processing. Switching to "StandardDefinition" will reduce the + * time it takes to process high resolution video. It may also reduce the + * cost of using this component (see + * https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics + * for details). However, faces that end up being too small in the resized + * video may not be detected. Possible values include: 'SourceResolution', + * 'StandardDefinition'. + */ + @JsonProperty(value = "resolution") + private AnalysisResolution resolution; + + /** + * Get specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: 'SourceResolution', 'StandardDefinition'. + * + * @return the resolution value + */ + public AnalysisResolution resolution() { + return this.resolution; + } + + /** + * Set specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: 'SourceResolution', 'StandardDefinition'. + * + * @param resolution the resolution value to set + * @return the FaceDetectorPreset object itself. + */ + public FaceDetectorPreset withResolution(AnalysisResolution resolution) { + this.resolution = resolution; + return this; + } + +} diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyCompareOperation.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyCompareOperation.java index a4bcf8b0cbd7..8b1979a8bec8 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyCompareOperation.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyCompareOperation.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for FilterTrackPropertyCompareOperation. */ -public enum FilterTrackPropertyCompareOperation { - /** The equal operation. */ - EQUAL("Equal"), +public final class FilterTrackPropertyCompareOperation extends ExpandableStringEnum { + /** Static value Equal for FilterTrackPropertyCompareOperation. */ + public static final FilterTrackPropertyCompareOperation EQUAL = fromString("Equal"); - /** The not equal operation. */ - NOT_EQUAL("NotEqual"); - - /** The actual serialized value for a FilterTrackPropertyCompareOperation instance. */ - private String value; - - FilterTrackPropertyCompareOperation(String value) { - this.value = value; - } + /** Static value NotEqual for FilterTrackPropertyCompareOperation. */ + public static final FilterTrackPropertyCompareOperation NOT_EQUAL = fromString("NotEqual"); /** - * Parses a serialized value to a FilterTrackPropertyCompareOperation instance. - * - * @param value the serialized value to parse. - * @return the parsed FilterTrackPropertyCompareOperation object, or null if unable to parse. + * Creates or finds a FilterTrackPropertyCompareOperation from its string representation. + * @param name a name to look for + * @return the corresponding FilterTrackPropertyCompareOperation */ @JsonCreator - public static FilterTrackPropertyCompareOperation fromString(String value) { - FilterTrackPropertyCompareOperation[] items = FilterTrackPropertyCompareOperation.values(); - for (FilterTrackPropertyCompareOperation item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static FilterTrackPropertyCompareOperation fromString(String name) { + return fromString(name, FilterTrackPropertyCompareOperation.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known FilterTrackPropertyCompareOperation values + */ + public static Collection values() { + return values(FilterTrackPropertyCompareOperation.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyType.java index 1684ff394bd4..b7b6fcf0819f 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/FilterTrackPropertyType.java @@ -8,58 +8,46 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for FilterTrackPropertyType. */ -public enum FilterTrackPropertyType { - /** The unknown track property type. */ - UNKNOWN("Unknown"), +public final class FilterTrackPropertyType extends ExpandableStringEnum { + /** Static value Unknown for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType UNKNOWN = fromString("Unknown"); - /** The type. */ - TYPE("Type"), + /** Static value Type for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType TYPE = fromString("Type"); - /** The name. */ - NAME("Name"), + /** Static value Name for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType NAME = fromString("Name"); - /** The language. */ - LANGUAGE("Language"), + /** Static value Language for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType LANGUAGE = fromString("Language"); - /** The fourCC. */ - FOUR_CC("FourCC"), + /** Static value FourCC for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType FOUR_CC = fromString("FourCC"); - /** The bitrate. */ - BITRATE("Bitrate"); - - /** The actual serialized value for a FilterTrackPropertyType instance. */ - private String value; - - FilterTrackPropertyType(String value) { - this.value = value; - } + /** Static value Bitrate for FilterTrackPropertyType. */ + public static final FilterTrackPropertyType BITRATE = fromString("Bitrate"); /** - * Parses a serialized value to a FilterTrackPropertyType instance. - * - * @param value the serialized value to parse. - * @return the parsed FilterTrackPropertyType object, or null if unable to parse. + * Creates or finds a FilterTrackPropertyType from its string representation. + * @param name a name to look for + * @return the corresponding FilterTrackPropertyType */ @JsonCreator - public static FilterTrackPropertyType fromString(String value) { - FilterTrackPropertyType[] items = FilterTrackPropertyType.values(); - for (FilterTrackPropertyType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static FilterTrackPropertyType fromString(String name) { + return fromString(name, FilterTrackPropertyType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known FilterTrackPropertyType values + */ + public static Collection values() { + return values(FilterTrackPropertyType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Format.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Format.java index 79563db7ba57..b580194e75e2 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Format.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Format.java @@ -33,7 +33,7 @@ public class Format { * type of the audio/video codec. Any unsubstituted macros will be * collapsed and removed from the filename. */ - @JsonProperty(value = "filenamePattern") + @JsonProperty(value = "filenamePattern", required = true) private String filenamePattern; /** diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Complexity.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Complexity.java index e11f78b3dc9b..a39b57d4eff6 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Complexity.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Complexity.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for H264Complexity. */ -public enum H264Complexity { - /** Tells the encoder to use settings that are optimized for faster encoding. Quality is sacrificed to decrease encoding time. */ - SPEED("Speed"), +public final class H264Complexity extends ExpandableStringEnum { + /** Static value Speed for H264Complexity. */ + public static final H264Complexity SPEED = fromString("Speed"); - /** Tells the encoder to use settings that achieve a balance between speed and quality. */ - BALANCED("Balanced"), + /** Static value Balanced for H264Complexity. */ + public static final H264Complexity BALANCED = fromString("Balanced"); - /** Tells the encoder to use settings that are optimized to produce higher quality output at the expense of slower overall encode time. */ - QUALITY("Quality"); - - /** The actual serialized value for a H264Complexity instance. */ - private String value; - - H264Complexity(String value) { - this.value = value; - } + /** Static value Quality for H264Complexity. */ + public static final H264Complexity QUALITY = fromString("Quality"); /** - * Parses a serialized value to a H264Complexity instance. - * - * @param value the serialized value to parse. - * @return the parsed H264Complexity object, or null if unable to parse. + * Creates or finds a H264Complexity from its string representation. + * @param name a name to look for + * @return the corresponding H264Complexity */ @JsonCreator - public static H264Complexity fromString(String value) { - H264Complexity[] items = H264Complexity.values(); - for (H264Complexity item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static H264Complexity fromString(String name) { + return fromString(name, H264Complexity.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known H264Complexity values + */ + public static Collection values() { + return values(H264Complexity.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Layer.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Layer.java index 6ccbf112cb02..77e0631573f2 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Layer.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264Layer.java @@ -21,18 +21,18 @@ @JsonTypeName("#Microsoft.Media.H264Layer") public class H264Layer extends VideoLayer { /** - * Which profile of the H.264 standard should be used when encoding this - * layer. Default is Auto. Possible values include: 'Auto', 'Baseline', - * 'Main', 'High', 'High422', 'High444'. + * We currently support Baseline, Main, High, High422, High444. Default is + * Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', + * 'High422', 'High444'. */ @JsonProperty(value = "profile") private H264VideoProfile profile; /** - * Which level of the H.264 standard should be used when encoding this - * layer. The value can be Auto, or a number that matches the H.264 - * profile. If not specified, the default is Auto, which lets the encoder - * choose the Level that is appropriate for this layer. + * We currently support Level up to 6.2. The value can be Auto, or a number + * that matches the H.264 profile. If not specified, the default is Auto, + * which lets the encoder choose the Level that is appropriate for this + * layer. */ @JsonProperty(value = "level") private String level; @@ -62,7 +62,7 @@ public class H264Layer extends VideoLayer { private EntropyMode entropyMode; /** - * Get which profile of the H.264 standard should be used when encoding this layer. Default is Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'. + * Get we currently support Baseline, Main, High, High422, High444. Default is Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'. * * @return the profile value */ @@ -71,7 +71,7 @@ public H264VideoProfile profile() { } /** - * Set which profile of the H.264 standard should be used when encoding this layer. Default is Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'. + * Set we currently support Baseline, Main, High, High422, High444. Default is Auto. Possible values include: 'Auto', 'Baseline', 'Main', 'High', 'High422', 'High444'. * * @param profile the profile value to set * @return the H264Layer object itself. @@ -82,7 +82,7 @@ public H264Layer withProfile(H264VideoProfile profile) { } /** - * Get which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. + * Get we currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. * * @return the level value */ @@ -91,7 +91,7 @@ public String level() { } /** - * Set which level of the H.264 standard should be used when encoding this layer. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. + * Set we currently support Level up to 6.2. The value can be Auto, or a number that matches the H.264 profile. If not specified, the default is Auto, which lets the encoder choose the Level that is appropriate for this layer. * * @param level the level value to set * @return the H264Layer object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264VideoProfile.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264VideoProfile.java index 5f3178cb92a0..fb2fb42ab4c1 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264VideoProfile.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/H264VideoProfile.java @@ -8,58 +8,46 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for H264VideoProfile. */ -public enum H264VideoProfile { - /** Tells the encoder to automatically determine the appropriate H.264 profile. */ - AUTO("Auto"), +public final class H264VideoProfile extends ExpandableStringEnum { + /** Static value Auto for H264VideoProfile. */ + public static final H264VideoProfile AUTO = fromString("Auto"); - /** Baseline profile. */ - BASELINE("Baseline"), + /** Static value Baseline for H264VideoProfile. */ + public static final H264VideoProfile BASELINE = fromString("Baseline"); - /** Main profile. */ - MAIN("Main"), + /** Static value Main for H264VideoProfile. */ + public static final H264VideoProfile MAIN = fromString("Main"); - /** High profile. */ - HIGH("High"), + /** Static value High for H264VideoProfile. */ + public static final H264VideoProfile HIGH = fromString("High"); - /** High 4:2:2 profile. */ - HIGH422("High422"), + /** Static value High422 for H264VideoProfile. */ + public static final H264VideoProfile HIGH422 = fromString("High422"); - /** High 4:4:4 predictive profile. */ - HIGH444("High444"); - - /** The actual serialized value for a H264VideoProfile instance. */ - private String value; - - H264VideoProfile(String value) { - this.value = value; - } + /** Static value High444 for H264VideoProfile. */ + public static final H264VideoProfile HIGH444 = fromString("High444"); /** - * Parses a serialized value to a H264VideoProfile instance. - * - * @param value the serialized value to parse. - * @return the parsed H264VideoProfile object, or null if unable to parse. + * Creates or finds a H264VideoProfile from its string representation. + * @param name a name to look for + * @return the corresponding H264VideoProfile */ @JsonCreator - public static H264VideoProfile fromString(String value) { - H264VideoProfile[] items = H264VideoProfile.values(); - for (H264VideoProfile item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static H264VideoProfile fromString(String name) { + return fromString(name, H264VideoProfile.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known H264VideoProfile values + */ + public static Collection values() { + return values(H264VideoProfile.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Image.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Image.java index da31483ebb56..35ee0c2f064e 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Image.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Image.java @@ -32,7 +32,7 @@ public class Image extends Video { * tells the encoder to select the best thumbnail from the first few * seconds of the video. */ - @JsonProperty(value = "start") + @JsonProperty(value = "start", required = true) private String start; /** diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/InsightsType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/InsightsType.java index 9cab233c0e33..976473a47159 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/InsightsType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/InsightsType.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for InsightsType. */ -public enum InsightsType { - /** Generate audio only insights. Ignore video even if present. Fails if no audio is present. */ - AUDIO_INSIGHTS_ONLY("AudioInsightsOnly"), +public final class InsightsType extends ExpandableStringEnum { + /** Static value AudioInsightsOnly for InsightsType. */ + public static final InsightsType AUDIO_INSIGHTS_ONLY = fromString("AudioInsightsOnly"); - /** Generate video only insights. Ignore audio if present. Fails if no video is present. */ - VIDEO_INSIGHTS_ONLY("VideoInsightsOnly"), + /** Static value VideoInsightsOnly for InsightsType. */ + public static final InsightsType VIDEO_INSIGHTS_ONLY = fromString("VideoInsightsOnly"); - /** Generate both audio and video insights. Fails if either audio or video Insights fail. */ - ALL_INSIGHTS("AllInsights"); - - /** The actual serialized value for a InsightsType instance. */ - private String value; - - InsightsType(String value) { - this.value = value; - } + /** Static value AllInsights for InsightsType. */ + public static final InsightsType ALL_INSIGHTS = fromString("AllInsights"); /** - * Parses a serialized value to a InsightsType instance. - * - * @param value the serialized value to parse. - * @return the parsed InsightsType object, or null if unable to parse. + * Creates or finds a InsightsType from its string representation. + * @param name a name to look for + * @return the corresponding InsightsType */ @JsonCreator - public static InsightsType fromString(String value) { - InsightsType[] items = InsightsType.values(); - for (InsightsType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static InsightsType fromString(String name) { + return fromString(name, InsightsType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known InsightsType values + */ + public static Collection values() { + return values(InsightsType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java index e21bf342bedd..6456556e1199 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java @@ -140,7 +140,7 @@ interface WithOutputs { interface WithCorrelationData { /** * Specifies correlationData. - * @param correlationData Customer provided correlation data that will be returned in Job and JobOutput state events + * @param correlationData Customer provided key, value pairs that will be returned in Job and JobOutput state events * @return the next definition stage */ WithCreate withCorrelationData(Map correlationData); @@ -194,7 +194,7 @@ interface UpdateStages { interface WithCorrelationData { /** * Specifies correlationData. - * @param correlationData Customer provided correlation data that will be returned in Job and JobOutput state events + * @param correlationData Customer provided key, value pairs that will be returned in Job and JobOutput state events * @return the next update stage */ Update withCorrelationData(Map correlationData); diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCategory.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCategory.java index 80ed5a269a78..e1b6a5d74648 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCategory.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCategory.java @@ -8,55 +8,43 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for JobErrorCategory. */ -public enum JobErrorCategory { - /** The error is service related. */ - SERVICE("Service"), +public final class JobErrorCategory extends ExpandableStringEnum { + /** Static value Service for JobErrorCategory. */ + public static final JobErrorCategory SERVICE = fromString("Service"); - /** The error is download related. */ - DOWNLOAD("Download"), + /** Static value Download for JobErrorCategory. */ + public static final JobErrorCategory DOWNLOAD = fromString("Download"); - /** The error is upload related. */ - UPLOAD("Upload"), + /** Static value Upload for JobErrorCategory. */ + public static final JobErrorCategory UPLOAD = fromString("Upload"); - /** The error is configuration related. */ - CONFIGURATION("Configuration"), + /** Static value Configuration for JobErrorCategory. */ + public static final JobErrorCategory CONFIGURATION = fromString("Configuration"); - /** The error is related to data in the input files. */ - CONTENT("Content"); - - /** The actual serialized value for a JobErrorCategory instance. */ - private String value; - - JobErrorCategory(String value) { - this.value = value; - } + /** Static value Content for JobErrorCategory. */ + public static final JobErrorCategory CONTENT = fromString("Content"); /** - * Parses a serialized value to a JobErrorCategory instance. - * - * @param value the serialized value to parse. - * @return the parsed JobErrorCategory object, or null if unable to parse. + * Creates or finds a JobErrorCategory from its string representation. + * @param name a name to look for + * @return the corresponding JobErrorCategory */ @JsonCreator - public static JobErrorCategory fromString(String value) { - JobErrorCategory[] items = JobErrorCategory.values(); - for (JobErrorCategory item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static JobErrorCategory fromString(String name) { + return fromString(name, JobErrorCategory.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known JobErrorCategory values + */ + public static Collection values() { + return values(JobErrorCategory.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCode.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCode.java index f98c797beb5f..09189be5cdd6 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCode.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobErrorCode.java @@ -8,67 +8,55 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for JobErrorCode. */ -public enum JobErrorCode { - /** Fatal service error, please contact support. */ - SERVICE_ERROR("ServiceError"), +public final class JobErrorCode extends ExpandableStringEnum { + /** Static value ServiceError for JobErrorCode. */ + public static final JobErrorCode SERVICE_ERROR = fromString("ServiceError"); - /** Transient error, please retry, if retry is unsuccessful, please contact support. */ - SERVICE_TRANSIENT_ERROR("ServiceTransientError"), + /** Static value ServiceTransientError for JobErrorCode. */ + public static final JobErrorCode SERVICE_TRANSIENT_ERROR = fromString("ServiceTransientError"); - /** While trying to download the input files, the files were not accessible, please check the availability of the source. */ - DOWNLOAD_NOT_ACCESSIBLE("DownloadNotAccessible"), + /** Static value DownloadNotAccessible for JobErrorCode. */ + public static final JobErrorCode DOWNLOAD_NOT_ACCESSIBLE = fromString("DownloadNotAccessible"); - /** While trying to download the input files, there was an issue during transfer (storage service, network errors), see details and check your source. */ - DOWNLOAD_TRANSIENT_ERROR("DownloadTransientError"), + /** Static value DownloadTransientError for JobErrorCode. */ + public static final JobErrorCode DOWNLOAD_TRANSIENT_ERROR = fromString("DownloadTransientError"); - /** While trying to upload the output files, the destination was not reachable, please check the availability of the destination. */ - UPLOAD_NOT_ACCESSIBLE("UploadNotAccessible"), + /** Static value UploadNotAccessible for JobErrorCode. */ + public static final JobErrorCode UPLOAD_NOT_ACCESSIBLE = fromString("UploadNotAccessible"); - /** While trying to upload the output files, there was an issue during transfer (storage service, network errors), see details and check your destination. */ - UPLOAD_TRANSIENT_ERROR("UploadTransientError"), + /** Static value UploadTransientError for JobErrorCode. */ + public static final JobErrorCode UPLOAD_TRANSIENT_ERROR = fromString("UploadTransientError"); - /** There was a problem with the combination of input files and the configuration settings applied, fix the configuration settings and retry with the same input, or change input to match the configuration. */ - CONFIGURATION_UNSUPPORTED("ConfigurationUnsupported"), + /** Static value ConfigurationUnsupported for JobErrorCode. */ + public static final JobErrorCode CONFIGURATION_UNSUPPORTED = fromString("ConfigurationUnsupported"); - /** There was a problem with the input content (for example: zero byte files, or corrupt/non-decodable files), check the input files. */ - CONTENT_MALFORMED("ContentMalformed"), + /** Static value ContentMalformed for JobErrorCode. */ + public static final JobErrorCode CONTENT_MALFORMED = fromString("ContentMalformed"); - /** There was a problem with the format of the input (not valid media file, or an unsupported file/codec), check the validity of the input files. */ - CONTENT_UNSUPPORTED("ContentUnsupported"); - - /** The actual serialized value for a JobErrorCode instance. */ - private String value; - - JobErrorCode(String value) { - this.value = value; - } + /** Static value ContentUnsupported for JobErrorCode. */ + public static final JobErrorCode CONTENT_UNSUPPORTED = fromString("ContentUnsupported"); /** - * Parses a serialized value to a JobErrorCode instance. - * - * @param value the serialized value to parse. - * @return the parsed JobErrorCode object, or null if unable to parse. + * Creates or finds a JobErrorCode from its string representation. + * @param name a name to look for + * @return the corresponding JobErrorCode */ @JsonCreator - public static JobErrorCode fromString(String value) { - JobErrorCode[] items = JobErrorCode.values(); - for (JobErrorCode item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static JobErrorCode fromString(String name) { + return fromString(name, JobErrorCode.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known JobErrorCode values + */ + public static Collection values() { + return values(JobErrorCode.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java index 5d487948ee56..ba05db7de5d2 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java @@ -25,7 +25,8 @@ }) public class JobInputClip extends JobInput { /** - * List of files. Required for JobInputHttp. + * List of files. Required for JobInputHttp. Maximum of 4000 characters + * each. */ @JsonProperty(value = "files") private List files; @@ -42,7 +43,7 @@ public class JobInputClip extends JobInput { private String label; /** - * Get list of files. Required for JobInputHttp. + * Get list of files. Required for JobInputHttp. Maximum of 4000 characters each. * * @return the files value */ @@ -51,7 +52,7 @@ public List files() { } /** - * Set list of files. Required for JobInputHttp. + * Set list of files. Required for JobInputHttp. Maximum of 4000 characters each. * * @param files the files value to set * @return the JobInputClip object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputHttp.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputHttp.java index 71d04fd88fe4..aa7881df0597 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputHttp.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputHttp.java @@ -20,14 +20,14 @@ public class JobInputHttp extends JobInputClip { /** * Base URI for HTTPS job input. It will be concatenated with provided file - * names. If no base uri is given, then the provided file list is assumed - * to be fully qualified uris. + * names. If no base uri is given, then the provided file list is assumed + * to be fully qualified uris. Maximum length of 4000 characters. */ @JsonProperty(value = "baseUri") private String baseUri; /** - * Get 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. + * Get base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. * * @return the baseUri value */ @@ -36,7 +36,7 @@ public String baseUri() { } /** - * Set 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. + * Set base URI for HTTPS job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris. Maximum length of 4000 characters. * * @param baseUri the baseUri value to set * @return the JobInputHttp object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobRetry.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobRetry.java index ee7995f3eb33..42540f505c6a 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobRetry.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobRetry.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for JobRetry. */ -public enum JobRetry { - /** Issue needs to be investigated and then the job resubmitted with corrections or retried once the underlying issue has been corrected. */ - DO_NOT_RETRY("DoNotRetry"), +public final class JobRetry extends ExpandableStringEnum { + /** Static value DoNotRetry for JobRetry. */ + public static final JobRetry DO_NOT_RETRY = fromString("DoNotRetry"); - /** Issue may be resolved after waiting for a period of time and resubmitting the same Job. */ - MAY_RETRY("MayRetry"); - - /** The actual serialized value for a JobRetry instance. */ - private String value; - - JobRetry(String value) { - this.value = value; - } + /** Static value MayRetry for JobRetry. */ + public static final JobRetry MAY_RETRY = fromString("MayRetry"); /** - * Parses a serialized value to a JobRetry instance. - * - * @param value the serialized value to parse. - * @return the parsed JobRetry object, or null if unable to parse. + * Creates or finds a JobRetry from its string representation. + * @param name a name to look for + * @return the corresponding JobRetry */ @JsonCreator - public static JobRetry fromString(String value) { - JobRetry[] items = JobRetry.values(); - for (JobRetry item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static JobRetry fromString(String name) { + return fromString(name, JobRetry.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known JobRetry values + */ + public static Collection values() { + return values(JobRetry.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobState.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobState.java index 57f686d3a3b3..f37c601dee62 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobState.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobState.java @@ -8,61 +8,49 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for JobState. */ -public enum JobState { - /** The job was canceled. This is a final state for the job. */ - CANCELED("Canceled"), +public final class JobState extends ExpandableStringEnum { + /** Static value Canceled for JobState. */ + public static final JobState CANCELED = fromString("Canceled"); - /** The job is in the process of being canceled. This is a transient state for the job. */ - CANCELING("Canceling"), + /** Static value Canceling for JobState. */ + public static final JobState CANCELING = fromString("Canceling"); - /** The job has encountered an error. This is a final state for the job. */ - ERROR("Error"), + /** Static value Error for JobState. */ + public static final JobState ERROR = fromString("Error"); - /** The job is finished. This is a final state for the job. */ - FINISHED("Finished"), + /** Static value Finished for JobState. */ + public static final JobState FINISHED = fromString("Finished"); - /** The job is processing. This is a transient state for the job. */ - PROCESSING("Processing"), + /** Static value Processing for JobState. */ + public static final JobState PROCESSING = fromString("Processing"); - /** The job is in a queued state, waiting for resources to become available. This is a transient state. */ - QUEUED("Queued"), + /** Static value Queued for JobState. */ + public static final JobState QUEUED = fromString("Queued"); - /** The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. */ - SCHEDULED("Scheduled"); - - /** The actual serialized value for a JobState instance. */ - private String value; - - JobState(String value) { - this.value = value; - } + /** Static value Scheduled for JobState. */ + public static final JobState SCHEDULED = fromString("Scheduled"); /** - * Parses a serialized value to a JobState instance. - * - * @param value the serialized value to parse. - * @return the parsed JobState object, or null if unable to parse. + * Creates or finds a JobState from its string representation. + * @param name a name to look for + * @return the corresponding JobState */ @JsonCreator - public static JobState fromString(String value) { - JobState[] items = JobState.values(); - for (JobState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static JobState fromString(String name) { + return fromString(name, JobState.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known JobState values + */ + public static Collection values() { + return values(JobState.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncoding.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncoding.java index a97cbad89462..e01a6a28090e 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncoding.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncoding.java @@ -16,7 +16,8 @@ public class LiveEventEncoding { /** * The encoding type for Live Event. This value is specified at creation - * time and cannot be updated. Possible values include: 'None', 'Basic'. + * time and cannot be updated. Possible values include: 'None', 'Basic', + * 'Standard'. */ @JsonProperty(value = "encodingType") private LiveEventEncodingType encodingType; @@ -29,7 +30,7 @@ public class LiveEventEncoding { private String presetName; /** - * Get the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic'. + * Get the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard'. * * @return the encodingType value */ @@ -38,7 +39,7 @@ public LiveEventEncodingType encodingType() { } /** - * Set the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic'. + * Set the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard'. * * @param encodingType the encodingType value to set * @return the LiveEventEncoding object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncodingType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncodingType.java index a3d42eeede63..4fa7503adecb 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncodingType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventEncodingType.java @@ -19,7 +19,10 @@ public enum LiveEventEncodingType { NONE("None"), /** Enum value Basic. */ - BASIC("Basic"); + BASIC("Basic"), + + /** Enum value Standard. */ + STANDARD("Standard"); /** The actual serialized value for a LiveEventEncodingType instance. */ private String value; diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricAggregationType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricAggregationType.java index 46af6201497f..2b4252bbc50f 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricAggregationType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricAggregationType.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for MetricAggregationType. */ -public enum MetricAggregationType { - /** The average. */ - AVERAGE("Average"), +public final class MetricAggregationType extends ExpandableStringEnum { + /** Static value Average for MetricAggregationType. */ + public static final MetricAggregationType AVERAGE = fromString("Average"); - /** The count of a number of items, usually requests. */ - COUNT("Count"), + /** Static value Count for MetricAggregationType. */ + public static final MetricAggregationType COUNT = fromString("Count"); - /** The sum. */ - TOTAL("Total"); - - /** The actual serialized value for a MetricAggregationType instance. */ - private String value; - - MetricAggregationType(String value) { - this.value = value; - } + /** Static value Total for MetricAggregationType. */ + public static final MetricAggregationType TOTAL = fromString("Total"); /** - * Parses a serialized value to a MetricAggregationType instance. - * - * @param value the serialized value to parse. - * @return the parsed MetricAggregationType object, or null if unable to parse. + * Creates or finds a MetricAggregationType from its string representation. + * @param name a name to look for + * @return the corresponding MetricAggregationType */ @JsonCreator - public static MetricAggregationType fromString(String value) { - MetricAggregationType[] items = MetricAggregationType.values(); - for (MetricAggregationType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static MetricAggregationType fromString(String name) { + return fromString(name, MetricAggregationType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known MetricAggregationType values + */ + public static Collection values() { + return values(MetricAggregationType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricUnit.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricUnit.java index 02d2259f4c3b..44cc2c16ce78 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricUnit.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/MetricUnit.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for MetricUnit. */ -public enum MetricUnit { - /** The number of bytes. */ - BYTES("Bytes"), +public final class MetricUnit extends ExpandableStringEnum { + /** Static value Bytes for MetricUnit. */ + public static final MetricUnit BYTES = fromString("Bytes"); - /** The count. */ - COUNT("Count"), + /** Static value Count for MetricUnit. */ + public static final MetricUnit COUNT = fromString("Count"); - /** The number of milliseconds. */ - MILLISECONDS("Milliseconds"); - - /** The actual serialized value for a MetricUnit instance. */ - private String value; - - MetricUnit(String value) { - this.value = value; - } + /** Static value Milliseconds for MetricUnit. */ + public static final MetricUnit MILLISECONDS = fromString("Milliseconds"); /** - * Parses a serialized value to a MetricUnit instance. - * - * @param value the serialized value to parse. - * @return the parsed MetricUnit object, or null if unable to parse. + * Creates or finds a MetricUnit from its string representation. + * @param name a name to look for + * @return the corresponding MetricUnit */ @JsonCreator - public static MetricUnit fromString(String value) { - MetricUnit[] items = MetricUnit.values(); - for (MetricUnit item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static MetricUnit fromString(String name) { + return fromString(name, MetricUnit.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known MetricUnit values + */ + public static Collection values() { + return values(MetricUnit.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OnErrorType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OnErrorType.java index e1a82fea5109..d59bb4d2477b 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OnErrorType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OnErrorType.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for OnErrorType. */ -public enum OnErrorType { - /** Tells the service that if this TransformOutput fails, then any other incomplete TransformOutputs can be stopped. */ - STOP_PROCESSING_JOB("StopProcessingJob"), +public final class OnErrorType extends ExpandableStringEnum { + /** Static value StopProcessingJob for OnErrorType. */ + public static final OnErrorType STOP_PROCESSING_JOB = fromString("StopProcessingJob"); - /** Tells the service that if this TransformOutput fails, then allow any other TransformOutput to continue. */ - CONTINUE_JOB("ContinueJob"); - - /** The actual serialized value for a OnErrorType instance. */ - private String value; - - OnErrorType(String value) { - this.value = value; - } + /** Static value ContinueJob for OnErrorType. */ + public static final OnErrorType CONTINUE_JOB = fromString("ContinueJob"); /** - * Parses a serialized value to a OnErrorType instance. - * - * @param value the serialized value to parse. - * @return the parsed OnErrorType object, or null if unable to parse. + * Creates or finds a OnErrorType from its string representation. + * @param name a name to look for + * @return the corresponding OnErrorType */ @JsonCreator - public static OnErrorType fromString(String value) { - OnErrorType[] items = OnErrorType.values(); - for (OnErrorType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static OnErrorType fromString(String name) { + return fromString(name, OnErrorType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known OnErrorType values + */ + public static Collection values() { + return values(OnErrorType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OutputFile.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OutputFile.java index 3f9f7e34556d..bda577fcbbef 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OutputFile.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/OutputFile.java @@ -23,7 +23,7 @@ public class OutputFile { * file with the video track represented by v1 and the audio track * represented by a1. */ - @JsonProperty(value = "labels") + @JsonProperty(value = "labels", required = true) private List labels; /** diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Overlay.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Overlay.java index 6926b28bb211..d0fe76c18448 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Overlay.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Overlay.java @@ -31,7 +31,7 @@ public class Overlay { * a video file. See https://aka.ms/mesformats for the complete list of * supported audio and video file formats. */ - @JsonProperty(value = "inputLabel") + @JsonProperty(value = "inputLabel", required = true) private String inputLabel; /** diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/PresentationTimeRange.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/PresentationTimeRange.java index f2e34d8c91cf..1394ef3dd30a 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/PresentationTimeRange.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/PresentationTimeRange.java @@ -18,45 +18,45 @@ public class PresentationTimeRange { /** * The absolute start time boundary. */ - @JsonProperty(value = "startTimestamp", required = true) - private long startTimestamp; + @JsonProperty(value = "startTimestamp") + private Long startTimestamp; /** * The absolute end time boundary. */ - @JsonProperty(value = "endTimestamp", required = true) - private long endTimestamp; + @JsonProperty(value = "endTimestamp") + private Long endTimestamp; /** * The relative to end sliding window. */ - @JsonProperty(value = "presentationWindowDuration", required = true) - private long presentationWindowDuration; + @JsonProperty(value = "presentationWindowDuration") + private Long presentationWindowDuration; /** * The relative to end right edge. */ - @JsonProperty(value = "liveBackoffDuration", required = true) - private long liveBackoffDuration; + @JsonProperty(value = "liveBackoffDuration") + private Long liveBackoffDuration; /** * The time scale of time stamps. */ - @JsonProperty(value = "timescale", required = true) - private long timescale; + @JsonProperty(value = "timescale") + private Long timescale; /** * The indicator of forcing exsiting of end time stamp. */ - @JsonProperty(value = "forceEndTimestamp", required = true) - private boolean forceEndTimestamp; + @JsonProperty(value = "forceEndTimestamp") + private Boolean forceEndTimestamp; /** * Get the absolute start time boundary. * * @return the startTimestamp value */ - public long startTimestamp() { + public Long startTimestamp() { return this.startTimestamp; } @@ -66,7 +66,7 @@ public long startTimestamp() { * @param startTimestamp the startTimestamp value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withStartTimestamp(long startTimestamp) { + public PresentationTimeRange withStartTimestamp(Long startTimestamp) { this.startTimestamp = startTimestamp; return this; } @@ -76,7 +76,7 @@ public PresentationTimeRange withStartTimestamp(long startTimestamp) { * * @return the endTimestamp value */ - public long endTimestamp() { + public Long endTimestamp() { return this.endTimestamp; } @@ -86,7 +86,7 @@ public long endTimestamp() { * @param endTimestamp the endTimestamp value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withEndTimestamp(long endTimestamp) { + public PresentationTimeRange withEndTimestamp(Long endTimestamp) { this.endTimestamp = endTimestamp; return this; } @@ -96,7 +96,7 @@ public PresentationTimeRange withEndTimestamp(long endTimestamp) { * * @return the presentationWindowDuration value */ - public long presentationWindowDuration() { + public Long presentationWindowDuration() { return this.presentationWindowDuration; } @@ -106,7 +106,7 @@ public long presentationWindowDuration() { * @param presentationWindowDuration the presentationWindowDuration value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withPresentationWindowDuration(long presentationWindowDuration) { + public PresentationTimeRange withPresentationWindowDuration(Long presentationWindowDuration) { this.presentationWindowDuration = presentationWindowDuration; return this; } @@ -116,7 +116,7 @@ public PresentationTimeRange withPresentationWindowDuration(long presentationWin * * @return the liveBackoffDuration value */ - public long liveBackoffDuration() { + public Long liveBackoffDuration() { return this.liveBackoffDuration; } @@ -126,7 +126,7 @@ public long liveBackoffDuration() { * @param liveBackoffDuration the liveBackoffDuration value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withLiveBackoffDuration(long liveBackoffDuration) { + public PresentationTimeRange withLiveBackoffDuration(Long liveBackoffDuration) { this.liveBackoffDuration = liveBackoffDuration; return this; } @@ -136,7 +136,7 @@ public PresentationTimeRange withLiveBackoffDuration(long liveBackoffDuration) { * * @return the timescale value */ - public long timescale() { + public Long timescale() { return this.timescale; } @@ -146,7 +146,7 @@ public long timescale() { * @param timescale the timescale value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withTimescale(long timescale) { + public PresentationTimeRange withTimescale(Long timescale) { this.timescale = timescale; return this; } @@ -156,7 +156,7 @@ public PresentationTimeRange withTimescale(long timescale) { * * @return the forceEndTimestamp value */ - public boolean forceEndTimestamp() { + public Boolean forceEndTimestamp() { return this.forceEndTimestamp; } @@ -166,7 +166,7 @@ public boolean forceEndTimestamp() { * @param forceEndTimestamp the forceEndTimestamp value to set * @return the PresentationTimeRange object itself. */ - public PresentationTimeRange withForceEndTimestamp(boolean forceEndTimestamp) { + public PresentationTimeRange withForceEndTimestamp(Boolean forceEndTimestamp) { this.forceEndTimestamp = forceEndTimestamp; return this; } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Preset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Preset.java index f377ef73d793..e198eaecee27 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Preset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Preset.java @@ -19,6 +19,7 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") @JsonTypeName("Preset") @JsonSubTypes({ + @JsonSubTypes.Type(name = "#Microsoft.Media.FaceDetectorPreset", value = FaceDetectorPreset.class), @JsonSubTypes.Type(name = "#Microsoft.Media.AudioAnalyzerPreset", value = AudioAnalyzerPreset.class), @JsonSubTypes.Type(name = "#Microsoft.Media.BuiltInStandardEncoderPreset", value = BuiltInStandardEncoderPreset.class), @JsonSubTypes.Type(name = "#Microsoft.Media.StandardEncoderPreset", value = StandardEncoderPreset.class) diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Priority.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Priority.java index 773e3b884b5c..fbf07ca3ba99 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Priority.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Priority.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for Priority. */ -public enum Priority { - /** Used for TransformOutputs that can be generated after Normal and High priority TransformOutputs. */ - LOW("Low"), +public final class Priority extends ExpandableStringEnum { + /** Static value Low for Priority. */ + public static final Priority LOW = fromString("Low"); - /** Used for TransformOutputs that can be generated at Normal priority. */ - NORMAL("Normal"), + /** Static value Normal for Priority. */ + public static final Priority NORMAL = fromString("Normal"); - /** Used for TransformOutputs that should take precedence over others. */ - HIGH("High"); - - /** The actual serialized value for a Priority instance. */ - private String value; - - Priority(String value) { - this.value = value; - } + /** Static value High for Priority. */ + public static final Priority HIGH = fromString("High"); /** - * Parses a serialized value to a Priority instance. - * - * @param value the serialized value to parse. - * @return the parsed Priority object, or null if unable to parse. + * Creates or finds a Priority from its string representation. + * @param name a name to look for + * @return the corresponding Priority */ @JsonCreator - public static Priority fromString(String value) { - Priority[] items = Priority.values(); - for (Priority item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static Priority fromString(String name) { + return fromString(name, Priority.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known Priority values + */ + public static Collection values() { + return values(Priority.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Rotation.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Rotation.java index c48903fb6bb8..65ae5aa0e501 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Rotation.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Rotation.java @@ -8,58 +8,46 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for Rotation. */ -public enum Rotation { - /** Automatically detect and rotate as needed. */ - AUTO("Auto"), +public final class Rotation extends ExpandableStringEnum { + /** Static value Auto for Rotation. */ + public static final Rotation AUTO = fromString("Auto"); - /** Do not rotate the video. If the output format supports it, any metadata about rotation is kept intact. */ - NONE("None"), + /** Static value None for Rotation. */ + public static final Rotation NONE = fromString("None"); - /** Do not rotate the video but remove any metadata about the rotation. */ - ROTATE0("Rotate0"), + /** Static value Rotate0 for Rotation. */ + public static final Rotation ROTATE0 = fromString("Rotate0"); - /** Rotate 90 degrees clockwise. */ - ROTATE90("Rotate90"), + /** Static value Rotate90 for Rotation. */ + public static final Rotation ROTATE90 = fromString("Rotate90"); - /** Rotate 180 degrees clockwise. */ - ROTATE180("Rotate180"), + /** Static value Rotate180 for Rotation. */ + public static final Rotation ROTATE180 = fromString("Rotate180"); - /** Rotate 270 degrees clockwise. */ - ROTATE270("Rotate270"); - - /** The actual serialized value for a Rotation instance. */ - private String value; - - Rotation(String value) { - this.value = value; - } + /** Static value Rotate270 for Rotation. */ + public static final Rotation ROTATE270 = fromString("Rotate270"); /** - * Parses a serialized value to a Rotation instance. - * - * @param value the serialized value to parse. - * @return the parsed Rotation object, or null if unable to parse. + * Creates or finds a Rotation from its string representation. + * @param name a name to look for + * @return the corresponding Rotation */ @JsonCreator - public static Rotation fromString(String value) { - Rotation[] items = Rotation.values(); - for (Rotation item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static Rotation fromString(String name) { + return fromString(name, Rotation.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known Rotation values + */ + public static Collection values() { + return values(Rotation.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StandardEncoderPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StandardEncoderPreset.java index 869e3a4f290f..38cc81ed0fb3 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StandardEncoderPreset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StandardEncoderPreset.java @@ -30,13 +30,13 @@ public class StandardEncoderPreset extends Preset { /** * The list of codecs to be used when encoding the input video. */ - @JsonProperty(value = "codecs") + @JsonProperty(value = "codecs", required = true) private List codecs; /** * The list of outputs to be produced by the encoder. */ - @JsonProperty(value = "formats") + @JsonProperty(value = "formats", required = true) private List formats; /** diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StorageAccountType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StorageAccountType.java index 70c3b6d9a000..eedbb5755da3 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StorageAccountType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StorageAccountType.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for StorageAccountType. */ -public enum StorageAccountType { - /** The primary storage account for the Media Services account. */ - PRIMARY("Primary"), +public final class StorageAccountType extends ExpandableStringEnum { + /** Static value Primary for StorageAccountType. */ + public static final StorageAccountType PRIMARY = fromString("Primary"); - /** A secondary storage account for the Media Services account. */ - SECONDARY("Secondary"); - - /** The actual serialized value for a StorageAccountType instance. */ - private String value; - - StorageAccountType(String value) { - this.value = value; - } + /** Static value Secondary for StorageAccountType. */ + public static final StorageAccountType SECONDARY = fromString("Secondary"); /** - * Parses a serialized value to a StorageAccountType instance. - * - * @param value the serialized value to parse. - * @return the parsed StorageAccountType object, or null if unable to parse. + * Creates or finds a StorageAccountType from its string representation. + * @param name a name to look for + * @return the corresponding StorageAccountType */ @JsonCreator - public static StorageAccountType fromString(String value) { - StorageAccountType[] items = StorageAccountType.values(); - for (StorageAccountType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StorageAccountType fromString(String name) { + return fromString(name, StorageAccountType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StorageAccountType values + */ + public static Collection values() { + return values(StorageAccountType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocator.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocator.java index 49428c66f339..092dbca2109a 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocator.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocator.java @@ -55,6 +55,11 @@ public interface StreamingLocator extends HasInner, Index */ DateTime endTime(); + /** + * @return the filters value. + */ + List filters(); + /** * @return the id value. */ @@ -186,6 +191,18 @@ interface WithEndTime { WithCreate withEndTime(DateTime endTime); } + /** + * The stage of the streaminglocator definition allowing to specify Filters. + */ + interface WithFilters { + /** + * Specifies filters. + * @param filters A list of asset or account filters which apply to this streaming locator + * @return the next definition stage + */ + WithCreate withFilters(List filters); + } + /** * The stage of the streaminglocator definition allowing to specify StartTime. */ @@ -215,13 +232,13 @@ interface WithStreamingLocatorId { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, DefinitionStages.WithAlternativeMediaId, DefinitionStages.WithContentKeys, DefinitionStages.WithDefaultContentKeyPolicyName, DefinitionStages.WithEndTime, DefinitionStages.WithStartTime, DefinitionStages.WithStreamingLocatorId { + interface WithCreate extends Creatable, DefinitionStages.WithAlternativeMediaId, DefinitionStages.WithContentKeys, DefinitionStages.WithDefaultContentKeyPolicyName, DefinitionStages.WithEndTime, DefinitionStages.WithFilters, DefinitionStages.WithStartTime, DefinitionStages.WithStreamingLocatorId { } } /** * The template for a StreamingLocator update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, UpdateStages.WithAlternativeMediaId, UpdateStages.WithContentKeys, UpdateStages.WithDefaultContentKeyPolicyName, UpdateStages.WithEndTime, UpdateStages.WithStartTime, UpdateStages.WithStreamingLocatorId { + interface Update extends Appliable, UpdateStages.WithAlternativeMediaId, UpdateStages.WithContentKeys, UpdateStages.WithDefaultContentKeyPolicyName, UpdateStages.WithEndTime, UpdateStages.WithFilters, UpdateStages.WithStartTime, UpdateStages.WithStreamingLocatorId { } /** @@ -276,6 +293,18 @@ interface WithEndTime { Update withEndTime(DateTime endTime); } + /** + * The stage of the streaminglocator update allowing to specify Filters. + */ + interface WithFilters { + /** + * Specifies filters. + * @param filters A list of asset or account filters which apply to this streaming locator + * @return the next update stage + */ + Update withFilters(List filters); + } + /** * The stage of the streaminglocator update allowing to specify StartTime. */ diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKey.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKey.java index bb4e9cb2fc52..5b2e16e0fc66 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKey.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKey.java @@ -36,7 +36,7 @@ public class StreamingLocatorContentKey { private String labelReferenceInStreamingPolicy; /** - * Value of of Content Key. + * Value of Content Key. */ @JsonProperty(value = "value") private String value; @@ -103,7 +103,7 @@ public StreamingLocatorContentKey withLabelReferenceInStreamingPolicy(String lab } /** - * Get value of of Content Key. + * Get value of Content Key. * * @return the value value */ @@ -112,7 +112,7 @@ public String value() { } /** - * Set value of of Content Key. + * Set value of Content Key. * * @param value the value value to set * @return the StreamingLocatorContentKey object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKeyType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKeyType.java index 249f8d72c30e..cb6b0ab4e221 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKeyType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingLocatorContentKeyType.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for StreamingLocatorContentKeyType. */ -public enum StreamingLocatorContentKeyType { - /** Common Encryption using CENC. */ - COMMON_ENCRYPTION_CENC("CommonEncryptionCenc"), +public final class StreamingLocatorContentKeyType extends ExpandableStringEnum { + /** Static value CommonEncryptionCenc for StreamingLocatorContentKeyType. */ + public static final StreamingLocatorContentKeyType COMMON_ENCRYPTION_CENC = fromString("CommonEncryptionCenc"); - /** Common Encryption using CBCS. */ - COMMON_ENCRYPTION_CBCS("CommonEncryptionCbcs"), + /** Static value CommonEncryptionCbcs for StreamingLocatorContentKeyType. */ + public static final StreamingLocatorContentKeyType COMMON_ENCRYPTION_CBCS = fromString("CommonEncryptionCbcs"); - /** Envelope Encryption. */ - ENVELOPE_ENCRYPTION("EnvelopeEncryption"); - - /** The actual serialized value for a StreamingLocatorContentKeyType instance. */ - private String value; - - StreamingLocatorContentKeyType(String value) { - this.value = value; - } + /** Static value EnvelopeEncryption for StreamingLocatorContentKeyType. */ + public static final StreamingLocatorContentKeyType ENVELOPE_ENCRYPTION = fromString("EnvelopeEncryption"); /** - * Parses a serialized value to a StreamingLocatorContentKeyType instance. - * - * @param value the serialized value to parse. - * @return the parsed StreamingLocatorContentKeyType object, or null if unable to parse. + * Creates or finds a StreamingLocatorContentKeyType from its string representation. + * @param name a name to look for + * @return the corresponding StreamingLocatorContentKeyType */ @JsonCreator - public static StreamingLocatorContentKeyType fromString(String value) { - StreamingLocatorContentKeyType[] items = StreamingLocatorContentKeyType.values(); - for (StreamingLocatorContentKeyType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StreamingLocatorContentKeyType fromString(String name) { + return fromString(name, StreamingLocatorContentKeyType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StreamingLocatorContentKeyType values + */ + public static Collection values() { + return values(StreamingLocatorContentKeyType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyFairPlayConfiguration.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyFairPlayConfiguration.java index d95cc3bc7da0..ed7b06109d43 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyFairPlayConfiguration.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyFairPlayConfiguration.java @@ -15,8 +15,14 @@ */ public class StreamingPolicyFairPlayConfiguration { /** - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * Template for the URL of the custom service delivering licenses to end + * user players. Not required when using Azure Media Services for issuing + * licenses. The template supports replaceable tokens that the service + * will update at runtime with the value specific to the request. The + * currently supported token values are {AlternativeMediaId}, which is + * replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the + * key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; @@ -28,7 +34,7 @@ public class StreamingPolicyFairPlayConfiguration { private boolean allowPersistentLicense; /** - * Get the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Get template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @return the customLicenseAcquisitionUrlTemplate value */ @@ -37,7 +43,7 @@ public String customLicenseAcquisitionUrlTemplate() { } /** - * Set the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Set template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @param customLicenseAcquisitionUrlTemplate the customLicenseAcquisitionUrlTemplate value to set * @return the StreamingPolicyFairPlayConfiguration object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyPlayReadyConfiguration.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyPlayReadyConfiguration.java index 4d99c8214154..76310471a04b 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyPlayReadyConfiguration.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyPlayReadyConfiguration.java @@ -15,8 +15,14 @@ */ public class StreamingPolicyPlayReadyConfiguration { /** - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * Template for the URL of the custom service delivering licenses to end + * user players. Not required when using Azure Media Services for issuing + * licenses. The template supports replaceable tokens that the service + * will update at runtime with the value specific to the request. The + * currently supported token values are {AlternativeMediaId}, which is + * replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the + * key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; @@ -28,7 +34,7 @@ public class StreamingPolicyPlayReadyConfiguration { private String playReadyCustomAttributes; /** - * Get the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Get template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @return the customLicenseAcquisitionUrlTemplate value */ @@ -37,7 +43,7 @@ public String customLicenseAcquisitionUrlTemplate() { } /** - * Set the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Set template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @param customLicenseAcquisitionUrlTemplate the customLicenseAcquisitionUrlTemplate value to set * @return the StreamingPolicyPlayReadyConfiguration object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyStreamingProtocol.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyStreamingProtocol.java index 4b621ae04d47..f258e26731eb 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyStreamingProtocol.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyStreamingProtocol.java @@ -8,52 +8,40 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for StreamingPolicyStreamingProtocol. */ -public enum StreamingPolicyStreamingProtocol { - /** HLS protocol. */ - HLS("Hls"), +public final class StreamingPolicyStreamingProtocol extends ExpandableStringEnum { + /** Static value Hls for StreamingPolicyStreamingProtocol. */ + public static final StreamingPolicyStreamingProtocol HLS = fromString("Hls"); - /** DASH protocol. */ - DASH("Dash"), + /** Static value Dash for StreamingPolicyStreamingProtocol. */ + public static final StreamingPolicyStreamingProtocol DASH = fromString("Dash"); - /** SmoothStreaming protocol. */ - SMOOTH_STREAMING("SmoothStreaming"), + /** Static value SmoothStreaming for StreamingPolicyStreamingProtocol. */ + public static final StreamingPolicyStreamingProtocol SMOOTH_STREAMING = fromString("SmoothStreaming"); - /** Download protocol. */ - DOWNLOAD("Download"); - - /** The actual serialized value for a StreamingPolicyStreamingProtocol instance. */ - private String value; - - StreamingPolicyStreamingProtocol(String value) { - this.value = value; - } + /** Static value Download for StreamingPolicyStreamingProtocol. */ + public static final StreamingPolicyStreamingProtocol DOWNLOAD = fromString("Download"); /** - * Parses a serialized value to a StreamingPolicyStreamingProtocol instance. - * - * @param value the serialized value to parse. - * @return the parsed StreamingPolicyStreamingProtocol object, or null if unable to parse. + * Creates or finds a StreamingPolicyStreamingProtocol from its string representation. + * @param name a name to look for + * @return the corresponding StreamingPolicyStreamingProtocol */ @JsonCreator - public static StreamingPolicyStreamingProtocol fromString(String value) { - StreamingPolicyStreamingProtocol[] items = StreamingPolicyStreamingProtocol.values(); - for (StreamingPolicyStreamingProtocol item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StreamingPolicyStreamingProtocol fromString(String name) { + return fromString(name, StreamingPolicyStreamingProtocol.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StreamingPolicyStreamingProtocol values + */ + public static Collection values() { + return values(StreamingPolicyStreamingProtocol.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyWidevineConfiguration.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyWidevineConfiguration.java index 225795bdadbe..eddf4be49a2d 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyWidevineConfiguration.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingPolicyWidevineConfiguration.java @@ -15,14 +15,20 @@ */ public class StreamingPolicyWidevineConfiguration { /** - * The template for a customer service to deliver keys to end users. Not - * needed when using Azure Media Services for issuing keys. + * Template for the URL of the custom service delivering licenses to end + * user players. Not required when using Azure Media Services for issuing + * licenses. The template supports replaceable tokens that the service + * will update at runtime with the value specific to the request. The + * currently supported token values are {AlternativeMediaId}, which is + * replaced with the value of StreamingLocatorId.AlternativeMediaId, and + * {ContentKeyId}, which is replaced with the value of identifier of the + * key being requested. */ @JsonProperty(value = "customLicenseAcquisitionUrlTemplate") private String customLicenseAcquisitionUrlTemplate; /** - * Get the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Get template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @return the customLicenseAcquisitionUrlTemplate value */ @@ -31,7 +37,7 @@ public String customLicenseAcquisitionUrlTemplate() { } /** - * Set the template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys. + * Set template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. * * @param customLicenseAcquisitionUrlTemplate the customLicenseAcquisitionUrlTemplate value to set * @return the StreamingPolicyWidevineConfiguration object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StretchMode.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StretchMode.java index 9dcc8bd6942c..2e7e6758976d 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StretchMode.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StretchMode.java @@ -8,49 +8,37 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for StretchMode. */ -public enum StretchMode { - /** Strictly respect the output resolution without considering the pixel aspect ratio or display aspect ratio of the input video. */ - NONE("None"), +public final class StretchMode extends ExpandableStringEnum { + /** Static value None for StretchMode. */ + public static final StretchMode NONE = fromString("None"); - /** Override the output resolution, and change it to match the display aspect ratio of the input, without padding. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the value in the preset is overridden, and the output will be at 1280x720, which maintains the input aspect ratio of 16:9. */ - AUTO_SIZE("AutoSize"), + /** Static value AutoSize for StretchMode. */ + public static final StretchMode AUTO_SIZE = fromString("AutoSize"); - /** Pad the output (with either letterbox or pillar box) to honor the output resolution, while ensuring that the active video region in the output has the same aspect ratio as the input. For example, if the input is 1920x1080 and the encoding preset asks for 1280x1280, then the output will be at 1280x1280, which contains an inner rectangle of 1280x720 at aspect ratio of 16:9, and pillar box regions 280 pixels wide at the left and right. */ - AUTO_FIT("AutoFit"); - - /** The actual serialized value for a StretchMode instance. */ - private String value; - - StretchMode(String value) { - this.value = value; - } + /** Static value AutoFit for StretchMode. */ + public static final StretchMode AUTO_FIT = fromString("AutoFit"); /** - * Parses a serialized value to a StretchMode instance. - * - * @param value the serialized value to parse. - * @return the parsed StretchMode object, or null if unable to parse. + * Creates or finds a StretchMode from its string representation. + * @param name a name to look for + * @return the corresponding StretchMode */ @JsonCreator - public static StretchMode fromString(String value) { - StretchMode[] items = StretchMode.values(); - for (StretchMode item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StretchMode fromString(String name) { + return fromString(name, StretchMode.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StretchMode values + */ + public static Collection values() { + return values(StretchMode.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyCompareOperation.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyCompareOperation.java index 668632edce63..26487d5492d3 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyCompareOperation.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyCompareOperation.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for TrackPropertyCompareOperation. */ -public enum TrackPropertyCompareOperation { - /** Unknown track property compare operation. */ - UNKNOWN("Unknown"), +public final class TrackPropertyCompareOperation extends ExpandableStringEnum { + /** Static value Unknown for TrackPropertyCompareOperation. */ + public static final TrackPropertyCompareOperation UNKNOWN = fromString("Unknown"); - /** Equal operation. */ - EQUAL("Equal"); - - /** The actual serialized value for a TrackPropertyCompareOperation instance. */ - private String value; - - TrackPropertyCompareOperation(String value) { - this.value = value; - } + /** Static value Equal for TrackPropertyCompareOperation. */ + public static final TrackPropertyCompareOperation EQUAL = fromString("Equal"); /** - * Parses a serialized value to a TrackPropertyCompareOperation instance. - * - * @param value the serialized value to parse. - * @return the parsed TrackPropertyCompareOperation object, or null if unable to parse. + * Creates or finds a TrackPropertyCompareOperation from its string representation. + * @param name a name to look for + * @return the corresponding TrackPropertyCompareOperation */ @JsonCreator - public static TrackPropertyCompareOperation fromString(String value) { - TrackPropertyCompareOperation[] items = TrackPropertyCompareOperation.values(); - for (TrackPropertyCompareOperation item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static TrackPropertyCompareOperation fromString(String name) { + return fromString(name, TrackPropertyCompareOperation.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known TrackPropertyCompareOperation values + */ + public static Collection values() { + return values(TrackPropertyCompareOperation.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyType.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyType.java index 938ed8add6d5..6f0fdee04aa4 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyType.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/TrackPropertyType.java @@ -8,46 +8,34 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import com.microsoft.rest.ExpandableStringEnum; /** * Defines values for TrackPropertyType. */ -public enum TrackPropertyType { - /** Unknown track property. */ - UNKNOWN("Unknown"), +public final class TrackPropertyType extends ExpandableStringEnum { + /** Static value Unknown for TrackPropertyType. */ + public static final TrackPropertyType UNKNOWN = fromString("Unknown"); - /** Track FourCC. */ - FOUR_CC("FourCC"); - - /** The actual serialized value for a TrackPropertyType instance. */ - private String value; - - TrackPropertyType(String value) { - this.value = value; - } + /** Static value FourCC for TrackPropertyType. */ + public static final TrackPropertyType FOUR_CC = fromString("FourCC"); /** - * Parses a serialized value to a TrackPropertyType instance. - * - * @param value the serialized value to parse. - * @return the parsed TrackPropertyType object, or null if unable to parse. + * Creates or finds a TrackPropertyType from its string representation. + * @param name a name to look for + * @return the corresponding TrackPropertyType */ @JsonCreator - public static TrackPropertyType fromString(String value) { - TrackPropertyType[] items = TrackPropertyType.values(); - for (TrackPropertyType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static TrackPropertyType fromString(String name) { + return fromString(name, TrackPropertyType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known TrackPropertyType values + */ + public static Collection values() { + return values(TrackPropertyType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoLayer.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoLayer.java index a9ce42d77b87..ff6d5b51f42c 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoLayer.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoLayer.java @@ -27,8 +27,8 @@ public class VideoLayer extends Layer { * The average bitrate in bits per second at which to encode the input * video when generating this layer. This is a required field. */ - @JsonProperty(value = "bitrate") - private Integer bitrate; + @JsonProperty(value = "bitrate", required = true) + private int bitrate; /** * The maximum bitrate (in bits per second), at which the VBV buffer should @@ -78,7 +78,7 @@ public class VideoLayer extends Layer { * * @return the bitrate value */ - public Integer bitrate() { + public int bitrate() { return this.bitrate; } @@ -88,7 +88,7 @@ public Integer bitrate() { * @param bitrate the bitrate value to set * @return the VideoLayer object itself. */ - public VideoLayer withBitrate(Integer bitrate) { + public VideoLayer withBitrate(int bitrate) { this.bitrate = bitrate; return this; } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java index 12560283a830..373b75be55b3 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java @@ -73,7 +73,7 @@ public class JobInner extends ProxyResource { private Priority priority; /** - * Customer provided correlation data that will be returned in Job and + * Customer provided key, value pairs that will be returned in Job and * JobOutput state events. */ @JsonProperty(value = "properties.correlationData") @@ -187,7 +187,7 @@ public JobInner withPriority(Priority priority) { } /** - * Get customer provided correlation data that will be returned in Job and JobOutput state events. + * Get customer provided key, value pairs that will be returned in Job and JobOutput state events. * * @return the correlationData value */ @@ -196,7 +196,7 @@ public Map correlationData() { } /** - * Set customer provided correlation data that will be returned in Job and JobOutput state events. + * Set customer provided key, value pairs that will be returned in Job and JobOutput state events. * * @param correlationData the correlationData value to set * @return the JobInner object itself. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobsInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobsInner.java index 72299bf41d19..cdd9ac8be525 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobsInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobsInner.java @@ -65,7 +65,7 @@ public JobsInner(Retrofit retrofit, AzureMediaServicesImpl client) { interface JobsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mediaservices.v2018_07_01.Jobs list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs") - Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("transformName") String transformName, @Query("api-version") String apiVersion, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Path("transformName") String transformName, @Query("api-version") String apiVersion, @Query("$filter") String filter, @Query("$orderby") String orderby, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mediaservices.v2018_07_01.Jobs get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName}") @@ -209,9 +209,8 @@ public Observable>> listSinglePageAsync(final Str throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String filter = null; - final Integer top = null; - final Integer skip = null; - return service.list(this.client.subscriptionId(), resourceGroupName, accountName, transformName, this.client.apiVersion(), filter, top, skip, this.client.acceptLanguage(), this.client.userAgent()) + final String orderby = null; + return service.list(this.client.subscriptionId(), resourceGroupName, accountName, transformName, this.client.apiVersion(), filter, orderby, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -233,15 +232,14 @@ public Observable>> call(Response r * @param accountName The Media Services account name. * @param transformName The Transform name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ApiErrorException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<JobInner> object if successful. */ - public PagedList list(final String resourceGroupName, final String accountName, final String transformName, final String filter, final Integer top, final Integer skip) { - ServiceResponse> response = listSinglePageAsync(resourceGroupName, accountName, transformName, filter, top, skip).toBlocking().single(); + public PagedList list(final String resourceGroupName, final String accountName, final String transformName, final String filter, final String orderby) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, accountName, transformName, filter, orderby).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -258,15 +256,14 @@ public Page nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param transformName The Transform name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final Integer top, final Integer skip, final ListOperationCallback serviceCallback) { + public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final String orderby, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(resourceGroupName, accountName, transformName, filter, top, skip), + listSinglePageAsync(resourceGroupName, accountName, transformName, filter, orderby), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -284,13 +281,12 @@ public Observable>> call(String nextPageLink) { * @param accountName The Media Services account name. * @param transformName The Transform name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<JobInner> object */ - public Observable> listAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final Integer top, final Integer skip) { - return listWithServiceResponseAsync(resourceGroupName, accountName, transformName, filter, top, skip) + public Observable> listAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final String orderby) { + return listWithServiceResponseAsync(resourceGroupName, accountName, transformName, filter, orderby) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -307,13 +303,12 @@ public Page call(ServiceResponse> response) { * @param accountName The Media Services account name. * @param transformName The Transform name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<JobInner> object */ - public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final Integer top, final Integer skip) { - return listSinglePageAsync(resourceGroupName, accountName, transformName, filter, top, skip) + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final String orderby) { + return listSinglePageAsync(resourceGroupName, accountName, transformName, filter, orderby) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -334,12 +329,11 @@ public Observable>> call(ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param transformName The Transform name. ServiceResponse> * @param filter Restricts the set of items returned. - ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<JobInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final Integer top, final Integer skip) { + public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName, final String transformName, final String filter, final String orderby) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -355,7 +349,7 @@ public Observable>> listSinglePageAsync(final Str if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.list(this.client.subscriptionId(), resourceGroupName, accountName, transformName, this.client.apiVersion(), filter, top, skip, this.client.acceptLanguage(), this.client.userAgent()) + return service.list(this.client.subscriptionId(), resourceGroupName, accountName, transformName, this.client.apiVersion(), filter, orderby, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -699,7 +693,7 @@ private ServiceResponse deleteDelegate(Response response) th /** * Update Job. - * Updates 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. @@ -717,7 +711,7 @@ public JobInner update(String resourceGroupName, String accountName, String tran /** * Update Job. - * Updates 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. @@ -734,7 +728,7 @@ public ServiceFuture updateAsync(String resourceGroupName, String acco /** * Update Job. - * Updates 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. @@ -755,7 +749,7 @@ public JobInner call(ServiceResponse response) { /** * Update Job. - * Updates 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. diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorImpl.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorImpl.java index 22146a8843a4..f37c98347edf 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorImpl.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorImpl.java @@ -103,6 +103,11 @@ public DateTime endTime() { return this.inner().endTime(); } + @Override + public List filters() { + return this.inner().filters(); + } + @Override public String id() { return this.inner().id(); @@ -176,6 +181,12 @@ public StreamingLocatorImpl withEndTime(DateTime endTime) { return this; } + @Override + public StreamingLocatorImpl withFilters(List filters) { + this.inner().withFilters(filters); + return this; + } + @Override public StreamingLocatorImpl withStartTime(DateTime startTime) { this.inner().withStartTime(startTime); diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorInner.java index 22f9e03b4d6f..cb49c9698c81 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorInner.java @@ -81,6 +81,13 @@ public class StreamingLocatorInner extends ProxyResource { @JsonProperty(value = "properties.alternativeMediaId") private String alternativeMediaId; + /** + * A list of asset or account filters which apply to this streaming + * locator. + */ + @JsonProperty(value = "properties.filters") + private List filters; + /** * Get asset Name. * @@ -250,4 +257,24 @@ public StreamingLocatorInner withAlternativeMediaId(String alternativeMediaId) { return this; } + /** + * Get a list of asset or account filters which apply to this streaming locator. + * + * @return the filters value + */ + public List filters() { + return this.filters; + } + + /** + * Set a list of asset or account filters which apply to this streaming locator. + * + * @param filters the filters value to set + * @return the StreamingLocatorInner object itself. + */ + public StreamingLocatorInner withFilters(List filters) { + this.filters = filters; + return this; + } + } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorsInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorsInner.java index ae79dd0df9c5..a0050b623602 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorsInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingLocatorsInner.java @@ -224,7 +224,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -273,7 +273,7 @@ public Observable>> call(String next * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingLocatorInner> object */ @@ -295,7 +295,7 @@ public Page call(ServiceResponse>> call(ServiceResp ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingLocatorInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingPoliciesInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingPoliciesInner.java index 9da275787f7e..14a1db2856a6 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingPoliciesInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/StreamingPoliciesInner.java @@ -215,7 +215,7 @@ public Observable>> call(Response nextPage(String nextPageLink) { * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -264,7 +264,7 @@ public Observable>> call(String nextP * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param orderby Specifies the the key by which the result collection should be ordered. + * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<StreamingPolicyInner> object */ @@ -286,7 +286,7 @@ public Page call(ServiceResponse>> call(ServiceRespo ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. + ServiceResponse> * @param orderby Specifies the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<StreamingPolicyInner> object wrapped in {@link ServiceResponse} if successful. */ diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/TransformsInner.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/TransformsInner.java index bffea185ab9b..5cb58ae4b603 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/TransformsInner.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/TransformsInner.java @@ -64,7 +64,7 @@ public TransformsInner(Retrofit retrofit, AzureMediaServicesImpl client) { interface TransformsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mediaservices.v2018_07_01.Transforms list" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms") - Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Query("$filter") String filter, @Query("$top") Integer top, @Query("$skip") Integer skip, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> list(@Path("subscriptionId") String subscriptionId, @Path("resourceGroupName") String resourceGroupName, @Path("accountName") String accountName, @Query("api-version") String apiVersion, @Query("$filter") String filter, @Query("$orderby") String orderby, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.mediaservices.v2018_07_01.Transforms get" }) @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}") @@ -196,9 +196,8 @@ public Observable>> listSinglePageAsync(fin throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } final String filter = null; - final Integer top = null; - final Integer skip = null; - return service.list(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), filter, top, skip, this.client.acceptLanguage(), this.client.userAgent()) + final String orderby = null; + return service.list(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), filter, orderby, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -219,15 +218,14 @@ public Observable>> call(Response list(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip) { - ServiceResponse> response = listSinglePageAsync(resourceGroupName, accountName, filter, top, skip).toBlocking().single(); + public PagedList list(final String resourceGroupName, final String accountName, final String filter, final String orderby) { + ServiceResponse> response = listSinglePageAsync(resourceGroupName, accountName, filter, orderby).toBlocking().single(); return new PagedList(response.body()) { @Override public Page nextPage(String nextPageLink) { @@ -243,15 +241,14 @@ public Page nextPage(String nextPageLink) { * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip, final ListOperationCallback serviceCallback) { + public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final String filter, final String orderby, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( - listSinglePageAsync(resourceGroupName, accountName, filter, top, skip), + listSinglePageAsync(resourceGroupName, accountName, filter, orderby), new Func1>>>() { @Override public Observable>> call(String nextPageLink) { @@ -268,13 +265,12 @@ public Observable>> call(String nextPageLin * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<TransformInner> object */ - public Observable> listAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip) { - return listWithServiceResponseAsync(resourceGroupName, accountName, filter, top, skip) + public Observable> listAsync(final String resourceGroupName, final String accountName, final String filter, final String orderby) { + return listWithServiceResponseAsync(resourceGroupName, accountName, filter, orderby) .map(new Func1>, Page>() { @Override public Page call(ServiceResponse> response) { @@ -290,13 +286,12 @@ public Page call(ServiceResponse> response) * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param filter Restricts the set of items returned. - * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<TransformInner> object */ - public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip) { - return listSinglePageAsync(resourceGroupName, accountName, filter, top, skip) + public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final String filter, final String orderby) { + return listSinglePageAsync(resourceGroupName, accountName, filter, orderby) .concatMap(new Func1>, Observable>>>() { @Override public Observable>> call(ServiceResponse> page) { @@ -316,12 +311,11 @@ public Observable>> call(ServiceResponse> * @param resourceGroupName The name of the resource group within the Azure subscription. ServiceResponse> * @param accountName The Media Services account name. ServiceResponse> * @param filter Restricts the set of items returned. - ServiceResponse> * @param top Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n. - ServiceResponse> * @param skip Specifies a non-negative integer n that excludes the first n items of the queried collection from the result. The service returns items starting at position n+1. + ServiceResponse> * @param orderby Specifies the the key by which the result collection should be ordered. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList<TransformInner> object wrapped in {@link ServiceResponse} if successful. */ - public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName, final String filter, final Integer top, final Integer skip) { + public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName, final String filter, final String orderby) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -334,7 +328,7 @@ public Observable>> listSinglePageAsync(fin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.list(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), filter, top, skip, this.client.acceptLanguage(), this.client.userAgent()) + return service.list(this.client.subscriptionId(), resourceGroupName, accountName, this.client.apiVersion(), filter, orderby, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) {