Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Generated from d3ddb670d802228a664bb0e324df2f2820ec8de3
address comments
  • Loading branch information
AutorestCI committed Jun 18, 2019
commit e472b0ee419216fe5b3cc638a45b2a89977f2578
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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public final class Architecture extends ExpandableStringEnum<Architecture> {
/** Static value x86 for Architecture. */
public static final Architecture X86 = fromString("x86");

/** Static value 386 for Architecture. */
public static final Architecture THREE_EIGHT_SIX = fromString("386");

/** Static value arm for Architecture. */
public static final Architecture ARM = fromString("arm");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public class BaseImageTrigger {
@JsonProperty(value = "updateTriggerEndpoint")
private String updateTriggerEndpoint;

/**
* Type of Payload body for Base image update triggers. Possible values
* include: 'Default', 'Token'.
*/
@JsonProperty(value = "updateTriggerPayloadType")
private UpdateTriggerPayloadType updateTriggerPayloadType;

/**
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
Expand Down Expand Up @@ -80,6 +87,26 @@ public BaseImageTrigger withUpdateTriggerEndpoint(String updateTriggerEndpoint)
return this;
}

/**
* Get type of Payload body for Base image update triggers. Possible values include: 'Default', 'Token'.
*
* @return the updateTriggerPayloadType value
*/
public UpdateTriggerPayloadType updateTriggerPayloadType() {
return this.updateTriggerPayloadType;
}

/**
* Set type of Payload body for Base image update triggers. Possible values include: 'Default', 'Token'.
*
* @param updateTriggerPayloadType the updateTriggerPayloadType value to set
* @return the BaseImageTrigger object itself.
*/
public BaseImageTrigger withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType) {
this.updateTriggerPayloadType = updateTriggerPayloadType;
return this;
}

/**
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ public class BaseImageTriggerUpdateParameters {
@JsonProperty(value = "updateTriggerEndpoint")
private String updateTriggerEndpoint;

/**
* Type of Payload body for Base image update triggers. Possible values
* include: 'Default', 'Token'.
*/
@JsonProperty(value = "updateTriggerPayloadType")
private UpdateTriggerPayloadType updateTriggerPayloadType;

/**
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
Expand Down Expand Up @@ -80,6 +87,26 @@ public BaseImageTriggerUpdateParameters withUpdateTriggerEndpoint(String updateT
return this;
}

/**
* Get type of Payload body for Base image update triggers. Possible values include: 'Default', 'Token'.
*
* @return the updateTriggerPayloadType value
*/
public UpdateTriggerPayloadType updateTriggerPayloadType() {
return this.updateTriggerPayloadType;
}

/**
* Set type of Payload body for Base image update triggers. Possible values include: 'Default', 'Token'.
*
* @param updateTriggerPayloadType the updateTriggerPayloadType value to set
* @return the BaseImageTriggerUpdateParameters object itself.
*/
public BaseImageTriggerUpdateParameters withUpdateTriggerPayloadType(UpdateTriggerPayloadType updateTriggerPayloadType) {
this.updateTriggerPayloadType = updateTriggerPayloadType;
return this;
}

/**
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public class OverrideTaskStepProperties {
@JsonProperty(value = "values")
private List<SetValue> values;

/**
* Base64 encoded update trigger token that will be attached with the base
* image trigger webhook.
*/
@JsonProperty(value = "updateTriggerToken")
private String updateTriggerToken;

/**
* Get the source context against which run has to be queued.
*
Expand Down Expand Up @@ -149,4 +156,24 @@ public OverrideTaskStepProperties withValues(List<SetValue> values) {
return this;
}

/**
* Get base64 encoded update trigger token that will be attached with the base image trigger webhook.
*
* @return the updateTriggerToken value
*/
public String updateTriggerToken() {
return this.updateTriggerToken;
}

/**
* Set base64 encoded update trigger token that will be attached with the base image trigger webhook.
*
* @param updateTriggerToken the updateTriggerToken value to set
* @return the OverrideTaskStepProperties object itself.
*/
public OverrideTaskStepProperties withUpdateTriggerToken(String updateTriggerToken) {
this.updateTriggerToken = updateTriggerToken;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class PlatformProperties {
private OS os;

/**
* The OS architecture. Possible values include: 'amd64', 'x86', 'arm',
* 'arm64'.
* The OS architecture. Possible values include: 'amd64', 'x86', '386',
* 'arm', 'arm64'.
*/
@JsonProperty(value = "architecture")
private Architecture architecture;
Expand Down Expand Up @@ -55,7 +55,7 @@ public PlatformProperties withOs(OS os) {
}

/**
* Get the OS architecture. Possible values include: 'amd64', 'x86', 'arm', 'arm64'.
* Get the OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64'.
*
* @return the architecture value
*/
Expand All @@ -64,7 +64,7 @@ public Architecture architecture() {
}

/**
* Set the OS architecture. Possible values include: 'amd64', 'x86', 'arm', 'arm64'.
* Set the OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64'.
*
* @param architecture the architecture value to set
* @return the PlatformProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class PlatformUpdateParameters {
private OS os;

/**
* The OS architecture. Possible values include: 'amd64', 'x86', 'arm',
* 'arm64'.
* The OS architecture. Possible values include: 'amd64', 'x86', '386',
* 'arm', 'arm64'.
*/
@JsonProperty(value = "architecture")
private Architecture architecture;
Expand Down Expand Up @@ -55,7 +55,7 @@ public PlatformUpdateParameters withOs(OS os) {
}

/**
* Get the OS architecture. Possible values include: 'amd64', 'x86', 'arm', 'arm64'.
* Get the OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64'.
*
* @return the architecture value
*/
Expand All @@ -64,7 +64,7 @@ public Architecture architecture() {
}

/**
* Set the OS architecture. Possible values include: 'amd64', 'x86', 'arm', 'arm64'.
* Set the OS architecture. Possible values include: 'amd64', 'x86', '386', 'arm', 'arm64'.
*
* @param architecture the architecture value to set
* @return the PlatformUpdateParameters object itself.
Expand Down
Loading