From 2e97043324ebf2edaefb532ecee0efa064494bb8 Mon Sep 17 00:00:00 2001 From: Tanyi Chen Date: Fri, 27 Dec 2019 10:57:00 +0800 Subject: [PATCH 1/2] Media Services: generate 2018 07 01 --- sdk/mediaservices/mgmt-v2018_07_01/pom.xml | 4 +- .../v2018_07_01/AudioAnalyzerPreset.java | 58 +++++++++++----- .../BuiltInStandardEncoderPreset.java | 9 +-- ...ContentKeyPolicyFairPlayConfiguration.java | 32 ++++++++- ...icyFairPlayOfflineRentalConfiguration.java | 69 +++++++++++++++++++ ...eyPolicyFairPlayRentalAndLeaseKeyType.java | 3 + .../v2018_07_01/EncoderNamedPreset.java | 3 + .../v2018_07_01/FaceDetectorPreset.java | 28 ++++++++ .../mediaservices/v2018_07_01/Job.java | 10 +++ .../mediaservices/v2018_07_01/JobOutput.java | 31 +++++++++ .../v2018_07_01/implementation/JobImpl.java | 10 +++ .../v2018_07_01/implementation/JobInner.java | 30 ++++++++ 12 files changed, 261 insertions(+), 26 deletions(-) create mode 100644 sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java diff --git a/sdk/mediaservices/mgmt-v2018_07_01/pom.xml b/sdk/mediaservices/mgmt-v2018_07_01/pom.xml index cdff8a07c970..779d918bc373 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/pom.xml +++ b/sdk/mediaservices/mgmt-v2018_07_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.2.0 + 1.1.0 ../../../pom.management.xml azure-mgmt-media - 1.0.0-beta-4 + 1.0.0-beta jar Microsoft Azure SDK for Media Management This package contains Microsoft Media Management SDK. diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java index 43e1a5d29309..aa4a3119e31c 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/AudioAnalyzerPreset.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -26,27 +27,30 @@ public class AudioAnalyzerPreset extends Preset { /** * The language for the audio payload in the input using the BCP-47 format - * of 'language tag-region' (e.g: 'en-US'). The list of supported - * languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and - * 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), - * Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic - * ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean - * ('ko-KR'). If you know the language of your content, it is recommended - * that you specify it. If the language isn't specified or set to null, - * automatic language detection will choose the first language detected and - * process with the selected language for the duration of the file. This - * language detection feature currently supports English, Chinese, French, - * German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not - * currently support dynamically switching between languages after the - * first language is detected. The automatic detection works best with - * audio recordings with clearly discernable speech. If automatic detection - * fails to find the language, transcription would fallback to 'en-US'.". + * of 'language tag-region' (e.g: 'en-US'). If you know the language of + * your content, it is recommended that you specify it. If the language + * isn't specified or set to null, automatic language detection will choose + * the first language detected and process with the selected language for + * the duration of the file. It does not currently support dynamically + * switching between languages after the first language is detected. The + * automatic detection works best with audio recordings with clearly + * discernable speech. If automatic detection fails to find the language, + * transcription would fallback to 'en-US'." The list of supported + * languages is available here: + * https://go.microsoft.com/fwlink/?linkid=2109463. */ @JsonProperty(value = "audioLanguage") private String audioLanguage; /** - * Get the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.". + * Dictionary containing key value pairs for parameters not exposed in the + * preset itself. + */ + @JsonProperty(value = "experimentalOptions") + private Map experimentalOptions; + + /** + * Get the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463. * * @return the audioLanguage value */ @@ -55,7 +59,7 @@ public String audioLanguage() { } /** - * Set the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The list of supported languages are English ('en-US' and 'en-GB'), Spanish ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), Arabic ('ar-EG' and 'ar-SY'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean ('ko-KR'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. This language detection feature currently supports English, Chinese, French, German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.". + * Set the language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'." The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463. * * @param audioLanguage the audioLanguage value to set * @return the AudioAnalyzerPreset object itself. @@ -65,4 +69,24 @@ public AudioAnalyzerPreset withAudioLanguage(String audioLanguage) { return this; } + /** + * Get dictionary containing key value pairs for parameters not exposed in the preset itself. + * + * @return the experimentalOptions value + */ + public Map experimentalOptions() { + return this.experimentalOptions; + } + + /** + * Set dictionary containing key value pairs for parameters not exposed in the preset itself. + * + * @param experimentalOptions the experimentalOptions value to set + * @return the AudioAnalyzerPreset object itself. + */ + public AudioAnalyzerPreset withExperimentalOptions(Map experimentalOptions) { + this.experimentalOptions = experimentalOptions; + return this; + } + } diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java index 7c24e1ac6037..902fe6e5dfa4 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/BuiltInStandardEncoderPreset.java @@ -23,14 +23,15 @@ public class BuiltInStandardEncoderPreset extends Preset { * The built-in preset to be used for encoding videos. Possible values * include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', * 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', - * 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', - * 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. + * 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', + * 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', + * 'H264MultipleBitrateSD'. */ @JsonProperty(value = "presetName", required = true) private EncoderNamedPreset presetName; /** - * Get the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. + * Get the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. * * @return the presetName value */ @@ -39,7 +40,7 @@ public EncoderNamedPreset presetName() { } /** - * Set the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. + * Set the built-in preset to be used for encoding videos. Possible values include: 'H264SingleBitrateSD', 'H264SingleBitrate720p', 'H264SingleBitrate1080p', 'AdaptiveStreaming', 'AACGoodQualityAudio', 'ContentAwareEncodingExperimental', 'ContentAwareEncoding', 'H264MultipleBitrate1080p', 'H264MultipleBitrate720p', 'H264MultipleBitrateSD'. * * @param presetName the presetName value to set * @return the BuiltInStandardEncoderPreset object itself. diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayConfiguration.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayConfiguration.java index 83560905ff19..dd1e6da316ed 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayConfiguration.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayConfiguration.java @@ -39,7 +39,7 @@ public class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolicyConfi /** * The rental and lease key type. Possible values include: 'Unknown', - * 'Undefined', 'PersistentUnlimited', 'PersistentLimited'. + * 'Undefined', 'DualExpiry', 'PersistentUnlimited', 'PersistentLimited'. */ @JsonProperty(value = "rentalAndLeaseKeyType", required = true) private ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType; @@ -50,6 +50,12 @@ public class ContentKeyPolicyFairPlayConfiguration extends ContentKeyPolicyConfi @JsonProperty(value = "rentalDuration", required = true) private long rentalDuration; + /** + * Offline rental policy. + */ + @JsonProperty(value = "offlineRentalConfiguration") + private ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration; + /** * Get the key that must be used as FairPlay Application Secret key. * @@ -111,7 +117,7 @@ public ContentKeyPolicyFairPlayConfiguration withFairPlayPfx(String fairPlayPfx) } /** - * Get the rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', 'PersistentLimited'. + * Get the rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited', 'PersistentLimited'. * * @return the rentalAndLeaseKeyType value */ @@ -120,7 +126,7 @@ public ContentKeyPolicyFairPlayRentalAndLeaseKeyType rentalAndLeaseKeyType() { } /** - * Set the rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'PersistentUnlimited', 'PersistentLimited'. + * Set the rental and lease key type. Possible values include: 'Unknown', 'Undefined', 'DualExpiry', 'PersistentUnlimited', 'PersistentLimited'. * * @param rentalAndLeaseKeyType the rentalAndLeaseKeyType value to set * @return the ContentKeyPolicyFairPlayConfiguration object itself. @@ -150,4 +156,24 @@ public ContentKeyPolicyFairPlayConfiguration withRentalDuration(long rentalDurat return this; } + /** + * Get offline rental policy. + * + * @return the offlineRentalConfiguration value + */ + public ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration() { + return this.offlineRentalConfiguration; + } + + /** + * Set offline rental policy. + * + * @param offlineRentalConfiguration the offlineRentalConfiguration value to set + * @return the ContentKeyPolicyFairPlayConfiguration object itself. + */ + public ContentKeyPolicyFairPlayConfiguration withOfflineRentalConfiguration(ContentKeyPolicyFairPlayOfflineRentalConfiguration offlineRentalConfiguration) { + this.offlineRentalConfiguration = offlineRentalConfiguration; + return this; + } + } diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java new file mode 100644 index 000000000000..afae16b851f7 --- /dev/null +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayOfflineRentalConfiguration.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.management.mediaservices.v2018_07_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The ContentKeyPolicyFairPlayOfflineRentalConfiguration model. + */ +public class ContentKeyPolicyFairPlayOfflineRentalConfiguration { + /** + * Playback duration. + */ + @JsonProperty(value = "playbackDurationSeconds", required = true) + private long playbackDurationSeconds; + + /** + * Storage duration. + */ + @JsonProperty(value = "storageDurationSeconds", required = true) + private long storageDurationSeconds; + + /** + * Get playback duration. + * + * @return the playbackDurationSeconds value + */ + public long playbackDurationSeconds() { + return this.playbackDurationSeconds; + } + + /** + * Set playback duration. + * + * @param playbackDurationSeconds the playbackDurationSeconds value to set + * @return the ContentKeyPolicyFairPlayOfflineRentalConfiguration object itself. + */ + public ContentKeyPolicyFairPlayOfflineRentalConfiguration withPlaybackDurationSeconds(long playbackDurationSeconds) { + this.playbackDurationSeconds = playbackDurationSeconds; + return this; + } + + /** + * Get storage duration. + * + * @return the storageDurationSeconds value + */ + public long storageDurationSeconds() { + return this.storageDurationSeconds; + } + + /** + * Set storage duration. + * + * @param storageDurationSeconds the storageDurationSeconds value to set + * @return the ContentKeyPolicyFairPlayOfflineRentalConfiguration object itself. + */ + public ContentKeyPolicyFairPlayOfflineRentalConfiguration withStorageDurationSeconds(long storageDurationSeconds) { + this.storageDurationSeconds = storageDurationSeconds; + return this; + } + +} diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java index ec3bebb697ed..5ac9e46af98e 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/ContentKeyPolicyFairPlayRentalAndLeaseKeyType.java @@ -22,6 +22,9 @@ public final class ContentKeyPolicyFairPlayRentalAndLeaseKeyType extends Expanda /** Static value Undefined for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType UNDEFINED = fromString("Undefined"); + /** Static value DualExpiry for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ + public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType DUAL_EXPIRY = fromString("DualExpiry"); + /** Static value PersistentUnlimited for ContentKeyPolicyFairPlayRentalAndLeaseKeyType. */ public static final ContentKeyPolicyFairPlayRentalAndLeaseKeyType PERSISTENT_UNLIMITED = fromString("PersistentUnlimited"); diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java index 82d64dfcac5b..a385946bf019 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EncoderNamedPreset.java @@ -34,6 +34,9 @@ public final class EncoderNamedPreset extends ExpandableStringEnum experimentalOptions; + /** * Get specifies the maximum resolution at which your video is analyzed. The default behavior is "SourceResolution," which will keep the input video at its original resolution when analyzed. Using "StandardDefinition" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to "StandardDefinition" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected. Possible values include: 'SourceResolution', 'StandardDefinition'. * @@ -57,4 +65,24 @@ public FaceDetectorPreset withResolution(AnalysisResolution resolution) { return this; } + /** + * Get dictionary containing key value pairs for parameters not exposed in the preset itself. + * + * @return the experimentalOptions value + */ + public Map experimentalOptions() { + return this.experimentalOptions; + } + + /** + * Set dictionary containing key value pairs for parameters not exposed in the preset itself. + * + * @param experimentalOptions the experimentalOptions value to set + * @return the FaceDetectorPreset object itself. + */ + public FaceDetectorPreset withExperimentalOptions(Map experimentalOptions) { + this.experimentalOptions = experimentalOptions; + return this; + } + } diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java index 6456556e1199..01305806c565 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/Job.java @@ -40,6 +40,11 @@ public interface Job extends HasInner, Indexable, Refreshable, Up */ String description(); + /** + * @return the endTime value. + */ + DateTime endTime(); + /** * @return the id value. */ @@ -70,6 +75,11 @@ public interface Job extends HasInner, Indexable, Refreshable, Up */ Priority priority(); + /** + * @return the startTime value. + */ + DateTime startTime(); + /** * @return the state value. */ diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobOutput.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobOutput.java index 967937f1ea4f..294843e7ef34 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobOutput.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/JobOutput.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.mediaservices.v2018_07_01; +import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -64,6 +65,18 @@ public class JobOutput { @JsonProperty(value = "label") private String label; + /** + * The UTC date and time at which this Job Output began processing. + */ + @JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime startTime; + + /** + * The UTC date and time at which this Job Output finished processing. + */ + @JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime endTime; + /** * Get if the JobOutput is in the Error state, it contains the details of the error. * @@ -111,4 +124,22 @@ public JobOutput withLabel(String label) { return this; } + /** + * Get the UTC date and time at which this Job Output began processing. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Get the UTC date and time at which this Job Output finished processing. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + } diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobImpl.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobImpl.java index 631fdc47292e..77b9373e01e2 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobImpl.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobImpl.java @@ -93,6 +93,11 @@ public String description() { return this.inner().description(); } + @Override + public DateTime endTime() { + return this.inner().endTime(); + } + @Override public String id() { return this.inner().id(); @@ -123,6 +128,11 @@ public Priority priority() { return this.inner().priority(); } + @Override + public DateTime startTime() { + return this.inner().startTime(); + } + @Override public JobState state() { return this.inner().state(); diff --git a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java index 373b75be55b3..03615f003cb5 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java +++ b/sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/implementation/JobInner.java @@ -79,6 +79,18 @@ public class JobInner extends ProxyResource { @JsonProperty(value = "properties.correlationData") private Map correlationData; + /** + * The UTC date and time at which this Job began processing. + */ + @JsonProperty(value = "properties.startTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime startTime; + + /** + * The UTC date and time at which this Job finished processing. + */ + @JsonProperty(value = "properties.endTime", access = JsonProperty.Access.WRITE_ONLY) + private DateTime endTime; + /** * Get the UTC date and time when the Job was created, in 'YYYY-MM-DDThh:mm:ssZ' format. * @@ -206,4 +218,22 @@ public JobInner withCorrelationData(Map correlationData) { return this; } + /** + * Get the UTC date and time at which this Job began processing. + * + * @return the startTime value + */ + public DateTime startTime() { + return this.startTime; + } + + /** + * Get the UTC date and time at which this Job finished processing. + * + * @return the endTime value + */ + public DateTime endTime() { + return this.endTime; + } + } From fd73415a3d8d71af3dc90c172640ba38589e6a93 Mon Sep 17 00:00:00 2001 From: Tanyi Chen Date: Fri, 27 Dec 2019 10:59:10 +0800 Subject: [PATCH 2/2] feat: change version --- sdk/mediaservices/mgmt-v2018_07_01/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/mediaservices/mgmt-v2018_07_01/pom.xml b/sdk/mediaservices/mgmt-v2018_07_01/pom.xml index 779d918bc373..231b31643ca1 100644 --- a/sdk/mediaservices/mgmt-v2018_07_01/pom.xml +++ b/sdk/mediaservices/mgmt-v2018_07_01/pom.xml @@ -11,11 +11,11 @@ com.microsoft.azure azure-arm-parent - 1.1.0 + 1.2.0 ../../../pom.management.xml azure-mgmt-media - 1.0.0-beta + 1.0.0-beta-5 jar Microsoft Azure SDK for Media Management This package contains Microsoft Media Management SDK.