-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from felixcho-msft/master
Weekly and Monthly schedule support (on behalf of jemex)
- Loading branch information
Showing
8 changed files
with
495 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
src/ResourceManagement/Automation/AutomationManagement/Generated/Models/AdvancedSchedule.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
// | ||
// Copyright (c) Microsoft and contributors. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
// Warning: This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if the | ||
// code is regenerated. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Hyak.Common; | ||
using Microsoft.Azure.Management.Automation.Models; | ||
|
||
namespace Microsoft.Azure.Management.Automation.Models | ||
{ | ||
/// <summary> | ||
/// The properties of the create Advanced Schedule. | ||
/// </summary> | ||
public partial class AdvancedSchedule | ||
{ | ||
private IList<int> _monthDays; | ||
|
||
/// <summary> | ||
/// Optional. Days of the month that the job should execute on. Must be | ||
/// between 1 and 31. | ||
/// </summary> | ||
public IList<int> MonthDays | ||
{ | ||
get { return this._monthDays; } | ||
set { this._monthDays = value; } | ||
} | ||
|
||
private IList<AdvancedScheduleMonthlyOccurrence> _monthlyOccurrences; | ||
|
||
/// <summary> | ||
/// Optional. Occurrences of days within a month. | ||
/// </summary> | ||
public IList<AdvancedScheduleMonthlyOccurrence> MonthlyOccurrences | ||
{ | ||
get { return this._monthlyOccurrences; } | ||
set { this._monthlyOccurrences = value; } | ||
} | ||
|
||
private IList<string> _weekDays; | ||
|
||
/// <summary> | ||
/// Optional. Days of the week that the job should execute on. | ||
/// </summary> | ||
public IList<string> WeekDays | ||
{ | ||
get { return this._weekDays; } | ||
set { this._weekDays = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AdvancedSchedule class. | ||
/// </summary> | ||
public AdvancedSchedule() | ||
{ | ||
this.MonthDays = new LazyList<int>(); | ||
this.MonthlyOccurrences = new LazyList<AdvancedScheduleMonthlyOccurrence>(); | ||
this.WeekDays = new LazyList<string>(); | ||
} | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
...ent/Automation/AutomationManagement/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// | ||
// Copyright (c) Microsoft and contributors. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
// Warning: This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if the | ||
// code is regenerated. | ||
|
||
using System; | ||
using System.Linq; | ||
|
||
namespace Microsoft.Azure.Management.Automation.Models | ||
{ | ||
/// <summary> | ||
/// The properties of the create advanced schedule monthly occurrence. | ||
/// </summary> | ||
public partial class AdvancedScheduleMonthlyOccurrence | ||
{ | ||
private string _day; | ||
|
||
/// <summary> | ||
/// Optional. Day of the occurrence. Must be one of monday, tuesday, | ||
/// wednesday,thursday, friday, saturday, sunday. | ||
/// </summary> | ||
public string Day | ||
{ | ||
get { return this._day; } | ||
set { this._day = value; } | ||
} | ||
|
||
private int? _occurrence; | ||
|
||
/// <summary> | ||
/// Optional. Occurrence of the week within the month. Must be between | ||
/// 1 and 5 | ||
/// </summary> | ||
public int? Occurrence | ||
{ | ||
get { return this._occurrence; } | ||
set { this._occurrence = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the AdvancedScheduleMonthlyOccurrence | ||
/// class. | ||
/// </summary> | ||
public AdvancedScheduleMonthlyOccurrence() | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
src/ResourceManagement/Automation/AutomationManagement/Generated/Models/ScheduleDay.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// | ||
// Copyright (c) Microsoft and contributors. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
// Warning: This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if the | ||
// code is regenerated. | ||
|
||
using System; | ||
using System.Linq; | ||
|
||
namespace Microsoft.Azure.Management.Automation.Models | ||
{ | ||
/// <summary> | ||
/// Must be one of monday, tuesday, wednesday, thursday, friday, saturday, | ||
/// sunday. | ||
/// </summary> | ||
public static partial class ScheduleDay | ||
{ | ||
/// <summary> | ||
/// Monday. | ||
/// </summary> | ||
public const string Monday = "Monday"; | ||
|
||
/// <summary> | ||
/// Tuesday. | ||
/// </summary> | ||
public const string Tuesday = "Tuesday"; | ||
|
||
/// <summary> | ||
/// Wednsday. | ||
/// </summary> | ||
public const string Wednesday = "Wednesday"; | ||
|
||
/// <summary> | ||
/// Thursday. | ||
/// </summary> | ||
public const string Thursday = "Thursday"; | ||
|
||
/// <summary> | ||
/// Friday. | ||
/// </summary> | ||
public const string Friday = "Friday"; | ||
|
||
/// <summary> | ||
/// Saturday. | ||
/// </summary> | ||
public const string Saturday = "Saturday"; | ||
|
||
/// <summary> | ||
/// Sunday. | ||
/// </summary> | ||
public const string Sunday = "Sunday"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.