diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java index dfec7bec759e..77bcace55ac9 100644 --- a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java +++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/Run.java @@ -123,6 +123,11 @@ public interface Run extends HasInner, Indexable, Refreshable, Up */ String task(); + /** + * @return the timerTrigger value. + */ + TimerTriggerDescriptor timerTrigger(); + /** * @return the type value. */ diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/TimerTriggerDescriptor.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/TimerTriggerDescriptor.java new file mode 100644 index 000000000000..845f23295449 --- /dev/null +++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/TimerTriggerDescriptor.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.containerregistry.v2019_04_01; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The TimerTriggerDescriptor model. + */ +public class TimerTriggerDescriptor { + /** + * The timer trigger name that caused the run. + */ + @JsonProperty(value = "timerTriggerName") + private String timerTriggerName; + + /** + * The occurrence that triggered the run. + */ + @JsonProperty(value = "scheduleOccurrence") + private String scheduleOccurrence; + + /** + * Get the timer trigger name that caused the run. + * + * @return the timerTriggerName value + */ + public String timerTriggerName() { + return this.timerTriggerName; + } + + /** + * Set the timer trigger name that caused the run. + * + * @param timerTriggerName the timerTriggerName value to set + * @return the TimerTriggerDescriptor object itself. + */ + public TimerTriggerDescriptor withTimerTriggerName(String timerTriggerName) { + this.timerTriggerName = timerTriggerName; + return this; + } + + /** + * Get the occurrence that triggered the run. + * + * @return the scheduleOccurrence value + */ + public String scheduleOccurrence() { + return this.scheduleOccurrence; + } + + /** + * Set the occurrence that triggered the run. + * + * @param scheduleOccurrence the scheduleOccurrence value to set + * @return the TimerTriggerDescriptor object itself. + */ + public TimerTriggerDescriptor withScheduleOccurrence(String scheduleOccurrence) { + this.scheduleOccurrence = scheduleOccurrence; + return this; + } + +} diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunImpl.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunImpl.java index 43c4ce52af6b..73850bc1e08d 100644 --- a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunImpl.java +++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunImpl.java @@ -21,6 +21,7 @@ import com.microsoft.azure.management.containerregistry.v2019_04_01.RunType; import com.microsoft.azure.management.containerregistry.v2019_04_01.SourceTriggerDescriptor; import com.microsoft.azure.management.containerregistry.v2019_04_01.RunStatus; +import com.microsoft.azure.management.containerregistry.v2019_04_01.TimerTriggerDescriptor; class RunImpl extends CreatableUpdatableImpl implements Run, Run.Update { private final ContainerRegistryManager manager; @@ -179,6 +180,11 @@ public String task() { return this.inner().task(); } + @Override + public TimerTriggerDescriptor timerTrigger() { + return this.inner().timerTrigger(); + } + @Override public String type() { return this.inner().type(); diff --git a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunInner.java b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunInner.java index e608994f9de8..b81e4987d6a0 100644 --- a/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunInner.java +++ b/containerregistry/resource-manager/v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunInner.java @@ -18,6 +18,7 @@ import com.microsoft.azure.management.containerregistry.v2019_04_01.PlatformProperties; import com.microsoft.azure.management.containerregistry.v2019_04_01.AgentProperties; import com.microsoft.azure.management.containerregistry.v2019_04_01.ProvisioningState; +import com.microsoft.azure.management.containerregistry.v2019_04_01.TimerTriggerDescriptor; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.ProxyResource; @@ -143,6 +144,12 @@ public class RunInner extends ProxyResource { @JsonProperty(value = "properties.isArchiveEnabled") private Boolean isArchiveEnabled; + /** + * The timer trigger that caused the run. + */ + @JsonProperty(value = "properties.timerTrigger") + private TimerTriggerDescriptor timerTrigger; + /** * Get the unique identifier for the run. * @@ -492,4 +499,24 @@ public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) { return this; } + /** + * Get the timer trigger that caused the run. + * + * @return the timerTrigger value + */ + public TimerTriggerDescriptor timerTrigger() { + return this.timerTrigger; + } + + /** + * Set the timer trigger that caused the run. + * + * @param timerTrigger the timerTrigger value to set + * @return the RunInner object itself. + */ + public RunInner withTimerTrigger(TimerTriggerDescriptor timerTrigger) { + this.timerTrigger = timerTrigger; + return this; + } + }