Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACR] add time trigger #6597

Merged
merged 1 commit into from
Jul 15, 2019
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 @@ -31,7 +31,7 @@ public RetentionPolicy()
/// </summary>
/// <param name="days">The number of days to retain manifest before it
/// expires.</param>
/// <param name="lastUpdatedTime">The timestamp when the the policy was
/// <param name="lastUpdatedTime">The timestamp when the policy was
/// last updated.</param>
/// <param name="status">The value that indicates whether the policy is
/// enabled or not. Possible values include: 'enabled',
Expand All @@ -57,7 +57,7 @@ public RetentionPolicy()
public int? Days { get; set; }

/// <summary>
/// Gets the timestamp when the the policy was last updated.
/// Gets the timestamp when the policy was last updated.
/// </summary>
[JsonProperty(PropertyName = "lastUpdatedTime")]
public System.DateTime? LastUpdatedTime { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ public Run()
/// 'Succeeded', 'Failed', 'Canceled'</param>
/// <param name="isArchiveEnabled">The value that indicates whether
/// archiving is enabled or not.</param>
public Run(string id = default(string), string name = default(string), string type = default(string), string runId = default(string), string status = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), string runType = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList<ImageDescriptor> outputImages = default(IList<ImageDescriptor>), string task = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), SourceTriggerDescriptor sourceTrigger = default(SourceTriggerDescriptor), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string sourceRegistryAuth = default(string), IList<string> customRegistries = default(IList<string>), string runErrorMessage = default(string), string provisioningState = default(string), bool? isArchiveEnabled = default(bool?))
/// <param name="timerTrigger">The timer trigger that caused the
/// run.</param>
public Run(string id = default(string), string name = default(string), string type = default(string), string runId = default(string), string status = default(string), System.DateTime? lastUpdatedTime = default(System.DateTime?), string runType = default(string), System.DateTime? createTime = default(System.DateTime?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? finishTime = default(System.DateTime?), IList<ImageDescriptor> outputImages = default(IList<ImageDescriptor>), string task = default(string), ImageUpdateTrigger imageUpdateTrigger = default(ImageUpdateTrigger), SourceTriggerDescriptor sourceTrigger = default(SourceTriggerDescriptor), PlatformProperties platform = default(PlatformProperties), AgentProperties agentConfiguration = default(AgentProperties), string sourceRegistryAuth = default(string), IList<string> customRegistries = default(IList<string>), string runErrorMessage = default(string), string provisioningState = default(string), bool? isArchiveEnabled = default(bool?), TimerTriggerDescriptor timerTrigger = default(TimerTriggerDescriptor))
: base(id, name, type)
{
RunId = runId;
Expand All @@ -94,6 +96,7 @@ public Run()
RunErrorMessage = runErrorMessage;
ProvisioningState = provisioningState;
IsArchiveEnabled = isArchiveEnabled;
TimerTrigger = timerTrigger;
CustomInit();
}

Expand Down Expand Up @@ -223,6 +226,12 @@ public Run()
[JsonProperty(PropertyName = "properties.isArchiveEnabled")]
public bool? IsArchiveEnabled { get; set; }

/// <summary>
/// Gets or sets the timer trigger that caused the run.
/// </summary>
[JsonProperty(PropertyName = "properties.timerTrigger")]
public TimerTriggerDescriptor TimerTrigger { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// <auto-generated>
// 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.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.ContainerRegistry.Models
{
using Newtonsoft.Json;
using System.Linq;

public partial class TimerTriggerDescriptor
{
/// <summary>
/// Initializes a new instance of the TimerTriggerDescriptor class.
/// </summary>
public TimerTriggerDescriptor()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the TimerTriggerDescriptor class.
/// </summary>
/// <param name="timerTriggerName">The timer trigger name that caused
/// the run.</param>
/// <param name="scheduleOccurrence">The occurrence that triggered the
/// run.</param>
public TimerTriggerDescriptor(string timerTriggerName = default(string), string scheduleOccurrence = default(string))
{
TimerTriggerName = timerTriggerName;
ScheduleOccurrence = scheduleOccurrence;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the timer trigger name that caused the run.
/// </summary>
[JsonProperty(PropertyName = "timerTriggerName")]
public string TimerTriggerName { get; set; }

/// <summary>
/// Gets or sets the occurrence that triggered the run.
/// </summary>
[JsonProperty(PropertyName = "scheduleOccurrence")]
public string ScheduleOccurrence { get; set; }

}
}