From 30f75b045fecdc140abde7bca703c90a531feedc Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 1 May 2019 17:08:40 +0000 Subject: [PATCH] Generated from de36739ede45fb6215cef92c1055423a3aa41e05 Adding support for subclip in the swagger files --- .../v2018_07_01/AbsoluteClipTime.java | 51 ++++++++++++++++++ .../mediaservices/v2018_07_01/ClipTime.java | 25 +++++++++ .../v2018_07_01/JobInputClip.java | 54 +++++++++++++++++++ .../v2018_07_01/VideoAnalyzerPreset.java | 16 ++++-- 4 files changed, 141 insertions(+), 5 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/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.