diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperations.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperations.cs index d532e462f668..2745aead1ac0 100644 --- a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperations.cs +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperations.cs @@ -62,7 +62,7 @@ internal DscCompilationJobOperations(AutomationClient client) /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. @@ -91,7 +91,7 @@ internal DscCompilationJobOperations(AutomationClient client) /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// Headers that will be added to request. @@ -741,7 +741,7 @@ internal DscCompilationJobOperations(AutomationClient client) /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperationsExtensions.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperationsExtensions.cs index 5bd975435e8d..2b45bf1bbdfe 100644 --- a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperationsExtensions.cs +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/DscCompilationJobOperationsExtensions.cs @@ -36,7 +36,7 @@ public static partial class DscCompilationJobOperationsExtensions /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. @@ -60,7 +60,7 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. @@ -90,7 +90,7 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// public static DscCompilationJob Get(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, string compilationJobName) { @@ -111,7 +111,7 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The cancellation token. @@ -240,7 +240,7 @@ public static JobStream GetStream(this IDscCompilationJobOperations operations, /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. @@ -264,7 +264,7 @@ public static DscCompilationJob BeginCreate(this IDscCompilationJobOperations op /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/IDscCompilationJobOperations.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/IDscCompilationJobOperations.cs index 8483b75ca4c4..bcfbd06102e5 100644 --- a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/IDscCompilationJobOperations.cs +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/IDscCompilationJobOperations.cs @@ -35,7 +35,7 @@ public partial interface IDscCompilationJobOperations /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. @@ -68,7 +68,7 @@ public partial interface IDscCompilationJobOperations /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The headers that will be added to request. @@ -158,7 +158,7 @@ public partial interface IDscCompilationJobOperations /// The name of the automation account. /// /// - /// The the DSC configuration Id. + /// The DSC configuration Id. /// /// /// The parameters supplied to the create compilation job operation. diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobSchedule.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobSchedule.cs index b5ec1a44a1ee..2808d930c468 100644 --- a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobSchedule.cs +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobSchedule.cs @@ -13,8 +13,6 @@ namespace Microsoft.Azure.Management.Automation.Models using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; - using System.Collections; - using System.Collections.Generic; using System.Linq; /// @@ -37,24 +35,52 @@ public JobSchedule() /// Gets the id of the resource. /// Gets the name of the variable. /// Resource type - /// Gets or sets the id of job + /// Gets or sets the start time of the /// schedule. - /// Gets or sets the schedule. - /// Gets or sets the runbook. - /// Gets or sets the hybrid worker group that the - /// scheduled job should run on. - /// Gets or sets the parameters of the job + /// Gets the start time's offset + /// in minutes. + /// Gets or sets the end time of the /// schedule. - public JobSchedule(string id = default(string), string name = default(string), string type = default(string), string jobScheduleId = default(string), ScheduleAssociationProperty schedule = default(ScheduleAssociationProperty), RunbookAssociationProperty runbook = default(RunbookAssociationProperty), string runOn = default(string), IDictionary parameters = default(IDictionary)) + /// Gets or sets the expiry + /// time's offset in minutes. + /// Gets or sets a value indicating whether + /// this schedule is enabled. + /// Gets or sets the next run time of the + /// schedule. + /// Gets or sets the next run time's + /// offset in minutes. + /// Gets or sets the interval of the + /// schedule. + /// Gets or sets the frequency of the schedule. + /// Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month', + /// 'Minute' + /// Gets or sets the time zone of the + /// schedule. + /// Gets or sets the advanced + /// schedule. + /// Gets or sets the creation time. + /// Gets or sets the last modified + /// time. + /// Gets or sets the description. + public JobSchedule(string id = default(string), string name = default(string), string type = default(string), System.DateTimeOffset startTime = default(System.DateTimeOffset), double startTimeOffsetMinutes = default(double), System.DateTimeOffset? expiryTime = default(System.DateTimeOffset?), double expiryTimeOffsetMinutes = default(double), bool? isEnabled = default(bool?), System.DateTimeOffset? nextRun = default(System.DateTimeOffset?), double nextRunOffsetMinutes = default(double), int? interval = default(int?), string frequency = default(string), string timeZone = default(string), AdvancedSchedule advancedSchedule = default(AdvancedSchedule), System.DateTimeOffset creationTime = default(System.DateTimeOffset), System.DateTimeOffset lastModifiedTime = default(System.DateTimeOffset), string description = default(string)) { Id = id; Name = name; Type = type; - JobScheduleId = jobScheduleId; - Schedule = schedule; - Runbook = runbook; - RunOn = runOn; - Parameters = parameters; + StartTime = startTime; + StartTimeOffsetMinutes = startTimeOffsetMinutes; + ExpiryTime = expiryTime; + ExpiryTimeOffsetMinutes = expiryTimeOffsetMinutes; + IsEnabled = isEnabled; + NextRun = nextRun; + NextRunOffsetMinutes = nextRunOffsetMinutes; + Interval = interval; + Frequency = frequency; + TimeZone = timeZone; + AdvancedSchedule = advancedSchedule; + CreationTime = creationTime; + LastModifiedTime = lastModifiedTime; + Description = description; CustomInit(); } @@ -82,35 +108,89 @@ public JobSchedule() public string Type { get; private set; } /// - /// Gets or sets the id of job schedule. + /// Gets or sets the start time of the schedule. + /// + [JsonProperty(PropertyName = "properties.startTime")] + public System.DateTimeOffset StartTime { get; set; } + + /// + /// Gets the start time's offset in minutes. + /// + [JsonProperty(PropertyName = "properties.startTimeOffsetMinutes")] + public double StartTimeOffsetMinutes { get; private set; } + + /// + /// Gets or sets the end time of the schedule. + /// + [JsonProperty(PropertyName = "properties.expiryTime")] + public System.DateTimeOffset? ExpiryTime { get; set; } + + /// + /// Gets or sets the expiry time's offset in minutes. + /// + [JsonProperty(PropertyName = "properties.expiryTimeOffsetMinutes")] + public double ExpiryTimeOffsetMinutes { get; set; } + + /// + /// Gets or sets a value indicating whether this schedule is enabled. + /// + [JsonProperty(PropertyName = "properties.isEnabled")] + public bool? IsEnabled { get; set; } + + /// + /// Gets or sets the next run time of the schedule. + /// + [JsonProperty(PropertyName = "properties.nextRun")] + public System.DateTimeOffset? NextRun { get; set; } + + /// + /// Gets or sets the next run time's offset in minutes. + /// + [JsonProperty(PropertyName = "properties.nextRunOffsetMinutes")] + public double NextRunOffsetMinutes { get; set; } + + /// + /// Gets or sets the interval of the schedule. + /// + [JsonProperty(PropertyName = "properties.interval")] + public int? Interval { get; set; } + + /// + /// Gets or sets the frequency of the schedule. Possible values + /// include: 'OneTime', 'Day', 'Hour', 'Week', 'Month', 'Minute' + /// + [JsonProperty(PropertyName = "properties.frequency")] + public string Frequency { get; set; } + + /// + /// Gets or sets the time zone of the schedule. /// - [JsonProperty(PropertyName = "properties.jobScheduleId")] - public string JobScheduleId { get; set; } + [JsonProperty(PropertyName = "properties.timeZone")] + public string TimeZone { get; set; } /// - /// Gets or sets the schedule. + /// Gets or sets the advanced schedule. /// - [JsonProperty(PropertyName = "properties.schedule")] - public ScheduleAssociationProperty Schedule { get; set; } + [JsonProperty(PropertyName = "properties.advancedSchedule")] + public AdvancedSchedule AdvancedSchedule { get; set; } /// - /// Gets or sets the runbook. + /// Gets or sets the creation time. /// - [JsonProperty(PropertyName = "properties.runbook")] - public RunbookAssociationProperty Runbook { get; set; } + [JsonProperty(PropertyName = "properties.creationTime")] + public System.DateTimeOffset CreationTime { get; set; } /// - /// Gets or sets the hybrid worker group that the scheduled job should - /// run on. + /// Gets or sets the last modified time. /// - [JsonProperty(PropertyName = "properties.runOn")] - public string RunOn { get; set; } + [JsonProperty(PropertyName = "properties.lastModifiedTime")] + public System.DateTimeOffset LastModifiedTime { get; set; } /// - /// Gets or sets the parameters of the job schedule. + /// Gets or sets the description. /// - [JsonProperty(PropertyName = "properties.parameters")] - public IDictionary Parameters { get; set; } + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } } } diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobScheduleProperties.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobScheduleProperties.cs new file mode 100644 index 000000000000..cbca0d7cbcf1 --- /dev/null +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/Models/JobScheduleProperties.cs @@ -0,0 +1,89 @@ +// +// 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. +// + +namespace Microsoft.Azure.Management.Automation.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Definition of job schedule parameters. + /// + public partial class JobScheduleProperties + { + /// + /// Initializes a new instance of the JobScheduleProperties class. + /// + public JobScheduleProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the JobScheduleProperties class. + /// + /// Gets or sets the id of job + /// schedule. + /// Gets or sets the schedule. + /// Gets or sets the runbook. + /// Gets or sets the hybrid worker group that the + /// scheduled job should run on. + /// Gets or sets the parameters of the job + /// schedule. + public JobScheduleProperties(string jobScheduleId = default(string), ScheduleAssociationProperty schedule = default(ScheduleAssociationProperty), RunbookAssociationProperty runbook = default(RunbookAssociationProperty), string runOn = default(string), IDictionary parameters = default(IDictionary)) + { + JobScheduleId = jobScheduleId; + Schedule = schedule; + Runbook = runbook; + RunOn = runOn; + Parameters = parameters; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the id of job schedule. + /// + [JsonProperty(PropertyName = "jobScheduleId")] + public string JobScheduleId { get; set; } + + /// + /// Gets or sets the schedule. + /// + [JsonProperty(PropertyName = "schedule")] + public ScheduleAssociationProperty Schedule { get; set; } + + /// + /// Gets or sets the runbook. + /// + [JsonProperty(PropertyName = "runbook")] + public RunbookAssociationProperty Runbook { get; set; } + + /// + /// Gets or sets the hybrid worker group that the scheduled job should + /// run on. + /// + [JsonProperty(PropertyName = "runOn")] + public string RunOn { get; set; } + + /// + /// Gets or sets the parameters of the job schedule. + /// + [JsonProperty(PropertyName = "parameters")] + public IDictionary Parameters { get; set; } + + } +} diff --git a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/SdkInfo_AutomationClient.cs b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/SdkInfo_AutomationClient.cs index 449551b0cd6d..1c020bbdaee0 100644 --- a/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/SdkInfo_AutomationClient.cs +++ b/sdk/automation/Microsoft.Azure.Management.Automation/src/Generated/SdkInfo_AutomationClient.cs @@ -63,16 +63,5 @@ public static IEnumerable> ApiInfo_AutomationClien }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/automation/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Git\\azure-sdk-for-net\\src\\SDKs"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "97aede4213f5ffb9bee11ef972a782e21bc1eb92"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -