Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ public interface Run extends HasInner<RunInner>, Indexable, Refreshable<Run>, Up
*/
String task();

/**
* @return the timerTrigger value.
*/
TimerTriggerDescriptor timerTrigger();

/**
* @return the type value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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<Run, RunInner, RunImpl> implements Run, Run.Update {
private final ContainerRegistryManager manager;
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}