From f59737337657733429919ee2529d256140be31e5 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 17 Jun 2019 18:03:07 +0000 Subject: [PATCH] Generated from 470dfc0a1b3773b262c6457f6d4d2735771c14ae Adds suppression to readme --- .../v2018_07_01/AbsoluteClipTime.java | 51 +++++++++++++++ .../mediaservices/v2018_07_01/ClipTime.java | 25 ++++++++ .../v2018_07_01/JobInputClip.java | 54 ++++++++++++++++ .../v2018_07_01/LiveEventEncoding.java | 6 +- .../v2018_07_01/LiveEventEncodingType.java | 51 +++++++-------- .../v2018_07_01/LiveEventInputProtocol.java | 46 +++++--------- .../v2018_07_01/LiveEventResourceState.java | 58 +++++++---------- .../v2018_07_01/LiveOutputResourceState.java | 50 ++++++--------- .../v2018_07_01/StreamOptionsFlag.java | 46 +++++--------- .../StreamingEndpointResourceState.java | 62 ++++++++----------- .../v2018_07_01/VideoAnalyzerPreset.java | 16 +++-- 11 files changed, 266 insertions(+), 199 deletions(-) create mode 100644 mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AbsoluteClipTime.java create mode 100644 mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ClipTime.java diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AbsoluteClipTime.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AbsoluteClipTime.java new file mode 100644 index 000000000000..0f3eb224652d --- /dev/null +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AbsoluteClipTime.java @@ -0,0 +1,51 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.mediaservices.v2018_07_01; + +import org.joda.time.Period; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * Specifies the clip time as an absolute time position in the media file. The + * absolute time can point to a different position depending on whether the + * media file starts from a timestamp of zero or not. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") +@JsonTypeName("#Microsoft.Media.AbsoluteClipTime") +public class AbsoluteClipTime extends ClipTime { + /** + * The time position on the timeline of the input media. It is usually + * speicified as an ISO8601 period. e.g PT30S for 30 seconds. + */ + @JsonProperty(value = "time", required = true) + private Period time; + + /** + * Get the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds. + * + * @return the time value + */ + public Period time() { + return this.time; + } + + /** + * Set the time position on the timeline of the input media. It is usually speicified as an ISO8601 period. e.g PT30S for 30 seconds. + * + * @param time the time value to set + * @return the AbsoluteClipTime object itself. + */ + public AbsoluteClipTime withTime(Period time) { + this.time = time; + return this; + } + +} diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ClipTime.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ClipTime.java new file mode 100644 index 000000000000..923c1c929bfc --- /dev/null +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ClipTime.java @@ -0,0 +1,25 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.mediaservices.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonSubTypes; + +/** + * Base class for specifying a clip time. Use sub classes of this class to + * specify the time position in the media. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@odata.type") +@JsonTypeName("ClipTime") +@JsonSubTypes({ + @JsonSubTypes.Type(name = "#Microsoft.Media.AbsoluteClipTime", value = AbsoluteClipTime.class) +}) +public class ClipTime { +} diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java index ba05db7de5d2..ab2f885a8690 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobInputClip.java @@ -31,6 +31,20 @@ public class JobInputClip extends JobInput { @JsonProperty(value = "files") private List files; + /** + * Defines a point on the timeline of the input media at which processing + * will start. Defaults to the beginning of the input media. + */ + @JsonProperty(value = "start") + private ClipTime start; + + /** + * Defines a point on the timeline of the input media at which processing + * will end. Defaults to the end of the input media. + */ + @JsonProperty(value = "end") + private ClipTime end; + /** * A label that is assigned to a JobInputClip, that is used to satisfy a * reference used in the Transform. For example, a Transform can be @@ -62,6 +76,46 @@ public JobInputClip withFiles(List files) { return this; } + /** + * Get defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media. + * + * @return the start value + */ + public ClipTime start() { + return this.start; + } + + /** + * Set defines a point on the timeline of the input media at which processing will start. Defaults to the beginning of the input media. + * + * @param start the start value to set + * @return the JobInputClip object itself. + */ + public JobInputClip withStart(ClipTime start) { + this.start = start; + return this; + } + + /** + * Get defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media. + * + * @return the end value + */ + public ClipTime end() { + return this.end; + } + + /** + * Set defines a point on the timeline of the input media at which processing will end. Defaults to the end of the input media. + * + * @param end the end value to set + * @return the JobInputClip object itself. + */ + public JobInputClip withEnd(ClipTime end) { + this.end = end; + return this; + } + /** * Get a label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'. * 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 e01a6a28090e..68b4c0122e79 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 @@ -17,7 +17,7 @@ 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', - * 'Standard'. + * 'Standard', 'Premium1080p'. */ @JsonProperty(value = "encodingType") private LiveEventEncodingType encodingType; @@ -30,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', 'Standard'. + * Get the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p'. * * @return the encodingType value */ @@ -39,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', 'Standard'. + * Set the encoding type for Live Event. This value is specified at creation time and cannot be updated. Possible values include: 'None', 'Basic', 'Standard', 'Premium1080p'. * * @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 4fa7503adecb..ba1516550dba 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 @@ -8,49 +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 LiveEventEncodingType. */ -public enum LiveEventEncodingType { - /** Enum value None. */ - NONE("None"), +public final class LiveEventEncodingType extends ExpandableStringEnum { + /** Static value None for LiveEventEncodingType. */ + public static final LiveEventEncodingType NONE = fromString("None"); - /** Enum value Basic. */ - BASIC("Basic"), + /** Static value Basic for LiveEventEncodingType. */ + public static final LiveEventEncodingType BASIC = fromString("Basic"); - /** Enum value Standard. */ - STANDARD("Standard"); + /** Static value Standard for LiveEventEncodingType. */ + public static final LiveEventEncodingType STANDARD = fromString("Standard"); - /** The actual serialized value for a LiveEventEncodingType instance. */ - private String value; - - LiveEventEncodingType(String value) { - this.value = value; - } + /** Static value Premium1080p for LiveEventEncodingType. */ + public static final LiveEventEncodingType PREMIUM1080P = fromString("Premium1080p"); /** - * Parses a serialized value to a LiveEventEncodingType instance. - * - * @param value the serialized value to parse. - * @return the parsed LiveEventEncodingType object, or null if unable to parse. + * Creates or finds a LiveEventEncodingType from its string representation. + * @param name a name to look for + * @return the corresponding LiveEventEncodingType */ @JsonCreator - public static LiveEventEncodingType fromString(String value) { - LiveEventEncodingType[] items = LiveEventEncodingType.values(); - for (LiveEventEncodingType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static LiveEventEncodingType fromString(String name) { + return fromString(name, LiveEventEncodingType.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known LiveEventEncodingType values + */ + public static Collection values() { + return values(LiveEventEncodingType.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventInputProtocol.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventInputProtocol.java index 7beb4d75c648..29d36d35e2bd 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventInputProtocol.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventInputProtocol.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 LiveEventInputProtocol. */ -public enum LiveEventInputProtocol { - /** Enum value FragmentedMP4. */ - FRAGMENTED_MP4("FragmentedMP4"), +public final class LiveEventInputProtocol extends ExpandableStringEnum { + /** Static value FragmentedMP4 for LiveEventInputProtocol. */ + public static final LiveEventInputProtocol FRAGMENTED_MP4 = fromString("FragmentedMP4"); - /** Enum value RTMP. */ - RTMP("RTMP"); - - /** The actual serialized value for a LiveEventInputProtocol instance. */ - private String value; - - LiveEventInputProtocol(String value) { - this.value = value; - } + /** Static value RTMP for LiveEventInputProtocol. */ + public static final LiveEventInputProtocol RTMP = fromString("RTMP"); /** - * Parses a serialized value to a LiveEventInputProtocol instance. - * - * @param value the serialized value to parse. - * @return the parsed LiveEventInputProtocol object, or null if unable to parse. + * Creates or finds a LiveEventInputProtocol from its string representation. + * @param name a name to look for + * @return the corresponding LiveEventInputProtocol */ @JsonCreator - public static LiveEventInputProtocol fromString(String value) { - LiveEventInputProtocol[] items = LiveEventInputProtocol.values(); - for (LiveEventInputProtocol item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static LiveEventInputProtocol fromString(String name) { + return fromString(name, LiveEventInputProtocol.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known LiveEventInputProtocol values + */ + public static Collection values() { + return values(LiveEventInputProtocol.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventResourceState.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventResourceState.java index 8e0f75fb89e3..0952393376d8 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventResourceState.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveEventResourceState.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 LiveEventResourceState. */ -public enum LiveEventResourceState { - /** Enum value Stopped. */ - STOPPED("Stopped"), +public final class LiveEventResourceState extends ExpandableStringEnum { + /** Static value Stopped for LiveEventResourceState. */ + public static final LiveEventResourceState STOPPED = fromString("Stopped"); - /** Enum value Starting. */ - STARTING("Starting"), + /** Static value Starting for LiveEventResourceState. */ + public static final LiveEventResourceState STARTING = fromString("Starting"); - /** Enum value Running. */ - RUNNING("Running"), + /** Static value Running for LiveEventResourceState. */ + public static final LiveEventResourceState RUNNING = fromString("Running"); - /** Enum value Stopping. */ - STOPPING("Stopping"), + /** Static value Stopping for LiveEventResourceState. */ + public static final LiveEventResourceState STOPPING = fromString("Stopping"); - /** Enum value Deleting. */ - DELETING("Deleting"); - - /** The actual serialized value for a LiveEventResourceState instance. */ - private String value; - - LiveEventResourceState(String value) { - this.value = value; - } + /** Static value Deleting for LiveEventResourceState. */ + public static final LiveEventResourceState DELETING = fromString("Deleting"); /** - * Parses a serialized value to a LiveEventResourceState instance. - * - * @param value the serialized value to parse. - * @return the parsed LiveEventResourceState object, or null if unable to parse. + * Creates or finds a LiveEventResourceState from its string representation. + * @param name a name to look for + * @return the corresponding LiveEventResourceState */ @JsonCreator - public static LiveEventResourceState fromString(String value) { - LiveEventResourceState[] items = LiveEventResourceState.values(); - for (LiveEventResourceState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static LiveEventResourceState fromString(String name) { + return fromString(name, LiveEventResourceState.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known LiveEventResourceState values + */ + public static Collection values() { + return values(LiveEventResourceState.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveOutputResourceState.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveOutputResourceState.java index 8a3b4e2b6580..70671ac299e1 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveOutputResourceState.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/LiveOutputResourceState.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 LiveOutputResourceState. */ -public enum LiveOutputResourceState { - /** Enum value Creating. */ - CREATING("Creating"), +public final class LiveOutputResourceState extends ExpandableStringEnum { + /** Static value Creating for LiveOutputResourceState. */ + public static final LiveOutputResourceState CREATING = fromString("Creating"); - /** Enum value Running. */ - RUNNING("Running"), + /** Static value Running for LiveOutputResourceState. */ + public static final LiveOutputResourceState RUNNING = fromString("Running"); - /** Enum value Deleting. */ - DELETING("Deleting"); - - /** The actual serialized value for a LiveOutputResourceState instance. */ - private String value; - - LiveOutputResourceState(String value) { - this.value = value; - } + /** Static value Deleting for LiveOutputResourceState. */ + public static final LiveOutputResourceState DELETING = fromString("Deleting"); /** - * Parses a serialized value to a LiveOutputResourceState instance. - * - * @param value the serialized value to parse. - * @return the parsed LiveOutputResourceState object, or null if unable to parse. + * Creates or finds a LiveOutputResourceState from its string representation. + * @param name a name to look for + * @return the corresponding LiveOutputResourceState */ @JsonCreator - public static LiveOutputResourceState fromString(String value) { - LiveOutputResourceState[] items = LiveOutputResourceState.values(); - for (LiveOutputResourceState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static LiveOutputResourceState fromString(String name) { + return fromString(name, LiveOutputResourceState.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known LiveOutputResourceState values + */ + public static Collection values() { + return values(LiveOutputResourceState.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamOptionsFlag.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamOptionsFlag.java index 0175cb8065e1..104f82da1a4b 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamOptionsFlag.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamOptionsFlag.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 StreamOptionsFlag. */ -public enum StreamOptionsFlag { - /** Enum value Default. */ - DEFAULT("Default"), +public final class StreamOptionsFlag extends ExpandableStringEnum { + /** Static value Default for StreamOptionsFlag. */ + public static final StreamOptionsFlag DEFAULT = fromString("Default"); - /** Enum value LowLatency. */ - LOW_LATENCY("LowLatency"); - - /** The actual serialized value for a StreamOptionsFlag instance. */ - private String value; - - StreamOptionsFlag(String value) { - this.value = value; - } + /** Static value LowLatency for StreamOptionsFlag. */ + public static final StreamOptionsFlag LOW_LATENCY = fromString("LowLatency"); /** - * Parses a serialized value to a StreamOptionsFlag instance. - * - * @param value the serialized value to parse. - * @return the parsed StreamOptionsFlag object, or null if unable to parse. + * Creates or finds a StreamOptionsFlag from its string representation. + * @param name a name to look for + * @return the corresponding StreamOptionsFlag */ @JsonCreator - public static StreamOptionsFlag fromString(String value) { - StreamOptionsFlag[] items = StreamOptionsFlag.values(); - for (StreamOptionsFlag item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StreamOptionsFlag fromString(String name) { + return fromString(name, StreamOptionsFlag.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StreamOptionsFlag values + */ + public static Collection values() { + return values(StreamOptionsFlag.class); } } diff --git a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingEndpointResourceState.java b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingEndpointResourceState.java index 18a922254a7c..484588935f22 100644 --- a/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingEndpointResourceState.java +++ b/mediaservices/resource-manager/v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/StreamingEndpointResourceState.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 StreamingEndpointResourceState. */ -public enum StreamingEndpointResourceState { - /** Enum value Stopped. */ - STOPPED("Stopped"), +public final class StreamingEndpointResourceState extends ExpandableStringEnum { + /** Static value Stopped for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState STOPPED = fromString("Stopped"); - /** Enum value Starting. */ - STARTING("Starting"), + /** Static value Starting for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState STARTING = fromString("Starting"); - /** Enum value Running. */ - RUNNING("Running"), + /** Static value Running for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState RUNNING = fromString("Running"); - /** Enum value Stopping. */ - STOPPING("Stopping"), + /** Static value Stopping for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState STOPPING = fromString("Stopping"); - /** Enum value Deleting. */ - DELETING("Deleting"), + /** Static value Deleting for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState DELETING = fromString("Deleting"); - /** Enum value Scaling. */ - SCALING("Scaling"); - - /** The actual serialized value for a StreamingEndpointResourceState instance. */ - private String value; - - StreamingEndpointResourceState(String value) { - this.value = value; - } + /** Static value Scaling for StreamingEndpointResourceState. */ + public static final StreamingEndpointResourceState SCALING = fromString("Scaling"); /** - * Parses a serialized value to a StreamingEndpointResourceState instance. - * - * @param value the serialized value to parse. - * @return the parsed StreamingEndpointResourceState object, or null if unable to parse. + * Creates or finds a StreamingEndpointResourceState from its string representation. + * @param name a name to look for + * @return the corresponding StreamingEndpointResourceState */ @JsonCreator - public static StreamingEndpointResourceState fromString(String value) { - StreamingEndpointResourceState[] items = StreamingEndpointResourceState.values(); - for (StreamingEndpointResourceState item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static StreamingEndpointResourceState fromString(String name) { + return fromString(name, StreamingEndpointResourceState.class); } - @JsonValue - @Override - public String toString() { - return this.value; + /** + * @return known StreamingEndpointResourceState values + */ + public static Collection values() { + return values(StreamingEndpointResourceState.class); } } 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 f6e7964cd0ba..30797f0c9706 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 @@ -20,16 +20,22 @@ @JsonTypeName("#Microsoft.Media.VideoAnalyzerPreset") 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 audio only then only - * audio insights are extracted and if it is video only. Possible values + * Defines the type of insights that you want the service to generate. The + * allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and + * 'AllInsights'. The default is AllInsights. If you set this to + * AllInsights and the input is audio only, then only audio insights are + * generated. Similarly if the input is video only, then only video + * insights are generated. It is recommended that you not use + * AudioInsightsOnly if you expect some of your inputs to be video only; or + * use VideoInsightsOnly if you expect some of your inputs to be audio + * only. Your Jobs in such conditions would error out. 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 audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. + * Get defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. * * @return the insightsToExtract value */ @@ -38,7 +44,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 audio only then only audio insights are extracted and if it is video only. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. + * Set defines the type of insights that you want the service to generate. The allowed values are 'AudioInsightsOnly', 'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you set this to AllInsights and the input is audio only, then only audio insights are generated. Similarly if the input is video only, then only video insights are generated. It is recommended that you not use AudioInsightsOnly if you expect some of your inputs to be video only; or use VideoInsightsOnly if you expect some of your inputs to be audio only. Your Jobs in such conditions would error out. Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'. * * @param insightsToExtract the insightsToExtract value to set * @return the VideoAnalyzerPreset object itself.