From bdd484c790d45e44cc423281ad837c9bfd7cbacc Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 15 Nov 2018 17:55:27 +0000 Subject: [PATCH 1/2] Generated from 9156f1ada45d7c0859444dd78584643c50a098b4 Updates to the 2018-07-01 version of the MediaServices API All enums, use 'modelAsString' instead of 'modelAsExtensible' streamingservice, add "Standard" to LiveEncoding.encodingType encoding, remove top and skip from query parms and add orderby accountfilters and aasetsandassefilters, remove required attribute for PresentationTimeRange properties Updated readme.md to add "opt-in-extensible-enums: true" to csharp build --- .../v2018_07_01/AacAudioProfile.java | 50 +++++-------- .../v2018_07_01/AssetContainerPermission.java | 50 +++++-------- .../AssetStorageEncryptionFormat.java | 46 +++++------- ...eyPolicyFairPlayRentalAndLeaseKeyType.java | 54 ++++++-------- .../ContentKeyPolicyPlayReadyContentType.java | 54 ++++++-------- .../ContentKeyPolicyPlayReadyLicenseType.java | 50 +++++-------- ...cyPlayReadyUnknownOutputPassingOption.java | 54 ++++++-------- .../ContentKeyPolicyRestrictionTokenType.java | 50 +++++-------- .../v2018_07_01/DeinterlaceMode.java | 46 +++++------- .../v2018_07_01/DeinterlaceParity.java | 50 +++++-------- .../v2018_07_01/EncoderNamedPreset.java | 70 ++++++++---------- .../v2018_07_01/EncryptionScheme.java | 54 ++++++-------- .../v2018_07_01/EntropyMode.java | 46 +++++------- .../FilterTrackPropertyCompareOperation.java | 46 +++++------- .../v2018_07_01/FilterTrackPropertyType.java | 62 +++++++--------- .../v2018_07_01/H264Complexity.java | 50 +++++-------- .../v2018_07_01/H264VideoProfile.java | 62 +++++++--------- .../v2018_07_01/InsightsType.java | 50 +++++-------- .../v2018_07_01/JobErrorCategory.java | 58 ++++++--------- .../v2018_07_01/JobErrorCode.java | 74 ++++++++----------- .../mediaservices/v2018_07_01/JobRetry.java | 46 +++++------- .../mediaservices/v2018_07_01/JobState.java | 66 +++++++---------- .../v2018_07_01/LiveEventEncoding.java | 7 +- .../v2018_07_01/LiveEventEncodingType.java | 5 +- .../v2018_07_01/MetricAggregationType.java | 50 +++++-------- .../mediaservices/v2018_07_01/MetricUnit.java | 50 +++++-------- .../v2018_07_01/OnErrorType.java | 46 +++++------- .../v2018_07_01/PresentationTimeRange.java | 48 ++++++------ .../mediaservices/v2018_07_01/Priority.java | 50 +++++-------- .../mediaservices/v2018_07_01/Rotation.java | 62 +++++++--------- .../v2018_07_01/StorageAccountType.java | 46 +++++------- .../StreamingLocatorContentKeyType.java | 50 +++++-------- .../StreamingPolicyStreamingProtocol.java | 54 ++++++-------- .../v2018_07_01/StretchMode.java | 50 +++++-------- .../TrackPropertyCompareOperation.java | 46 +++++------- .../v2018_07_01/TrackPropertyType.java | 46 +++++------- .../v2018_07_01/implementation/JobsInner.java | 50 ++++++------- .../implementation/TransformsInner.java | 42 +++++------ 38 files changed, 743 insertions(+), 1147 deletions(-) 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/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/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..2acd066d0b09 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,52 @@ 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 H264MultipleBitrate1080p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264MULTIPLE_BITRATE1080P = fromString("H264MultipleBitrate1080p"); - /** 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 H264MultipleBitrate720p for EncoderNamedPreset. */ + public static final EncoderNamedPreset H264MULTIPLE_BITRATE720P = fromString("H264MultipleBitrate720p"); - /** 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"); - - /** 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/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/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/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/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/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/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/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/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/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/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/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/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/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/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) { From 356cef40f8b4dd65e2f0dc7c96fbc60e8d5f49ee Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 29 Nov 2018 00:12:16 +0000 Subject: [PATCH 2/2] Generated from 9156f1ada45d7c0859444dd78584643c50a098b4 Updates to the 2018-07-01 version of the MediaServices API All enums, use 'modelAsString' instead of 'modelAsExtensible' streamingservice, add "Standard" to LiveEncoding.encodingType encoding, remove top and skip from query parms and add orderby accountfilters and aasetsandassefilters, remove required attribute for PresentationTimeRange properties Updated readme.md to add "opt-in-extensible-enums: true" to csharp build --- .../mediaservices/v2018_03_30_preview/DefaultKey.java | 6 +++--- .../v2018_03_30_preview/EncoderNamedPreset.java | 2 +- .../v2018_03_30_preview/EnvelopeEncryption.java | 6 +++--- .../mediaservices/v2018_03_30_preview/JobInputs.java | 2 +- .../StreamingLocatorContentKey.java | 6 +++--- .../v2018_03_30_preview/StreamingPolicyContentKey.java | 6 +++--- .../StreamingPolicyContentKeys.java | 6 +++--- .../v2018_03_30_preview/TrackPropertyCondition.java | 6 +++--- .../implementation/StreamingLocatorsInner.java | 10 +++++----- .../implementation/StreamingPoliciesInner.java | 10 +++++----- .../implementation/StreamingPolicyInner.java | 6 +++--- .../v2018_06_01_preview/EncoderNamedPreset.java | 2 +- .../v2018_06_01_preview/EnvelopeEncryption.java | 6 +++--- .../mediaservices/v2018_06_01_preview/JobInputs.java | 2 +- .../StreamingLocatorContentKey.java | 6 +++--- .../implementation/StreamingLocatorsInner.java | 10 +++++----- .../implementation/StreamingPoliciesInner.java | 10 +++++----- .../mediaservices/v2018_07_01/EnvelopeEncryption.java | 6 +++--- .../mediaservices/v2018_07_01/JobInputs.java | 2 +- .../v2018_07_01/StreamingLocatorContentKey.java | 6 +++--- .../mediaservices/v2018_07_01/VideoAnalyzerPreset.java | 8 ++++---- .../implementation/StreamingLocatorsInner.java | 10 +++++----- .../implementation/StreamingPoliciesInner.java | 10 +++++----- 23 files changed, 72 insertions(+), 72 deletions(-) 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/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/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/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..87d5b76bd41d 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,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_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputs.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputs.java index 881f802e5318..0630df5a0d8a 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputs.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/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_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/VideoAnalyzerPreset.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoAnalyzerPreset.java index 92cab5c520ca..f6e7964cd0ba 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoAnalyzerPreset.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/VideoAnalyzerPreset.java @@ -21,15 +21,15 @@ public class VideoAnalyzerPreset extends AudioAnalyzerPreset { /** * The type of insights to be extracted. If not set then based on the - * content the type will selected. If the content is audi only then only - * audio insights are extraced and if it is video only. Possible values + * content the type will selected. If the content is audio only then only + * audio insights are extracted and if it is video only. Possible values * include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. */ @JsonProperty(value = "insightsToExtract") private InsightsType insightsToExtract; /** - * Get the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audi only then only audio insights are extraced and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. + * Get the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. * * @return the insightsToExtract value */ @@ -38,7 +38,7 @@ public InsightsType insightsToExtract() { } /** - * Set the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audi only then only audio insights are extraced and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. + * Set the type of insights to be extracted. If not set then based on the content the type will selected. If the content is audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. * * @param insightsToExtract the insightsToExtract value to set * @return the VideoAnalyzerPreset object itself. 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. */