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
Next Next commit
Generated from 98f457ddc924041fe496ea15209c17f9233fee51
Support Scheduler Trigger
  • Loading branch information
AutorestCI committed Apr 17, 2019
commit edbce6ca8c55fb3f6ce20ffd83cc6893495a7b29
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/**
* 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 properties of a scheduler trigger.
*/
public class SchedulerTrigger {
/**
* The CRON expression for the task schedule.
*/
@JsonProperty(value = "schedule", required = true)
private String schedule;

/**
* The current status of trigger. Possible values include: 'Disabled',
* 'Enabled'.
*/
@JsonProperty(value = "status")
private TriggerStatus status;

/**
* The name of the trigger.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Get the CRON expression for the task schedule.
*
* @return the schedule value
*/
public String schedule() {
return this.schedule;
}

/**
* Set the CRON expression for the task schedule.
*
* @param schedule the schedule value to set
* @return the SchedulerTrigger object itself.
*/
public SchedulerTrigger withSchedule(String schedule) {
this.schedule = schedule;
return this;
}

/**
* Get the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @return the status value
*/
public TriggerStatus status() {
return this.status;
}

/**
* Set the current status of trigger. Possible values include: 'Disabled', 'Enabled'.
*
* @param status the status value to set
* @return the SchedulerTrigger object itself.
*/
public SchedulerTrigger withStatus(TriggerStatus status) {
this.status = status;
return this;
}

/**
* Get the name of the trigger.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name of the trigger.
*
* @param name the name value to set
* @return the SchedulerTrigger object itself.
*/
public SchedulerTrigger withName(String name) {
this.name = name;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* The properties of a trigger.
*/
public class TriggerProperties {
/**
* The collection of scheduler triggers.
*/
@JsonProperty(value = "schedulerTriggers")
private List<SchedulerTrigger> schedulerTriggers;

/**
* The collection of triggers based on source code repository.
*/
Expand All @@ -27,6 +33,26 @@ public class TriggerProperties {
@JsonProperty(value = "baseImageTrigger")
private BaseImageTrigger baseImageTrigger;

/**
* Get the collection of scheduler triggers.
*
* @return the schedulerTriggers value
*/
public List<SchedulerTrigger> schedulerTriggers() {
return this.schedulerTriggers;
}

/**
* Set the collection of scheduler triggers.
*
* @param schedulerTriggers the schedulerTriggers value to set
* @return the TriggerProperties object itself.
*/
public TriggerProperties withSchedulerTriggers(List<SchedulerTrigger> schedulerTriggers) {
this.schedulerTriggers = schedulerTriggers;
return this;
}

/**
* Get the collection of triggers based on source code repository.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* The properties for updating triggers.
*/
public class TriggerUpdateParameters {
/**
* The collection of scheduler triggers.
*/
@JsonProperty(value = "schedulerTriggers")
private List<SchedulerTrigger> schedulerTriggers;

/**
* The collection of triggers based on source code repository.
*/
Expand All @@ -27,6 +33,26 @@ public class TriggerUpdateParameters {
@JsonProperty(value = "baseImageTrigger")
private BaseImageTriggerUpdateParameters baseImageTrigger;

/**
* Get the collection of scheduler triggers.
*
* @return the schedulerTriggers value
*/
public List<SchedulerTrigger> schedulerTriggers() {
return this.schedulerTriggers;
}

/**
* Set the collection of scheduler triggers.
*
* @param schedulerTriggers the schedulerTriggers value to set
* @return the TriggerUpdateParameters object itself.
*/
public TriggerUpdateParameters withSchedulerTriggers(List<SchedulerTrigger> schedulerTriggers) {
this.schedulerTriggers = schedulerTriggers;
return this;
}

/**
* Get the collection of triggers based on source code repository.
*
Expand Down