From 4f44dc09fe5b8ca8f491e064daba928e04579711 Mon Sep 17 00:00:00 2001 From: Varad Meru Date: Tue, 9 Jan 2018 15:39:07 -0800 Subject: [PATCH] 3.0.1-preview release: Contains SoftwareUpdateConfiguration resources API and newer tests. --- .../Automation.Tests/Automation.Tests.csproj | 2 +- .../UpdateManagement/BaseTest.cs | 30 + ...twareUpdateConfigurationMachineRunTests.cs | 67 ++ .../SoftwareUpdateConfigurationRunTests.cs | 95 +++ .../SoftwareUpdateConfigurationTests.cs | 87 +++ .../CanGetAllMachineRuns.json | 75 ++ .../CanGetAllRunsByCorrelationId.json | 75 ++ .../CanGetAllRunsByStatus.json | 75 ++ .../CanGetMachineRunById.json | 75 ++ .../CanGetAllRuns.json | 75 ++ .../CanGetAllRunsByConfigurationName.json | 75 ++ .../CanGetAllRunsByOs.json | 75 ++ .../CanGetAllRunsByStartTime.json | 75 ++ .../CanGetAllRunsByStatus.json | 75 ++ .../CanGetRunById.json | 75 ++ .../CanCreateGetAndDelete.json | 684 ++++++++++++++++++ .../TestSupport/AutomationTestBase.cs | 104 +-- src/SDKs/Automation/AzSdk.RP.props | 7 + ...gurationMachineRunsOperationsExtensions.cs | 173 +++++ ...teConfigurationRunsOperationsExtensions.cs | 225 ++++++ ...pdateConfigurationsOperationsExtensions.cs | 60 ++ .../Generated/ActivityOperations.cs | 40 +- .../Generated/ActivityOperationsExtensions.cs | 32 +- .../AgentRegistrationInformationOperations.cs | 40 +- ...strationInformationOperationsExtensions.cs | 32 +- .../Generated/AutomationAccountOperations.cs | 10 +- .../AutomationAccountOperationsExtensions.cs | 4 +- .../Generated/AutomationClient.cs | 40 +- .../Generated/CertificateOperations.cs | 100 +-- .../CertificateOperationsExtensions.cs | 74 +- .../Generated/ConnectionOperations.cs | 100 +-- .../ConnectionOperationsExtensions.cs | 74 +- .../Generated/ConnectionTypeOperations.cs | 76 +- .../ConnectionTypeOperationsExtensions.cs | 60 +- .../Generated/CredentialOperations.cs | 100 +-- .../CredentialOperationsExtensions.cs | 74 +- .../Generated/DscCompilationJobOperations.cs | 76 +- .../DscCompilationJobOperationsExtensions.cs | 60 +- .../Generated/DscConfigurationOperations.cs | 94 +-- .../DscConfigurationOperationsExtensions.cs | 74 +- .../DscNodeConfigurationOperations.cs | 76 +- ...scNodeConfigurationOperationsExtensions.cs | 60 +- .../Generated/DscNodeOperations.cs | 76 +- .../Generated/DscNodeOperationsExtensions.cs | 60 +- .../Generated/FieldsOperations.cs | 22 +- .../Generated/FieldsOperationsExtensions.cs | 18 +- .../HybridRunbookWorkerGroupOperations.cs | 76 +- ...dRunbookWorkerGroupOperationsExtensions.cs | 60 +- .../Generated/IActivityOperations.cs | 14 +- ...IAgentRegistrationInformationOperations.cs | 14 +- .../Generated/IAutomationAccountOperations.cs | 4 +- .../Generated/IAutomationClient.cs | 36 +- .../Generated/ICertificateOperations.cs | 29 +- .../Generated/IConnectionOperations.cs | 29 +- .../Generated/IConnectionTypeOperations.cs | 24 +- .../Generated/ICredentialOperations.cs | 29 +- .../Generated/IDscCompilationJobOperations.cs | 24 +- .../Generated/IDscConfigurationOperations.cs | 29 +- .../IDscNodeConfigurationOperations.cs | 24 +- .../Generated/IDscNodeOperations.cs | 24 +- .../Generated/IFieldsOperations.cs | 9 +- .../IHybridRunbookWorkerGroupOperations.cs | 24 +- .../Generated/IJobOperations.cs | 44 +- .../Generated/IJobScheduleOperations.cs | 24 +- .../Generated/IJobStreamOperations.cs | 14 +- .../Generated/IModuleOperations.cs | 29 +- .../Generated/INodeReportsOperations.cs | 19 +- .../Generated/IObjectDataTypesOperations.cs | 14 +- .../Generated/IOperations.cs | 4 +- .../Generated/IRunbookDraftOperations.cs | 39 +- .../Generated/IRunbookOperations.cs | 34 +- .../Generated/IScheduleOperations.cs | 29 +- ...pdateConfigurationMachineRunsOperations.cs | 25 +- ...ftwareUpdateConfigurationRunsOperations.cs | 25 +- ...ISoftwareUpdateConfigurationsOperations.cs | 27 +- .../Generated/IStatisticsOperations.cs | 4 +- .../Generated/ITestJobStreamsOperations.cs | 14 +- .../Generated/ITestJobsOperations.cs | 29 +- .../Generated/IUsagesOperations.cs | 4 +- .../Generated/IVariableOperations.cs | 29 +- .../Generated/IWebhookOperations.cs | 34 +- .../Generated/JobOperations.cs | 148 ++-- .../Generated/JobOperationsExtensions.cs | 116 +-- .../Generated/JobScheduleOperations.cs | 76 +- .../JobScheduleOperationsExtensions.cs | 60 +- .../Generated/JobStreamOperations.cs | 40 +- .../JobStreamOperationsExtensions.cs | 32 +- .../Generated/Models/Activity.cs | 7 +- .../Generated/Models/ActivityOutputType.cs | 7 +- .../Generated/Models/ActivityParameter.cs | 7 +- .../Generated/Models/ActivityParameterSet.cs | 7 +- .../Generated/Models/AdvancedSchedule.cs | 7 +- .../AdvancedScheduleMonthlyOccurrence.cs | 7 +- .../Generated/Models/AgentRegistration.cs | 7 +- .../Models/AgentRegistrationKeyName.cs | 5 +- .../Generated/Models/AgentRegistrationKeys.cs | 7 +- ...AgentRegistrationRegenerateKeyParameter.cs | 7 +- .../Generated/Models/AutomationAccount.cs | 7 +- ...tomationAccountCreateOrUpdateParameters.cs | 7 +- .../Models/AutomationAccountState.cs | 5 +- .../AutomationAccountUpdateParameters.cs | 7 +- .../Generated/Models/Certificate.cs | 7 +- .../CertificateCreateOrUpdateParameters.cs | 7 +- .../Models/CertificateUpdateParameters.cs | 7 +- .../CollectionItemUpdateConfiguration.cs | 7 +- .../Generated/Models/Connection.cs | 7 +- .../ConnectionCreateOrUpdateParameters.cs | 7 +- .../Generated/Models/ConnectionType.cs | 7 +- .../ConnectionTypeAssociationProperty.cs | 7 +- .../ConnectionTypeCreateOrUpdateParameters.cs | 7 +- .../Models/ConnectionUpdateParameters.cs | 7 +- .../Generated/Models/ContentHash.cs | 7 +- .../Generated/Models/ContentLink.cs | 7 +- .../Generated/Models/ContentSource.cs | 7 +- .../Generated/Models/ContentSourceType.cs | 5 +- .../Generated/Models/Credential.cs | 7 +- .../CredentialCreateOrUpdateParameters.cs | 7 +- .../Models/CredentialUpdateParameters.cs | 7 +- .../Generated/Models/DscCompilationJob.cs | 7 +- .../DscCompilationJobCreateParameters.cs | 19 +- .../Generated/Models/DscConfiguration.cs | 7 +- .../DscConfigurationAssociationProperty.cs | 7 +- ...scConfigurationCreateOrUpdateParameters.cs | 7 +- .../Models/DscConfigurationParameter.cs | 7 +- .../DscConfigurationProvisioningState.cs | 11 +- .../Generated/Models/DscConfigurationState.cs | 5 +- .../Generated/Models/DscMetaConfiguration.cs | 7 +- .../Generated/Models/DscNode.cs | 7 +- .../Generated/Models/DscNodeConfiguration.cs | 7 +- ...DscNodeConfigurationAssociationProperty.cs | 7 +- ...deConfigurationCreateOrUpdateParameters.cs | 19 +- ...NodeExtensionHandlerAssociationProperty.cs | 7 +- .../Generated/Models/DscNodeReport.cs | 7 +- .../Models/DscNodeUpdateParameters.cs | 7 +- .../Generated/Models/DscReportError.cs | 7 +- .../Generated/Models/DscReportResource.cs | 7 +- .../Models/DscReportResourceNavigation.cs | 7 +- .../Generated/Models/ErrorResponse.cs | 7 +- .../Models/ErrorResponseException.cs | 7 +- .../Generated/Models/FieldDefinition.cs | 7 +- .../Generated/Models/HttpStatusCode.cs | 11 +- .../Generated/Models/HybridRunbookWorker.cs | 7 +- .../Models/HybridRunbookWorkerGroup.cs | 7 +- ...ybridRunbookWorkerGroupUpdateParameters.cs | 7 +- .../Generated/Models/Job.cs | 7 +- .../Generated/Models/JobCreateParameters.cs | 7 +- .../Generated/Models/JobNavigation.cs | 7 +- .../Generated/Models/JobSchedule.cs | 7 +- .../Models/JobScheduleCreateParameters.cs | 7 +- .../Generated/Models/JobStatus.cs | 5 +- .../Generated/Models/JobStream.cs | 7 +- .../Generated/Models/JobStreamType.cs | 5 +- .../Generated/Models/LinuxProperties.cs | 17 +- .../Generated/Models/LinuxUpdateClasses.cs | 24 + .../Generated/Models/Module.cs | 7 +- .../Models/ModuleCreateOrUpdateParameters.cs | 7 +- .../Generated/Models/ModuleErrorInfo.cs | 7 +- .../Models/ModuleProvisioningState.cs | 11 +- .../Models/ModuleUpdateParameters.cs | 7 +- .../Generated/Models/OperatingSystemType.cs | 11 +- .../Generated/Models/Operation.cs | 7 +- .../Generated/Models/OperationDisplay.cs | 7 +- .../Generated/Models/Page.cs | 5 +- .../Generated/Models/Page1.cs | 5 +- .../Generated/Models/Resource.cs | 7 +- .../RunAsCredentialAssociationProperty.cs | 7 +- .../Generated/Models/Runbook.cs | 7 +- .../Models/RunbookAssociationProperty.cs | 7 +- .../RunbookCreateOrUpdateDraftParameters.cs | 7 +- .../RunbookCreateOrUpdateDraftProperties.cs | 7 +- .../Models/RunbookCreateOrUpdateParameters.cs | 7 +- .../Generated/Models/RunbookDraft.cs | 7 +- .../Models/RunbookDraftUndoEditResult.cs | 7 +- .../Generated/Models/RunbookParameter.cs | 7 +- .../Models/RunbookProvisioningState.cs | 11 +- .../Generated/Models/RunbookState.cs | 5 +- .../Generated/Models/RunbookTypeEnum.cs | 5 +- .../Models/RunbookUpdateParameters.cs | 7 +- .../Generated/Models/Schedule.cs | 7 +- .../Models/ScheduleAssociationProperty.cs | 7 +- .../ScheduleCreateOrUpdateParameters.cs | 7 +- .../Generated/Models/ScheduleDay.cs | 5 +- .../Generated/Models/ScheduleFrequency.cs | 5 +- .../Generated/Models/ScheduleProperties.cs | 7 +- .../Models/ScheduleUpdateParameters.cs | 7 +- .../Generated/Models/Sku.cs | 7 +- .../Generated/Models/SkuNameEnum.cs | 5 +- .../Models/SoftwareUpdateConfiguration.cs | 21 +- ...ftwareUpdateConfigurationCollectionItem.cs | 7 +- .../SoftwareUpdateConfigurationListResult.cs | 7 +- .../SoftwareUpdateConfigurationMachineRun.cs | 7 +- ...UpdateConfigurationMachineRunListResult.cs | 7 +- .../Models/SoftwareUpdateConfigurationRun.cs | 7 +- ...oftwareUpdateConfigurationRunListResult.cs | 7 +- .../Generated/Models/Statistics.cs | 7 +- .../Generated/Models/SubResource.cs | 7 +- .../Generated/Models/TestJob.cs | 7 +- .../Models/TestJobCreateParameters.cs | 7 +- .../Generated/Models/TypeField.cs | 7 +- .../Generated/Models/UpdateConfiguration.cs | 29 +- .../Models/UpdateConfigurationNavigation.cs | 7 +- .../Generated/Models/Usage.cs | 7 +- .../Generated/Models/UsageCounterName.cs | 7 +- .../Generated/Models/Variable.cs | 7 +- .../VariableCreateOrUpdateParameters.cs | 7 +- .../Models/VariableUpdateParameters.cs | 7 +- .../Generated/Models/Webhook.cs | 7 +- .../Models/WebhookCreateOrUpdateParameters.cs | 7 +- .../Models/WebhookUpdateParameters.cs | 7 +- .../Generated/Models/WindowsProperties.cs | 22 +- .../Generated/Models/WindowsUpdateClasses.cs | 29 + .../Generated/ModuleOperations.cs | 100 +-- .../Generated/ModuleOperationsExtensions.cs | 74 +- .../Generated/NodeReportsOperations.cs | 58 +- .../NodeReportsOperationsExtensions.cs | 46 +- .../Generated/ObjectDataTypesOperations.cs | 40 +- .../ObjectDataTypesOperationsExtensions.cs | 32 +- .../Generated/Operations.cs | 4 +- .../Generated/OperationsExtensions.cs | 4 +- .../Generated/RunbookDraftOperations.cs | 116 ++- .../RunbookDraftOperationsExtensions.cs | 102 +-- .../Generated/RunbookOperations.cs | 112 ++- .../Generated/RunbookOperationsExtensions.cs | 88 +-- .../Generated/ScheduleOperations.cs | 94 +-- .../Generated/ScheduleOperationsExtensions.cs | 74 +- .../Generated/SdkInfo_AutomationClient.cs | 49 ++ ...pdateConfigurationMachineRunsOperations.cs | 88 ++- ...gurationMachineRunsOperationsExtensions.cs | 50 +- ...ftwareUpdateConfigurationRunsOperations.cs | 88 ++- ...teConfigurationRunsOperationsExtensions.cs | 50 +- .../SoftwareUpdateConfigurationsOperations.cs | 152 ++-- ...pdateConfigurationsOperationsExtensions.cs | 66 +- .../Generated/StatisticsOperations.cs | 4 +- .../StatisticsOperationsExtensions.cs | 4 +- .../Generated/TestJobStreamsOperations.cs | 40 +- .../TestJobStreamsOperationsExtensions.cs | 32 +- .../Generated/TestJobsOperations.cs | 94 +-- .../Generated/TestJobsOperationsExtensions.cs | 74 +- .../Generated/UsagesOperations.cs | 4 +- .../Generated/UsagesOperationsExtensions.cs | 4 +- .../Generated/VariableOperations.cs | 94 +-- .../Generated/VariableOperationsExtensions.cs | 74 +- .../Generated/WebhookOperations.cs | 112 ++- .../Generated/WebhookOperationsExtensions.cs | 88 +-- ...crosoft.Azure.Management.Automation.csproj | 4 +- .../_metadata/automation_resource-manager.txt | 8 +- 246 files changed, 4564 insertions(+), 3663 deletions(-) create mode 100644 src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs create mode 100644 src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs create mode 100644 src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs create mode 100644 src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json create mode 100644 src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json create mode 100644 src/SDKs/Automation/AzSdk.RP.props create mode 100644 src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs create mode 100644 src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs create mode 100644 src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs create mode 100644 src/SDKs/Automation/Management.Automation/Generated/Models/LinuxUpdateClasses.cs create mode 100644 src/SDKs/Automation/Management.Automation/Generated/Models/WindowsUpdateClasses.cs create mode 100644 src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs diff --git a/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj b/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj index c0a799fe6c8d..4cc463077a07 100644 --- a/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj +++ b/src/SDKs/Automation/Automation.Tests/Automation.Tests.csproj @@ -3,7 +3,7 @@ Automation.Tests Automation.Tests - 3.0.0-preview + 3.0.1-preview Test Project for Automation tests diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs new file mode 100644 index 000000000000..8040af6fc8bd --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/BaseTest.cs @@ -0,0 +1,30 @@ +namespace Automation.Tests.ScenarioTests.UpdateManagement +{ + using Microsoft.Azure.Management.Automation; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + + using Automation.Tests.Helpers; + + public class BaseTest + { + protected const string ResourceGroupName = "to-delete-01"; + protected const string AutomationAccountName = "fbs-aa-01"; + protected const string updateConfigurationName_01 = "test-suc-001"; + protected const string updateConfigurationName_02 = "test-suc-002"; + protected const string VM_01 = "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01"; + protected const string VM_02 = "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02"; + + protected AutomationClient automationClient; + + protected void CreateAutomationClient(MockContext context) + { + if (this.automationClient == null) + { + var handler = new RecordedDelegatingHandler(); + this.automationClient = context.GetServiceClient(false, handler); + this.automationClient.ResourceGroupName = ResourceGroupName; + this.automationClient.AutomationAccountName = AutomationAccountName; + } + } + } +} diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs new file mode 100644 index 000000000000..5d31cf43d53b --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationMachineRunTests.cs @@ -0,0 +1,67 @@ +namespace Automation.Tests.ScenarioTests.UpdateManagement +{ + using System; + + using Microsoft.Azure.Management.Automation; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + + using Xunit; + + public class SoftwareUpdateConfigurationMachineRunTests : BaseTest + { + [Fact] + public void CanGetMachineRunById() + { + var runId = Guid.Parse("b56021cf-1643-4bfb-99d3-6b798db242f5"); + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var run = this.automationClient.SoftwareUpdateConfigurationMachineRuns.GetById(runId); + Assert.NotNull(run); + Assert.Equal(runId.ToString(), run.Name); + } + } + + [Fact] + public void CanGetAllMachineRuns() + { + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.List(); + Assert.NotNull(runs.Value); + Assert.Equal(27, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByCorrelationId() + { + Guid correlationId = Guid.Parse("595159c7-64cb-436f-892d-b44b31970f7a"); + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.ListByCorrelationId(correlationId); + Assert.NotNull(runs.Value); + Assert.Equal(2, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByStatus() + { + const string status = "Failed"; + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationMachineRuns.ListByStatus(status); + Assert.NotNull(runs.Value); + Assert.Equal(4, runs.Value.Count); + } + } + } +} diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs new file mode 100644 index 000000000000..d906dad4c51e --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationRunTests.cs @@ -0,0 +1,95 @@ +namespace Automation.Tests.ScenarioTests.UpdateManagement +{ + using System; + + using Microsoft.Azure.Management.Automation; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + + using Xunit; + + public class SoftwareUpdateConfigurationRunTests : BaseTest + { + [Fact] + public void CanGetRunById() + { + var runId = Guid.Parse("595159c7-64cb-436f-892d-b44b31970f7a"); + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var run = this.automationClient.SoftwareUpdateConfigurationRuns.GetById(runId); + Assert.NotNull(run); + Assert.Equal(runId.ToString(), run.Name); + } + } + + [Fact] + public void CanGetAllRuns() + { + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationRuns.List(); + Assert.NotNull(runs.Value); + Assert.Equal(15, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByConfigurationName() + { + const string configName = "all-01"; + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByConfigurationName(configName); + Assert.NotNull(runs.Value); + Assert.Equal(6, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByOs() + { + const string os = "Windows"; + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByOsType(os); + Assert.NotNull(runs.Value); + Assert.Equal(17, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByStatus() + { + const string status = "Failed"; + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByStatus(status); + Assert.NotNull(runs.Value); + Assert.Equal(2, runs.Value.Count); + } + } + + [Fact] + public void CanGetAllRunsByStartTime() + { + var startTime = DateTime.Parse("2017-12-03T22:01:00-8"); + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + var runs = this.automationClient.SoftwareUpdateConfigurationRuns.ListByStartTime(startTime); + Assert.NotNull(runs.Value); + Assert.Equal(2, runs.Value.Count); + } + } + } +} diff --git a/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs new file mode 100644 index 000000000000..ec37e2c6b3e5 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/ScenarioTests/UpdateManagement/SoftwareUpdateConfigurationTests.cs @@ -0,0 +1,87 @@ +namespace Automation.Tests.ScenarioTests.UpdateManagement +{ + using System; + using System.Linq; + + using Microsoft.Azure.Management.Automation; + using Microsoft.Azure.Management.Automation.Models; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + + using Xunit; + + public class SoftwareUpdateConfigurationTests : BaseTest + { + [Fact] + public void CanCreateGetAndDelete() + { + using (var context = MockContext.Start(GetType().FullName)) + { + this.CreateAutomationClient(context); + + // Create and get the first SUC (targeting 1 VMs) + var sucProperties = this.CreateSoftwareUpdateConfigurationModel(new[] { VM_01 }); + var createResult = this.automationClient.SoftwareUpdateConfigurations.Create(updateConfigurationName_01, sucProperties); + Assert.NotNull(createResult); + + var getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_01); + Assert.NotNull(getResult); + + // Create and get the second SUC (targeting 2 VMs) + sucProperties = this.CreateSoftwareUpdateConfigurationModel(new[] { VM_01, VM_02}); + createResult = this.automationClient.SoftwareUpdateConfigurations.Create(updateConfigurationName_02, sucProperties); + Assert.NotNull(createResult); + + getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_02); + Assert.NotNull(getResult); + + // List all SUCs + var listResult = this.automationClient.SoftwareUpdateConfigurations.List(); + Assert.NotNull(listResult); + Assert.NotNull(listResult.Value); + Assert.Equal(9, listResult.Value.Count); + + // List for specific VM + listResult = this.automationClient.SoftwareUpdateConfigurations.ListByAzureVirtualMachine(VM_01); + Assert.NotNull(listResult); + Assert.NotNull(listResult.Value); + Assert.Equal(6, listResult.Value.Count); + var suc = listResult.Value.Where(v => v.Name.Equals(updateConfigurationName_01, StringComparison.OrdinalIgnoreCase)).Single(); + Assert.Equal(updateConfigurationName_01, suc.Name); + + // Delete both + this.automationClient.SoftwareUpdateConfigurations.Delete(updateConfigurationName_01); + getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_01); + Assert.Null(getResult); + + this.automationClient.SoftwareUpdateConfigurations.Delete(updateConfigurationName_02); + getResult = this.automationClient.SoftwareUpdateConfigurations.GetByName(updateConfigurationName_02); + Assert.Null(getResult); + } + } + + private SoftwareUpdateConfiguration CreateSoftwareUpdateConfigurationModel(string[] azureVirtualMachines) + { + var updateConfiguration = new UpdateConfiguration + { + OperatingSystem = OperatingSystemType.Windows, + Windows = new WindowsProperties + { + IncludedUpdateClassifications = WindowsUpdateClasses.Critical + ',' + WindowsUpdateClasses.Security, + ExcludedKbNumbers = new[] { "KB123", "KB123" } + }, + Duration = TimeSpan.FromHours(3), + AzureVirtualMachines = azureVirtualMachines + }; + + var scheduleInfo = new ScheduleProperties + { + Frequency = ScheduleFrequency.Day, + StartTime = DateTime.Parse("2018-05-05T19:26:00.000"), + Interval = 1, + TimeZone = "America/Los_Angeles" + }; + + return new SoftwareUpdateConfiguration(updateConfiguration, scheduleInfo); + } + } +} diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json new file mode 100644 index 000000000000..452b84205e6f --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllMachineRuns.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "aca39479-ab3f-4bce-ab87-2343e0de0596" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/a58c1a70-2250-4273-a407-cdb1b0feda63\",\r\n \"name\": \"a58c1a70-2250-4273-a407-cdb1b0feda63\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"659368f1-45f0-4ab3-99e3-647159be858a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T23:05:01.7040608-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:05:01.7040608-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:03.1566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/3a66c678-388a-49b8-9870-6ab28e434776\",\r\n \"name\": \"3a66c678-388a-49b8-9870-6ab28e434776\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"900045de-4709-4c72-af35-578a8449cf81\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T23:02:16.623424-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:02:16.623424-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:18.62-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/a02aa8f5-c824-441f-9642-6f47f5285d62\",\r\n \"name\": \"a02aa8f5-c824-441f-9642-6f47f5285d62\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"900045de-4709-4c72-af35-578a8449cf81\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T23:02:15.7954412-08:00\",\r\n \"endTime\": \"2017-12-03T23:02:25.8233333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T23:02:15.7954412-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:18.0566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"name\": \"204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"endTime\": \"2017-12-03T22:36:33.5866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:37:14.3066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"name\": \"cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"endTime\": \"2017-12-03T22:01:30.9866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:02:04.3933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/c4975a99-f857-4620-a45a-c3373f495362\",\r\n \"name\": \"c4975a99-f857-4620-a45a-c3373f495362\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T21:05:31.5806397-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:05:31.5806397-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:34.2766667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6930b5b9-75b2-4496-9d80-9d94e310e868\",\r\n \"name\": \"6930b5b9-75b2-4496-9d80-9d94e310e868\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T21:00:29.2416781-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:00:29.2416781-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:01:32.1166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/32165385-8113-43dd-8934-0e3413f63b21\",\r\n \"name\": \"32165385-8113-43dd-8934-0e3413f63b21\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T21:00:28.4762796-08:00\",\r\n \"endTime\": \"2017-12-03T21:00:56.31-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T21:00:28.4762796-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:30.62-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"name\": \"8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:08.6933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"name\": \"0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:45.7333333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/5766f363-238d-4f42-92eb-c0e7d1cf7091\",\r\n \"name\": \"5766f363-238d-4f42-92eb-c0e7d1cf7091\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T20:03:28.9820295-08:00\",\r\n \"endTime\": \"2017-12-03T20:07:06.49-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:28.9820295-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:07:33.59-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/7395e87d-f249-47d3-b841-16f461f5bbd5\",\r\n \"name\": \"7395e87d-f249-47d3-b841-16f461f5bbd5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T19:05:02.4519754-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:05:02.4519754-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:21.0133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/39e0f311-0766-4d53-91b0-4e0e09101273\",\r\n \"name\": \"39e0f311-0766-4d53-91b0-4e0e09101273\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T19:02:16.605992-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:02:16.605992-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:09.1133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/873b39a2-c006-421e-974e-552941d812c6\",\r\n \"name\": \"873b39a2-c006-421e-974e-552941d812c6\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T19:02:14.8565448-08:00\",\r\n \"endTime\": \"2017-12-03T19:03:14.2033333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T19:02:14.8565448-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:04:09.3666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/43943787-066a-423f-b39b-20c0448653bf\",\r\n \"name\": \"43943787-066a-423f-b39b-20c0448653bf\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T18:05:30.961048-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:05:30.961048-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:24.59-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/1397c273-f2b3-4d07-8aad-b8d200841f79\",\r\n \"name\": \"1397c273-f2b3-4d07-8aad-b8d200841f79\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T18:01:45.516477-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:01:45.516477-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:02:50.2633333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6939a2d7-92fa-4b03-b2c0-9e6621dc5589\",\r\n \"name\": \"6939a2d7-92fa-4b03-b2c0-9e6621dc5589\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T18:01:44.672857-08:00\",\r\n \"endTime\": \"2017-12-03T18:01:54.4033333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T18:01:44.672857-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:48.4733333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/5fbe0453-e603-4bbd-8c2c-8346e8f14921\",\r\n \"name\": \"5fbe0453-e603-4bbd-8c2c-8346e8f14921\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T17:05:29.0836163-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:05:29.0836163-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:37.2433333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/31941815-326b-4d47-bba5-a4a4e0aa53b6\",\r\n \"name\": \"31941815-326b-4d47-bba5-a4a4e0aa53b6\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T17:02:24.7518491-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:02:24.7518491-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:34.41-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/f5f295a7-6792-4998-8c48-cd84cbfc26ff\",\r\n \"name\": \"f5f295a7-6792-4998-8c48-cd84cbfc26ff\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T17:02:23.7990863-08:00\",\r\n \"endTime\": \"2017-12-03T17:02:34.1533333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T17:02:23.7990863-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:04:33.41-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8dbec6cf-bbdb-4718-ae63-4da176199d8c\",\r\n \"name\": \"8dbec6cf-bbdb-4718-ae63-4da176199d8c\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T16:05:39.8673719-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:05:39.8673719-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:07:06.48-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/9d49b235-4a04-4169-a699-3c9e82735546\",\r\n \"name\": \"9d49b235-4a04-4169-a699-3c9e82735546\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T16:01:12.3153445-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:01:12.3153445-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:05:04.7633333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/6ebb9879-dea7-48f2-8367-a2274c6a563a\",\r\n \"name\": \"6ebb9879-dea7-48f2-8367-a2274c6a563a\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T16:01:11.5646677-08:00\",\r\n \"endTime\": \"2017-12-03T16:08:40.6833333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T16:01:11.5646677-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:05.0066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/4cc52000-6689-4d50-bb92-d32efe861531\",\r\n \"name\": \"4cc52000-6689-4d50-bb92-d32efe861531\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T15:05:28.921775-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T15:05:28.921775-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:06:25.2466667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/572abcd1-6013-4286-a3be-116e3862f407\",\r\n \"name\": \"572abcd1-6013-4286-a3be-116e3862f407\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T15:01:12.4322251-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T15:01:12.4322251-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T23:03:46.21-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/1010ff31-8e3d-4db9-b7d1-d1334e69e239\",\r\n \"name\": \"1010ff31-8e3d-4db9-b7d1-d1334e69e239\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T14:50:34.6608639-08:00\",\r\n \"endTime\": null,\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T14:50:34.6608639-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:51:46.1466667-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 07:17:53 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "aca39479-ab3f-4bce-ab87-2343e0de0596" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "cab3497d-cb6b-49aa-8a43-80fb334ec059" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T071753Z:cab3497d-cb6b-49aa-8a43-80fb334ec059" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json new file mode 100644 index 000000000000..b8ecdebf27a0 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByCorrelationId.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2FcorrelationId%20eq%20595159c7-64cb-436f-892d-b44b31970f7a", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGY29ycmVsYXRpb25JZCUyMGVxJTIwNTk1MTU5YzctNjRjYi00MzZmLTg5MmQtYjQ0YjMxOTcwZjdh", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dde25426-d83b-47f5-8e86-2c330fe819d8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"name\": \"cd9d9164-0268-438a-8d8a-dbca25ade827\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Succeeded\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"3a919404-fc45-4d2f-aaca-42ca398bbd21\",\r\n \"startTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"endTime\": \"2017-12-03T22:01:30.9866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:02.2462645-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:02:04.3933333-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 07:23:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "dde25426-d83b-47f5-8e86-2c330fe819d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "5b6e13f8-4b6f-45de-9286-8b7ce7ef447f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T072333Z:5b6e13f8-4b6f-45de-9286-8b7ce7ef447f" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json new file mode 100644 index 000000000000..70cb00e97b82 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetAllRunsByStatus.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns?api-version=2017-05-15-preview&$filter=properties%2Fstatus%20eq%20'Failed'", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucz9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXcmJGZpbHRlcj1wcm9wZXJ0aWVzJTJGc3RhdHVzJTIwZXElMjAlMjdGYWlsZWQlMjc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2eb36ef2-bfd7-49b9-a02d-38d58bfbcf00" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"name\": \"204e0368-6db6-4f58-bffe-8cbb9ae05228\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"endTime\": \"2017-12-03T22:36:33.5866667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:05:03.3058008-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:37:14.3066667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"name\": \"8508acc4-aa22-41b1-b994-8b4ace45675f\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:05:55.2337603-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:08.6933333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"name\": \"0d6716ab-5b79-4816-98cc-1833ed7098bd\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": null,\r\n \"creationTime\": \"2017-12-03T20:03:29.9034394-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:45.7333333-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 07:24:20 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "2eb36ef2-bfd7-49b9-a02d-38d58bfbcf00" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14997" + ], + "x-ms-correlation-request-id": [ + "69951c03-42d1-49ef-a4f9-a7df3f1296b7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T072420Z:69951c03-42d1-49ef-a4f9-a7df3f1296b7" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json new file mode 100644 index 000000000000..0969bccba2ed --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationMachineRunTests/CanGetMachineRunById.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25NYWNoaW5lUnVucy9iNTYwMjFjZi0xNjQzLTRiZmItOTlkMy02Yjc5OGRiMjQyZjU/YXBpLXZlcnNpb249MjAxNy0wNS0xNS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1dea5b43-3f4f-422f-948d-db55b39d6bab" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationMachineRuns/b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"name\": \"b56021cf-1643-4bfb-99d3-6b798db242f5\",\r\n \"properties\": {\r\n \"targetComputer\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"targetComputerType\": \"AzureVirtualMachines\",\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"osType\": \"Windows\",\r\n \"correlationId\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"sourceComputerId\": \"282452db-3afa-4538-9461-91f6361b1be1\",\r\n \"startTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"endTime\": \"2017-12-03T22:35:44.8333333-08:00\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"job\": {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/jobs/b56021cf-1643-4bfb-99d3-6b798db242f5\"\r\n },\r\n \"creationTime\": \"2017-12-03T22:01:03.0427936-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:36:15.3566667-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 07:16:23 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "1dea5b43-3f4f-422f-948d-db55b39d6bab" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14994" + ], + "x-ms-correlation-request-id": [ + "794fb85a-5a4c-4c8e-91da-f8ceb97b1d6c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T071624Z:794fb85a-5a4c-4c8e-91da-f8ceb97b1d6c" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json new file mode 100644 index 000000000000..65d50bed1e69 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRuns.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "624d5cae-b2e6-4c13-ad66-5406847fa748" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"name\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:32.3133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"name\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:05:03.2466667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:02:17.4166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"name\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:22.52-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"name\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:05:25.09-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"name\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:05:58.69-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:03:37.37-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"name\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:23.2833333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"name\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:44.0233333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"name\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:50:44.15-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 05:56:02 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "624d5cae-b2e6-4c13-ad66-5406847fa748" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14978" + ], + "x-ms-correlation-request-id": [ + "96f49107-fc29-4dcf-af8a-8db2c9f4a7e5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T055602Z:96f49107-fc29-4dcf-af8a-8db2c9f4a7e5" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json new file mode 100644 index 000000000000..8a405fa46fd0 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByConfigurationName.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FsoftwareUpdateConfiguration%2Fname%20eq%20'all-01'", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb24lMkZuYW1lJTIwZXElMjAlMjdhbGwtMDElMjc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b71ea5ae-f49c-4d44-a11a-5e696f9dabc2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:02:17.4166667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T19:03:37.37-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 05:40:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "b71ea5ae-f49c-4d44-a11a-5e696f9dabc2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14981" + ], + "x-ms-correlation-request-id": [ + "03adc694-07fa-4848-92ae-3bbfc643d6c7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T054051Z:03adc694-07fa-4848-92ae-3bbfc643d6c7" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json new file mode 100644 index 000000000000..a1dbc30be0c3 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByOs.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FosType%20eq%20'Windows'", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZvc1R5cGUlMjBlcSUyMCUyN1dpbmRvd3MlMjc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e65a836c-c6d5-4385-9db7-0793bf7bf9ea" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"name\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:04.0366667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"name\": \"f1e53082-2fa9-42b3-8e03-5e2b0b3cfa6a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:05:31.3150583-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:32.3133333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"name\": \"6997253d-1a09-4a86-8ce0-748bdb29ad9c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T21:00:28.179483-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:00:29.99-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"name\": \"84fd39b5-b28d-4a2a-8856-9c695f4a2805\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:05:02.1864192-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:20.7333333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"name\": \"5ba8cbea-df0b-4937-932d-0f840e0befb4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T19:02:14.5441554-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:03:08.7266667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"name\": \"4acce870-3ddb-4469-bde6-9bd42d991828\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:05:29.9143703-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:22.52-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"name\": \"de940d19-c4d2-467c-a916-1d6e489092c4\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T18:01:44.3135947-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:01:47.8666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"name\": \"3aab1bb9-3144-4fe0-85bc-bc59a446ab41\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:05:28.0371572-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:05:25.09-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"name\": \"064a5c2d-3a3a-4081-af1b-7ca4badd4c09\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T17:02:22.6588665-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:03:14.55-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"name\": \"1c6d425e-9356-4516-8ac8-426cddbdaaf6\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:05:38.8138047-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:06:05.9666667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"name\": \"3eb47451-4612-4088-a58f-81349607fa36\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T16:01:11.2366375-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:04:04.2433333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"name\": \"cf4fd039-ad1d-4eab-82c3-f34c68cdd1c7\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:05:27.8753539-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:05:23.2833333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"name\": \"70925935-7c65-4372-bfe4-24e6e0edd331\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"second\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T15:01:11.3233398-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T21:02:44.0233333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"name\": \"24f7d45f-6eed-45b9-90f2-6e596774fe2c\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"first\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T14:50:33.552091-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:50:44.15-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 06:32:01 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "e65a836c-c6d5-4385-9db7-0793bf7bf9ea" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "ebb01a50-aa5d-422e-8953-2743a0fb7075" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T063201Z:ebb01a50-aa5d-422e-8953-2743a0fb7075" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json new file mode 100644 index 000000000000..827b5dda290d --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStartTime.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2FstartTime%20ge%202017-12-03T22:01:00.0000000-08:00", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGFydFRpbWUlMjBnZSUyMDIwMTctMTItMDNUMjIlM0EwMSUzQTAwLjAwMDAwMDAtMDglM0EwMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6eccc347-fc7c-4e17-8e7b-b6355528af06" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"name\": \"afb91d65-b7ff-488c-9ff5-8ea1678e3197\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 1,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:05:02.977826-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:05:04.0366667-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 06:27:40 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6eccc347-fc7c-4e17-8e7b-b6355528af06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14992" + ], + "x-ms-correlation-request-id": [ + "52beda31-7337-4fe2-8898-c245b4736ce7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T062740Z:52beda31-7337-4fe2-8898-c245b4736ce7" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json new file mode 100644 index 000000000000..95e7c2f4df3e --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetAllRunsByStatus.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns?api-version=2017-05-15-preview&$filter=properties%2Fstatus%20eq%20'Failed'", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZzdGF0dXMlMjBlcSUyMCUyN0ZhaWxlZCUyNw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "27e30bad-6ddf-4992-85f2-220d4b16304c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"name\": \"3558b1c5-8fe1-43e1-9601-58247383c1fc\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"third\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:33.0333333-08:00\",\r\n \"computerCount\": 1,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:05:54.1405681-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:43:09.0533333-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"name\": \"c6f3a468-107f-42a3-ad8e-174ff9857fc8\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"Failed\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"endTime\": \"2017-12-03T20:42:16.8066667-08:00\",\r\n \"computerCount\": 2,\r\n \"failedCount\": 1,\r\n \"creationTime\": \"2017-12-03T20:03:27.9356546-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T20:42:46.78-08:00\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 06:11:32 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "27e30bad-6ddf-4992-85f2-220d4b16304c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14965" + ], + "x-ms-correlation-request-id": [ + "e2167050-dec6-4e29-8305-8cbaa6d78cdf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T061133Z:e2167050-dec6-4e29-8305-8cbaa6d78cdf" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json new file mode 100644 index 000000000000..3b8f8d91a74f --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationRunTests/CanGetRunById.json @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25SdW5zLzU5NTE1OWM3LTY0Y2ItNDM2Zi04OTJkLWI0NGIzMTk3MGY3YT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ffc42903-34ed-424d-a180-bdc6aa0e5de6" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurationRuns/595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"name\": \"595159c7-64cb-436f-892d-b44b31970f7a\",\r\n \"properties\": {\r\n \"softwareUpdateConfiguration\": {\r\n \"name\": \"all-01\"\r\n },\r\n \"status\": \"InProgress\",\r\n \"configuredDuration\": \"PT2H\",\r\n \"osType\": \"Windows\",\r\n \"startTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"endTime\": null,\r\n \"computerCount\": 2,\r\n \"failedCount\": 0,\r\n \"creationTime\": \"2017-12-03T22:01:01.9339046-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-03T22:01:03.79-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 06:06:34 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ffc42903-34ed-424d-a180-bdc6aa0e5de6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14823" + ], + "x-ms-correlation-request-id": [ + "38f63f40-a75c-43a2-a382-bf6967f9c4b0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T060634Z:38f63f40-a75c-43a2-a382-bf6967f9c4b0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json new file mode 100644 index 000000000000..e56eabfb7bc0 --- /dev/null +++ b/src/SDKs/Automation/Automation.Tests/SessionRecords/Automation.Tests.ScenarioTests.UpdateManagement.SoftwareUpdateConfigurationTests/CanCreateGetAndDelete.json @@ -0,0 +1,684 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical,Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-05T19:26:00Z\",\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"timeZone\": \"America/Los_Angeles\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "654" + ], + "x-ms-client-request-id": [ + "1c7d3d9f-df38-4ec2-a17f-4561c533db5a" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1248" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "1c7d3d9f-df38-4ec2-a17f-4561c533db5a" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a3525393-1d1f-4a20-8ae6-1f0abf1014a7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220554Z:a3525393-1d1f-4a20-8ae6-1f0abf1014a7" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6d3873d0-5ed5-4c07-b1e2-61039c087ae7" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.6933333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "6d3873d0-5ed5-4c07-b1e2-61039c087ae7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14971" + ], + "x-ms-correlation-request-id": [ + "63dfdbbb-5fb6-4a46-bc52-fc591deb2f70" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220554Z:63dfdbbb-5fb6-4a46-bc52-fc591deb2f70" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4d3c37da-0ba2-4a99-ba37-10a2602564ec" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Software update configuration not found\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4d3c37da-0ba2-4a99-ba37-10a2602564ec" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14967" + ], + "x-ms-correlation-request-id": [ + "85a9c2b0-6ee1-42fe-b1c7-7b2e8365c750" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220558Z:85a9c2b0-6ee1-42fe-b1c7-7b2e8365c750" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical,Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ]\r\n },\r\n \"scheduleInfo\": {\r\n \"startTime\": \"2018-05-05T19:26:00Z\",\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"timeZone\": \"America/Los_Angeles\"\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "797" + ], + "x-ms-client-request-id": [ + "f3859d38-faaf-4aea-9244-07c392f8fb27" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1386" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:54 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "f3859d38-faaf-4aea-9244-07c392f8fb27" + ], + "x-ms-location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview" + ], + "ocp-location": [ + "https://management.azure.com/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c295e267-1bf1-4f0b-8251-5955b264f603" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220555Z:c295e267-1bf1-4f0b-8251-5955b264f603" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ae4ff550-ff6a-49af-be76-1d87999b54d8" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": [\r\n \"KB123\",\r\n \"KB123\"\r\n ]\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"scheduleInfo\": {\r\n \"description\": null,\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"startTimeOffsetMinutes\": -420.0,\r\n \"expiryTime\": \"9999-12-31T15:59:00-08:00\",\r\n \"expiryTimeOffsetMinutes\": -480.0,\r\n \"isEnabled\": true,\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\",\r\n \"nextRunOffsetMinutes\": -420.0,\r\n \"interval\": 1,\r\n \"frequency\": \"Day\",\r\n \"creationTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.5533333-08:00\",\r\n \"timeZone\": \"America/Los_Angeles\",\r\n \"advancedSchedule\": null\r\n },\r\n \"provisioningState\": \"Provisioning\",\r\n \"createdBy\": \"\",\r\n \"error\": null,\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedBy\": null,\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "ae4ff550-ff6a-49af-be76-1d87999b54d8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14970" + ], + "x-ms-correlation-request-id": [ + "dd738c69-5fe9-4cc5-aa34-4db3addf36d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220555Z:dd738c69-5fe9-4cc5-aa34-4db3addf36d4" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4ccda381-e73c-4086-9fa3-1f665a5b7039" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"code\": \"NotFound\",\r\n \"message\": \"Software update configuration not found\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "71" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "4ccda381-e73c-4086-9fa3-1f665a5b7039" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14966" + ], + "x-ms-correlation-request-id": [ + "b5bbee98-1478-45fb-8732-56c3fc6178c0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220558Z:b5bbee98-1478-45fb-8732-56c3fc6178c0" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "809350a3-8cc4-45ce-a4b3-a5f4c089e98d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/all-01\",\r\n \"name\": \"all-01\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T16:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T15:50:29.5066667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T15:50:43.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:00:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/third\",\r\n \"name\": \"third\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T15:05:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:46:00.49-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:46:00.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:05:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002\",\r\n \"name\": \"test-suc-002\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:54.6166667-08:00\",\r\n \"provisioningState\": \"Provisioning\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-02\",\r\n \"name\": \"test-suc-02\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-11-29T23:27:55.3433333-08:00\",\r\n \"lastModifiedTime\": \"2017-11-29T23:28:22.7233333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test\",\r\n \"name\": \"test\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2018-11-30T01:19:00-08:00\",\r\n \"creationTime\": \"2017-11-30T00:50:02.7766667-08:00\",\r\n \"lastModifiedTime\": \"2017-11-30T00:50:03.0266667-08:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": \"2018-11-30T01:19:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/second\",\r\n \"name\": \"second\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T15:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:46.0433333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:46.2466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/first\",\r\n \"name\": \"first\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T14:50:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:12.5633333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:12.8466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/ttt\",\r\n \"name\": \"ttt\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-11-30T02:44:00-08:00\",\r\n \"creationTime\": \"2017-11-30T02:15:06.7666667-08:00\",\r\n \"lastModifiedTime\": \"2017-11-30T02:15:07.1266667-08:00\",\r\n \"provisioningState\": \"Failed\",\r\n \"nextRun\": null\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:55 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "809350a3-8cc4-45ce-a4b3-a5f4c089e98d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14969" + ], + "x-ms-correlation-request-id": [ + "c1e350fd-a6bf-4817-8661-a1b55a611383" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220555Z:c1e350fd-a6bf-4817-8661-a1b55a611383" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations?api-version=2017-05-15-preview&$filter=properties%2FupdateConfiguration%2FazureVirtualMachines%2Fany(m:%20m%20eq%20'%2Fsubscriptions%2F05fd3142-4b8e-4b16-8da9-98b4bbfd722d%2FresourceGroups%2Fcompute-01%2Fproviders%2FMicrosoft.Compute%2FvirtualMachines%2Fvm-arm-01')", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTctMDUtMTUtcHJldmlldyYkZmlsdGVyPXByb3BlcnRpZXMlMkZ1cGRhdGVDb25maWd1cmF0aW9uJTJGYXp1cmVWaXJ0dWFsTWFjaGluZXMlMkZhbnklMjhtJTNBJTIwbSUyMGVxJTIwJTI3JTJGc3Vic2NyaXB0aW9ucyUyRjA1ZmQzMTQyLTRiOGUtNGIxNi04ZGE5LTk4YjRiYmZkNzIyZCUyRnJlc291cmNlR3JvdXBzJTJGY29tcHV0ZS0wMSUyRnByb3ZpZGVycyUyRk1pY3Jvc29mdC5Db21wdXRlJTJGdmlydHVhbE1hY2hpbmVzJTJGdm0tYXJtLTAxJTI3JTI5", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5c0c0770-2ab1-4510-9f28-c8080c58f4f2" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/all-01\",\r\n \"name\": \"all-01\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T16:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T15:50:29.5066667-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T15:50:43.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:00:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/third\",\r\n \"name\": \"third\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Hour\",\r\n \"startTime\": \"2017-12-03T15:05:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:46:00.49-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:46:00.7566667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2017-12-04T15:05:00-08:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001\",\r\n \"name\": \"test-suc-001\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-12-04T14:05:53.71-08:00\",\r\n \"lastModifiedTime\": \"2017-12-04T14:05:53.8333333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-02\",\r\n \"name\": \"test-suc-02\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT3H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\",\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete/providers/Microsoft.Compute/virtualMachines/mo-arm-02\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"Day\",\r\n \"startTime\": \"2018-05-05T19:26:00-07:00\",\r\n \"creationTime\": \"2017-11-29T23:27:55.3433333-08:00\",\r\n \"lastModifiedTime\": \"2017-11-29T23:28:22.7233333-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": \"2018-05-05T19:26:00-07:00\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/second\",\r\n \"name\": \"second\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T15:00:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:46.0433333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:46.2466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/first\",\r\n \"name\": \"first\",\r\n \"properties\": {\r\n \"updateConfiguration\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"windows\": {\r\n \"includedUpdateClassifications\": \"Critical, Security, UpdateRollup, FeaturePack, ServicePack, Definition, Tools, Updates\",\r\n \"excludedKbNumbers\": null\r\n },\r\n \"linux\": null,\r\n \"duration\": \"PT2H\",\r\n \"azureVirtualMachines\": [\r\n \"/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/compute-01/providers/Microsoft.Compute/virtualMachines/vm-arm-01\"\r\n ],\r\n \"nonAzureComputerNames\": null\r\n },\r\n \"frequency\": \"OneTime\",\r\n \"startTime\": \"2017-12-03T14:50:00-08:00\",\r\n \"creationTime\": \"2017-12-03T14:44:12.5633333-08:00\",\r\n \"lastModifiedTime\": \"2017-12-03T14:44:12.8466667-08:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"nextRun\": null\r\n }\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "5c0c0770-2ab1-4510-9f28-c8080c58f4f2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14968" + ], + "x-ms-correlation-request-id": [ + "5a0814f5-49f1-4e29-8bbe-f0680135e43d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220557Z:5a0814f5-49f1-4e29-8bbe-f0680135e43d" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-001?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMT9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "953cddab-4797-44c3-8669-637c2e442b25" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:57 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "953cddab-4797-44c3-8669-637c2e442b25" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "45ff4e2b-373c-4a1d-be7f-91211b0212dc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220558Z:45ff4e2b-373c-4a1d-be7f-91211b0212dc" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/05fd3142-4b8e-4b16-8da9-98b4bbfd722d/resourceGroups/to-delete-01/providers/Microsoft.Automation/automationAccounts/fbs-aa-01/softwareUpdateConfigurations/test-suc-002?api-version=2017-05-15-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDVmZDMxNDItNGI4ZS00YjE2LThkYTktOThiNGJiZmQ3MjJkL3Jlc291cmNlR3JvdXBzL3RvLWRlbGV0ZS0wMS9wcm92aWRlcnMvTWljcm9zb2Z0LkF1dG9tYXRpb24vYXV0b21hdGlvbkFjY291bnRzL2Zicy1hYS0wMS9zb2Z0d2FyZVVwZGF0ZUNvbmZpZ3VyYXRpb25zL3Rlc3Qtc3VjLTAwMj9hcGktdmVyc2lvbj0yMDE3LTA1LTE1LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "28d677ed-aa73-4e28-9b87-4bed288ef47d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.25211.01", + "Microsoft.Azure.Management.Automation.AutomationClient/3.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 04 Dec 2017 22:05:58 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "Microsoft-IIS/8.5" + ], + "x-ms-request-id": [ + "28d677ed-aa73-4e28-9b87-4bed288ef47d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "65b58934-9fd6-49e7-a159-9c63d6204ac0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20171204T220558Z:65b58934-9fd6-49e7-a159-9c63d6204ac0" + ] + }, + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "05fd3142-4b8e-4b16-8da9-98b4bbfd722d" + } +} \ No newline at end of file diff --git a/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs b/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs index bebdf3c1f156..a58a8fd2aaae 100644 --- a/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs +++ b/src/SDKs/Automation/Automation.Tests/TestSupport/AutomationTestBase.cs @@ -37,13 +37,15 @@ public AutomationTestBase(MockContext context) Location = Location }); - AutomationClient.AutomationAccount.CreateOrUpdate( - ResourceGroup, AutomationAccount, new AutomationAccountCreateOrUpdateParameters + AutomationClient.AutomationAccount.CreateOrUpdate(ResourceGroup, AutomationAccount, + new AutomationAccountCreateOrUpdateParameters { Name = AutomationAccount, Location = Location, Sku = new Sku {Name = "Free", Family = "Test", Capacity = 1} }); + + AutomationClient.ResourceGroupName = ResourceGroup; } catch (CloudException ex) { @@ -62,7 +64,7 @@ public AutomationTestBase(MockContext context) public void CleanUpRunbooks() { - var runbooks = AutomationClient.Runbook.ListByAutomationAccount(ResourceGroup, AutomationAccount); + var runbooks = AutomationClient.Runbook.ListByAutomationAccount(AutomationAccount); foreach (var rb in runbooks) { @@ -72,7 +74,7 @@ public void CleanUpRunbooks() public void CleanUpSchedules() { - var schedules = AutomationClient.Schedule.ListByAutomationAccount(ResourceGroup, AutomationAccount); + var schedules = AutomationClient.Schedule.ListByAutomationAccount(AutomationAccount); foreach (var schedule in schedules) { @@ -82,7 +84,7 @@ public void CleanUpSchedules() public void CleanUpVariables() { - var variables = AutomationClient.Variable.ListByAutomationAccount(ResourceGroup, AutomationAccount); + var variables = AutomationClient.Variable.ListByAutomationAccount(AutomationAccount); foreach (var variable in variables) { @@ -93,7 +95,7 @@ public void CleanUpVariables() public void CleanUpWebhooks() { var webhooks = - AutomationClient.Webhook.ListByAutomationAccount(ResourceGroup, AutomationAccount); + AutomationClient.Webhook.ListByAutomationAccount(AutomationAccount); foreach (var webhook in webhooks) { @@ -104,8 +106,8 @@ public void CleanUpWebhooks() public Credential CreateCredential(string credentialName, string userName, string password, string description = null) { - var credential = AutomationClient.Credential.CreateOrUpdate(ResourceGroup, AutomationAccount, - credentialName, + var credential = AutomationClient.Credential.CreateOrUpdate(AutomationAccount, + credentialName, new CredentialCreateOrUpdateParameters(credentialName, userName, password, @@ -115,7 +117,7 @@ public Credential CreateCredential(string credentialName, string userName, strin public Webhook CreateWebhook(string webhookName, string runbookName, string uri, string description = null) { - var webhook = AutomationClient.Webhook.CreateOrUpdate(ResourceGroup, AutomationAccount, webhookName, + var webhook = AutomationClient.Webhook.CreateOrUpdate(AutomationAccount, webhookName, new WebhookCreateOrUpdateParameters { Name = webhookName, @@ -129,12 +131,12 @@ public Webhook CreateWebhook(string webhookName, string runbookName, string uri, public string GenerateUriForWebhook() { - return AutomationClient.Webhook.GenerateUri(ResourceGroup, AutomationAccount); + return AutomationClient.Webhook.GenerateUri(AutomationAccount); } public void CreateRunbook(string runbookName, string runbookContent, string description = null) { - AutomationClient.Runbook.CreateOrUpdate(ResourceGroup, AutomationAccount, runbookName, + AutomationClient.Runbook.CreateOrUpdate(AutomationAccount, runbookName, new RunbookCreateOrUpdateParameters { Name = runbookName, @@ -150,7 +152,7 @@ public void CreateRunbook(string runbookName, string runbookContent, string desc public Schedule CreateHourlySchedule(string scheduleName, DateTimeOffset startTime, DateTimeOffset expiryTime, string description = null, byte hourInterval = 1) { - var schedule = AutomationClient.Schedule.CreateOrUpdate(ResourceGroup, AutomationAccount, scheduleName, + var schedule = AutomationClient.Schedule.CreateOrUpdate(AutomationAccount, scheduleName, new ScheduleCreateOrUpdateParameters { Name = scheduleName, @@ -167,7 +169,7 @@ public Schedule CreateHourlySchedule(string scheduleName, DateTimeOffset startTi #region Module Methods public Module CreateAutomationModule(string moduleName, string contentLink) { - var module = AutomationClient.Module.CreateOrUpdate(ResourceGroup, AutomationAccount, moduleName, + var module = AutomationClient.Module.CreateOrUpdate(AutomationAccount, moduleName, new ModuleCreateOrUpdateParameters { Name = moduleName, @@ -180,7 +182,7 @@ public Module CreateAutomationModule(string moduleName, string contentLink) public Module GetAutomationModule(string moduleName) { - var module = AutomationClient.Module.Get(ResourceGroup, AutomationAccount, moduleName); + var module = AutomationClient.Module.Get(AutomationAccount, moduleName); return module; } @@ -188,7 +190,7 @@ public void DeleteModule(string moduleName, bool ignoreErrors = false) { try { - AutomationClient.Module.Delete(ResourceGroup, AutomationAccount, moduleName); + AutomationClient.Module.Delete(AutomationAccount, moduleName); } catch (ErrorResponseException) { @@ -206,13 +208,13 @@ public void DeleteModule(string moduleName, bool ignoreErrors = false) public Job WaitForJobCompletion(Guid jobId, string expectedState = "Completed", int numRetries = 50) { - var job = AutomationClient.Job.Get(ResourceGroup, AutomationAccount, jobId); + var job = AutomationClient.Job.Get(AutomationAccount, jobId); var endStates = new[] {"Stopped", "Suspended", "Failed", "Completed"}; var retry = 0; while (job.Status != expectedState && retry < numRetries && !Array.Exists(endStates, s => s == job.Status)) { TestUtilities.Wait(6000); - job = AutomationClient.Job.Get(ResourceGroup, AutomationAccount, jobId); + job = AutomationClient.Job.Get(AutomationAccount, jobId); retry++; } @@ -221,7 +223,7 @@ public Job WaitForJobCompletion(Guid jobId, string expectedState = "Completed", public void UpdateRunbook(Runbook runbook) { - AutomationClient.Runbook.Update(ResourceGroup, AutomationAccount, runbook.Name, new RunbookUpdateParameters + AutomationClient.Runbook.Update(AutomationAccount, runbook.Name, new RunbookUpdateParameters { Name = runbook.Name, Description = runbook.Description, @@ -233,18 +235,18 @@ public void UpdateRunbook(Runbook runbook) public void UpdateRunbookContent(string runbookName, string runbookContent) { var byteArray = Encoding.ASCII.GetBytes(runbookContent); - AutomationClient.RunbookDraft.BeginCreateOrUpdate(ResourceGroup, AutomationAccount, runbookName, + AutomationClient.RunbookDraft.BeginCreateOrUpdate(AutomationAccount, runbookName, new MemoryStream(byteArray)); } public void PublishRunbook(string runbookName) { - AutomationClient.RunbookDraft.BeginPublish(ResourceGroup, AutomationAccount, runbookName); + AutomationClient.RunbookDraft.BeginPublish(AutomationAccount, runbookName); } public Job StartRunbook(string runbookName, IDictionary parameters = null) { - var job = AutomationClient.Job.Create(ResourceGroup, AutomationAccount, Guid.NewGuid(), + var job = AutomationClient.Job.Create(AutomationAccount, Guid.NewGuid(), new JobCreateParameters { Name = runbookName, @@ -261,20 +263,20 @@ public IPage GetJobStreams(Guid jobId, string streamType, DateTime st public Runbook GetRunbook(string runbookName) { - var runbook = AutomationClient.Runbook.Get(ResourceGroup, AutomationAccount, runbookName); + var runbook = AutomationClient.Runbook.Get(AutomationAccount, runbookName); return runbook; } public Stream GetRunbookContent(string runbookName) { var runbookContentStream = - AutomationClient.RunbookDraft.GetContent(ResourceGroup, AutomationAccount, runbookName); + AutomationClient.RunbookDraft.GetContent(AutomationAccount, runbookName); return runbookContentStream; } public void DeleteRunbook(string runbookName) { - AutomationClient.Runbook.Delete(ResourceGroup, AutomationAccount, runbookName); + AutomationClient.Runbook.Delete(AutomationAccount, runbookName); } #endregion @@ -283,7 +285,7 @@ public void DeleteRunbook(string runbookName) public void UpdateVariable(Variable variable) { - AutomationClient.Variable.Update(ResourceGroup, AutomationAccount, + AutomationClient.Variable.Update(AutomationAccount, variable.Name, new VariableUpdateParameters { Value = variable.Value, @@ -294,7 +296,7 @@ public void UpdateVariable(Variable variable) public void DeleteVariable(string variableName) { - AutomationClient.Variable.Delete(ResourceGroup, AutomationAccount, variableName); + AutomationClient.Variable.Delete(AutomationAccount, variableName); } #endregion @@ -303,7 +305,7 @@ public void DeleteVariable(string variableName) public void UpdateSchedule(Schedule schedule) { - AutomationClient.Schedule.Update(ResourceGroup, AutomationAccount, schedule.Name, + AutomationClient.Schedule.Update(AutomationAccount, schedule.Name, new ScheduleUpdateParameters { Name = schedule.Name, @@ -314,13 +316,13 @@ public void UpdateSchedule(Schedule schedule) public Schedule GetSchedule(string scheduleName) { - var schedule = AutomationClient.Schedule.Get(ResourceGroup, AutomationAccount, scheduleName); + var schedule = AutomationClient.Schedule.Get(AutomationAccount, scheduleName); return schedule; } public void DeleteSchedule(string scheduleName) { - AutomationClient.Schedule.Delete(ResourceGroup, AutomationAccount, scheduleName); + AutomationClient.Schedule.Delete(AutomationAccount, scheduleName); } #endregion @@ -329,19 +331,19 @@ public void DeleteSchedule(string scheduleName) public Credential GetCredential(string credentialName) { - return AutomationClient.Credential.Get(ResourceGroup, AutomationAccount, credentialName); + return AutomationClient.Credential.Get(AutomationAccount, credentialName); } public IPage GetCredentials() { IPage credentials = - AutomationClient.Credential.ListByAutomationAccount(ResourceGroup, AutomationAccount); + AutomationClient.Credential.ListByAutomationAccount(AutomationAccount); return credentials; } public void UpdateCredential(Credential credential, string password = null, string userName = null) { - AutomationClient.Credential.Update(ResourceGroup, AutomationAccount, credential.Name, + AutomationClient.Credential.Update(AutomationAccount, credential.Name, new CredentialUpdateParameters { Name = userName, @@ -353,7 +355,7 @@ public void UpdateCredential(Credential credential, string password = null, stri public void CleanUpCredentials() { - var credentials = AutomationClient.Credential.ListByAutomationAccount(ResourceGroup, AutomationAccount); + var credentials = AutomationClient.Credential.ListByAutomationAccount(AutomationAccount); foreach (var cr in credentials) { @@ -363,7 +365,7 @@ public void CleanUpCredentials() public Variable CreateVariable(string variableName, object value, string description = null) { - var variable = AutomationClient.Variable.CreateOrUpdate(ResourceGroup, AutomationAccount, variableName, + var variable = AutomationClient.Variable.CreateOrUpdate(AutomationAccount, variableName, new VariableCreateOrUpdateParameters { Name = variableName, @@ -376,7 +378,7 @@ public Variable CreateVariable(string variableName, object value, string descrip public void DeleteCredential(string credentialName) { - AutomationClient.Credential.Delete(ResourceGroup, AutomationAccount, credentialName); + AutomationClient.Credential.Delete(AutomationAccount, credentialName); } #endregion @@ -385,24 +387,24 @@ public void DeleteCredential(string credentialName) public Variable GetVariable(string variableName) { - var variable = AutomationClient.Variable.Get(ResourceGroup, AutomationAccount, variableName); + var variable = AutomationClient.Variable.Get(AutomationAccount, variableName); return variable; } public IPage GetVariables() { - var variables = AutomationClient.Variable.ListByAutomationAccount(ResourceGroup, AutomationAccount); + var variables = AutomationClient.Variable.ListByAutomationAccount(AutomationAccount); return variables; } public void DeleteWebhook(string webhookName) { - AutomationClient.Webhook.Delete(ResourceGroup, AutomationAccount, webhookName); + AutomationClient.Webhook.Delete(AutomationAccount, webhookName); } public void UpdateWebhook(Webhook webhook) { - AutomationClient.Webhook.Update(ResourceGroup, AutomationAccount, webhook.Name, new WebhookUpdateParameters + AutomationClient.Webhook.Update(AutomationAccount, webhook.Name, new WebhookUpdateParameters { Name = webhook.Name, IsEnabled = webhook.IsEnabled @@ -421,13 +423,13 @@ public IPage GetWebhooks(string runbookName = null) { filter = string.Join(null, odataFilter); } - var webhooks = AutomationClient.Webhook.ListByAutomationAccount(ResourceGroup, AutomationAccount, filter); + var webhooks = AutomationClient.Webhook.ListByAutomationAccount(AutomationAccount, filter); return webhooks; } public Webhook GetWebhook(string webhookName) { - var webhook = AutomationClient.Webhook.Get(ResourceGroup, AutomationAccount, webhookName); + var webhook = AutomationClient.Webhook.Get(AutomationAccount, webhookName); return webhook; } @@ -439,7 +441,7 @@ public DscConfiguration CreateDscConfiguration(string configName, string configC string description = null, string contentHashValue = null, string contentHashAlgorithm = "sha256", string contentType = null) { - return AutomationClient.DscConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, configName, + return AutomationClient.DscConfiguration.CreateOrUpdate(AutomationAccount, configName, new DscConfigurationCreateOrUpdateParameters { Location = Location, @@ -460,26 +462,26 @@ public DscConfiguration CreateDscConfiguration(string configName, string configC public DscConfiguration GetDscConfiguration(string configName) { - return AutomationClient.DscConfiguration.Get(ResourceGroup, AutomationAccount, configName); + return AutomationClient.DscConfiguration.Get(AutomationAccount, configName); } public IPage GetDscConfigurations() { var dscConfigurations = - AutomationClient.DscConfiguration.ListByAutomationAccount(ResourceGroup, AutomationAccount); + AutomationClient.DscConfiguration.ListByAutomationAccount(AutomationAccount); return dscConfigurations; } public void DeleteDscConfiguration(string configName) { - AutomationClient.DscConfiguration.Delete(ResourceGroup, AutomationAccount, configName); + AutomationClient.DscConfiguration.Delete(AutomationAccount, configName); } public void UpdateDscConfiguration(DscConfiguration configuration, string configContent, string description = null, string contentHashValue = null, string contentHashAlgorithm = "sha256", string contentType = null) { - AutomationClient.DscConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, configuration.Name, + AutomationClient.DscConfiguration.CreateOrUpdate(AutomationAccount, configuration.Name, new DscConfigurationCreateOrUpdateParameters { Description = configuration.Description, @@ -506,7 +508,7 @@ public DscNodeConfiguration CreateDscNodeConfiguration(string nodeConfigurationN string nodeConfigurationContent, string contentHashValue, string contentHashAlgorithm, string contentType, string contentVersion) { - return AutomationClient.DscNodeConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, + return AutomationClient.DscNodeConfiguration.CreateOrUpdate(AutomationAccount, nodeConfigurationName, new DscNodeConfigurationCreateOrUpdateParameters { Name = nodeConfigurationName, @@ -527,13 +529,13 @@ public DscNodeConfiguration CreateDscNodeConfiguration(string nodeConfigurationN public DscNodeConfiguration GetDscNodeConfiguration(string nodeConfigName) { - return AutomationClient.DscNodeConfiguration.Get(ResourceGroup, AutomationAccount, nodeConfigName); + return AutomationClient.DscNodeConfiguration.Get(AutomationAccount, nodeConfigName); } public void UpdateDscNodeConfiguration(DscNodeConfiguration nodeConfig, string configContent, string contentHashValue, string contentHashAlgorithm, string contentType, string contentVersion) { - AutomationClient.DscNodeConfiguration.CreateOrUpdate(ResourceGroup, AutomationAccount, + AutomationClient.DscNodeConfiguration.CreateOrUpdate(AutomationAccount, nodeConfig.Name, new DscNodeConfigurationCreateOrUpdateParameters { Name = nodeConfig.Name, @@ -554,12 +556,12 @@ public void UpdateDscNodeConfiguration(DscNodeConfiguration nodeConfig, string c public void DeleteDscNodeConfiguration(string configName) { - AutomationClient.DscNodeConfiguration.Delete(ResourceGroup, AutomationAccount, configName); + AutomationClient.DscNodeConfiguration.Delete(AutomationAccount, configName); } public IPage GetDscNodeConfigurations() { - return AutomationClient.DscNodeConfiguration.ListByAutomationAccount(ResourceGroup, AutomationAccount); + return AutomationClient.DscNodeConfiguration.ListByAutomationAccount(AutomationAccount); } #endregion diff --git a/src/SDKs/Automation/AzSdk.RP.props b/src/SDKs/Automation/AzSdk.RP.props new file mode 100644 index 000000000000..64fb487883be --- /dev/null +++ b/src/SDKs/Automation/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + Automation_2015-10-31;Automation_2017-05-15-preview; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs new file mode 100644 index 000000000000..d9e4b767d781 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs @@ -0,0 +1,173 @@ +namespace Microsoft.Azure.Management.Automation +{ + using System.Threading; + using System.Threading.Tasks; + + using Microsoft.Azure.Management.Automation.Models; + using System; + + /// + /// Extension methods for SoftwareUpdateConfigurationRunsOperations. + /// + public static partial class SoftwareUpdateConfigurationMachineRunsOperationsExtensions + { + private const string StatusProperty = "status"; + private const string CorrelationIdProperty = "correlationId"; + private const string TargetComputerProperty = "targetComputer"; + private const string FilterFormatEqual = "properties/{0} eq {1}"; + private const string FilterFormatStringEqual = "properties/{0} eq '{1}'"; + + #region status filtering + /// + /// Return list of software update configuration machine runs with the given the status + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// status of the machine run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationMachineRunListResult ListByStatus(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string status, string skip = default(string), string top = default(string)) + { + return operations.ListByStatusAsync(status, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration machine runs with the given the status + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Status of the machine run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByStatusAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string status, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatStringEqual, StatusProperty, status); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + + #region correlationId filtering + /// + /// Return list of software update configuration machine runs corresponding to the software update configuration run with the given correlation id + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Id of the parent software update configuration run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationMachineRunListResult ListByCorrelationId(this ISoftwareUpdateConfigurationMachineRunsOperations operations, Guid correlationId, string skip = default(string), string top = default(string)) + { + return operations.ListByCorrelationIdAsync(correlationId, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration machine runs corresponding to the software update configuration run with the given correlation id + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Id of the parent software update configuration run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByCorrelationIdAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, Guid correlationId, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatEqual, CorrelationIdProperty, correlationId); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + + #region targetComputer filtering + /// + /// Return list of software update configuration machine runs targeting the given computer + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The computer osType targeted by this machine run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationMachineRunListResult ListByTargetComputer(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string osType, string skip = default(string), string top = default(string)) + { + return operations.ListByTargetComputerAsync(osType, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration machine runs targeting the given computer + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// The computer targeted by this machine run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByTargetComputerAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string targetComputer, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatStringEqual, TargetComputerProperty, targetComputer); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + } +} diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs new file mode 100644 index 000000000000..b05f7f953d84 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationRunsOperationsExtensions.cs @@ -0,0 +1,225 @@ +namespace Microsoft.Azure.Management.Automation +{ + using System.Threading; + using System.Threading.Tasks; + + using Microsoft.Azure.Management.Automation.Models; + using System; + + /// + /// Extension methods for SoftwareUpdateConfigurationRunsOperations. + /// + public static partial class SoftwareUpdateConfigurationRunsOperationsExtensions + { + private const string ConfigurationNameProperty = "softwareUpdateConfiguration/name"; + private const string OsTypeProperty = "osType"; + private const string StatusProperty = "status"; + private const string StartTimeProperty = "startTime"; + private const string FilterFormatStringEqual = "properties/{0} eq '{1}'"; + private const string FilterFormatGreaterEqual = "properties/{0} ge {1}"; // No commas in {1} is intentional! + + #region configurationName filtering + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the software update configuration triggered this run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationRunListResult ListByConfigurationName(this ISoftwareUpdateConfigurationRunsOperations operations, string configurationName, string skip = default(string), string top = default(string)) + { + return operations.ListByConfigurationNameAsync(configurationName, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the software update configuration triggered this run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByConfigurationNameAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string configurationName, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatStringEqual, ConfigurationNameProperty, configurationName); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + + #region osType filtering + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Operating system type + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationRunListResult ListByOsType(this ISoftwareUpdateConfigurationRunsOperations operations, string osType, string skip = default(string), string top = default(string)) + { + return operations.ListByOsTypeAsync(osType, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Operating system type + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByOsTypeAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string osType, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatStringEqual, OsTypeProperty, osType); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + + #region status filtering + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// status of the run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationRunListResult ListByStatus(this ISoftwareUpdateConfigurationRunsOperations operations, string status, string skip = default(string), string top = default(string)) + { + return operations.ListByStatusAsync(status, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration runs triggered by the software update configuration with the given name + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Status of the run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByStatusAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string status, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatStringEqual, StatusProperty, status); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + + #region startTime filtering + /// + /// Return list of software update configuration runs started at or after the given time + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// start time of the run + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + public static SoftwareUpdateConfigurationRunListResult ListByStartTime(this ISoftwareUpdateConfigurationRunsOperations operations, DateTime startTime, string skip = default(string), string top = default(string)) + { + return operations.ListByStartTimeAsync(startTime, skip, top).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configuration runs started at or after the given time + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Start time + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByStartTimeAsync(this ISoftwareUpdateConfigurationRunsOperations operations, DateTime startTime, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(FilterFormatGreaterEqual, StartTimeProperty, startTime.ToString("o")); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + #endregion + } +} diff --git a/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs new file mode 100644 index 000000000000..fe4fe1b9a018 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Customization/SoftwareUpdateConfigurationsOperationsExtensions.cs @@ -0,0 +1,60 @@ +namespace Microsoft.Azure.Management.Automation +{ + using System.Threading; + using System.Threading.Tasks; + + using Microsoft.Azure.Management.Automation.Models; + using System; + + /// + /// Extension methods for SoftwareUpdateConfigurationRunsOperations. + /// + public static partial class SoftwareUpdateConfigurationsOperationsExtensions + { + private const string AzureVirtualMachinesProperty = "updateConfiguration/azureVirtualMachines"; + private const string LambdaFilterFormat = "properties/{0}/any(m: m eq '{1}')"; + + /// + /// Return list of software update configurations targetting the given virtual machine + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure resource manager Id of the virtual machine + /// + public static SoftwareUpdateConfigurationListResult ListByAzureVirtualMachine(this ISoftwareUpdateConfigurationsOperations operations, string virtualMachineId) + { + return operations.ListByAzureVirtualMachineAsync(virtualMachineId).GetAwaiter().GetResult(); + } + + /// + /// Return list of software update configurations targetting the given virtual machine + /// + /// + /// + /// The operations group for this extension method. + /// + /// + /// Azure resource manager Id of the virtual machine + /// + /// + /// number of entries you skip before returning results + /// + /// + /// Maximum number of entries returned in the results collection + /// + /// + /// The cancellation token. + /// + public static async Task ListByAzureVirtualMachineAsync(this ISoftwareUpdateConfigurationsOperations operations, string virtualMachineId, string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + var filter = string.Format(LambdaFilterFormat, AzureVirtualMachinesProperty, virtualMachineId); + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs index b9a2c59e0f01..24dd0e968dc9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal ActivityOperations(AutomationClient client) /// name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -88,17 +85,17 @@ internal ActivityOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -125,7 +122,6 @@ internal ActivityOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("activityName", activityName); @@ -136,7 +132,7 @@ internal ActivityOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities/{activityName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{activityName}", System.Uri.EscapeDataString(activityName)); @@ -270,9 +266,6 @@ internal ActivityOperations(AutomationClient client) /// Retrieve a list of activities in the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -300,17 +293,17 @@ internal ActivityOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByModuleWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByModuleWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -333,7 +326,6 @@ internal ActivityOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("apiVersion", apiVersion); @@ -343,7 +335,7 @@ internal ActivityOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/activities").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs index 025383862f8b..f05b9d82236f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ActivityOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,9 +29,6 @@ public static partial class ActivityOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -41,9 +38,9 @@ public static partial class ActivityOperationsExtensions /// /// The name of activity. /// - public static Activity Get(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName) + public static Activity Get(this IActivityOperations operations, string automationAccountName, string moduleName, string activityName) { - return operations.GetAsync(resourceGroupName, automationAccountName, moduleName, activityName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, moduleName, activityName).GetAwaiter().GetResult(); } /// @@ -54,9 +51,6 @@ public static Activity Get(this IActivityOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -69,9 +63,9 @@ public static Activity Get(this IActivityOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task GetAsync(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IActivityOperations operations, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, activityName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, moduleName, activityName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -84,18 +78,15 @@ public static Activity Get(this IActivityOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of module. /// - public static IPage ListByModule(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName) + public static IPage ListByModule(this IActivityOperations operations, string automationAccountName, string moduleName) { - return operations.ListByModuleAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult(); + return operations.ListByModuleAsync(automationAccountName, moduleName).GetAwaiter().GetResult(); } /// @@ -105,9 +96,6 @@ public static IPage ListByModule(this IActivityOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -117,9 +105,9 @@ public static IPage ListByModule(this IActivityOperations operations, /// /// The cancellation token. /// - public static async Task> ListByModuleAsync(this IActivityOperations operations, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByModuleAsync(this IActivityOperations operations, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByModuleWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByModuleWithHttpMessagesAsync(automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs index 04569818506e..5689dc51325e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client) /// Retrieve the automation agent registration information. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal AgentRegistrationInformationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -110,7 +107,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -119,7 +115,7 @@ internal AgentRegistrationInformationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); @@ -251,9 +247,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client) /// Regenerate a primary or secondary agent registration key /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -281,17 +274,17 @@ internal AgentRegistrationInformationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RegenerateKeyWithHttpMessagesAsync(string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -318,7 +311,6 @@ internal AgentRegistrationInformationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("apiVersion", apiVersion); @@ -328,7 +320,7 @@ internal AgentRegistrationInformationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs index 86cf5f87cfef..7ab995debfca 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AgentRegistrationInformationOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,15 +28,12 @@ public static partial class AgentRegistrationInformationOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static AgentRegistration Get(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName) + public static AgentRegistration Get(this IAgentRegistrationInformationOperations operations, string automationAccountName) { - return operations.GetAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -46,18 +43,15 @@ public static AgentRegistration Get(this IAgentRegistrationInformationOperations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IAgentRegistrationInformationOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -70,18 +64,15 @@ public static AgentRegistration Get(this IAgentRegistrationInformationOperations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of the agent registration key to be regenerated /// - public static AgentRegistration RegenerateKey(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters) + public static AgentRegistration RegenerateKey(this IAgentRegistrationInformationOperations operations, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters) { - return operations.RegenerateKeyAsync(resourceGroupName, automationAccountName, parameters).GetAwaiter().GetResult(); + return operations.RegenerateKeyAsync(automationAccountName, parameters).GetAwaiter().GetResult(); } /// @@ -91,9 +82,6 @@ public static AgentRegistration RegenerateKey(this IAgentRegistrationInformation /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -103,9 +91,9 @@ public static AgentRegistration RegenerateKey(this IAgentRegistrationInformation /// /// The cancellation token. /// - public static async Task RegenerateKeyAsync(this IAgentRegistrationInformationOperations operations, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RegenerateKeyAsync(this IAgentRegistrationInformationOperations operations, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, automationAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(automationAccountName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs index 9b84020c82a5..3ecc457a5de6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -414,7 +414,7 @@ internal AutomationAccountOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -452,7 +452,7 @@ internal AutomationAccountOperations(AutomationClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -470,7 +470,7 @@ internal AutomationAccountOperations(AutomationClient client) } } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs index 680196d18034..2753f82b8ecc 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationAccountOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs index d157eca72ec5..067845330cbb 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/AutomationClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; @@ -54,39 +54,19 @@ public partial class AutomationClient : ServiceClient, IAutoma public string SubscriptionId { get; set; } /// - /// Identifies this specific client request. - /// - public string ClientRequestId { get; set; } - - /// - /// The name of the automation account. - /// - public System.Guid AutomationAccountName { get; set; } - - /// - /// The name of the resource group within user's subscription. + /// The resource group name. /// - public string ResourceGroupName1 { get; set; } + public string ResourceGroupName { get; set; } /// - /// subscription id for tenant issuing the request. - /// - public System.Guid SubscriptionId1 { get; set; } - - /// - /// The name of the software update configuration to be created. - /// - public string SoftwareUpdateConfigurationName { get; set; } - - /// - /// The Id of the software update configuration run. + /// Identifies this specific client request. /// - public System.Guid SoftwareUpdateConfigurationRunId { get; set; } + public string ClientRequestId { get; set; } /// - /// The Id of the software update configuration machine run. + /// The name of the automation account. /// - public System.Guid SoftwareUpdateConfigurationMachineRunId { get; set; } + public string AutomationAccountName { get; set; } /// /// Gets or sets the preferred language for the response. @@ -498,7 +478,7 @@ private void Initialize() SoftwareUpdateConfigurations = new SoftwareUpdateConfigurationsOperations(this); SoftwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsOperations(this); SoftwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsOperations(this); - BaseUri = new System.Uri("https://management.azure.com/"); + BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; @@ -528,8 +508,6 @@ private void Initialize() new Iso8601TimeSpanConverter() } }; - SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("operatingSystem")); - DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("operatingSystem")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); diff --git a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs index f1c1b7224267..0fbfc1f1fd33 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal CertificateOperations(AutomationClient client) /// Delete the certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal CertificateOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal CertificateOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("certificateName", certificateName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal CertificateOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal CertificateOperations(AutomationClient client) /// Retrieve the certificate identified by certificate name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal CertificateOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal CertificateOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("certificateName", certificateName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal CertificateOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal CertificateOperations(AutomationClient client) /// Create a certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal CertificateOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -519,7 +508,6 @@ internal CertificateOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("certificateName", certificateName); tracingParameters.Add("parameters", parameters); @@ -530,7 +518,7 @@ internal CertificateOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -603,7 +591,7 @@ internal CertificateOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -641,7 +629,7 @@ internal CertificateOperations(AutomationClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -659,7 +647,7 @@ internal CertificateOperations(AutomationClient client) } } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -687,9 +675,6 @@ internal CertificateOperations(AutomationClient client) /// Update a certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -720,17 +705,17 @@ internal CertificateOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -757,7 +742,6 @@ internal CertificateOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("certificateName", certificateName); tracingParameters.Add("parameters", parameters); @@ -768,7 +752,7 @@ internal CertificateOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{certificateName}", System.Uri.EscapeDataString(certificateName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -907,9 +891,6 @@ internal CertificateOperations(AutomationClient client) /// Retrieve a list of certificates. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -934,17 +915,17 @@ internal CertificateOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -963,7 +944,6 @@ internal CertificateOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -972,7 +952,7 @@ internal CertificateOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs index 1fc8c9d3eb7c..3f4fda2b7c75 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/CertificateOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class CertificateOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of certificate. /// - public static void Delete(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName) + public static void Delete(this ICertificateOperations operations, string automationAccountName, string certificateName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, certificateName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, certificateName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this ICertificateOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this ICertificateOperations operations, string resourc /// /// The cancellation token. /// - public static async Task DeleteAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this ICertificateOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of certificate. /// - public static Certificate Get(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName) + public static Certificate Get(this ICertificateOperations operations, string automationAccountName, string certificateName) { - return operations.GetAsync(resourceGroupName, automationAccountName, certificateName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, certificateName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static Certificate Get(this ICertificateOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static Certificate Get(this ICertificateOperations operations, string res /// /// The cancellation token. /// - public static async Task GetAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, certificateName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static Certificate Get(this ICertificateOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static Certificate Get(this ICertificateOperations operations, string res /// /// The parameters supplied to the create or update certificate operation. /// - public static Certificate CreateOrUpdate(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters) + public static Certificate CreateOrUpdate(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, certificateName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, certificateName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations, /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,9 +157,6 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -187,9 +166,9 @@ public static Certificate CreateOrUpdate(this ICertificateOperations operations, /// /// The parameters supplied to the update certificate operation. /// - public static Certificate Update(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters) + public static Certificate Update(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, certificateName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, certificateName, parameters).GetAwaiter().GetResult(); } /// @@ -199,9 +178,6 @@ public static Certificate Update(this ICertificateOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -214,9 +190,9 @@ public static Certificate Update(this ICertificateOperations operations, string /// /// The cancellation token. /// - public static async Task UpdateAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ICertificateOperations operations, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, certificateName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -229,15 +205,12 @@ public static Certificate Update(this ICertificateOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this ICertificateOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this ICertificateOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this ICertificateOperat /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this ICertificateOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this ICertificateOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs index bf197935afcc..f5d126a04eec 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal ConnectionOperations(AutomationClient client) /// Delete the connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -84,17 +81,17 @@ internal ConnectionOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -117,7 +114,6 @@ internal ConnectionOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionName", connectionName); tracingParameters.Add("apiVersion", apiVersion); @@ -127,7 +123,7 @@ internal ConnectionOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -260,9 +256,6 @@ internal ConnectionOperations(AutomationClient client) /// Retrieve the connection identified by connection name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -290,17 +283,17 @@ internal ConnectionOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -323,7 +316,6 @@ internal ConnectionOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionName", connectionName); tracingParameters.Add("apiVersion", apiVersion); @@ -333,7 +325,7 @@ internal ConnectionOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -466,9 +458,6 @@ internal ConnectionOperations(AutomationClient client) /// Create or update a connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -499,17 +488,17 @@ internal ConnectionOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -540,7 +529,6 @@ internal ConnectionOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionName", connectionName); tracingParameters.Add("parameters", parameters); @@ -551,7 +539,7 @@ internal ConnectionOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -624,7 +612,7 @@ internal ConnectionOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -662,7 +650,7 @@ internal ConnectionOperations(AutomationClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -680,7 +668,7 @@ internal ConnectionOperations(AutomationClient client) } } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -708,9 +696,6 @@ internal ConnectionOperations(AutomationClient client) /// Update a connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -741,17 +726,17 @@ internal ConnectionOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -778,7 +763,6 @@ internal ConnectionOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionName", connectionName); tracingParameters.Add("parameters", parameters); @@ -789,7 +773,7 @@ internal ConnectionOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionName}", System.Uri.EscapeDataString(connectionName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -928,9 +912,6 @@ internal ConnectionOperations(AutomationClient client) /// Retrieve a list of connections. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -955,17 +936,17 @@ internal ConnectionOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -984,7 +965,6 @@ internal ConnectionOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -993,7 +973,7 @@ internal ConnectionOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs index 287b7e1f04c2..4fbcfe8fa382 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class ConnectionOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of connection. /// - public static Connection Delete(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName) + public static Connection Delete(this IConnectionOperations operations, string automationAccountName, string connectionName) { - return operations.DeleteAsync(resourceGroupName, automationAccountName, connectionName).GetAwaiter().GetResult(); + return operations.DeleteAsync(automationAccountName, connectionName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static Connection Delete(this IConnectionOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static Connection Delete(this IConnectionOperations operations, string re /// /// The cancellation token. /// - public static async Task DeleteAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -76,18 +70,15 @@ public static Connection Delete(this IConnectionOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of connection. /// - public static Connection Get(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName) + public static Connection Get(this IConnectionOperations operations, string automationAccountName, string connectionName) { - return operations.GetAsync(resourceGroupName, automationAccountName, connectionName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, connectionName).GetAwaiter().GetResult(); } /// @@ -97,9 +88,6 @@ public static Connection Get(this IConnectionOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,9 +97,9 @@ public static Connection Get(this IConnectionOperations operations, string resou /// /// The cancellation token. /// - public static async Task GetAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, connectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -124,9 +112,6 @@ public static Connection Get(this IConnectionOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -136,9 +121,9 @@ public static Connection Get(this IConnectionOperations operations, string resou /// /// The parameters supplied to the create or update connection operation. /// - public static Connection CreateOrUpdate(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters) + public static Connection CreateOrUpdate(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, connectionName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, connectionName, parameters).GetAwaiter().GetResult(); } /// @@ -148,9 +133,6 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -163,9 +145,9 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -178,9 +160,6 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -190,9 +169,9 @@ public static Connection CreateOrUpdate(this IConnectionOperations operations, s /// /// The parameters supplied to the update a connection operation. /// - public static Connection Update(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters) + public static Connection Update(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, connectionName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, connectionName, parameters).GetAwaiter().GetResult(); } /// @@ -202,9 +181,6 @@ public static Connection Update(this IConnectionOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -217,9 +193,9 @@ public static Connection Update(this IConnectionOperations operations, string re /// /// The cancellation token. /// - public static async Task UpdateAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IConnectionOperations operations, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, connectionName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -232,15 +208,12 @@ public static Connection Update(this IConnectionOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IConnectionOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IConnectionOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -250,18 +223,15 @@ public static IPage ListByAutomationAccount(this IConnectionOperatio /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IConnectionOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IConnectionOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs index 7b8968c23ac0..cb6a414f3031 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal ConnectionTypeOperations(AutomationClient client) /// Delete the connectiontype. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal ConnectionTypeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal ConnectionTypeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionTypeName", connectionTypeName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal ConnectionTypeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal ConnectionTypeOperations(AutomationClient client) /// Retrieve the connectiontype identified by connectiontype name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal ConnectionTypeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal ConnectionTypeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionTypeName", connectionTypeName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal ConnectionTypeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal ConnectionTypeOperations(AutomationClient client) /// Create a connectiontype. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal ConnectionTypeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -519,7 +508,6 @@ internal ConnectionTypeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("connectionTypeName", connectionTypeName); tracingParameters.Add("parameters", parameters); @@ -530,7 +518,7 @@ internal ConnectionTypeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{connectionTypeName}", System.Uri.EscapeDataString(connectionTypeName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -687,9 +675,6 @@ internal ConnectionTypeOperations(AutomationClient client) /// Retrieve a list of connectiontypes. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -714,17 +699,17 @@ internal ConnectionTypeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -743,7 +728,6 @@ internal ConnectionTypeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -752,7 +736,7 @@ internal ConnectionTypeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs index 591107abfa49..293f94b7c8e6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ConnectionTypeOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class ConnectionTypeOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of connectiontype. /// - public static void Delete(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName) + public static void Delete(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, connectionTypeName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, connectionTypeName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this IConnectionTypeOperations operations, string reso /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this IConnectionTypeOperations operations, string reso /// /// The cancellation token. /// - public static async Task DeleteAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this IConnectionTypeOperations operations, string reso /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of connectiontype. /// - public static ConnectionType Get(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName) + public static ConnectionType Get(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName) { - return operations.GetAsync(resourceGroupName, automationAccountName, connectionTypeName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, connectionTypeName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri /// /// The cancellation token. /// - public static async Task GetAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, connectionTypeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static ConnectionType Get(this IConnectionTypeOperations operations, stri /// /// The parameters supplied to the create or update connectiontype operation. /// - public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters) + public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, connectionTypeName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, connectionTypeName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IConnectionTypeOperations operations, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, connectionTypeName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, connectionTypeName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,15 +157,12 @@ public static ConnectionType CreateOrUpdate(this IConnectionTypeOperations opera /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IConnectionTypeOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -193,18 +172,15 @@ public static IPage ListByAutomationAccount(this IConnectionType /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IConnectionTypeOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IConnectionTypeOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs index 0101f4198906..8c9a1a382f2c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal CredentialOperations(AutomationClient client) /// Delete the credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal CredentialOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal CredentialOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("credentialName", credentialName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal CredentialOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal CredentialOperations(AutomationClient client) /// Retrieve the credential identified by credential name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal CredentialOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal CredentialOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("credentialName", credentialName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal CredentialOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal CredentialOperations(AutomationClient client) /// Create a credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal CredentialOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -519,7 +508,6 @@ internal CredentialOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("credentialName", credentialName); tracingParameters.Add("parameters", parameters); @@ -530,7 +518,7 @@ internal CredentialOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -603,7 +591,7 @@ internal CredentialOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -641,7 +629,7 @@ internal CredentialOperations(AutomationClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -659,7 +647,7 @@ internal CredentialOperations(AutomationClient client) } } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -687,9 +675,6 @@ internal CredentialOperations(AutomationClient client) /// Update a credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -720,17 +705,17 @@ internal CredentialOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -757,7 +742,6 @@ internal CredentialOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("credentialName", credentialName); tracingParameters.Add("parameters", parameters); @@ -768,7 +752,7 @@ internal CredentialOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -907,9 +891,6 @@ internal CredentialOperations(AutomationClient client) /// Retrieve a list of credentials. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -934,17 +915,17 @@ internal CredentialOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -963,7 +944,6 @@ internal CredentialOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -972,7 +952,7 @@ internal CredentialOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs index 8fab312d15a1..7cd77a2f20b3 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/CredentialOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class CredentialOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of credential. /// - public static void Delete(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName) + public static void Delete(this ICredentialOperations operations, string automationAccountName, string credentialName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, credentialName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, credentialName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this ICredentialOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this ICredentialOperations operations, string resource /// /// The cancellation token. /// - public static async Task DeleteAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this ICredentialOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of credential. /// - public static Credential Get(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName) + public static Credential Get(this ICredentialOperations operations, string automationAccountName, string credentialName) { - return operations.GetAsync(resourceGroupName, automationAccountName, credentialName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, credentialName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static Credential Get(this ICredentialOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static Credential Get(this ICredentialOperations operations, string resou /// /// The cancellation token. /// - public static async Task GetAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, credentialName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static Credential Get(this ICredentialOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static Credential Get(this ICredentialOperations operations, string resou /// /// The parameters supplied to the create or update credential operation. /// - public static Credential CreateOrUpdate(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters) + public static Credential CreateOrUpdate(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, credentialName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, credentialName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,9 +157,6 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -187,9 +166,9 @@ public static Credential CreateOrUpdate(this ICredentialOperations operations, s /// /// The parameters supplied to the Update credential operation. /// - public static Credential Update(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters) + public static Credential Update(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, credentialName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, credentialName, parameters).GetAwaiter().GetResult(); } /// @@ -199,9 +178,6 @@ public static Credential Update(this ICredentialOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -214,9 +190,9 @@ public static Credential Update(this ICredentialOperations operations, string re /// /// The cancellation token. /// - public static async Task UpdateAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ICredentialOperations operations, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, credentialName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -229,15 +205,12 @@ public static Credential Update(this ICredentialOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this ICredentialOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this ICredentialOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this ICredentialOperatio /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this ICredentialOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this ICredentialOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs index e2ff40dc4b15..e7f3865a78f7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal DscCompilationJobOperations(AutomationClient client) /// Creates the Dsc compilation job of the configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal DscCompilationJobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -124,7 +121,6 @@ internal DscCompilationJobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("compilationJobId", compilationJobId); tracingParameters.Add("parameters", parameters); @@ -135,7 +131,7 @@ internal DscCompilationJobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{compilationJobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(compilationJobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -274,9 +270,6 @@ internal DscCompilationJobOperations(AutomationClient client) /// Retrieve the Dsc configuration compilation job identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -304,17 +297,17 @@ internal DscCompilationJobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -333,7 +326,6 @@ internal DscCompilationJobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("compilationJobId", compilationJobId); tracingParameters.Add("apiVersion", apiVersion); @@ -343,7 +335,7 @@ internal DscCompilationJobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{compilationJobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(compilationJobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -476,9 +468,6 @@ internal DscCompilationJobOperations(AutomationClient client) /// Retrieve a list of dsc compilation jobs. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -506,17 +495,17 @@ internal DscCompilationJobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -535,7 +524,6 @@ internal DscCompilationJobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); @@ -545,7 +533,7 @@ internal DscCompilationJobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); @@ -681,9 +669,6 @@ internal DscCompilationJobOperations(AutomationClient client) /// Retrieve the job stream identified by job stream id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -714,17 +699,17 @@ internal DscCompilationJobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetStreamWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetStreamWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -747,7 +732,6 @@ internal DscCompilationJobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("jobStreamId", jobStreamId); @@ -758,7 +742,7 @@ internal DscCompilationJobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{jobStreamId}", System.Uri.EscapeDataString(jobStreamId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs index cded7de9124c..53ed6cd778cd 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscCompilationJobOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class DscCompilationJobOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class DscCompilationJobOperationsExtensions /// /// The parameters supplied to the create compilation job operation. /// - public static DscCompilationJob Create(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters) + public static DscCompilationJob Create(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters) { - return operations.CreateAsync(resourceGroupName, automationAccountName, compilationJobId, parameters).GetAwaiter().GetResult(); + return operations.CreateAsync(automationAccountName, compilationJobId, parameters).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati /// /// The cancellation token. /// - public static async Task CreateAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, compilationJobId, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(automationAccountName, compilationJobId, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,18 +76,15 @@ public static DscCompilationJob Create(this IDscCompilationJobOperations operati /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The Dsc configuration compilation job id. /// - public static DscCompilationJob Get(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId) + public static DscCompilationJob Get(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId) { - return operations.GetAsync(resourceGroupName, automationAccountName, compilationJobId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, compilationJobId).GetAwaiter().GetResult(); } /// @@ -103,9 +94,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -115,9 +103,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The cancellation token. /// - public static async Task GetAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid compilationJobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid compilationJobId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, compilationJobId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, compilationJobId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -130,18 +118,15 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The filter to apply on the operation. /// - public static IPage ListByAutomationAccount(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string)) + public static IPage ListByAutomationAccount(this IDscCompilationJobOperations operations, string automationAccountName, string filter = default(string)) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult(); } /// @@ -151,9 +136,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -163,9 +145,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IDscCompilationJobOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -178,9 +160,6 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -190,9 +169,9 @@ public static DscCompilationJob Get(this IDscCompilationJobOperations operations /// /// The job stream id. /// - public static JobStream GetStream(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId) + public static JobStream GetStream(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid jobId, string jobStreamId) { - return operations.GetStreamAsync(resourceGroupName, automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult(); + return operations.GetStreamAsync(automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult(); } /// @@ -202,9 +181,6 @@ public static JobStream GetStream(this IDscCompilationJobOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -217,9 +193,9 @@ public static JobStream GetStream(this IDscCompilationJobOperations operations, /// /// The cancellation token. /// - public static async Task GetStreamAsync(this IDscCompilationJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetStreamAsync(this IDscCompilationJobOperations operations, string automationAccountName, System.Guid jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetStreamWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetStreamWithHttpMessagesAsync(automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs index 37113f57d3d2..8512419e910a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal DscConfigurationOperations(AutomationClient client) /// Delete the dsc configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -82,17 +79,17 @@ internal DscConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -115,7 +112,6 @@ internal DscConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("configurationName", configurationName); tracingParameters.Add("apiVersion", apiVersion); @@ -125,7 +121,7 @@ internal DscConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -240,9 +236,6 @@ internal DscConfigurationOperations(AutomationClient client) /// Retrieve the configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -270,17 +263,17 @@ internal DscConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -303,7 +296,6 @@ internal DscConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("configurationName", configurationName); tracingParameters.Add("apiVersion", apiVersion); @@ -313,7 +305,7 @@ internal DscConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -446,9 +438,6 @@ internal DscConfigurationOperations(AutomationClient client) /// Create the configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -479,17 +468,17 @@ internal DscConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -520,7 +509,6 @@ internal DscConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("configurationName", configurationName); tracingParameters.Add("parameters", parameters); @@ -531,7 +519,7 @@ internal DscConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -688,9 +676,6 @@ internal DscConfigurationOperations(AutomationClient client) /// Retrieve the configuration script identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -718,17 +703,17 @@ internal DscConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetContentWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -751,7 +736,6 @@ internal DscConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("configurationName", configurationName); tracingParameters.Add("apiVersion", apiVersion); @@ -761,7 +745,7 @@ internal DscConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}/content").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{configurationName}", System.Uri.EscapeDataString(configurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -881,9 +865,6 @@ internal DscConfigurationOperations(AutomationClient client) /// Retrieve a list of configurations. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -908,17 +889,17 @@ internal DscConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -937,7 +918,6 @@ internal DscConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -946,7 +926,7 @@ internal DscConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs index cb606f21dd3b..b21db079a393 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscConfigurationOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,18 +29,15 @@ public static partial class DscConfigurationOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The configuration name. /// - public static void Delete(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName) + public static void Delete(this IDscConfigurationOperations operations, string automationAccountName, string configurationName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, configurationName).GetAwaiter().GetResult(); } /// @@ -50,9 +47,6 @@ public static void Delete(this IDscConfigurationOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -62,9 +56,9 @@ public static void Delete(this IDscConfigurationOperations operations, string re /// /// The cancellation token. /// - public static async Task DeleteAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -74,18 +68,15 @@ public static void Delete(this IDscConfigurationOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The configuration name. /// - public static DscConfiguration Get(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName) + public static DscConfiguration Get(this IDscConfigurationOperations operations, string automationAccountName, string configurationName) { - return operations.GetAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, configurationName).GetAwaiter().GetResult(); } /// @@ -95,9 +86,6 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -107,9 +95,9 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations, /// /// The cancellation token. /// - public static async Task GetAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -122,9 +110,6 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -134,9 +119,9 @@ public static DscConfiguration Get(this IDscConfigurationOperations operations, /// /// The create or update parameters for configuration. /// - public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters) + public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, configurationName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, configurationName, parameters).GetAwaiter().GetResult(); } /// @@ -146,9 +131,6 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -161,9 +143,9 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, configurationName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -176,18 +158,15 @@ public static DscConfiguration CreateOrUpdate(this IDscConfigurationOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The configuration name. /// - public static Stream GetContent(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName) + public static Stream GetContent(this IDscConfigurationOperations operations, string automationAccountName, string configurationName) { - return operations.GetContentAsync(resourceGroupName, automationAccountName, configurationName).GetAwaiter().GetResult(); + return operations.GetContentAsync(automationAccountName, configurationName).GetAwaiter().GetResult(); } /// @@ -197,9 +176,6 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -209,9 +185,9 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str /// /// The cancellation token. /// - public static async Task GetContentAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetContentAsync(this IDscConfigurationOperations operations, string automationAccountName, string configurationName, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetContentWithHttpMessagesAsync(automationAccountName, configurationName, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -223,15 +199,12 @@ public static Stream GetContent(this IDscConfigurationOperations operations, str /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IDscConfigurationOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -241,18 +214,15 @@ public static IPage ListByAutomationAccount(this IDscConfigura /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IDscConfigurationOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IDscConfigurationOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs index f3e410a7b62a..abd84fae1153 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// Delete the Dsc node configurations by node configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeConfigurationName", nodeConfigurationName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal DscNodeConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// Retrieve the Dsc node configurations by node configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeConfigurationName", nodeConfigurationName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal DscNodeConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// Create the node configuration identified by node configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -519,7 +508,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeConfigurationName", nodeConfigurationName); tracingParameters.Add("parameters", parameters); @@ -530,7 +518,7 @@ internal DscNodeConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations/{nodeConfigurationName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeConfigurationName}", System.Uri.EscapeDataString(nodeConfigurationName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -687,9 +675,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// Retrieve a list of dsc node configurations. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -717,17 +702,17 @@ internal DscNodeConfigurationOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -746,7 +731,6 @@ internal DscNodeConfigurationOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); @@ -756,7 +740,7 @@ internal DscNodeConfigurationOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodeConfigurations").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs index 49bf7664122c..f0a39537af77 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeConfigurationOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class DscNodeConfigurationOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The Dsc node configuration name. /// - public static void Delete(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName) + public static void Delete(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, nodeConfigurationName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, nodeConfigurationName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin /// /// The cancellation token. /// - public static async Task DeleteAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this IDscNodeConfigurationOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The Dsc node configuration name. /// - public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName) + public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName) { - return operations.GetAsync(resourceGroupName, automationAccountName, nodeConfigurationName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, nodeConfigurationName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper /// /// The cancellation token. /// - public static async Task GetAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static DscNodeConfiguration Get(this IDscNodeConfigurationOperations oper /// /// The create or update parameters for configuration. /// - public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters) + public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, nodeConfigurationName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, nodeConfigurationName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, nodeConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,18 +157,15 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The filter to apply on the operation. /// - public static IPage ListByAutomationAccount(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string)) + public static IPage ListByAutomationAccount(this IDscNodeConfigurationOperations operations, string automationAccountName, string filter = default(string)) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult(); } /// @@ -196,9 +175,6 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -208,9 +184,9 @@ public static DscNodeConfiguration CreateOrUpdate(this IDscNodeConfigurationOper /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IDscNodeConfigurationOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IDscNodeConfigurationOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs index 71c857786b96..5a0866f98f8c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal DscNodeOperations(AutomationClient client) /// Delete the dsc node identified by node id. /// /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -84,17 +81,17 @@ internal DscNodeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -117,7 +114,6 @@ internal DscNodeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("apiVersion", apiVersion); @@ -127,7 +123,7 @@ internal DscNodeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -260,9 +256,6 @@ internal DscNodeOperations(AutomationClient client) /// Retrieve the dsc node identified by node id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -290,17 +283,17 @@ internal DscNodeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -323,7 +316,6 @@ internal DscNodeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("apiVersion", apiVersion); @@ -333,7 +325,7 @@ internal DscNodeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -466,9 +458,6 @@ internal DscNodeOperations(AutomationClient client) /// Update the dsc node. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -499,17 +488,17 @@ internal DscNodeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -536,7 +525,6 @@ internal DscNodeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("parameters", parameters); @@ -547,7 +535,7 @@ internal DscNodeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -686,9 +674,6 @@ internal DscNodeOperations(AutomationClient client) /// Retrieve a list of dsc nodes. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -716,17 +701,17 @@ internal DscNodeOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -745,7 +730,6 @@ internal DscNodeOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); @@ -755,7 +739,7 @@ internal DscNodeOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs index f9a903b47adc..ab5432ec06de 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/DscNodeOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class DscNodeOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// Automation account name. /// /// /// The node id. /// - public static DscNode Delete(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId) + public static DscNode Delete(this IDscNodeOperations operations, string automationAccountName, string nodeId) { - return operations.DeleteAsync(resourceGroupName, automationAccountName, nodeId).GetAwaiter().GetResult(); + return operations.DeleteAsync(automationAccountName, nodeId).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -61,9 +55,9 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource /// /// The cancellation token. /// - public static async Task DeleteAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -76,18 +70,15 @@ public static DscNode Delete(this IDscNodeOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The node id. /// - public static DscNode Get(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId) + public static DscNode Get(this IDscNodeOperations operations, string automationAccountName, string nodeId) { - return operations.GetAsync(resourceGroupName, automationAccountName, nodeId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, nodeId).GetAwaiter().GetResult(); } /// @@ -97,9 +88,6 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,9 +97,9 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task GetAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, nodeId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -124,9 +112,6 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -136,9 +121,9 @@ public static DscNode Get(this IDscNodeOperations operations, string resourceGro /// /// Parameters supplied to the update dsc node. /// - public static DscNode Update(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters) + public static DscNode Update(this IDscNodeOperations operations, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, nodeId, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, nodeId, parameters).GetAwaiter().GetResult(); } /// @@ -148,9 +133,6 @@ public static DscNode Update(this IDscNodeOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -163,9 +145,9 @@ public static DscNode Update(this IDscNodeOperations operations, string resource /// /// The cancellation token. /// - public static async Task UpdateAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IDscNodeOperations operations, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, nodeId, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -178,18 +160,15 @@ public static DscNode Update(this IDscNodeOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The filter to apply on the operation. /// - public static IPage ListByAutomationAccount(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string)) + public static IPage ListByAutomationAccount(this IDscNodeOperations operations, string automationAccountName, string filter = default(string)) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult(); } /// @@ -199,9 +178,6 @@ public static DscNode Update(this IDscNodeOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -211,9 +187,9 @@ public static DscNode Update(this IDscNodeOperations operations, string resource /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IDscNodeOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs index bfd55e59cb07..72aaab0c7bd6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal FieldsOperations(AutomationClient client) /// Retrieve a list of fields of a given type identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal FieldsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByTypeWithHttpMessagesAsync(string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -124,7 +121,6 @@ internal FieldsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("typeName", typeName); @@ -135,7 +131,7 @@ internal FieldsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/types/{typeName}/fields").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{typeName}", System.Uri.EscapeDataString(typeName)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs index 6cc3bf7dbb4b..db610b1f6da4 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/FieldsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -30,9 +30,6 @@ public static partial class FieldsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -42,9 +39,9 @@ public static partial class FieldsOperationsExtensions /// /// The name of type. /// - public static IEnumerable ListByType(this IFieldsOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName) + public static IEnumerable ListByType(this IFieldsOperations operations, string automationAccountName, string moduleName, string typeName) { - return operations.ListByTypeAsync(resourceGroupName, automationAccountName, moduleName, typeName).GetAwaiter().GetResult(); + return operations.ListByTypeAsync(automationAccountName, moduleName, typeName).GetAwaiter().GetResult(); } /// @@ -54,9 +51,6 @@ public static IEnumerable ListByType(this IFieldsOperations operation /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -69,9 +63,9 @@ public static IEnumerable ListByType(this IFieldsOperations operation /// /// The cancellation token. /// - public static async Task> ListByTypeAsync(this IFieldsOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByTypeAsync(this IFieldsOperations operations, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByTypeWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByTypeWithHttpMessagesAsync(automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs index 735a1b1cb912..005cc71aa669 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// Delete a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -81,17 +78,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// Retrieve a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// Update a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -515,7 +504,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("hybridRunbookWorkerGroupName", hybridRunbookWorkerGroupName); tracingParameters.Add("parameters", parameters); @@ -526,7 +514,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{hybridRunbookWorkerGroupName}", System.Uri.EscapeDataString(hybridRunbookWorkerGroupName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -665,9 +653,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// Retrieve a list of hybrid runbook worker groups. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -692,17 +677,17 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -721,7 +706,6 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -730,7 +714,7 @@ internal HybridRunbookWorkerGroupOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs index a3959790f2f0..99b726c8b799 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/HybridRunbookWorkerGroupOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class HybridRunbookWorkerGroupOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// Automation account name. /// /// /// The hybrid runbook worker group name /// - public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) + public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s /// /// The cancellation token. /// - public static async Task DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this IHybridRunbookWorkerGroupOperations operations, s /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The hybrid runbook worker group name /// - public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) + public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName) { - return operations.GetAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati /// /// The cancellation token. /// - public static async Task GetAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperati /// /// The hybrid runbook worker group /// - public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters) + public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, hybridRunbookWorkerGroupName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper /// /// The cancellation token. /// - public static async Task UpdateAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, hybridRunbookWorkerGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,15 +157,12 @@ public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOper /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -193,18 +172,15 @@ public static IPage ListByAutomationAccount(this IHybr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IHybridRunbookWorkerGroupOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs index 983494deac51..c20bf2ed5187 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IActivityOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IActivityOperations /// activity name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -55,15 +52,12 @@ public partial interface IActivityOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, string activityName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of activities in the module identified by module /// name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -85,7 +79,7 @@ public partial interface IActivityOperations /// /// Thrown when a required parameter is null /// - Task>> ListByModuleWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByModuleWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of activities in the module identified by module /// name. diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs index cb738e2f5bcf..1b0921828adc 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IAgentRegistrationInformationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IAgentRegistrationInformationOperations /// Retrieve the automation agent registration information. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IAgentRegistrationInformationOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Regenerate a primary or secondary agent registration key /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,6 +71,6 @@ public partial interface IAgentRegistrationInformationOperations /// /// Thrown when a required parameter is null /// - Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RegenerateKeyWithHttpMessagesAsync(string automationAccountName, AgentRegistrationRegenerateKeyParameter parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs index e1a6093714e2..d5d882fd5d5a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IAutomationAccountOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs index a6decbc71990..490145256d28 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IAutomationClient.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -48,39 +48,19 @@ public partial interface IAutomationClient : System.IDisposable string SubscriptionId { get; set; } /// - /// Identifies this specific client request. - /// - string ClientRequestId { get; set; } - - /// - /// The name of the automation account. - /// - System.Guid AutomationAccountName { get; set; } - - /// - /// The name of the resource group within user's subscription. + /// The resource group name. /// - string ResourceGroupName1 { get; set; } + string ResourceGroupName { get; set; } /// - /// subscription id for tenant issuing the request. - /// - System.Guid SubscriptionId1 { get; set; } - - /// - /// The name of the software update configuration to be created. - /// - string SoftwareUpdateConfigurationName { get; set; } - - /// - /// The Id of the software update configuration run. + /// Identifies this specific client request. /// - System.Guid SoftwareUpdateConfigurationRunId { get; set; } + string ClientRequestId { get; set; } /// - /// The Id of the software update configuration machine run. + /// The name of the automation account. /// - System.Guid SoftwareUpdateConfigurationMachineRunId { get; set; } + string AutomationAccountName { get; set; } /// /// Gets or sets the preferred language for the response. diff --git a/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs index abf8dd9e349b..479423b07247 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ICertificateOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface ICertificateOperations /// Delete the certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface ICertificateOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the certificate identified by certificate name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface ICertificateOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string certificateName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -111,14 +102,11 @@ public partial interface ICertificateOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update a certificate. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -143,14 +131,11 @@ public partial interface ICertificateOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string certificateName, CertificateUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of certificates. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -169,7 +154,7 @@ public partial interface ICertificateOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of certificates. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs index daa5d6de0557..117a49547745 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IConnectionOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IConnectionOperations /// Delete the connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -51,14 +48,11 @@ public partial interface IConnectionOperations /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the connection identified by connection name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -80,14 +74,11 @@ public partial interface IConnectionOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or update a connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -114,14 +105,11 @@ public partial interface IConnectionOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update a connection. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -146,14 +134,11 @@ public partial interface IConnectionOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string connectionName, ConnectionUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of connections. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -172,7 +157,7 @@ public partial interface IConnectionOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of connections. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs index b0278272dfef..a29e5bf1063b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IConnectionTypeOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IConnectionTypeOperations /// Delete the connectiontype. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IConnectionTypeOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the connectiontype identified by connectiontype name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface IConnectionTypeOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a connectiontype. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -111,14 +102,11 @@ public partial interface IConnectionTypeOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of connectiontypes. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -137,7 +125,7 @@ public partial interface IConnectionTypeOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of connectiontypes. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs index d2ab6672733a..7b555c801a25 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ICredentialOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface ICredentialOperations /// Delete the credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface ICredentialOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the credential identified by credential name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface ICredentialOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -111,14 +102,11 @@ public partial interface ICredentialOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update a credential. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -143,14 +131,11 @@ public partial interface ICredentialOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string credentialName, CredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of credentials. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -169,7 +154,7 @@ public partial interface ICredentialOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of credentials. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs index b2dfb472a7e2..48502172c016 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IDscCompilationJobOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IDscCompilationJobOperations /// Creates the Dsc compilation job of the configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -54,15 +51,12 @@ public partial interface IDscCompilationJobOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, DscCompilationJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the Dsc configuration compilation job identified by job /// id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -84,14 +78,11 @@ public partial interface IDscCompilationJobOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid compilationJobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc compilation jobs. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -113,14 +104,11 @@ public partial interface IDscCompilationJobOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the job stream identified by job stream id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -145,7 +133,7 @@ public partial interface IDscCompilationJobOperations /// /// Thrown when a required parameter is null /// - Task> GetStreamWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetStreamWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc compilation jobs. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs index 4150f4ceb967..070366e8600e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IDscConfigurationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IDscConfigurationOperations /// Delete the dsc configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -49,14 +46,11 @@ public partial interface IDscConfigurationOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -78,14 +72,11 @@ public partial interface IDscConfigurationOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create the configuration identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -110,14 +101,11 @@ public partial interface IDscConfigurationOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string configurationName, DscConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the configuration script identified by configuration name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -139,14 +127,11 @@ public partial interface IDscConfigurationOperations /// /// Thrown when a required parameter is null /// - Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetContentWithHttpMessagesAsync(string automationAccountName, string configurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of configurations. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -165,7 +150,7 @@ public partial interface IDscConfigurationOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of configurations. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscNodeConfigurationOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscNodeConfigurationOperations.cs index c4746c498eb5..791b7780ec6d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IDscNodeConfigurationOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IDscNodeConfigurationOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IDscNodeConfigurationOperations /// Delete the Dsc node configurations by node configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IDscNodeConfigurationOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the Dsc node configurations by node configuration. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,15 +71,12 @@ public partial interface IDscNodeConfigurationOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create the node configuration identified by node configuration /// name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -110,14 +101,11 @@ public partial interface IDscNodeConfigurationOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string nodeConfigurationName, DscNodeConfigurationCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc node configurations. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -139,7 +127,7 @@ public partial interface IDscNodeConfigurationOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc node configurations. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IDscNodeOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IDscNodeOperations.cs index f4dacb91b34c..2e6a6e46581d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IDscNodeOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IDscNodeOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IDscNodeOperations /// Delete the dsc node identified by node id. /// /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -51,14 +48,11 @@ public partial interface IDscNodeOperations /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the dsc node identified by node id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -80,14 +74,11 @@ public partial interface IDscNodeOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update the dsc node. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -112,14 +103,11 @@ public partial interface IDscNodeOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string nodeId, DscNodeUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc nodes. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -141,7 +129,7 @@ public partial interface IDscNodeOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of dsc nodes. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IFieldsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IFieldsOperations.cs index c7576f2d911d..85ecc7bda479 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IFieldsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IFieldsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IFieldsOperations /// name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -55,6 +52,6 @@ public partial interface IFieldsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByTypeWithHttpMessagesAsync(string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IHybridRunbookWorkerGroupOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IHybridRunbookWorkerGroupOperations.cs index 65141b42bb4d..86d0d2c60a8e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IHybridRunbookWorkerGroupOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IHybridRunbookWorkerGroupOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IHybridRunbookWorkerGroupOperations /// Delete a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// Automation account name. /// @@ -48,14 +45,11 @@ public partial interface IHybridRunbookWorkerGroupOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface IHybridRunbookWorkerGroupOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update a hybrid runbook worker group. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,14 +100,11 @@ public partial interface IHybridRunbookWorkerGroupOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of hybrid runbook worker groups. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -135,7 +123,7 @@ public partial interface IHybridRunbookWorkerGroupOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of hybrid runbook worker groups. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IJobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IJobOperations.cs index 74162655ca63..4ddebd120d9a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IJobOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IJobOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IJobOperations /// Retrieve the job output identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -52,14 +49,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task> GetOutputWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetOutputWithHttpMessagesAsync(string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the runbook content of the job identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,14 +75,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task> GetRunbookContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetRunbookContentWithHttpMessagesAsync(string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Suspend the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -107,14 +98,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task SuspendWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task SuspendWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Stop the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,14 +121,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task StopWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task StopWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the job identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -162,14 +147,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a job of the runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -194,14 +176,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, JobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, JobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of jobs. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -223,14 +202,11 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Resume the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -249,7 +225,7 @@ public partial interface IJobOperations /// /// Thrown when a required parameter is null /// - Task ResumeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task ResumeWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of jobs. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IJobScheduleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IJobScheduleOperations.cs index e44229a563ab..321f2439fb15 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IJobScheduleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IJobScheduleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IJobScheduleOperations /// Delete the job schedule identified by job schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IJobScheduleOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the job schedule identified by job schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface IJobScheduleOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create a job schedule. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,14 +100,11 @@ public partial interface IJobScheduleOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of job schedules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -135,7 +123,7 @@ public partial interface IJobScheduleOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of job schedules. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IJobStreamOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IJobStreamOperations.cs index 319041a43d71..0c025a2af05e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IJobStreamOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IJobStreamOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IJobStreamOperations /// Retrieve the job stream identified by job stream id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -54,14 +51,11 @@ public partial interface IJobStreamOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of jobs streams identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -86,7 +80,7 @@ public partial interface IJobStreamOperations /// /// Thrown when a required parameter is null /// - Task>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByJobWithHttpMessagesAsync(string automationAccountName, string jobId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of jobs streams identified by job id. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IModuleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IModuleOperations.cs index c8fce4dcee3a..2b245f8b3e76 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IModuleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IModuleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IModuleOperations /// Delete the module by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IModuleOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -77,14 +71,11 @@ public partial interface IModuleOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create or Update the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,14 +100,11 @@ public partial interface IModuleOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -141,14 +129,11 @@ public partial interface IModuleOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string moduleName, ModuleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of modules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -167,7 +152,7 @@ public partial interface IModuleOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of modules. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/INodeReportsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/INodeReportsOperations.cs index 1a7344f6e920..c207b051f144 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/INodeReportsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/INodeReportsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface INodeReportsOperations /// Retrieve the Dsc node report list by node id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -55,14 +52,11 @@ public partial interface INodeReportsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByNodeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByNodeWithHttpMessagesAsync(string automationAccountName, string nodeId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the Dsc node report data by node id and report id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,14 +81,11 @@ public partial interface INodeReportsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the Dsc node reports by node id and report id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -119,7 +110,7 @@ public partial interface INodeReportsOperations /// /// Thrown when a required parameter is null /// - Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetContentWithHttpMessagesAsync(string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the Dsc node report list by node id. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IObjectDataTypesOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IObjectDataTypesOperations.cs index 3bc0b8743bb2..ad9700cd6884 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IObjectDataTypesOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IObjectDataTypesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IObjectDataTypesOperations /// name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -55,15 +52,12 @@ public partial interface IObjectDataTypesOperations /// /// Thrown when a required parameter is null /// - Task>> ListFieldsByModuleAndTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListFieldsByModuleAndTypeWithHttpMessagesAsync(string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of fields of a given type across all accessible /// modules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -85,6 +79,6 @@ public partial interface IObjectDataTypesOperations /// /// Thrown when a required parameter is null /// - Task>> ListFieldsByTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListFieldsByTypeWithHttpMessagesAsync(string automationAccountName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IOperations.cs index 842e4ccb1a42..a4be01dd6f59 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/IRunbookDraftOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IRunbookDraftOperations.cs index 066bb198763b..5c5257b39e4f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IRunbookDraftOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IRunbookDraftOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IRunbookDraftOperations /// Retrieve the content of runbook draft identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -52,14 +49,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetContentWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the runbook draft with runbookStream as its content. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,14 +75,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the runbook draft identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -110,14 +101,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Publish runbook draft. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -139,14 +127,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task> PublishWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PublishWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -168,14 +153,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task> UndoEditWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UndoEditWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the runbook draft with runbookStream as its content. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -197,14 +179,11 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task BeginCreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Publish runbook draft. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -226,6 +205,6 @@ public partial interface IRunbookDraftOperations /// /// Thrown when a required parameter is null /// - Task> BeginPublishWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> BeginPublishWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IRunbookOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IRunbookOperations.cs index 8d8fff3db754..a04032d0477e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IRunbookOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IRunbookOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface IRunbookOperations /// Retrieve the content of runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -52,14 +49,11 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetContentWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,14 +75,11 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -111,14 +102,11 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -143,14 +131,11 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, RunbookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, RunbookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the runbook by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -169,14 +154,11 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of runbooks. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -195,7 +177,7 @@ public partial interface IRunbookOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of runbooks. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IScheduleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IScheduleOperations.cs index 884e33762869..0e1e159cb8b6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IScheduleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IScheduleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IScheduleOperations /// Create a schedule. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -54,14 +51,11 @@ public partial interface IScheduleOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -86,14 +80,11 @@ public partial interface IScheduleOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -115,14 +106,11 @@ public partial interface IScheduleOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -141,14 +129,11 @@ public partial interface IScheduleOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of schedules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -167,7 +152,7 @@ public partial interface IScheduleOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of schedules. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationMachineRunsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationMachineRunsOperations.cs index 7b15bd0bbe22..eabd80f51481 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationMachineRunsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationMachineRunsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,8 +27,8 @@ public partial interface ISoftwareUpdateConfigurationMachineRunsOperations /// Get a single software update configuration machine run by Id. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration machine run. /// /// /// The headers that will be added to request. @@ -45,13 +45,16 @@ public partial interface ISoftwareUpdateConfigurationMachineRunsOperations /// /// Thrown when a required parameter is null /// - Task> GetByIdWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByIdWithHttpMessagesAsync(System.Guid softwareUpdateConfigurationMachineRunId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Return list of software update configuration machine runs /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following + /// filters: 'properties/osType', 'properties/status', + /// 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -59,12 +62,6 @@ public partial interface ISoftwareUpdateConfigurationMachineRunsOperations /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following - /// filters: 'properties/osType', 'properties/status', - /// 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// The headers that will be added to request. /// @@ -80,6 +77,6 @@ public partial interface ISoftwareUpdateConfigurationMachineRunsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string filter = default(string), string skip = default(string), string top = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationRunsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationRunsOperations.cs index 420f0783764e..3028da7a2639 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationRunsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationRunsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,8 +27,8 @@ public partial interface ISoftwareUpdateConfigurationRunsOperations /// Get a single software update configuration Run by Id. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration run. /// /// /// The headers that will be added to request. @@ -45,13 +45,16 @@ public partial interface ISoftwareUpdateConfigurationRunsOperations /// /// Thrown when a required parameter is null /// - Task> GetByIdWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByIdWithHttpMessagesAsync(System.Guid softwareUpdateConfigurationRunId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Return list of software update configuration runs /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following + /// filters: 'properties/osType', 'properties/status', + /// 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -59,12 +62,6 @@ public partial interface ISoftwareUpdateConfigurationRunsOperations /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following - /// filters: 'properties/osType', 'properties/status', - /// 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// The headers that will be added to request. /// @@ -80,6 +77,6 @@ public partial interface ISoftwareUpdateConfigurationRunsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string filter = default(string), string skip = default(string), string top = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationsOperations.cs index 8b619d8affe5..417c9b14914d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ISoftwareUpdateConfigurationsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,8 +28,8 @@ public partial interface ISoftwareUpdateConfigurationsOperations /// the URI. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Request body. @@ -49,13 +49,13 @@ public partial interface ISoftwareUpdateConfigurationsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, SoftwareUpdateConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get a single software update configuration by name. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// The headers that will be added to request. @@ -72,13 +72,13 @@ public partial interface ISoftwareUpdateConfigurationsOperations /// /// Thrown when a required parameter is null /// - Task> GetByNameWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetByNameWithHttpMessagesAsync(string softwareUpdateConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// delete a specific software update configuration. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// The headers that will be added to request. @@ -92,14 +92,11 @@ public partial interface ISoftwareUpdateConfigurationsOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string softwareUpdateConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get all software update configurations for the account. /// /// - /// - /// The name of the resource group within user's subscription. - /// /// /// The filter to apply on the operation. /// @@ -118,6 +115,6 @@ public partial interface ISoftwareUpdateConfigurationsOperations /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IStatisticsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IStatisticsOperations.cs index 7d38d9d013f6..b29b9b5b1a46 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IStatisticsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IStatisticsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/ITestJobStreamsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ITestJobStreamsOperations.cs index ca93724642ce..735705d04224 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ITestJobStreamsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ITestJobStreamsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public partial interface ITestJobStreamsOperations /// id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -55,14 +52,11 @@ public partial interface ITestJobStreamsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of test job streams identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,7 +81,7 @@ public partial interface ITestJobStreamsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByTestJobWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByTestJobWithHttpMessagesAsync(string automationAccountName, string runbookName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of test job streams identified by runbook name. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/ITestJobsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ITestJobsOperations.cs index 7a653ec3176b..00b56126b549 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ITestJobsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ITestJobsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface ITestJobsOperations /// Create a test job of the runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -54,14 +51,11 @@ public partial interface ITestJobsOperations /// /// Thrown when a required parameter is null /// - Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateWithHttpMessagesAsync(string automationAccountName, string runbookName, TestJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the test job for the specified runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -83,14 +77,11 @@ public partial interface ITestJobsOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Resume the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,14 +100,11 @@ public partial interface ITestJobsOperations /// /// Thrown when a required parameter is null /// - Task ResumeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task ResumeWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Stop the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -135,14 +123,11 @@ public partial interface ITestJobsOperations /// /// Thrown when a required parameter is null /// - Task StopWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task StopWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Suspend the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -161,6 +146,6 @@ public partial interface ITestJobsOperations /// /// Thrown when a required parameter is null /// - Task SuspendWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task SuspendWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/IUsagesOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IUsagesOperations.cs index f0ee4aeac466..a26ef9a094e6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IUsagesOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IUsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/IVariableOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IVariableOperations.cs index a244c12185a8..b40338da7ba6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IVariableOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IVariableOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IVariableOperations /// Create a variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -54,14 +51,11 @@ public partial interface IVariableOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update a variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -86,14 +80,11 @@ public partial interface IVariableOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, VariableUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string variableName, VariableUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -112,14 +103,11 @@ public partial interface IVariableOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the variable identified by variable name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -141,14 +129,11 @@ public partial interface IVariableOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of variables. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -167,7 +152,7 @@ public partial interface IVariableOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of variables. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/IWebhookOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/IWebhookOperations.cs index 8d3ffe018845..ed970551979a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/IWebhookOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/IWebhookOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -27,9 +27,6 @@ public partial interface IWebhookOperations /// Generates a Uri for use in creating a webhook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -48,14 +45,11 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task> GenerateUriWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GenerateUriWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete the webhook by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -74,14 +68,11 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task DeleteWithHttpMessagesAsync(string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -103,14 +94,11 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -135,14 +123,11 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -167,14 +152,11 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string automationAccountName, string webhookName, WebhookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of webhooks. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -196,7 +178,7 @@ public partial interface IWebhookOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Retrieve a list of webhooks. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/JobOperations.cs index fcd2382c3188..2146331a00b4 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal JobOperations(AutomationClient client) /// Retrieve the job output identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -85,17 +82,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetOutputWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetOutputWithHttpMessagesAsync(string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -118,7 +115,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -128,7 +124,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/output").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(jobId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -248,9 +244,6 @@ internal JobOperations(AutomationClient client) /// Retrieve the runbook content of the job identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -278,17 +271,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetRunbookContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetRunbookContentWithHttpMessagesAsync(string automationAccountName, string jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -311,7 +304,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -321,7 +313,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/runbookContent").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(jobId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -441,9 +433,6 @@ internal JobOperations(AutomationClient client) /// Suspend the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -468,17 +457,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task SuspendWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task SuspendWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -497,7 +486,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -507,7 +495,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/suspend").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -622,9 +610,6 @@ internal JobOperations(AutomationClient client) /// Stop the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -649,17 +634,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task StopWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task StopWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -678,7 +663,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -688,7 +672,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/stop").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -803,9 +787,6 @@ internal JobOperations(AutomationClient client) /// Retrieve the job identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -833,17 +814,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -862,7 +843,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -872,7 +852,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1005,9 +985,6 @@ internal JobOperations(AutomationClient client) /// Create a job of the runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -1038,17 +1015,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, JobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, JobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -1075,7 +1052,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("parameters", parameters); @@ -1086,7 +1062,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1225,9 +1201,6 @@ internal JobOperations(AutomationClient client) /// Retrieve a list of jobs. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -1255,17 +1228,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -1284,7 +1257,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); @@ -1294,7 +1266,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); @@ -1430,9 +1402,6 @@ internal JobOperations(AutomationClient client) /// Resume the job identified by jobId. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -1457,17 +1426,17 @@ internal JobOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task ResumeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task ResumeWithHttpMessagesAsync(string automationAccountName, System.Guid jobId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -1486,7 +1455,6 @@ internal JobOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("apiVersion", apiVersion); @@ -1496,7 +1464,7 @@ internal JobOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/resume").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/JobOperationsExtensions.cs index 985ff493d745..693789967505 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,18 +29,15 @@ public static partial class JobOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static Stream GetOutput(this IJobOperations operations, string resourceGroupName, string automationAccountName, string jobId) + public static Stream GetOutput(this IJobOperations operations, string automationAccountName, string jobId) { - return operations.GetOutputAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + return operations.GetOutputAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -50,9 +47,6 @@ public static Stream GetOutput(this IJobOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -62,9 +56,9 @@ public static Stream GetOutput(this IJobOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task GetOutputAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, string jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetOutputAsync(this IJobOperations operations, string automationAccountName, string jobId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetOutputWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetOutputWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -76,18 +70,15 @@ public static Stream GetOutput(this IJobOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static Stream GetRunbookContent(this IJobOperations operations, string resourceGroupName, string automationAccountName, string jobId) + public static Stream GetRunbookContent(this IJobOperations operations, string automationAccountName, string jobId) { - return operations.GetRunbookContentAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + return operations.GetRunbookContentAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -97,9 +88,6 @@ public static Stream GetRunbookContent(this IJobOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,9 +97,9 @@ public static Stream GetRunbookContent(this IJobOperations operations, string re /// /// The cancellation token. /// - public static async Task GetRunbookContentAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, string jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetRunbookContentAsync(this IJobOperations operations, string automationAccountName, string jobId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetRunbookContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetRunbookContentWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -123,18 +111,15 @@ public static Stream GetRunbookContent(this IJobOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static void Suspend(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId) + public static void Suspend(this IJobOperations operations, string automationAccountName, System.Guid jobId) { - operations.SuspendAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + operations.SuspendAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -144,9 +129,6 @@ public static void Suspend(this IJobOperations operations, string resourceGroupN /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -156,9 +138,9 @@ public static void Suspend(this IJobOperations operations, string resourceGroupN /// /// The cancellation token. /// - public static async Task SuspendAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task SuspendAsync(this IJobOperations operations, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.SuspendWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.SuspendWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -168,18 +150,15 @@ public static void Suspend(this IJobOperations operations, string resourceGroupN /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static void Stop(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId) + public static void Stop(this IJobOperations operations, string automationAccountName, System.Guid jobId) { - operations.StopAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + operations.StopAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -189,9 +168,6 @@ public static void Stop(this IJobOperations operations, string resourceGroupName /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -201,9 +177,9 @@ public static void Stop(this IJobOperations operations, string resourceGroupName /// /// The cancellation token. /// - public static async Task StopAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task StopAsync(this IJobOperations operations, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.StopWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.StopWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -213,18 +189,15 @@ public static void Stop(this IJobOperations operations, string resourceGroupName /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static Job Get(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId) + public static Job Get(this IJobOperations operations, string automationAccountName, System.Guid jobId) { - return operations.GetAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -234,9 +207,6 @@ public static Job Get(this IJobOperations operations, string resourceGroupName, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -246,9 +216,9 @@ public static Job Get(this IJobOperations operations, string resourceGroupName, /// /// The cancellation token. /// - public static async Task GetAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IJobOperations operations, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -261,9 +231,6 @@ public static Job Get(this IJobOperations operations, string resourceGroupName, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -273,9 +240,9 @@ public static Job Get(this IJobOperations operations, string resourceGroupName, /// /// The parameters supplied to the create job operation. /// - public static Job Create(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, JobCreateParameters parameters) + public static Job Create(this IJobOperations operations, string automationAccountName, System.Guid jobId, JobCreateParameters parameters) { - return operations.CreateAsync(resourceGroupName, automationAccountName, jobId, parameters).GetAwaiter().GetResult(); + return operations.CreateAsync(automationAccountName, jobId, parameters).GetAwaiter().GetResult(); } /// @@ -285,9 +252,6 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -300,9 +264,9 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The cancellation token. /// - public static async Task CreateAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, JobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IJobOperations operations, string automationAccountName, System.Guid jobId, JobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(automationAccountName, jobId, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -315,18 +279,15 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The filter to apply on the operation. /// - public static IPage ListByAutomationAccount(this IJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string)) + public static IPage ListByAutomationAccount(this IJobOperations operations, string automationAccountName, string filter = default(string)) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult(); } /// @@ -336,9 +297,6 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -348,9 +306,9 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IJobOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -363,18 +321,15 @@ public static Job Create(this IJobOperations operations, string resourceGroupNam /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job id. /// - public static void Resume(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId) + public static void Resume(this IJobOperations operations, string automationAccountName, System.Guid jobId) { - operations.ResumeAsync(resourceGroupName, automationAccountName, jobId).GetAwaiter().GetResult(); + operations.ResumeAsync(automationAccountName, jobId).GetAwaiter().GetResult(); } /// @@ -384,9 +339,6 @@ public static void Resume(this IJobOperations operations, string resourceGroupNa /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -396,9 +348,9 @@ public static void Resume(this IJobOperations operations, string resourceGroupNa /// /// The cancellation token. /// - public static async Task ResumeAsync(this IJobOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ResumeAsync(this IJobOperations operations, string automationAccountName, System.Guid jobId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ResumeWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.ResumeWithHttpMessagesAsync(automationAccountName, jobId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperations.cs index 6f85ff690d1f..57415f216da8 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal JobScheduleOperations(AutomationClient client) /// Delete the job schedule identified by job schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal JobScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -110,7 +107,6 @@ internal JobScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobScheduleId", jobScheduleId); tracingParameters.Add("apiVersion", apiVersion); @@ -120,7 +116,7 @@ internal JobScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobScheduleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobScheduleId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -235,9 +231,6 @@ internal JobScheduleOperations(AutomationClient client) /// Retrieve the job schedule identified by job schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -265,17 +258,17 @@ internal JobScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -294,7 +287,6 @@ internal JobScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobScheduleId", jobScheduleId); tracingParameters.Add("apiVersion", apiVersion); @@ -304,7 +296,7 @@ internal JobScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobScheduleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobScheduleId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -437,9 +429,6 @@ internal JobScheduleOperations(AutomationClient client) /// Create a job schedule. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -470,17 +459,17 @@ internal JobScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -507,7 +496,6 @@ internal JobScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobScheduleId", jobScheduleId); tracingParameters.Add("parameters", parameters); @@ -518,7 +506,7 @@ internal JobScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobScheduleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(jobScheduleId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -657,9 +645,6 @@ internal JobScheduleOperations(AutomationClient client) /// Retrieve a list of job schedules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -684,17 +669,17 @@ internal JobScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -713,7 +698,6 @@ internal JobScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -722,7 +706,7 @@ internal JobScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperationsExtensions.cs index d3bbbe25acb5..29a046a72284 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobScheduleOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class JobScheduleOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job schedule name. /// - public static void Delete(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) + public static void Delete(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId) { - operations.DeleteAsync(resourceGroupName, automationAccountName, jobScheduleId).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, jobScheduleId).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this IJobScheduleOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this IJobScheduleOperations operations, string resourc /// /// The cancellation token. /// - public static async Task DeleteAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobScheduleId, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, jobScheduleId, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this IJobScheduleOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The job schedule name. /// - public static JobSchedule Get(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) + public static JobSchedule Get(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId) { - return operations.GetAsync(resourceGroupName, automationAccountName, jobScheduleId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, jobScheduleId).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static JobSchedule Get(this IJobScheduleOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static JobSchedule Get(this IJobScheduleOperations operations, string res /// /// The cancellation token. /// - public static async Task GetAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobScheduleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, jobScheduleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static JobSchedule Get(this IJobScheduleOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static JobSchedule Get(this IJobScheduleOperations operations, string res /// /// The parameters supplied to the create job schedule operation. /// - public static JobSchedule Create(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters) + public static JobSchedule Create(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters) { - return operations.CreateAsync(resourceGroupName, automationAccountName, jobScheduleId, parameters).GetAwaiter().GetResult(); + return operations.CreateAsync(automationAccountName, jobScheduleId, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static JobSchedule Create(this IJobScheduleOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static JobSchedule Create(this IJobScheduleOperations operations, string /// /// The cancellation token. /// - public static async Task CreateAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IJobScheduleOperations operations, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobScheduleId, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(automationAccountName, jobScheduleId, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,15 +157,12 @@ public static JobSchedule Create(this IJobScheduleOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IJobScheduleOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -193,18 +172,15 @@ public static IPage ListByAutomationAccount(this IJobScheduleOperat /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IJobScheduleOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperations.cs index e3fdd8597167..f360adeac598 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal JobStreamOperations(AutomationClient client) /// Retrieve the job stream identified by job stream id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal JobStreamOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string jobId, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -124,7 +121,6 @@ internal JobStreamOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("jobStreamId", jobStreamId); @@ -135,7 +131,7 @@ internal JobStreamOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/streams/{jobStreamId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(jobId)); _url = _url.Replace("{jobStreamId}", System.Uri.EscapeDataString(jobStreamId)); @@ -269,9 +265,6 @@ internal JobStreamOperations(AutomationClient client) /// Retrieve a list of jobs streams identified by job id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -302,17 +295,17 @@ internal JobStreamOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByJobWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string jobId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByJobWithHttpMessagesAsync(string automationAccountName, string jobId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -335,7 +328,6 @@ internal JobStreamOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("jobId", jobId); tracingParameters.Add("filter", filter); @@ -346,7 +338,7 @@ internal JobStreamOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobId}/streams").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{jobId}", System.Uri.EscapeDataString(jobId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperationsExtensions.cs index dcf4bff3ff0a..d522883f6492 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/JobStreamOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class JobStreamOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class JobStreamOperationsExtensions /// /// The job stream id. /// - public static JobStream Get(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobId, string jobStreamId) + public static JobStream Get(this IJobStreamOperations operations, string automationAccountName, string jobId, string jobStreamId) { - return operations.GetAsync(resourceGroupName, automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, jobId, jobStreamId).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The cancellation token. /// - public static async Task GetAsync(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IJobStreamOperations operations, string automationAccountName, string jobId, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, jobId, jobStreamId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,9 +76,6 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -94,9 +85,9 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The filter to apply on the operation. /// - public static IPage ListByJob(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobId, string filter = default(string)) + public static IPage ListByJob(this IJobStreamOperations operations, string automationAccountName, string jobId, string filter = default(string)) { - return operations.ListByJobAsync(resourceGroupName, automationAccountName, jobId, filter).GetAwaiter().GetResult(); + return operations.ListByJobAsync(automationAccountName, jobId, filter).GetAwaiter().GetResult(); } /// @@ -106,9 +97,6 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -121,9 +109,9 @@ public static JobStream Get(this IJobStreamOperations operations, string resourc /// /// The cancellation token. /// - public static async Task> ListByJobAsync(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByJobAsync(this IJobStreamOperations operations, string automationAccountName, string jobId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByJobWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobId, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByJobWithHttpMessagesAsync(automationAccountName, jobId, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Activity.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Activity.cs index 42b658324441..6cb2c68bb735 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Activity.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Activity.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Activity /// public Activity() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityOutputType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityOutputType.cs index afe38953f651..950301f7ccac 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityOutputType.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityOutputType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ActivityOutputType /// public ActivityOutputType() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs index 96458d798e26..6e8e508d72cb 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameter.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ActivityParameter /// public ActivityParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterSet.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterSet.cs index 8a0b801d5216..10ef6a639abf 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterSet.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ActivityParameterSet.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class ActivityParameterSet /// public ActivityParameterSet() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedSchedule.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedSchedule.cs index ce821eddf699..15ed6d000a8a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedSchedule.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedSchedule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class AdvancedSchedule /// public AdvancedSchedule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs index 13df987ad9c4..9fbfaf9e7c47 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class AdvancedScheduleMonthlyOccurrence /// public AdvancedScheduleMonthlyOccurrence() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistration.cs index a0b29a2fafa7..81b8892a0298 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class AgentRegistration /// public AgentRegistration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeyName.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeyName.cs index ccd7f1f2cdd1..293248d1883c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeyName.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeyName.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for AgentRegistrationKeyName. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeys.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeys.cs index e1a993776d7f..500863229376 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeys.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationKeys.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class AgentRegistrationKeys /// public AgentRegistrationKeys() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs index b52b4d9de556..0d5d9e1ca33f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -28,7 +27,7 @@ public partial class AgentRegistrationRegenerateKeyParameter /// public AgentRegistrationRegenerateKeyParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccount.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccount.cs index 545a8e29fcea..4574d0a8eecb 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccount.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccount.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class AutomationAccount : Resource /// public AutomationAccount() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountCreateOrUpdateParameters.cs index 49d3c32cec90..4a22dfd7bd5a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -31,7 +30,7 @@ public partial class AutomationAccountCreateOrUpdateParameters /// public AutomationAccountCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountState.cs index da8ddd591615..2dba2eea3c81 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for AutomationAccountState. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountUpdateParameters.cs index 28e35063632c..d1e4f904093a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/AutomationAccountUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class AutomationAccountUpdateParameters /// public AutomationAccountUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Certificate.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Certificate.cs index 8d94161d0e94..da0dd5545521 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Certificate.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Certificate.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class Certificate /// public Certificate() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateCreateOrUpdateParameters.cs index 839dbbe41be8..4b616e019910 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class CertificateCreateOrUpdateParameters /// public CertificateCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateUpdateParameters.cs index cd78dbcf3ef6..d5853bd80061 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CertificateUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class CertificateUpdateParameters /// public CertificateUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CollectionItemUpdateConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CollectionItemUpdateConfiguration.cs index bdcf36c93bf5..615220bfada9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/CollectionItemUpdateConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CollectionItemUpdateConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -28,7 +27,7 @@ public partial class CollectionItemUpdateConfiguration /// public CollectionItemUpdateConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Connection.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Connection.cs index 601584933a5c..1dc37013753b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Connection.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Connection.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Connection /// public Connection() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionCreateOrUpdateParameters.cs index 56440ca6e4e5..b9e0b122f4a0 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class ConnectionCreateOrUpdateParameters /// public ConnectionCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionType.cs index e3dceeca0628..baefd63e0d08 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionType.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ConnectionType /// public ConnectionType() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeAssociationProperty.cs index 08aa1d3d725a..b5bd6a35fbb1 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ConnectionTypeAssociationProperty /// public ConnectionTypeAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeCreateOrUpdateParameters.cs index c35524475e1e..fa377c5ee246 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionTypeCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -31,7 +30,7 @@ public partial class ConnectionTypeCreateOrUpdateParameters /// public ConnectionTypeCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionUpdateParameters.cs index b0534ca976d9..187e3c214733 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ConnectionUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ConnectionUpdateParameters /// public ConnectionUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentHash.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentHash.cs index 1fa906a53ab2..72ef8bd918e3 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentHash.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentHash.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ContentHash /// public ContentHash() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentLink.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentLink.cs index 9797be683b76..742be03f238e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentLink.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentLink.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ContentLink /// public ContentLink() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSource.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSource.cs index 056edcdf7172..fe8d5a34b6b9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSource.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ContentSource /// public ContentSource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSourceType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSourceType.cs index 5a6770be079c..297c3cf22328 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSourceType.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ContentSourceType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for ContentSourceType. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Credential.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Credential.cs index 2baed42cd5d5..1a4a4d6d1b6d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Credential.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Credential.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class Credential /// public Credential() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialCreateOrUpdateParameters.cs index 8de193d495f7..f2b026a6efd3 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class CredentialCreateOrUpdateParameters /// public CredentialCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialUpdateParameters.cs index ba8aa991bb91..919be3759cdc 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/CredentialUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class CredentialUpdateParameters /// public CredentialUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJob.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJob.cs index 7370819a5666..b3e9563e0a78 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJob.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJob.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class DscCompilationJob /// public DscCompilationJob() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJobCreateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJobCreateParameters.cs index e07627e9d105..d77922d89047 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJobCreateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscCompilationJobCreateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class DscCompilationJobCreateParameters /// public DscCompilationJobCreateParameters() { - CustomInit(); + CustomInit(); } /// @@ -40,15 +39,18 @@ public DscCompilationJobCreateParameters() /// Gets or sets the configuration. /// Gets or sets the parameters of the /// job. + /// If a new + /// build version of NodeConfiguration is required. /// Gets or sets name of the resource. /// Gets or sets the location of the /// resource. /// Gets or sets the tags attached to the /// resource. - public DscCompilationJobCreateParameters(DscConfigurationAssociationProperty configuration, IDictionary parameters = default(IDictionary), string name = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + public DscCompilationJobCreateParameters(DscConfigurationAssociationProperty configuration, IDictionary parameters = default(IDictionary), bool? newNodeConfigurationBuildVersionRequired = default(bool?), string name = default(string), string location = default(string), IDictionary tags = default(IDictionary)) { Configuration = configuration; Parameters = parameters; + NewNodeConfigurationBuildVersionRequired = newNodeConfigurationBuildVersionRequired; Name = name; Location = location; Tags = tags; @@ -72,6 +74,13 @@ public DscCompilationJobCreateParameters() [JsonProperty(PropertyName = "properties.parameters")] public IDictionary Parameters { get; set; } + /// + /// Gets or sets if a new build version of NodeConfiguration is + /// required. + /// + [JsonProperty(PropertyName = "properties.newNodeConfigurationBuildVersionRequired")] + public bool? NewNodeConfigurationBuildVersionRequired { get; set; } + /// /// Gets or sets name of the resource. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfiguration.cs index 419cce15fe04..2a479f89b37d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class DscConfiguration : Resource /// public DscConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationAssociationProperty.cs index 57ce39e1f7c0..01d74205fdfd 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class DscConfigurationAssociationProperty /// public DscConfigurationAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationCreateOrUpdateParameters.cs index 063f5d0f6cca..b1b8b3563563 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -31,7 +30,7 @@ public partial class DscConfigurationCreateOrUpdateParameters /// public DscConfigurationCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationParameter.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationParameter.cs index 15fe6a55ed25..b0fa1d802439 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationParameter.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationParameter.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DscConfigurationParameter /// public DscConfigurationParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationProvisioningState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationProvisioningState.cs index 24719542207b..95cc869afb95 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationProvisioningState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationProvisioningState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -27,8 +26,10 @@ public enum DscConfigurationProvisioningState } internal static class DscConfigurationProvisioningStateEnumExtension { - internal static string ToSerializedValue(this DscConfigurationProvisioningState? value) => - value == null ? null : ((DscConfigurationProvisioningState)value).ToSerializedValue(); + internal static string ToSerializedValue(this DscConfigurationProvisioningState? value) + { + return value == null ? null : ((DscConfigurationProvisioningState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this DscConfigurationProvisioningState value) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationState.cs index f4bc2b57d411..88caedb587b6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscConfigurationState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for DscConfigurationState. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscMetaConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscMetaConfiguration.cs index 937de4efbcea..1e3c8ee0ec42 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscMetaConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscMetaConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DscMetaConfiguration /// public DscMetaConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNode.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNode.cs index 4b21bd09b326..d1682d40b115 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNode.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNode.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class DscNode : Resource /// public DscNode() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfiguration.cs index a7576c633668..d3a9bb207513 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DscNodeConfiguration /// public DscNodeConfiguration() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationAssociationProperty.cs index 497b94ff742d..8d7576afd239 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class DscNodeConfigurationAssociationProperty /// public DscNodeConfigurationAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationCreateOrUpdateParameters.cs index 4f41ce152cf2..60ddb5350884 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeConfigurationCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -27,7 +26,7 @@ public partial class DscNodeConfigurationCreateOrUpdateParameters /// public DscNodeConfigurationCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// @@ -38,11 +37,14 @@ public DscNodeConfigurationCreateOrUpdateParameters() /// Gets or sets the type of the parameter. /// Gets or sets the configuration of the /// node. - public DscNodeConfigurationCreateOrUpdateParameters(ContentSource source, string name, DscConfigurationAssociationProperty configuration) + /// If a new + /// build version of NodeConfiguration is required. + public DscNodeConfigurationCreateOrUpdateParameters(ContentSource source, string name, DscConfigurationAssociationProperty configuration, bool? newNodeConfigurationBuildVersionRequired = default(bool?)) { Source = source; Name = name; Configuration = configuration; + NewNodeConfigurationBuildVersionRequired = newNodeConfigurationBuildVersionRequired; CustomInit(); } @@ -69,6 +71,13 @@ public DscNodeConfigurationCreateOrUpdateParameters(ContentSource source, string [JsonProperty(PropertyName = "configuration")] public DscConfigurationAssociationProperty Configuration { get; set; } + /// + /// Gets or sets if a new build version of NodeConfiguration is + /// required. + /// + [JsonProperty(PropertyName = "newNodeConfigurationBuildVersionRequired")] + public bool? NewNodeConfigurationBuildVersionRequired { get; set; } + /// /// Validate the object. /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeExtensionHandlerAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeExtensionHandlerAssociationProperty.cs index 0d7824e53d9a..89b3a343af5d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeExtensionHandlerAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeExtensionHandlerAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class DscNodeExtensionHandlerAssociationProperty /// public DscNodeExtensionHandlerAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeReport.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeReport.cs index bda4ed3876d5..2043b50725e1 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeReport.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeReport.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class DscNodeReport /// public DscNodeReport() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeUpdateParameters.cs index cb0c9775e0ca..58b6295ef96b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscNodeUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DscNodeUpdateParameters /// public DscNodeUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportError.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportError.cs index 0b5c6b46cd04..1b209a80e7e6 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportError.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportError.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class DscReportError /// public DscReportError() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResource.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResource.cs index e5c0a7fa394c..e41ffdb1cfc9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResource.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class DscReportResource /// public DscReportResource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResourceNavigation.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResourceNavigation.cs index 6bdf700e0aa2..29bfb233d17a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResourceNavigation.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/DscReportResourceNavigation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class DscReportResourceNavigation /// public DscReportResourceNavigation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponse.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponse.cs index 238c431c4bcd..7c36bf7f9983 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponse.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponse.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ErrorResponse /// public ErrorResponse() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponseException.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponseException.cs index 609249f97534..bc462a6777d8 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponseException.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ErrorResponseException.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,19 +6,17 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; /// /// Exception thrown for an invalid response with ErrorResponse /// information. /// - public class ErrorResponseException : RestException + public partial class ErrorResponseException : RestException { /// /// Gets information about the associated HTTP request. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/FieldDefinition.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/FieldDefinition.cs index f70ab0c37497..478dc7d34b44 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/FieldDefinition.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/FieldDefinition.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class FieldDefinition /// public FieldDefinition() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/HttpStatusCode.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/HttpStatusCode.cs index 873064fd2d7a..22c26bb47358 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/HttpStatusCode.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/HttpStatusCode.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -119,8 +118,10 @@ public enum HttpStatusCode } internal static class HttpStatusCodeEnumExtension { - internal static string ToSerializedValue(this HttpStatusCode? value) => - value == null ? null : ((HttpStatusCode)value).ToSerializedValue(); + internal static string ToSerializedValue(this HttpStatusCode? value) + { + return value == null ? null : ((HttpStatusCode)value).ToSerializedValue(); + } internal static string ToSerializedValue(this HttpStatusCode value) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorker.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorker.cs index 901812924d6c..c50206b53264 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorker.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorker.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class HybridRunbookWorker /// public HybridRunbookWorker() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroup.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroup.cs index 45c08f100d70..d6f3c519c1e5 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroup.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroup.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class HybridRunbookWorkerGroup /// public HybridRunbookWorkerGroup() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroupUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroupUpdateParameters.cs index 431cba456165..f1e6c0a95b87 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroupUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/HybridRunbookWorkerGroupUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class HybridRunbookWorkerGroupUpdateParameters /// public HybridRunbookWorkerGroupUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Job.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Job.cs index c14b03c06de4..eb9d99d82fed 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Job.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Job.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Job /// public Job() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobCreateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobCreateParameters.cs index 895268ca2b22..77d6a7fc9815 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobCreateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobCreateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class JobCreateParameters /// public JobCreateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobNavigation.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobNavigation.cs index 9e1c9d710876..6a5319d48588 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobNavigation.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobNavigation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class JobNavigation /// public JobNavigation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobSchedule.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobSchedule.cs index 8d7c723fc651..32778ff71412 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobSchedule.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobSchedule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class JobSchedule /// public JobSchedule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobScheduleCreateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobScheduleCreateParameters.cs index c60082a528d6..d81120db6b8c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobScheduleCreateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobScheduleCreateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class JobScheduleCreateParameters /// public JobScheduleCreateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStatus.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStatus.cs index 628f4f22633c..b29df5e9b975 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStatus.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStatus.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for JobStatus. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStream.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStream.cs index 78a1e7d46fae..957bd1ce1843 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStream.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStream.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class JobStream /// public JobStream() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStreamType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStreamType.cs index ab7a9a2c638c..83c7949e447a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/JobStreamType.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/JobStreamType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for JobStreamType. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxProperties.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxProperties.cs index 351e8da1cb9e..42f0804724d3 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxProperties.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,17 +25,18 @@ public partial class LinuxProperties /// public LinuxProperties() { - CustomInit(); + CustomInit(); } /// /// Initializes a new instance of the LinuxProperties class. /// /// Update classifications - /// included in the software update configuration. + /// included in the software update configuration. Possible values + /// include: 'Unclassified', 'Critical', 'Security', 'Other' /// packages excluded from the /// software update configuration. - public LinuxProperties(IList includedPackageClassifications = default(IList), IList excludedPackageNameMasks = default(IList)) + public LinuxProperties(string includedPackageClassifications = default(string), IList excludedPackageNameMasks = default(IList)) { IncludedPackageClassifications = includedPackageClassifications; ExcludedPackageNameMasks = excludedPackageNameMasks; @@ -50,10 +50,11 @@ public LinuxProperties() /// /// Gets or sets update classifications included in the software update - /// configuration. + /// configuration. Possible values include: 'Unclassified', 'Critical', + /// 'Security', 'Other' /// [JsonProperty(PropertyName = "includedPackageClassifications")] - public IList IncludedPackageClassifications { get; set; } + public string IncludedPackageClassifications { get; set; } /// /// Gets or sets packages excluded from the software update diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxUpdateClasses.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxUpdateClasses.cs new file mode 100644 index 000000000000..178444a7426a --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/LinuxUpdateClasses.cs @@ -0,0 +1,24 @@ +// +// 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 +{ + + /// + /// Defines values for LinuxUpdateClasses. + /// + public static class LinuxUpdateClasses + { + public const string Unclassified = "Unclassified"; + public const string Critical = "Critical"; + public const string Security = "Security"; + public const string Other = "Other"; + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs index 36494eabdac0..af9d8cc5dbb5 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Module.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Module : Resource /// public Module() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleCreateOrUpdateParameters.cs index c6fce02d2dc8..5a49afe54985 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class ModuleCreateOrUpdateParameters /// public ModuleCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleErrorInfo.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleErrorInfo.cs index 23bb186a8b05..6abdb1c98f8d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleErrorInfo.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleErrorInfo.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ModuleErrorInfo /// public ModuleErrorInfo() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleProvisioningState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleProvisioningState.cs index e2005742cf60..4cb77f4ff25b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleProvisioningState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleProvisioningState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -57,8 +56,10 @@ public enum ModuleProvisioningState } internal static class ModuleProvisioningStateEnumExtension { - internal static string ToSerializedValue(this ModuleProvisioningState? value) => - value == null ? null : ((ModuleProvisioningState)value).ToSerializedValue(); + internal static string ToSerializedValue(this ModuleProvisioningState? value) + { + return value == null ? null : ((ModuleProvisioningState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this ModuleProvisioningState value) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleUpdateParameters.cs index 84cfabecc03f..11609a76cc27 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ModuleUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class ModuleUpdateParameters /// public ModuleUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/OperatingSystemType.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/OperatingSystemType.cs index adf4983be6ea..11e38a646169 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/OperatingSystemType.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/OperatingSystemType.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -29,8 +28,10 @@ public enum OperatingSystemType } internal static class OperatingSystemTypeEnumExtension { - internal static string ToSerializedValue(this OperatingSystemType? value) => - value == null ? null : ((OperatingSystemType)value).ToSerializedValue(); + internal static string ToSerializedValue(this OperatingSystemType? value) + { + return value == null ? null : ((OperatingSystemType)value).ToSerializedValue(); + } internal static string ToSerializedValue(this OperatingSystemType value) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Operation.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Operation.cs index dc35ca741a1f..c54342a53266 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Operation.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Operation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class Operation /// public Operation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/OperationDisplay.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/OperationDisplay.cs index d2a0d43476da..386d93c5e316 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/OperationDisplay.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/OperationDisplay.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class OperationDisplay /// public OperationDisplay() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Page.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Page.cs index 3c932c46a241..5ab787089876 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Page.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Page.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Page1.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Page1.cs index 5bb19d95794d..c56ad3aa1051 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Page1.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Page1.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Resource.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Resource.cs index 1607e5ad3cde..4de42923b310 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Resource.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Resource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class Resource : IResource /// public Resource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunAsCredentialAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunAsCredentialAssociationProperty.cs index 07d30dc7d091..5e901e1e92f9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunAsCredentialAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunAsCredentialAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class RunAsCredentialAssociationProperty /// public RunAsCredentialAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Runbook.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Runbook.cs index 91c50de5f14a..3a031d60328c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Runbook.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Runbook.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Runbook : Resource /// public Runbook() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookAssociationProperty.cs index e01a37cab295..888f692e6372 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class RunbookAssociationProperty /// public RunbookAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftParameters.cs index 39b050c26d83..261a0543a21b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -26,7 +25,7 @@ public partial class RunbookCreateOrUpdateDraftParameters /// public RunbookCreateOrUpdateDraftParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftProperties.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftProperties.cs index 7cbd0db1d77d..36d258e4dd03 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftProperties.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateDraftProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -27,7 +26,7 @@ public partial class RunbookCreateOrUpdateDraftProperties /// public RunbookCreateOrUpdateDraftProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateParameters.cs index b48dcbaa6209..9b0e5da4caa2 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class RunbookCreateOrUpdateParameters /// public RunbookCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraft.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraft.cs index 34f734112bae..a59140330864 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraft.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraft.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class RunbookDraft /// public RunbookDraft() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraftUndoEditResult.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraftUndoEditResult.cs index c9cd7c8e6179..c01f3908b7d9 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraftUndoEditResult.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookDraftUndoEditResult.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class RunbookDraftUndoEditResult /// public RunbookDraftUndoEditResult() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookParameter.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookParameter.cs index 136ee7d691c9..76ba75690ef2 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookParameter.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookParameter.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class RunbookParameter /// public RunbookParameter() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookProvisioningState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookProvisioningState.cs index 055d0f550f09..7394c45f38c2 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookProvisioningState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookProvisioningState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.Runtime; @@ -27,8 +26,10 @@ public enum RunbookProvisioningState } internal static class RunbookProvisioningStateEnumExtension { - internal static string ToSerializedValue(this RunbookProvisioningState? value) => - value == null ? null : ((RunbookProvisioningState)value).ToSerializedValue(); + internal static string ToSerializedValue(this RunbookProvisioningState? value) + { + return value == null ? null : ((RunbookProvisioningState)value).ToSerializedValue(); + } internal static string ToSerializedValue(this RunbookProvisioningState value) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookState.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookState.cs index 21e4dd548a9c..1c1de24ef625 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookState.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookState.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for RunbookState. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookTypeEnum.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookTypeEnum.cs index 3966abcaca46..a2758766ccc1 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookTypeEnum.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookTypeEnum.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for RunbookTypeEnum. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookUpdateParameters.cs index 4d55032ddc59..7aa9a2b4a430 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/RunbookUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class RunbookUpdateParameters /// public RunbookUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Schedule.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Schedule.cs index 48cbc052f04b..c979d8c1e646 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Schedule.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Schedule.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class Schedule /// public Schedule() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleAssociationProperty.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleAssociationProperty.cs index 057b158b5011..92d9b1600ea7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleAssociationProperty.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleAssociationProperty.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class ScheduleAssociationProperty /// public ScheduleAssociationProperty() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleCreateOrUpdateParameters.cs index b86b953738bf..1486c4ff4d4b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class ScheduleCreateOrUpdateParameters /// public ScheduleCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleDay.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleDay.cs index 33dc75b09876..e4dc87b19a1f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleDay.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleDay.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for ScheduleDay. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleFrequency.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleFrequency.cs index 588f8a7cd046..2d02fc6bac7d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleFrequency.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleFrequency.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for ScheduleFrequency. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleProperties.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleProperties.cs index 323aa0d636f5..5254d906bc1a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleProperties.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class ScheduleProperties /// public ScheduleProperties() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleUpdateParameters.cs index a37bdf0d48b9..7847c7809e84 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/ScheduleUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class ScheduleUpdateParameters /// public ScheduleUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Sku.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Sku.cs index a36e5f4b26dc..6345a995d847 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Sku.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Sku.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class Sku /// public Sku() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SkuNameEnum.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SkuNameEnum.cs index b74a0ba3f1eb..c6c7d47f86a7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SkuNameEnum.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SkuNameEnum.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; /// /// Defines values for SkuNameEnum. diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfiguration.cs index 69cd6fe465ec..a65e70dcefeb 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; @@ -29,7 +28,7 @@ public partial class SoftwareUpdateConfiguration : IResource /// public SoftwareUpdateConfiguration() { - CustomInit(); + CustomInit(); } /// @@ -38,11 +37,11 @@ public SoftwareUpdateConfiguration() /// /// update specific properties for /// the Software update configuration + /// Schedule information for the Software + /// update configuration /// Resource name. /// Resource Id. /// Resource type - /// Schedule information for the Software - /// update configuration /// Provisioning state for the software /// update configuration, which only appears in the response. /// detailes of provisioning error @@ -54,7 +53,7 @@ public SoftwareUpdateConfiguration() /// which only appears in the response. /// lastModifiedBy property, which only /// appears in the response. - public SoftwareUpdateConfiguration(UpdateConfiguration updateConfiguration, string name = default(string), string id = default(string), string type = default(string), ScheduleProperties scheduleInfo = default(ScheduleProperties), string provisioningState = default(string), ErrorResponse error = default(ErrorResponse), System.DateTime? creationTime = default(System.DateTime?), string createdBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), string lastModifiedBy = default(string)) + public SoftwareUpdateConfiguration(UpdateConfiguration updateConfiguration, ScheduleProperties scheduleInfo, string name = default(string), string id = default(string), string type = default(string), string provisioningState = default(string), ErrorResponse error = default(ErrorResponse), System.DateTime? creationTime = default(System.DateTime?), string createdBy = default(string), System.DateTime? lastModifiedTime = default(System.DateTime?), string lastModifiedBy = default(string)) { Name = name; Id = id; @@ -158,6 +157,14 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "UpdateConfiguration"); } + if (ScheduleInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "ScheduleInfo"); + } + if (UpdateConfiguration != null) + { + UpdateConfiguration.Validate(); + } } } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs index 3c3c6e97639e..84377bd137fa 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class SoftwareUpdateConfigurationCollectionItem /// public SoftwareUpdateConfigurationCollectionItem() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationListResult.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationListResult.cs index 3a9b02ba9f5c..8540b5bcaeb7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationListResult.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationListResult.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -27,7 +26,7 @@ public partial class SoftwareUpdateConfigurationListResult /// public SoftwareUpdateConfigurationListResult() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs index 94196a93c70b..ace4e0593d12 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class SoftwareUpdateConfigurationMachineRun /// public SoftwareUpdateConfigurationMachineRun() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs index e8813bb3b8d1..b10aafc801df 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationMachineRunListResult.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -27,7 +26,7 @@ public partial class SoftwareUpdateConfigurationMachineRunListResult /// public SoftwareUpdateConfigurationMachineRunListResult() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRun.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRun.cs index 34f28fbc8130..3ec8fa67404c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRun.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRun.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class SoftwareUpdateConfigurationRun /// public SoftwareUpdateConfigurationRun() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs index 015ba77b7525..f064c52b4f68 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SoftwareUpdateConfigurationRunListResult.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -27,7 +26,7 @@ public partial class SoftwareUpdateConfigurationRunListResult /// public SoftwareUpdateConfigurationRunListResult() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Statistics.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Statistics.cs index 165ca7064ed8..96158d661f1a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Statistics.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Statistics.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class Statistics /// public Statistics() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/SubResource.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/SubResource.cs index 7b60e226df30..275c66acf0a8 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/SubResource.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/SubResource.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; @@ -26,7 +25,7 @@ public partial class SubResource : IResource /// public SubResource() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/TestJob.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/TestJob.cs index f5c6af3f681d..b4d293974e29 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/TestJob.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/TestJob.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,7 +25,7 @@ public partial class TestJob /// public TestJob() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/TestJobCreateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/TestJobCreateParameters.cs index 1df34f95d396..26fff1b34c54 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/TestJobCreateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/TestJobCreateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Newtonsoft.Json; using System.Collections; @@ -27,7 +26,7 @@ public partial class TestJobCreateParameters /// public TestJobCreateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/TypeField.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/TypeField.cs index 627b66cccafd..29ef2b66ba3c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/TypeField.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/TypeField.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class TypeField /// public TypeField() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfiguration.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfiguration.cs index 54f2e4bdf906..7157e852b6db 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfiguration.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfiguration.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -19,7 +18,6 @@ namespace Microsoft.Azure.Management.Automation.Models /// /// Update specifc properties of the software update configuration. /// - [Newtonsoft.Json.JsonObject("updateConfiguration")] public partial class UpdateConfiguration { /// @@ -27,12 +25,14 @@ public partial class UpdateConfiguration /// public UpdateConfiguration() { - CustomInit(); + CustomInit(); } /// /// Initializes a new instance of the UpdateConfiguration class. /// + /// operating system of target machines. + /// Possible values include: 'Windows', 'Linux' /// Windows specific update /// configuration. /// Linux specific update configuration. @@ -44,8 +44,9 @@ public UpdateConfiguration() /// configuration. /// List of names of non-azure /// machines targeted by the software update configuration. - public UpdateConfiguration(WindowsProperties windows = default(WindowsProperties), LinuxProperties linux = default(LinuxProperties), System.TimeSpan? duration = default(System.TimeSpan?), IList azureVirtualMachines = default(IList), IList nonAzureComputerNames = default(IList)) + public UpdateConfiguration(OperatingSystemType operatingSystem, WindowsProperties windows = default(WindowsProperties), LinuxProperties linux = default(LinuxProperties), System.TimeSpan? duration = default(System.TimeSpan?), IList azureVirtualMachines = default(IList), IList nonAzureComputerNames = default(IList)) { + OperatingSystem = operatingSystem; Windows = windows; Linux = linux; Duration = duration; @@ -59,6 +60,13 @@ public UpdateConfiguration() /// partial void CustomInit(); + /// + /// Gets or sets operating system of target machines. Possible values + /// include: 'Windows', 'Linux' + /// + [JsonProperty(PropertyName = "operatingSystem")] + public OperatingSystemType OperatingSystem { get; set; } + /// /// Gets or sets windows specific update configuration. /// @@ -93,5 +101,14 @@ public UpdateConfiguration() [JsonProperty(PropertyName = "nonAzureComputerNames")] public IList NonAzureComputerNames { get; set; } + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfigurationNavigation.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfigurationNavigation.cs index af263c6c0ffa..4c2fa9764c6e 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfigurationNavigation.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/UpdateConfigurationNavigation.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -25,7 +24,7 @@ public partial class UpdateConfigurationNavigation /// public UpdateConfigurationNavigation() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Usage.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Usage.cs index 304e111a651c..4ca07b929676 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Usage.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Usage.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class Usage /// public Usage() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/UsageCounterName.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/UsageCounterName.cs index 1f8256320fb0..01e015320330 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/UsageCounterName.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/UsageCounterName.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Linq; @@ -24,7 +23,7 @@ public partial class UsageCounterName /// public UsageCounterName() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Variable.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Variable.cs index f4f2e0eb2de8..abfbe7081f4f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Variable.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Variable.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class Variable /// public Variable() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/VariableCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/VariableCreateOrUpdateParameters.cs index 03f1ce3b33da..fcacb8c58207 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/VariableCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/VariableCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -28,7 +27,7 @@ public partial class VariableCreateOrUpdateParameters /// public VariableCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/VariableUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/VariableUpdateParameters.cs index 59ed7a34c172..079d310ed829 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/VariableUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/VariableUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -27,7 +26,7 @@ public partial class VariableUpdateParameters /// public VariableUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/Webhook.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/Webhook.cs index 1b3c5e5ccf9e..3f572d843684 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/Webhook.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/Webhook.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class Webhook /// public Webhook() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookCreateOrUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookCreateOrUpdateParameters.cs index e1410f73b635..99d7f6f96517 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookCreateOrUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookCreateOrUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -30,7 +29,7 @@ public partial class WebhookCreateOrUpdateParameters /// public WebhookCreateOrUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookUpdateParameters.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookUpdateParameters.cs index c8f2a515c55d..42068bfcc312 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookUpdateParameters.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/WebhookUpdateParameters.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; @@ -29,7 +28,7 @@ public partial class WebhookUpdateParameters /// public WebhookUpdateParameters() { - CustomInit(); + CustomInit(); } /// diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsProperties.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsProperties.cs index 63c1c788e03a..e62f94850af1 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsProperties.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsProperties.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,12 +6,10 @@ // 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 Microsoft.Azure; - using Microsoft.Azure.Management; - using Microsoft.Azure.Management.Automation; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -26,17 +25,21 @@ public partial class WindowsProperties /// public WindowsProperties() { - CustomInit(); + CustomInit(); } /// /// Initializes a new instance of the WindowsProperties class. /// /// Update classification - /// included in the software update configuration. + /// included in the software update configuration. A comma separated + /// string with required values. Possible values include: + /// 'Unclassified', 'Critical', 'Security', 'UpdateRollup', + /// 'FeaturePack', 'ServicePack', 'Definition', 'Tools', + /// 'Updates' /// KB numbers excluded from the /// software update configuration. - public WindowsProperties(object includedUpdateClassifications = default(object), IList excludedKbNumbers = default(IList)) + public WindowsProperties(string includedUpdateClassifications = default(string), IList excludedKbNumbers = default(IList)) { IncludedUpdateClassifications = includedUpdateClassifications; ExcludedKbNumbers = excludedKbNumbers; @@ -50,10 +53,13 @@ public WindowsProperties() /// /// Gets or sets update classification included in the software update - /// configuration. + /// configuration. A comma separated string with required values. + /// Possible values include: 'Unclassified', 'Critical', 'Security', + /// 'UpdateRollup', 'FeaturePack', 'ServicePack', 'Definition', + /// 'Tools', 'Updates' /// [JsonProperty(PropertyName = "includedUpdateClassifications")] - public object IncludedUpdateClassifications { get; set; } + public string IncludedUpdateClassifications { get; set; } /// /// Gets or sets KB numbers excluded from the software update diff --git a/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsUpdateClasses.cs b/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsUpdateClasses.cs new file mode 100644 index 000000000000..5af409cacfc5 --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/Models/WindowsUpdateClasses.cs @@ -0,0 +1,29 @@ +// +// 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 +{ + + /// + /// Defines values for WindowsUpdateClasses. + /// + public static class WindowsUpdateClasses + { + public const string Unclassified = "Unclassified"; + public const string Critical = "Critical"; + public const string Security = "Security"; + public const string UpdateRollup = "UpdateRollup"; + public const string FeaturePack = "FeaturePack"; + public const string ServicePack = "ServicePack"; + public const string Definition = "Definition"; + public const string Tools = "Tools"; + public const string Updates = "Updates"; + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/ModuleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ModuleOperations.cs index c4c46fc654ef..708e49f5c681 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ModuleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ModuleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal ModuleOperations(AutomationClient client) /// Delete the module by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal ModuleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -114,7 +111,6 @@ internal ModuleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("apiVersion", apiVersion); @@ -124,7 +120,7 @@ internal ModuleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -239,9 +235,6 @@ internal ModuleOperations(AutomationClient client) /// Retrieve the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -269,17 +262,17 @@ internal ModuleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string moduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -302,7 +295,6 @@ internal ModuleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("apiVersion", apiVersion); @@ -312,7 +304,7 @@ internal ModuleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -445,9 +437,6 @@ internal ModuleOperations(AutomationClient client) /// Create or Update the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -478,17 +467,17 @@ internal ModuleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -519,7 +508,6 @@ internal ModuleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("parameters", parameters); @@ -530,7 +518,7 @@ internal ModuleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -603,7 +591,7 @@ internal ModuleOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 201 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -641,7 +629,7 @@ internal ModuleOperations(AutomationClient client) _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } // Deserialize Response - if ((int)_statusCode == 201) + if ((int)_statusCode == 200) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -659,7 +647,7 @@ internal ModuleOperations(AutomationClient client) } } // Deserialize Response - if ((int)_statusCode == 200) + if ((int)_statusCode == 201) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try @@ -687,9 +675,6 @@ internal ModuleOperations(AutomationClient client) /// Update the module identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -720,17 +705,17 @@ internal ModuleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string moduleName, ModuleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -757,7 +742,6 @@ internal ModuleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("parameters", parameters); @@ -768,7 +752,7 @@ internal ModuleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -907,9 +891,6 @@ internal ModuleOperations(AutomationClient client) /// Retrieve a list of modules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -934,17 +915,17 @@ internal ModuleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -963,7 +944,6 @@ internal ModuleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -972,7 +952,7 @@ internal ModuleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ModuleOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ModuleOperationsExtensions.cs index d52d04926cc2..504a4fafb847 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ModuleOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ModuleOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,18 +28,15 @@ public static partial class ModuleOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The module name. /// - public static void Delete(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName) + public static void Delete(this IModuleOperations operations, string automationAccountName, string moduleName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, moduleName).GetAwaiter().GetResult(); } /// @@ -49,9 +46,6 @@ public static void Delete(this IModuleOperations operations, string resourceGrou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -61,9 +55,9 @@ public static void Delete(this IModuleOperations operations, string resourceGrou /// /// The cancellation token. /// - public static async Task DeleteAsync(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IModuleOperations operations, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -73,18 +67,15 @@ public static void Delete(this IModuleOperations operations, string resourceGrou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The module name. /// - public static Module Get(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName) + public static Module Get(this IModuleOperations operations, string automationAccountName, string moduleName) { - return operations.GetAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, moduleName).GetAwaiter().GetResult(); } /// @@ -94,9 +85,6 @@ public static Module Get(this IModuleOperations operations, string resourceGroup /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -106,9 +94,9 @@ public static Module Get(this IModuleOperations operations, string resourceGroup /// /// The cancellation token. /// - public static async Task GetAsync(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IModuleOperations operations, string automationAccountName, string moduleName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, moduleName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -121,9 +109,6 @@ public static Module Get(this IModuleOperations operations, string resourceGroup /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -133,9 +118,9 @@ public static Module Get(this IModuleOperations operations, string resourceGroup /// /// The create or update parameters for module. /// - public static Module CreateOrUpdate(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters) + public static Module CreateOrUpdate(this IModuleOperations operations, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, moduleName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, moduleName, parameters).GetAwaiter().GetResult(); } /// @@ -145,9 +130,6 @@ public static Module CreateOrUpdate(this IModuleOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static Module CreateOrUpdate(this IModuleOperations operations, string re /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IModuleOperations operations, string automationAccountName, string moduleName, ModuleCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, moduleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,9 +157,6 @@ public static Module CreateOrUpdate(this IModuleOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -187,9 +166,9 @@ public static Module CreateOrUpdate(this IModuleOperations operations, string re /// /// The update parameters for module. /// - public static Module Update(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters parameters) + public static Module Update(this IModuleOperations operations, string automationAccountName, string moduleName, ModuleUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, moduleName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, moduleName, parameters).GetAwaiter().GetResult(); } /// @@ -199,9 +178,6 @@ public static Module Update(this IModuleOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -214,9 +190,9 @@ public static Module Update(this IModuleOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task UpdateAsync(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName, ModuleUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IModuleOperations operations, string automationAccountName, string moduleName, ModuleUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, moduleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -229,15 +205,12 @@ public static Module Update(this IModuleOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IModuleOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IModuleOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this IModuleOperations opera /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IModuleOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IModuleOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperations.cs index 236d1cc588cc..e62006b684fc 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal NodeReportsOperations(AutomationClient client) /// Retrieve the Dsc node report list by node id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -88,17 +85,17 @@ internal NodeReportsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByNodeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByNodeWithHttpMessagesAsync(string automationAccountName, string nodeId, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -121,7 +118,6 @@ internal NodeReportsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("filter", filter); @@ -132,7 +128,7 @@ internal NodeReportsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -269,9 +265,6 @@ internal NodeReportsOperations(AutomationClient client) /// Retrieve the Dsc node report data by node id and report id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -302,17 +295,17 @@ internal NodeReportsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -339,7 +332,6 @@ internal NodeReportsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("reportId", reportId); @@ -350,7 +342,7 @@ internal NodeReportsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{reportId}", System.Uri.EscapeDataString(reportId)); @@ -484,9 +476,6 @@ internal NodeReportsOperations(AutomationClient client) /// Retrieve the Dsc node reports by node id and report id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -517,17 +506,17 @@ internal NodeReportsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetContentWithHttpMessagesAsync(string automationAccountName, string nodeId, string reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -554,7 +543,6 @@ internal NodeReportsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("nodeId", nodeId); tracingParameters.Add("reportId", reportId); @@ -565,7 +553,7 @@ internal NodeReportsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/nodes/{nodeId}/reports/{reportId}/content").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{nodeId}", System.Uri.EscapeDataString(nodeId)); _url = _url.Replace("{reportId}", System.Uri.EscapeDataString(reportId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperationsExtensions.cs index 30f731d7dda4..30b4bc38da51 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/NodeReportsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,9 +29,6 @@ public static partial class NodeReportsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -41,9 +38,9 @@ public static partial class NodeReportsOperationsExtensions /// /// The filter to apply on the operation. /// - public static IPage ListByNode(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string filter = default(string)) + public static IPage ListByNode(this INodeReportsOperations operations, string automationAccountName, string nodeId, string filter = default(string)) { - return operations.ListByNodeAsync(resourceGroupName, automationAccountName, nodeId, filter).GetAwaiter().GetResult(); + return operations.ListByNodeAsync(automationAccountName, nodeId, filter).GetAwaiter().GetResult(); } /// @@ -53,9 +50,6 @@ public static partial class NodeReportsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -68,9 +62,9 @@ public static partial class NodeReportsOperationsExtensions /// /// The cancellation token. /// - public static async Task> ListByNodeAsync(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByNodeAsync(this INodeReportsOperations operations, string automationAccountName, string nodeId, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByNodeWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByNodeWithHttpMessagesAsync(automationAccountName, nodeId, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -83,9 +77,6 @@ public static partial class NodeReportsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -95,9 +86,9 @@ public static partial class NodeReportsOperationsExtensions /// /// The report id. /// - public static DscNodeReport Get(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string reportId) + public static DscNodeReport Get(this INodeReportsOperations operations, string automationAccountName, string nodeId, string reportId) { - return operations.GetAsync(resourceGroupName, automationAccountName, nodeId, reportId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, nodeId, reportId).GetAwaiter().GetResult(); } /// @@ -107,9 +98,6 @@ public static DscNodeReport Get(this INodeReportsOperations operations, string r /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -122,9 +110,9 @@ public static DscNodeReport Get(this INodeReportsOperations operations, string r /// /// The cancellation token. /// - public static async Task GetAsync(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string reportId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this INodeReportsOperations operations, string automationAccountName, string nodeId, string reportId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, reportId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, nodeId, reportId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -137,9 +125,6 @@ public static DscNodeReport Get(this INodeReportsOperations operations, string r /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -149,9 +134,9 @@ public static DscNodeReport Get(this INodeReportsOperations operations, string r /// /// The report id. /// - public static Stream GetContent(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string reportId) + public static Stream GetContent(this INodeReportsOperations operations, string automationAccountName, string nodeId, string reportId) { - return operations.GetContentAsync(resourceGroupName, automationAccountName, nodeId, reportId).GetAwaiter().GetResult(); + return operations.GetContentAsync(automationAccountName, nodeId, reportId).GetAwaiter().GetResult(); } /// @@ -161,9 +146,6 @@ public static Stream GetContent(this INodeReportsOperations operations, string r /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -176,9 +158,9 @@ public static Stream GetContent(this INodeReportsOperations operations, string r /// /// The cancellation token. /// - public static async Task GetContentAsync(this INodeReportsOperations operations, string resourceGroupName, string automationAccountName, string nodeId, string reportId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetContentAsync(this INodeReportsOperations operations, string automationAccountName, string nodeId, string reportId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, nodeId, reportId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetContentWithHttpMessagesAsync(automationAccountName, nodeId, reportId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperations.cs index 3c5a76138bfe..d32960cdc03c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal ObjectDataTypesOperations(AutomationClient client) /// Retrieve a list of fields of a given type identified by module name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal ObjectDataTypesOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListFieldsByModuleAndTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListFieldsByModuleAndTypeWithHttpMessagesAsync(string automationAccountName, string moduleName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -124,7 +121,6 @@ internal ObjectDataTypesOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("moduleName", moduleName); tracingParameters.Add("typeName", typeName); @@ -135,7 +131,7 @@ internal ObjectDataTypesOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/modules/{moduleName}/objectDataTypes/{typeName}/fields").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{moduleName}", System.Uri.EscapeDataString(moduleName)); _url = _url.Replace("{typeName}", System.Uri.EscapeDataString(typeName)); @@ -269,9 +265,6 @@ internal ObjectDataTypesOperations(AutomationClient client) /// Retrieve a list of fields of a given type across all accessible modules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -299,17 +292,17 @@ internal ObjectDataTypesOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListFieldsByTypeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListFieldsByTypeWithHttpMessagesAsync(string automationAccountName, string typeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -332,7 +325,6 @@ internal ObjectDataTypesOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("typeName", typeName); tracingParameters.Add("apiVersion", apiVersion); @@ -342,7 +334,7 @@ internal ObjectDataTypesOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{typeName}", System.Uri.EscapeDataString(typeName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperationsExtensions.cs index ca3466ecd8f8..e8a970fbfd04 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ObjectDataTypesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -30,9 +30,6 @@ public static partial class ObjectDataTypesOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -42,9 +39,9 @@ public static partial class ObjectDataTypesOperationsExtensions /// /// The name of type. /// - public static IEnumerable ListFieldsByModuleAndType(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName) + public static IEnumerable ListFieldsByModuleAndType(this IObjectDataTypesOperations operations, string automationAccountName, string moduleName, string typeName) { - return operations.ListFieldsByModuleAndTypeAsync(resourceGroupName, automationAccountName, moduleName, typeName).GetAwaiter().GetResult(); + return operations.ListFieldsByModuleAndTypeAsync(automationAccountName, moduleName, typeName).GetAwaiter().GetResult(); } /// @@ -54,9 +51,6 @@ public static IEnumerable ListFieldsByModuleAndType(this IObjectDataT /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -69,9 +63,9 @@ public static IEnumerable ListFieldsByModuleAndType(this IObjectDataT /// /// The cancellation token. /// - public static async Task> ListFieldsByModuleAndTypeAsync(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListFieldsByModuleAndTypeAsync(this IObjectDataTypesOperations operations, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListFieldsByModuleAndTypeWithHttpMessagesAsync(resourceGroupName, automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListFieldsByModuleAndTypeWithHttpMessagesAsync(automationAccountName, moduleName, typeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -84,18 +78,15 @@ public static IEnumerable ListFieldsByModuleAndType(this IObjectDataT /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of type. /// - public static IEnumerable ListFieldsByType(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string typeName) + public static IEnumerable ListFieldsByType(this IObjectDataTypesOperations operations, string automationAccountName, string typeName) { - return operations.ListFieldsByTypeAsync(resourceGroupName, automationAccountName, typeName).GetAwaiter().GetResult(); + return operations.ListFieldsByTypeAsync(automationAccountName, typeName).GetAwaiter().GetResult(); } /// @@ -105,9 +96,6 @@ public static IEnumerable ListFieldsByType(this IObjectDataTypesOpera /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -117,9 +105,9 @@ public static IEnumerable ListFieldsByType(this IObjectDataTypesOpera /// /// The cancellation token. /// - public static async Task> ListFieldsByTypeAsync(this IObjectDataTypesOperations operations, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListFieldsByTypeAsync(this IObjectDataTypesOperations operations, string automationAccountName, string typeName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListFieldsByTypeWithHttpMessagesAsync(resourceGroupName, automationAccountName, typeName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListFieldsByTypeWithHttpMessagesAsync(automationAccountName, typeName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/Operations.cs b/src/SDKs/Automation/Management.Automation/Generated/Operations.cs index ed88d1a7bf3c..c73175553f50 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/Operations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/Operations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/OperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/OperationsExtensions.cs index a39c0dd2efd1..0b84de6623f0 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/OperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/OperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperations.cs index 8d096fd47e1d..8ae84782bbde 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Retrieve the content of runbook draft identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -85,17 +82,17 @@ internal RunbookDraftOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetContentWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -118,7 +115,6 @@ internal RunbookDraftOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -128,7 +124,7 @@ internal RunbookDraftOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -248,9 +244,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Updates the runbook draft with runbookStream as its content. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -266,10 +259,10 @@ internal RunbookDraftOperations(AutomationClient client) /// /// The cancellation token. /// - public async Task CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, runbookContent, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(automationAccountName, runbookName, runbookContent, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -277,9 +270,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Retrieve the runbook draft identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -307,17 +297,17 @@ internal RunbookDraftOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -340,7 +330,6 @@ internal RunbookDraftOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -350,7 +339,7 @@ internal RunbookDraftOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -483,9 +472,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Publish runbook draft. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -498,10 +484,10 @@ internal RunbookDraftOperations(AutomationClient client) /// /// The cancellation token. /// - public async Task> PublishWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PublishWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send request - AzureOperationResponse _response = await BeginPublishWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, customHeaders, cancellationToken).ConfigureAwait(false); + AzureOperationResponse _response = await BeginPublishWithHttpMessagesAsync(automationAccountName, runbookName, customHeaders, cancellationToken).ConfigureAwait(false); return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } @@ -509,9 +495,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Retrieve the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -539,17 +522,17 @@ internal RunbookDraftOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UndoEditWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UndoEditWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -572,7 +555,6 @@ internal RunbookDraftOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -582,7 +564,7 @@ internal RunbookDraftOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/undoEdit").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -715,9 +697,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Updates the runbook draft with runbookStream as its content. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -745,17 +724,17 @@ internal RunbookDraftOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginCreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, Stream runbookContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -782,7 +761,6 @@ internal RunbookDraftOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("runbookContent", runbookContent); @@ -793,7 +771,7 @@ internal RunbookDraftOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -846,8 +824,8 @@ internal RunbookDraftOperations(AutomationClient client) } if (runbookContent != null && runbookContent != Stream.Null) { - _httpRequest.Content = new StreamContent(runbookContent); - _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + _httpRequest.Content = new StreamContent(runbookContent); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) @@ -869,7 +847,7 @@ internal RunbookDraftOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -917,9 +895,6 @@ internal RunbookDraftOperations(AutomationClient client) /// Publish runbook draft. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -947,17 +922,17 @@ internal RunbookDraftOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginPublishWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginPublishWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -980,7 +955,6 @@ internal RunbookDraftOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -990,7 +964,7 @@ internal RunbookDraftOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/publish").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1057,7 +1031,7 @@ internal RunbookDraftOperations(AutomationClient client) System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 202 && (int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try diff --git a/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperationsExtensions.cs index 8ff50f5c375b..629174dd9e89 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/RunbookDraftOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,18 +29,15 @@ public static partial class RunbookDraftOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static Stream GetContent(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static Stream GetContent(this IRunbookDraftOperations operations, string automationAccountName, string runbookName) { - return operations.GetContentAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.GetContentAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -50,9 +47,6 @@ public static Stream GetContent(this IRunbookDraftOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -62,9 +56,9 @@ public static Stream GetContent(this IRunbookDraftOperations operations, string /// /// The cancellation token. /// - public static async Task GetContentAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetContentAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetContentWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -76,9 +70,6 @@ public static Stream GetContent(this IRunbookDraftOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -88,9 +79,9 @@ public static Stream GetContent(this IRunbookDraftOperations operations, string /// /// The runbook draft content. /// - public static void CreateOrUpdate(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent) + public static void CreateOrUpdate(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, Stream runbookContent) { - operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, runbookName, runbookContent).GetAwaiter().GetResult(); + operations.CreateOrUpdateAsync(automationAccountName, runbookName, runbookContent).GetAwaiter().GetResult(); } /// @@ -100,9 +91,6 @@ public static void CreateOrUpdate(this IRunbookDraftOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -115,9 +103,9 @@ public static void CreateOrUpdate(this IRunbookDraftOperations operations, strin /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, Stream runbookContent, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, runbookContent, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, runbookName, runbookContent, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -127,18 +115,15 @@ public static void CreateOrUpdate(this IRunbookDraftOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static RunbookDraft Get(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static RunbookDraft Get(this IRunbookDraftOperations operations, string automationAccountName, string runbookName) { - return operations.GetAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -148,9 +133,6 @@ public static RunbookDraft Get(this IRunbookDraftOperations operations, string r /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -160,9 +142,9 @@ public static RunbookDraft Get(this IRunbookDraftOperations operations, string r /// /// The cancellation token. /// - public static async Task GetAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,18 +157,15 @@ public static RunbookDraft Get(this IRunbookDraftOperations operations, string r /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The parameters supplied to the publish runbook operation. /// - public static Runbook Publish(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static Runbook Publish(this IRunbookDraftOperations operations, string automationAccountName, string runbookName) { - return operations.PublishAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.PublishAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -196,9 +175,6 @@ public static Runbook Publish(this IRunbookDraftOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -208,9 +184,9 @@ public static Runbook Publish(this IRunbookDraftOperations operations, string re /// /// The cancellation token. /// - public static async Task PublishAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PublishAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PublishWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PublishWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -223,18 +199,15 @@ public static Runbook Publish(this IRunbookDraftOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations operations, string automationAccountName, string runbookName) { - return operations.UndoEditAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.UndoEditAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -244,9 +217,6 @@ public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -256,9 +226,9 @@ public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations o /// /// The cancellation token. /// - public static async Task UndoEditAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UndoEditAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UndoEditWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UndoEditWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -271,9 +241,6 @@ public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -283,9 +250,9 @@ public static RunbookDraftUndoEditResult UndoEdit(this IRunbookDraftOperations o /// /// The runbook draft content. /// - public static void BeginCreateOrUpdate(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent) + public static void BeginCreateOrUpdate(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, Stream runbookContent) { - operations.BeginCreateOrUpdateAsync(resourceGroupName, automationAccountName, runbookName, runbookContent).GetAwaiter().GetResult(); + operations.BeginCreateOrUpdateAsync(automationAccountName, runbookName, runbookContent).GetAwaiter().GetResult(); } /// @@ -295,9 +262,6 @@ public static void BeginCreateOrUpdate(this IRunbookDraftOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -310,9 +274,9 @@ public static void BeginCreateOrUpdate(this IRunbookDraftOperations operations, /// /// The cancellation token. /// - public static async Task BeginCreateOrUpdateAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, Stream runbookContent, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCreateOrUpdateAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, Stream runbookContent, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, runbookContent, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.BeginCreateOrUpdateWithHttpMessagesAsync(automationAccountName, runbookName, runbookContent, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -322,18 +286,15 @@ public static void BeginCreateOrUpdate(this IRunbookDraftOperations operations, /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The parameters supplied to the publish runbook operation. /// - public static Runbook BeginPublish(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static Runbook BeginPublish(this IRunbookDraftOperations operations, string automationAccountName, string runbookName) { - return operations.BeginPublishAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.BeginPublishAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -343,9 +304,6 @@ public static Runbook BeginPublish(this IRunbookDraftOperations operations, stri /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -355,9 +313,9 @@ public static Runbook BeginPublish(this IRunbookDraftOperations operations, stri /// /// The cancellation token. /// - public static async Task BeginPublishAsync(this IRunbookDraftOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginPublishAsync(this IRunbookDraftOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginPublishWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginPublishWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/RunbookOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/RunbookOperations.cs index e92fc4d9400b..ccfe808d165f 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/RunbookOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/RunbookOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -55,9 +55,6 @@ internal RunbookOperations(AutomationClient client) /// Retrieve the content of runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -85,17 +82,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetContentWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetContentWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -118,7 +115,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -128,7 +124,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/content").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -248,9 +244,6 @@ internal RunbookOperations(AutomationClient client) /// Retrieve the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -278,17 +271,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -311,7 +304,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -321,7 +313,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -454,9 +446,6 @@ internal RunbookOperations(AutomationClient client) /// Create the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -485,17 +474,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -526,7 +515,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("parameters", parameters); @@ -537,7 +525,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -658,9 +646,6 @@ internal RunbookOperations(AutomationClient client) /// Update the runbook identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -691,17 +676,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, RunbookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string runbookName, RunbookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -728,7 +713,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("parameters", parameters); @@ -739,7 +723,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -878,9 +862,6 @@ internal RunbookOperations(AutomationClient client) /// Delete the runbook by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -905,17 +886,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -938,7 +919,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -948,7 +928,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1063,9 +1043,6 @@ internal RunbookOperations(AutomationClient client) /// Retrieve a list of runbooks. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -1090,17 +1067,17 @@ internal RunbookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -1119,7 +1096,6 @@ internal RunbookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1128,7 +1104,7 @@ internal RunbookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/RunbookOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/RunbookOperationsExtensions.cs index 8a660f7e5fcd..69dddef3a867 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/RunbookOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/RunbookOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -29,18 +29,15 @@ public static partial class RunbookOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static Stream GetContent(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static Stream GetContent(this IRunbookOperations operations, string automationAccountName, string runbookName) { - return operations.GetContentAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.GetContentAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -50,9 +47,6 @@ public static Stream GetContent(this IRunbookOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -62,9 +56,9 @@ public static Stream GetContent(this IRunbookOperations operations, string resou /// /// The cancellation token. /// - public static async Task GetContentAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetContentAsync(this IRunbookOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.GetContentWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.GetContentWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -76,18 +70,15 @@ public static Stream GetContent(this IRunbookOperations operations, string resou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static Runbook Get(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static Runbook Get(this IRunbookOperations operations, string automationAccountName, string runbookName) { - return operations.GetAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -97,9 +88,6 @@ public static Runbook Get(this IRunbookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -109,9 +97,9 @@ public static Runbook Get(this IRunbookOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task GetAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IRunbookOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -124,9 +112,6 @@ public static Runbook Get(this IRunbookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -137,9 +122,9 @@ public static Runbook Get(this IRunbookOperations operations, string resourceGro /// The create or update parameters for runbook. Provide either content link /// for a published runbook or draft, not both. /// - public static void CreateOrUpdate(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters) + public static void CreateOrUpdate(this IRunbookOperations operations, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters) { - operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); + operations.CreateOrUpdateAsync(automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); } /// @@ -149,9 +134,6 @@ public static void CreateOrUpdate(this IRunbookOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -165,9 +147,9 @@ public static void CreateOrUpdate(this IRunbookOperations operations, string res /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IRunbookOperations operations, string automationAccountName, string runbookName, RunbookCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -177,9 +159,6 @@ public static void CreateOrUpdate(this IRunbookOperations operations, string res /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -189,9 +168,9 @@ public static void CreateOrUpdate(this IRunbookOperations operations, string res /// /// The update parameters for runbook. /// - public static Runbook Update(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, RunbookUpdateParameters parameters) + public static Runbook Update(this IRunbookOperations operations, string automationAccountName, string runbookName, RunbookUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); } /// @@ -201,9 +180,6 @@ public static Runbook Update(this IRunbookOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -216,9 +192,9 @@ public static Runbook Update(this IRunbookOperations operations, string resource /// /// The cancellation token. /// - public static async Task UpdateAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, RunbookUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IRunbookOperations operations, string automationAccountName, string runbookName, RunbookUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -231,18 +207,15 @@ public static Runbook Update(this IRunbookOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static void Delete(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static void Delete(this IRunbookOperations operations, string automationAccountName, string runbookName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -252,9 +225,6 @@ public static void Delete(this IRunbookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -264,9 +234,9 @@ public static void Delete(this IRunbookOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task DeleteAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IRunbookOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -276,15 +246,12 @@ public static void Delete(this IRunbookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IRunbookOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IRunbookOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -294,18 +261,15 @@ public static IPage ListByAutomationAccount(this IRunbookOperations ope /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IRunbookOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs index b985b66e1db6..9e6f00ac0f5d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal ScheduleOperations(AutomationClient client) /// Create a schedule. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal ScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -128,7 +125,6 @@ internal ScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("scheduleName", scheduleName); tracingParameters.Add("parameters", parameters); @@ -139,7 +135,7 @@ internal ScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{scheduleName}", System.Uri.EscapeDataString(scheduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -278,9 +274,6 @@ internal ScheduleOperations(AutomationClient client) /// Update the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -311,17 +304,17 @@ internal ScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -348,7 +341,6 @@ internal ScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("scheduleName", scheduleName); tracingParameters.Add("parameters", parameters); @@ -359,7 +351,7 @@ internal ScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{scheduleName}", System.Uri.EscapeDataString(scheduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -498,9 +490,6 @@ internal ScheduleOperations(AutomationClient client) /// Retrieve the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -528,17 +517,17 @@ internal ScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -561,7 +550,6 @@ internal ScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("scheduleName", scheduleName); tracingParameters.Add("apiVersion", apiVersion); @@ -571,7 +559,7 @@ internal ScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{scheduleName}", System.Uri.EscapeDataString(scheduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -704,9 +692,6 @@ internal ScheduleOperations(AutomationClient client) /// Delete the schedule identified by schedule name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -731,17 +716,17 @@ internal ScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string scheduleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -764,7 +749,6 @@ internal ScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("scheduleName", scheduleName); tracingParameters.Add("apiVersion", apiVersion); @@ -774,7 +758,7 @@ internal ScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{scheduleName}", System.Uri.EscapeDataString(scheduleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -889,9 +873,6 @@ internal ScheduleOperations(AutomationClient client) /// Retrieve a list of schedules. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -916,17 +897,17 @@ internal ScheduleOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -945,7 +926,6 @@ internal ScheduleOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -954,7 +934,7 @@ internal ScheduleOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperationsExtensions.cs index e523e11c364c..1730c55aa35d 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/ScheduleOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class ScheduleOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class ScheduleOperationsExtensions /// /// The parameters supplied to the create or update schedule operation. /// - public static Schedule CreateOrUpdate(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters) + public static Schedule CreateOrUpdate(this IScheduleOperations operations, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, scheduleName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, scheduleName, parameters).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static Schedule CreateOrUpdate(this IScheduleOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static Schedule CreateOrUpdate(this IScheduleOperations operations, strin /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IScheduleOperations operations, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, scheduleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, scheduleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,9 +76,6 @@ public static Schedule CreateOrUpdate(this IScheduleOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -94,9 +85,9 @@ public static Schedule CreateOrUpdate(this IScheduleOperations operations, strin /// /// The parameters supplied to the update schedule operation. /// - public static Schedule Update(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters) + public static Schedule Update(this IScheduleOperations operations, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, scheduleName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, scheduleName, parameters).GetAwaiter().GetResult(); } /// @@ -106,9 +97,6 @@ public static Schedule Update(this IScheduleOperations operations, string resour /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -121,9 +109,9 @@ public static Schedule Update(this IScheduleOperations operations, string resour /// /// The cancellation token. /// - public static async Task UpdateAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IScheduleOperations operations, string automationAccountName, string scheduleName, ScheduleUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, scheduleName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, scheduleName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -136,18 +124,15 @@ public static Schedule Update(this IScheduleOperations operations, string resour /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The schedule name. /// - public static Schedule Get(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName) + public static Schedule Get(this IScheduleOperations operations, string automationAccountName, string scheduleName) { - return operations.GetAsync(resourceGroupName, automationAccountName, scheduleName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, scheduleName).GetAwaiter().GetResult(); } /// @@ -157,9 +142,6 @@ public static Schedule Get(this IScheduleOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -169,9 +151,9 @@ public static Schedule Get(this IScheduleOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task GetAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IScheduleOperations operations, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, scheduleName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, scheduleName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -184,18 +166,15 @@ public static Schedule Get(this IScheduleOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The schedule name. /// - public static void Delete(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName) + public static void Delete(this IScheduleOperations operations, string automationAccountName, string scheduleName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, scheduleName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, scheduleName).GetAwaiter().GetResult(); } /// @@ -205,9 +184,6 @@ public static void Delete(this IScheduleOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -217,9 +193,9 @@ public static void Delete(this IScheduleOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task DeleteAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IScheduleOperations operations, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, scheduleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, scheduleName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -229,15 +205,12 @@ public static void Delete(this IScheduleOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IScheduleOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IScheduleOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this IScheduleOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IScheduleOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IScheduleOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs b/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs new file mode 100644 index 000000000000..67cb4a9aa2fb --- /dev/null +++ b/src/SDKs/Automation/Management.Automation/Generated/SdkInfo_AutomationClient.cs @@ -0,0 +1,49 @@ + +using System; +using System.Collections.Generic; +using System.Linq; + +internal static partial class SdkInfo +{ + public static IEnumerable> ApiInfo_AutomationClient + { + get + { + return new Tuple[] + { + new Tuple("Automation", "Activity", "2015-10-31"), + new Tuple("Automation", "AgentRegistrationInformation", "2015-10-31"), + new Tuple("Automation", "AutomationAccount", "2015-10-31"), + new Tuple("Automation", "Certificate", "2015-10-31"), + new Tuple("Automation", "Connection", "2015-10-31"), + new Tuple("Automation", "ConnectionType", "2015-10-31"), + new Tuple("Automation", "Credential", "2015-10-31"), + new Tuple("Automation", "DscCompilationJob", "2015-10-31"), + new Tuple("Automation", "DscConfiguration", "2015-10-31"), + new Tuple("Automation", "DscNode", "2015-10-31"), + new Tuple("Automation", "DscNodeConfiguration", "2015-10-31"), + new Tuple("Automation", "Fields", "2015-10-31"), + new Tuple("Automation", "HybridRunbookWorkerGroup", "2015-10-31"), + new Tuple("Automation", "Job", "2015-10-31"), + new Tuple("Automation", "JobSchedule", "2015-10-31"), + new Tuple("Automation", "JobStream", "2015-10-31"), + new Tuple("Automation", "Module", "2015-10-31"), + new Tuple("Automation", "NodeReports", "2015-10-31"), + new Tuple("Automation", "ObjectDataTypes", "2015-10-31"), + new Tuple("Automation", "Operations", "2015-10-31"), + new Tuple("Automation", "Runbook", "2015-10-31"), + new Tuple("Automation", "RunbookDraft", "2015-10-31"), + new Tuple("Automation", "Schedule", "2015-10-31"), + new Tuple("Automation", "SoftwareUpdateConfigurationMachineRuns", "2017-05-15-preview"), + new Tuple("Automation", "SoftwareUpdateConfigurationRuns", "2017-05-15-preview"), + new Tuple("Automation", "SoftwareUpdateConfigurations", "2017-05-15-preview"), + new Tuple("Automation", "Statistics", "2015-10-31"), + new Tuple("Automation", "TestJobStreams", "2015-10-31"), + new Tuple("Automation", "TestJobs", "2015-10-31"), + new Tuple("Automation", "Usages", "2015-10-31"), + new Tuple("Automation", "Variable", "2015-10-31"), + new Tuple("Automation", "Webhook", "2015-10-31"), + }.AsEnumerable(); + } + } +} diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperations.cs index 9b74496ddae4..41afe33d8419 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,8 +54,8 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien /// Get a single software update configuration machine run by Id. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration machine run. /// /// /// Headers that will be added to request. @@ -78,11 +78,26 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien /// /// A response object containing the response body and response headers. /// - public async Task> GetByIdWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByIdWithHttpMessagesAsync(System.Guid softwareUpdateConfigurationMachineRunId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -92,7 +107,7 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("softwareUpdateConfigurationMachineRunId", softwareUpdateConfigurationMachineRunId); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetById", tracingParameters); @@ -100,10 +115,10 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns/{softwareUpdateConfigurationMachineRunId}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{softwareUpdateConfigurationMachineRunId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SoftwareUpdateConfigurationMachineRunId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); + _url = _url.Replace("{softwareUpdateConfigurationMachineRunId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(softwareUpdateConfigurationMachineRunId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (apiVersion != null) { @@ -246,8 +261,10 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien /// Return list of software update configuration machine runs /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -255,11 +272,6 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// Headers that will be added to request. /// @@ -281,11 +293,26 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string filter = default(string), string skip = default(string), string top = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -295,25 +322,28 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); tracingParameters.Add("skip", skip); tracingParameters.Add("top", top); - tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationMachineRuns").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); List _queryParameters = new List(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } if (skip != null) { _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(skip))); @@ -322,10 +352,6 @@ internal SoftwareUpdateConfigurationMachineRunsOperations(AutomationClient clien { _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(top))); } - if (filter != null) - { - _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs index 8200eaaac448..5c743aa9eb64 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationMachineRunsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,12 +28,12 @@ public static partial class SoftwareUpdateConfigurationMachineRunsOperationsExte /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration machine run. /// - public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName) + public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdateConfigurationMachineRunsOperations operations, System.Guid softwareUpdateConfigurationMachineRunId) { - return operations.GetByIdAsync(resourceGroupName).GetAwaiter().GetResult(); + return operations.GetByIdAsync(softwareUpdateConfigurationMachineRunId).GetAwaiter().GetResult(); } /// @@ -43,15 +43,15 @@ public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdate /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration machine run. /// /// /// The cancellation token. /// - public static async Task GetByIdAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByIdAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, System.Guid softwareUpdateConfigurationMachineRunId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByIdWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByIdWithHttpMessagesAsync(softwareUpdateConfigurationMachineRunId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -64,8 +64,10 @@ public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdate /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -73,14 +75,9 @@ public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdate /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// - public static SoftwareUpdateConfigurationMachineRunListResult List(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string)) + public static SoftwareUpdateConfigurationMachineRunListResult List(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string filter = default(string), string skip = default(string), string top = default(string)) { - return operations.ListAsync(resourceGroupName, skip, top, filter).GetAwaiter().GetResult(); + return operations.ListAsync(filter, skip, top).GetAwaiter().GetResult(); } /// @@ -90,8 +87,10 @@ public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdate /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -99,17 +98,12 @@ public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdate /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// The cancellation token. /// - public static async Task ListAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string filter = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, skip, top, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperations.cs index ec5b16f1ab4f..769986d64179 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,8 +54,8 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) /// Get a single software update configuration Run by Id. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration run. /// /// /// Headers that will be added to request. @@ -78,11 +78,26 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByIdWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByIdWithHttpMessagesAsync(System.Guid softwareUpdateConfigurationRunId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -92,7 +107,7 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("softwareUpdateConfigurationRunId", softwareUpdateConfigurationRunId); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetById", tracingParameters); @@ -100,10 +115,10 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns/{softwareUpdateConfigurationRunId}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{softwareUpdateConfigurationRunId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SoftwareUpdateConfigurationRunId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); + _url = _url.Replace("{softwareUpdateConfigurationRunId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(softwareUpdateConfigurationRunId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (apiVersion != null) { @@ -246,8 +261,10 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) /// Return list of software update configuration runs /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -255,11 +272,6 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// Headers that will be added to request. /// @@ -281,11 +293,26 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string filter = default(string), string skip = default(string), string top = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -295,25 +322,28 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); + tracingParameters.Add("filter", filter); tracingParameters.Add("skip", skip); tracingParameters.Add("top", top); - tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurationRuns").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); List _queryParameters = new List(); if (apiVersion != null) { _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } if (skip != null) { _queryParameters.Add(string.Format("$skip={0}", System.Uri.EscapeDataString(skip))); @@ -322,10 +352,6 @@ internal SoftwareUpdateConfigurationRunsOperations(AutomationClient client) { _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(top))); } - if (filter != null) - { - _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); - } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperationsExtensions.cs index e2f74e61e57a..5f7e19493938 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationRunsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,12 +28,12 @@ public static partial class SoftwareUpdateConfigurationRunsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration run. /// - public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName) + public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigurationRunsOperations operations, System.Guid softwareUpdateConfigurationRunId) { - return operations.GetByIdAsync(resourceGroupName).GetAwaiter().GetResult(); + return operations.GetByIdAsync(softwareUpdateConfigurationRunId).GetAwaiter().GetResult(); } /// @@ -43,15 +43,15 @@ public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigu /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The Id of the software update configuration run. /// /// /// The cancellation token. /// - public static async Task GetByIdAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByIdAsync(this ISoftwareUpdateConfigurationRunsOperations operations, System.Guid softwareUpdateConfigurationRunId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByIdWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByIdWithHttpMessagesAsync(softwareUpdateConfigurationRunId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -64,8 +64,10 @@ public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigu /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -73,14 +75,9 @@ public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigu /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// - public static SoftwareUpdateConfigurationRunListResult List(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string)) + public static SoftwareUpdateConfigurationRunListResult List(this ISoftwareUpdateConfigurationRunsOperations operations, string filter = default(string), string skip = default(string), string top = default(string)) { - return operations.ListAsync(resourceGroupName, skip, top, filter).GetAwaiter().GetResult(); + return operations.ListAsync(filter, skip, top).GetAwaiter().GetResult(); } /// @@ -90,8 +87,10 @@ public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigu /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The filter to apply on the operation. You can use the following filters: + /// 'properties/osType', 'properties/status', 'properties/startTime', and + /// 'properties/softwareUpdateConfiguration/name' /// /// /// number of entries you skip before returning results @@ -99,17 +98,12 @@ public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigu /// /// Maximum number of entries returned in the results collection /// - /// - /// The filter to apply on the operation. You can use the following filters: - /// 'properties/osType', 'properties/status', 'properties/startTime', and - /// 'properties/softwareUpdateConfiguration/name' - /// /// /// The cancellation token. /// - public static async Task ListAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string skip = default(string), string top = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string filter = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, skip, top, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(filter, skip, top, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperations.cs index afb92a86ad83..4f497e904716 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,8 +54,8 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// Create a new software update configuration with the name given in the URI. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Request body. @@ -81,15 +81,30 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, SoftwareUpdateConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (Client.SoftwareUpdateConfigurationName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SoftwareUpdateConfigurationName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); + } + if (softwareUpdateConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "softwareUpdateConfigurationName"); } if (parameters == null) { @@ -107,7 +122,7 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("softwareUpdateConfigurationName", softwareUpdateConfigurationName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); @@ -116,10 +131,10 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(Client.SoftwareUpdateConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); + _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(softwareUpdateConfigurationName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -286,8 +301,8 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// Get a single software update configuration by name. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Headers that will be added to request. @@ -310,15 +325,30 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetByNameWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByNameWithHttpMessagesAsync(string softwareUpdateConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (Client.SoftwareUpdateConfigurationName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SoftwareUpdateConfigurationName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); + } + if (softwareUpdateConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "softwareUpdateConfigurationName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -328,7 +358,7 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("softwareUpdateConfigurationName", softwareUpdateConfigurationName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetByName", tracingParameters); @@ -336,10 +366,10 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(Client.SoftwareUpdateConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); + _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(softwareUpdateConfigurationName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -482,8 +512,8 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// delete a specific software update configuration. /// /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Headers that will be added to request. @@ -503,15 +533,30 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string softwareUpdateConfigurationName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (Client.SoftwareUpdateConfigurationName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SoftwareUpdateConfigurationName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); + } + if (softwareUpdateConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "softwareUpdateConfigurationName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -521,7 +566,7 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("softwareUpdateConfigurationName", softwareUpdateConfigurationName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); @@ -529,10 +574,10 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName}").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(Client.SoftwareUpdateConfigurationName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); + _url = _url.Replace("{softwareUpdateConfigurationName}", System.Uri.EscapeDataString(softwareUpdateConfigurationName)); List _queryParameters = new List(); if (apiVersion != null) { @@ -657,9 +702,6 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// Get all software update configurations for the account. /// /// - /// - /// The name of the resource group within user's subscription. - /// /// /// The filter to apply on the operation. /// @@ -684,11 +726,26 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(string resourceGroupName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (Client.ResourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); + } + if (Client.ResourceGroupName != null) + { + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) + { + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); + } + } + if (Client.AutomationAccountName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.AutomationAccountName"); } string apiVersion = "2017-05-15-preview"; // Tracing @@ -698,7 +755,6 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("filter", filter); tracingParameters.Add("cancellationToken", cancellationToken); @@ -707,9 +763,9 @@ internal SoftwareUpdateConfigurationsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.SubscriptionId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(Client.AutomationAccountName, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); + _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(Client.AutomationAccountName)); List _queryParameters = new List(); if (apiVersion != null) { diff --git a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperationsExtensions.cs index 66af4aea4b20..bca854b6a29a 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/SoftwareUpdateConfigurationsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,15 +28,15 @@ public static partial class SoftwareUpdateConfigurationsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Request body. /// - public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, SoftwareUpdateConfiguration parameters) + public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters) { - return operations.CreateAsync(resourceGroupName, parameters).GetAwaiter().GetResult(); + return operations.CreateAsync(softwareUpdateConfigurationName, parameters).GetAwaiter().GetResult(); } /// @@ -46,8 +46,8 @@ public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurati /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// Request body. @@ -55,9 +55,9 @@ public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurati /// /// The cancellation token. /// - public static async Task CreateAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, SoftwareUpdateConfiguration parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(softwareUpdateConfigurationName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -70,12 +70,12 @@ public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurati /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// - public static SoftwareUpdateConfiguration GetByName(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName) + public static SoftwareUpdateConfiguration GetByName(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName) { - return operations.GetByNameAsync(resourceGroupName).GetAwaiter().GetResult(); + return operations.GetByNameAsync(softwareUpdateConfigurationName).GetAwaiter().GetResult(); } /// @@ -85,15 +85,15 @@ public static SoftwareUpdateConfiguration GetByName(this ISoftwareUpdateConfigur /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// The cancellation token. /// - public static async Task GetByNameAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByNameAsync(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByNameWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetByNameWithHttpMessagesAsync(softwareUpdateConfigurationName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -106,12 +106,12 @@ public static SoftwareUpdateConfiguration GetByName(this ISoftwareUpdateConfigur /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// - public static void Delete(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName) + public static void Delete(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName) { - operations.DeleteAsync(resourceGroupName).GetAwaiter().GetResult(); + operations.DeleteAsync(softwareUpdateConfigurationName).GetAwaiter().GetResult(); } /// @@ -121,15 +121,15 @@ public static void Delete(this ISoftwareUpdateConfigurationsOperations operation /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. + /// + /// The name of the software update configuration to be created. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ISoftwareUpdateConfigurationsOperations operations, string softwareUpdateConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(softwareUpdateConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -139,15 +139,12 @@ public static void Delete(this ISoftwareUpdateConfigurationsOperations operation /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. - /// /// /// The filter to apply on the operation. /// - public static SoftwareUpdateConfigurationListResult List(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string filter = default(string)) + public static SoftwareUpdateConfigurationListResult List(this ISoftwareUpdateConfigurationsOperations operations, string filter = default(string)) { - return operations.ListAsync(resourceGroupName, filter).GetAwaiter().GetResult(); + return operations.ListAsync(filter).GetAwaiter().GetResult(); } /// @@ -157,18 +154,15 @@ public static void Delete(this ISoftwareUpdateConfigurationsOperations operation /// /// The operations group for this extension method. /// - /// - /// The name of the resource group within user's subscription. - /// /// /// The filter to apply on the operation. /// /// /// The cancellation token. /// - public static async Task ListAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ISoftwareUpdateConfigurationsOperations operations, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperations.cs index b203d20db1a7..71703d239aff 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperationsExtensions.cs index 21631fd847c5..cab3286abc54 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/StatisticsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperations.cs index 3d6b06302329..a11fa471f647 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal TestJobStreamsOperations(AutomationClient client) /// Retrieve a test job streams identified by runbook name and stream id. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal TestJobStreamsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, string jobStreamId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -124,7 +121,6 @@ internal TestJobStreamsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("jobStreamId", jobStreamId); @@ -135,7 +131,7 @@ internal TestJobStreamsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams/{jobStreamId}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{jobStreamId}", System.Uri.EscapeDataString(jobStreamId)); @@ -269,9 +265,6 @@ internal TestJobStreamsOperations(AutomationClient client) /// Retrieve a list of test job streams identified by runbook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -302,17 +295,17 @@ internal TestJobStreamsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByTestJobWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByTestJobWithHttpMessagesAsync(string automationAccountName, string runbookName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -335,7 +328,6 @@ internal TestJobStreamsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("filter", filter); @@ -346,7 +338,7 @@ internal TestJobStreamsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/streams").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperationsExtensions.cs index d0ae70570e9a..1fc7e8c7b45c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/TestJobStreamsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class TestJobStreamsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class TestJobStreamsOperationsExtensions /// /// The job stream id. /// - public static JobStream Get(this ITestJobStreamsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId) + public static JobStream Get(this ITestJobStreamsOperations operations, string automationAccountName, string runbookName, string jobStreamId) { - return operations.GetAsync(resourceGroupName, automationAccountName, runbookName, jobStreamId).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, runbookName, jobStreamId).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The cancellation token. /// - public static async Task GetAsync(this ITestJobStreamsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ITestJobStreamsOperations operations, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, jobStreamId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, runbookName, jobStreamId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,9 +76,6 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -94,9 +85,9 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The filter to apply on the operation. /// - public static IPage ListByTestJob(this ITestJobStreamsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, string filter = default(string)) + public static IPage ListByTestJob(this ITestJobStreamsOperations operations, string automationAccountName, string runbookName, string filter = default(string)) { - return operations.ListByTestJobAsync(resourceGroupName, automationAccountName, runbookName, filter).GetAwaiter().GetResult(); + return operations.ListByTestJobAsync(automationAccountName, runbookName, filter).GetAwaiter().GetResult(); } /// @@ -106,9 +97,6 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -121,9 +109,9 @@ public static JobStream Get(this ITestJobStreamsOperations operations, string re /// /// The cancellation token. /// - public static async Task> ListByTestJobAsync(this ITestJobStreamsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByTestJobAsync(this ITestJobStreamsOperations operations, string automationAccountName, string runbookName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByTestJobWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByTestJobWithHttpMessagesAsync(automationAccountName, runbookName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperations.cs index f26e4453dcd5..5aee62dbccfd 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal TestJobsOperations(AutomationClient client) /// Create a test job of the runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal TestJobsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string automationAccountName, string runbookName, TestJobCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -128,7 +125,6 @@ internal TestJobsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("parameters", parameters); @@ -139,7 +135,7 @@ internal TestJobsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -278,9 +274,6 @@ internal TestJobsOperations(AutomationClient client) /// Retrieve the test job for the specified runbook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -308,17 +301,17 @@ internal TestJobsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -341,7 +334,6 @@ internal TestJobsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -351,7 +343,7 @@ internal TestJobsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -484,9 +476,6 @@ internal TestJobsOperations(AutomationClient client) /// Resume the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -511,17 +500,17 @@ internal TestJobsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task ResumeWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task ResumeWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -544,7 +533,6 @@ internal TestJobsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -554,7 +542,7 @@ internal TestJobsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -669,9 +657,6 @@ internal TestJobsOperations(AutomationClient client) /// Stop the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -696,17 +681,17 @@ internal TestJobsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task StopWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task StopWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -729,7 +714,6 @@ internal TestJobsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -739,7 +723,7 @@ internal TestJobsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -854,9 +838,6 @@ internal TestJobsOperations(AutomationClient client) /// Suspend the test job. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -881,17 +862,17 @@ internal TestJobsOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task SuspendWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task SuspendWithHttpMessagesAsync(string automationAccountName, string runbookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -914,7 +895,6 @@ internal TestJobsOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("runbookName", runbookName); tracingParameters.Add("apiVersion", apiVersion); @@ -924,7 +904,7 @@ internal TestJobsOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{runbookName}", System.Uri.EscapeDataString(runbookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); diff --git a/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperationsExtensions.cs index 7d4cdbce004f..efe2bf4bacad 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/TestJobsOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class TestJobsOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class TestJobsOperationsExtensions /// /// The parameters supplied to the create test job operation. /// - public static TestJob Create(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateParameters parameters) + public static TestJob Create(this ITestJobsOperations operations, string automationAccountName, string runbookName, TestJobCreateParameters parameters) { - return operations.CreateAsync(resourceGroupName, automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); + return operations.CreateAsync(automationAccountName, runbookName, parameters).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static TestJob Create(this ITestJobsOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static TestJob Create(this ITestJobsOperations operations, string resourc /// /// The cancellation token. /// - public static async Task CreateAsync(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ITestJobsOperations operations, string automationAccountName, string runbookName, TestJobCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(automationAccountName, runbookName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,18 +76,15 @@ public static TestJob Create(this ITestJobsOperations operations, string resourc /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static TestJob Get(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static TestJob Get(this ITestJobsOperations operations, string automationAccountName, string runbookName) { - return operations.GetAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -103,9 +94,6 @@ public static TestJob Get(this ITestJobsOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -115,9 +103,9 @@ public static TestJob Get(this ITestJobsOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task GetAsync(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ITestJobsOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -130,18 +118,15 @@ public static TestJob Get(this ITestJobsOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static void Resume(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static void Resume(this ITestJobsOperations operations, string automationAccountName, string runbookName) { - operations.ResumeAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + operations.ResumeAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -151,9 +136,6 @@ public static void Resume(this ITestJobsOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -163,9 +145,9 @@ public static void Resume(this ITestJobsOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task ResumeAsync(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ResumeAsync(this ITestJobsOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.ResumeWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.ResumeWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -175,18 +157,15 @@ public static void Resume(this ITestJobsOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static void Stop(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static void Stop(this ITestJobsOperations operations, string automationAccountName, string runbookName) { - operations.StopAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + operations.StopAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -196,9 +175,6 @@ public static void Stop(this ITestJobsOperations operations, string resourceGrou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -208,9 +184,9 @@ public static void Stop(this ITestJobsOperations operations, string resourceGrou /// /// The cancellation token. /// - public static async Task StopAsync(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task StopAsync(this ITestJobsOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.StopWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.StopWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -220,18 +196,15 @@ public static void Stop(this ITestJobsOperations operations, string resourceGrou /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The runbook name. /// - public static void Suspend(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName) + public static void Suspend(this ITestJobsOperations operations, string automationAccountName, string runbookName) { - operations.SuspendAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult(); + operations.SuspendAsync(automationAccountName, runbookName).GetAwaiter().GetResult(); } /// @@ -241,9 +214,6 @@ public static void Suspend(this ITestJobsOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -253,9 +223,9 @@ public static void Suspend(this ITestJobsOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task SuspendAsync(this ITestJobsOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task SuspendAsync(this ITestJobsOperations operations, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.SuspendWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.SuspendWithHttpMessagesAsync(automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } } diff --git a/src/SDKs/Automation/Management.Automation/Generated/UsagesOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/UsagesOperations.cs index f0a936841842..f837a9dcaa10 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/UsagesOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/UsagesOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/UsagesOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/UsagesOperationsExtensions.cs index 87bdf692c13f..5587c10caa7c 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/UsagesOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/UsagesOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; diff --git a/src/SDKs/Automation/Management.Automation/Generated/VariableOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/VariableOperations.cs index 9202c3cf6b47..185e178ce095 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/VariableOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/VariableOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal VariableOperations(AutomationClient client) /// Create a variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -87,17 +84,17 @@ internal VariableOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -128,7 +125,6 @@ internal VariableOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("variableName", variableName); tracingParameters.Add("parameters", parameters); @@ -139,7 +135,7 @@ internal VariableOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{variableName}", System.Uri.EscapeDataString(variableName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -296,9 +292,6 @@ internal VariableOperations(AutomationClient client) /// Update a variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -329,17 +322,17 @@ internal VariableOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, VariableUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string variableName, VariableUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -366,7 +359,6 @@ internal VariableOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("variableName", variableName); tracingParameters.Add("parameters", parameters); @@ -377,7 +369,7 @@ internal VariableOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{variableName}", System.Uri.EscapeDataString(variableName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -516,9 +508,6 @@ internal VariableOperations(AutomationClient client) /// Delete the variable. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -543,17 +532,17 @@ internal VariableOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -576,7 +565,6 @@ internal VariableOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("variableName", variableName); tracingParameters.Add("apiVersion", apiVersion); @@ -586,7 +574,7 @@ internal VariableOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{variableName}", System.Uri.EscapeDataString(variableName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -701,9 +689,6 @@ internal VariableOperations(AutomationClient client) /// Retrieve the variable identified by variable name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -731,17 +716,17 @@ internal VariableOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string variableName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -764,7 +749,6 @@ internal VariableOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("variableName", variableName); tracingParameters.Add("apiVersion", apiVersion); @@ -774,7 +758,7 @@ internal VariableOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{variableName}", System.Uri.EscapeDataString(variableName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -907,9 +891,6 @@ internal VariableOperations(AutomationClient client) /// Retrieve a list of variables. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -934,17 +915,17 @@ internal VariableOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -963,7 +944,6 @@ internal VariableOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -972,7 +952,7 @@ internal VariableOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/VariableOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/VariableOperationsExtensions.cs index 6a66b79a35a1..6f3fec52a62b 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/VariableOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/VariableOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,9 +28,6 @@ public static partial class VariableOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -40,9 +37,9 @@ public static partial class VariableOperationsExtensions /// /// The parameters supplied to the create or update variable operation. /// - public static Variable CreateOrUpdate(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters) + public static Variable CreateOrUpdate(this IVariableOperations operations, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, variableName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, variableName, parameters).GetAwaiter().GetResult(); } /// @@ -52,9 +49,6 @@ public static Variable CreateOrUpdate(this IVariableOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -67,9 +61,9 @@ public static Variable CreateOrUpdate(this IVariableOperations operations, strin /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IVariableOperations operations, string automationAccountName, string variableName, VariableCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, variableName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, variableName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -82,9 +76,6 @@ public static Variable CreateOrUpdate(this IVariableOperations operations, strin /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -94,9 +85,9 @@ public static Variable CreateOrUpdate(this IVariableOperations operations, strin /// /// The parameters supplied to the update variable operation. /// - public static Variable Update(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, VariableUpdateParameters parameters) + public static Variable Update(this IVariableOperations operations, string automationAccountName, string variableName, VariableUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, variableName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, variableName, parameters).GetAwaiter().GetResult(); } /// @@ -106,9 +97,6 @@ public static Variable Update(this IVariableOperations operations, string resour /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -121,9 +109,9 @@ public static Variable Update(this IVariableOperations operations, string resour /// /// The cancellation token. /// - public static async Task UpdateAsync(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, VariableUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IVariableOperations operations, string automationAccountName, string variableName, VariableUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, variableName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, variableName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -136,18 +124,15 @@ public static Variable Update(this IVariableOperations operations, string resour /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of variable. /// - public static void Delete(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName) + public static void Delete(this IVariableOperations operations, string automationAccountName, string variableName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, variableName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, variableName).GetAwaiter().GetResult(); } /// @@ -157,9 +142,6 @@ public static void Delete(this IVariableOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -169,9 +151,9 @@ public static void Delete(this IVariableOperations operations, string resourceGr /// /// The cancellation token. /// - public static async Task DeleteAsync(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IVariableOperations operations, string automationAccountName, string variableName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, variableName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, variableName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -181,18 +163,15 @@ public static void Delete(this IVariableOperations operations, string resourceGr /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The name of variable. /// - public static Variable Get(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName) + public static Variable Get(this IVariableOperations operations, string automationAccountName, string variableName) { - return operations.GetAsync(resourceGroupName, automationAccountName, variableName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, variableName).GetAwaiter().GetResult(); } /// @@ -202,9 +181,6 @@ public static Variable Get(this IVariableOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -214,9 +190,9 @@ public static Variable Get(this IVariableOperations operations, string resourceG /// /// The cancellation token. /// - public static async Task GetAsync(this IVariableOperations operations, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IVariableOperations operations, string automationAccountName, string variableName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, variableName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, variableName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -229,15 +205,12 @@ public static Variable Get(this IVariableOperations operations, string resourceG /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static IPage ListByAutomationAccount(this IVariableOperations operations, string resourceGroupName, string automationAccountName) + public static IPage ListByAutomationAccount(this IVariableOperations operations, string automationAccountName) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -247,18 +220,15 @@ public static IPage ListByAutomationAccount(this IVariableOperations o /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IVariableOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IVariableOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Generated/WebhookOperations.cs b/src/SDKs/Automation/Management.Automation/Generated/WebhookOperations.cs index df8ed6aac0e9..96a282e333ca 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/WebhookOperations.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/WebhookOperations.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -54,9 +54,6 @@ internal WebhookOperations(AutomationClient client) /// Generates a Uri for use in creating a webhook. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -81,17 +78,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GenerateUriWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GenerateUriWithHttpMessagesAsync(string automationAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -110,7 +107,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("apiVersion", apiVersion); tracingParameters.Add("cancellationToken", cancellationToken); @@ -119,7 +115,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/generateUri").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); @@ -251,9 +247,6 @@ internal WebhookOperations(AutomationClient client) /// Delete the webhook by name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -278,17 +271,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -311,7 +304,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("webhookName", webhookName); tracingParameters.Add("apiVersion", apiVersion); @@ -321,7 +313,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -436,9 +428,6 @@ internal WebhookOperations(AutomationClient client) /// Retrieve the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -466,17 +455,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string automationAccountName, string webhookName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -499,7 +488,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("webhookName", webhookName); tracingParameters.Add("apiVersion", apiVersion); @@ -509,7 +497,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -642,9 +630,6 @@ internal WebhookOperations(AutomationClient client) /// Create the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -675,17 +660,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -716,7 +701,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("webhookName", webhookName); tracingParameters.Add("parameters", parameters); @@ -727,7 +711,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -884,9 +868,6 @@ internal WebhookOperations(AutomationClient client) /// Update the webhook identified by webhook name. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -917,17 +898,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string automationAccountName, string webhookName, WebhookUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -954,7 +935,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("webhookName", webhookName); tracingParameters.Add("parameters", parameters); @@ -965,7 +945,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{webhookName}", System.Uri.EscapeDataString(webhookName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); @@ -1104,9 +1084,6 @@ internal WebhookOperations(AutomationClient client) /// Retrieve a list of webhooks. /// /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -1134,17 +1111,17 @@ internal WebhookOperations(AutomationClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string resourceGroupName, string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAutomationAccountWithHttpMessagesAsync(string automationAccountName, string filter = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (resourceGroupName == null) + if (Client.ResourceGroupName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ResourceGroupName"); } - if (resourceGroupName != null) + if (Client.ResourceGroupName != null) { - if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._]+$")) + if (!System.Text.RegularExpressions.Regex.IsMatch(Client.ResourceGroupName, "^[-\\w\\._]+$")) { - throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._]+$"); + throw new ValidationException(ValidationRules.Pattern, "Client.ResourceGroupName", "^[-\\w\\._]+$"); } } if (automationAccountName == null) @@ -1163,7 +1140,6 @@ internal WebhookOperations(AutomationClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); - tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("automationAccountName", automationAccountName); tracingParameters.Add("filter", filter); tracingParameters.Add("apiVersion", apiVersion); @@ -1173,7 +1149,7 @@ internal WebhookOperations(AutomationClient client) // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks").ToString(); - _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(Client.ResourceGroupName)); _url = _url.Replace("{automationAccountName}", System.Uri.EscapeDataString(automationAccountName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); diff --git a/src/SDKs/Automation/Management.Automation/Generated/WebhookOperationsExtensions.cs b/src/SDKs/Automation/Management.Automation/Generated/WebhookOperationsExtensions.cs index f9046c9a13f5..b293689d14f7 100644 --- a/src/SDKs/Automation/Management.Automation/Generated/WebhookOperationsExtensions.cs +++ b/src/SDKs/Automation/Management.Automation/Generated/WebhookOperationsExtensions.cs @@ -1,3 +1,4 @@ +// // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. @@ -5,11 +6,10 @@ // 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 { - using Microsoft.Azure; - using Microsoft.Azure.Management; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; @@ -28,15 +28,12 @@ public static partial class WebhookOperationsExtensions /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// - public static string GenerateUri(this IWebhookOperations operations, string resourceGroupName, string automationAccountName) + public static string GenerateUri(this IWebhookOperations operations, string automationAccountName) { - return operations.GenerateUriAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult(); + return operations.GenerateUriAsync(automationAccountName).GetAwaiter().GetResult(); } /// @@ -46,18 +43,15 @@ public static string GenerateUri(this IWebhookOperations operations, string reso /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The cancellation token. /// - public static async Task GenerateUriAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GenerateUriAsync(this IWebhookOperations operations, string automationAccountName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GenerateUriWithHttpMessagesAsync(resourceGroupName, automationAccountName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GenerateUriWithHttpMessagesAsync(automationAccountName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -70,18 +64,15 @@ public static string GenerateUri(this IWebhookOperations operations, string reso /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The webhook name. /// - public static void Delete(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName) + public static void Delete(this IWebhookOperations operations, string automationAccountName, string webhookName) { - operations.DeleteAsync(resourceGroupName, automationAccountName, webhookName).GetAwaiter().GetResult(); + operations.DeleteAsync(automationAccountName, webhookName).GetAwaiter().GetResult(); } /// @@ -91,9 +82,6 @@ public static void Delete(this IWebhookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -103,9 +91,9 @@ public static void Delete(this IWebhookOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task DeleteAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IWebhookOperations operations, string automationAccountName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { - (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + (await operations.DeleteWithHttpMessagesAsync(automationAccountName, webhookName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// @@ -115,18 +103,15 @@ public static void Delete(this IWebhookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The webhook name. /// - public static Webhook Get(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName) + public static Webhook Get(this IWebhookOperations operations, string automationAccountName, string webhookName) { - return operations.GetAsync(resourceGroupName, automationAccountName, webhookName).GetAwaiter().GetResult(); + return operations.GetAsync(automationAccountName, webhookName).GetAwaiter().GetResult(); } /// @@ -136,9 +121,6 @@ public static Webhook Get(this IWebhookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -148,9 +130,9 @@ public static Webhook Get(this IWebhookOperations operations, string resourceGro /// /// The cancellation token. /// - public static async Task GetAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IWebhookOperations operations, string automationAccountName, string webhookName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(automationAccountName, webhookName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -163,9 +145,6 @@ public static Webhook Get(this IWebhookOperations operations, string resourceGro /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -175,9 +154,9 @@ public static Webhook Get(this IWebhookOperations operations, string resourceGro /// /// The create or update parameters for webhook. /// - public static Webhook CreateOrUpdate(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters) + public static Webhook CreateOrUpdate(this IWebhookOperations operations, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters) { - return operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, webhookName, parameters).GetAwaiter().GetResult(); + return operations.CreateOrUpdateAsync(automationAccountName, webhookName, parameters).GetAwaiter().GetResult(); } /// @@ -187,9 +166,6 @@ public static Webhook CreateOrUpdate(this IWebhookOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -202,9 +178,9 @@ public static Webhook CreateOrUpdate(this IWebhookOperations operations, string /// /// The cancellation token. /// - public static async Task CreateOrUpdateAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateOrUpdateAsync(this IWebhookOperations operations, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(automationAccountName, webhookName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -217,9 +193,6 @@ public static Webhook CreateOrUpdate(this IWebhookOperations operations, string /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -229,9 +202,9 @@ public static Webhook CreateOrUpdate(this IWebhookOperations operations, string /// /// The update parameters for webhook. /// - public static Webhook Update(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters) + public static Webhook Update(this IWebhookOperations operations, string automationAccountName, string webhookName, WebhookUpdateParameters parameters) { - return operations.UpdateAsync(resourceGroupName, automationAccountName, webhookName, parameters).GetAwaiter().GetResult(); + return operations.UpdateAsync(automationAccountName, webhookName, parameters).GetAwaiter().GetResult(); } /// @@ -241,9 +214,6 @@ public static Webhook Update(this IWebhookOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -256,9 +226,9 @@ public static Webhook Update(this IWebhookOperations operations, string resource /// /// The cancellation token. /// - public static async Task UpdateAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IWebhookOperations operations, string automationAccountName, string webhookName, WebhookUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, webhookName, parameters, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(automationAccountName, webhookName, parameters, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -271,18 +241,15 @@ public static Webhook Update(this IWebhookOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// /// /// The filter to apply on the operation. /// - public static IPage ListByAutomationAccount(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string)) + public static IPage ListByAutomationAccount(this IWebhookOperations operations, string automationAccountName, string filter = default(string)) { - return operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, filter).GetAwaiter().GetResult(); + return operations.ListByAutomationAccountAsync(automationAccountName, filter).GetAwaiter().GetResult(); } /// @@ -292,9 +259,6 @@ public static Webhook Update(this IWebhookOperations operations, string resource /// /// The operations group for this extension method. /// - /// - /// The resource group name. - /// /// /// The automation account name. /// @@ -304,9 +268,9 @@ public static Webhook Update(this IWebhookOperations operations, string resource /// /// The cancellation token. /// - public static async Task> ListByAutomationAccountAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAutomationAccountAsync(this IWebhookOperations operations, string automationAccountName, string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(automationAccountName, filter, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj b/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj index a610d19a879a..25909c1a723b 100644 --- a/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj +++ b/src/SDKs/Automation/Management.Automation/Microsoft.Azure.Management.Automation.csproj @@ -6,12 +6,12 @@ Microsoft.Azure.Management.Automation Provides Microsoft Azure Automation management operations including the ability to create, update and delete runbooks and schedules. - 3.0.0-preview + 3.0.1-preview Microsoft Azure Automation Management Library Microsoft.Azure.Management.Automation Automation;Runbook; - Major version release: SDK rebuilt using the Swagger specs - Changes in the namespaces and interfaces. Still in preview mode and contains breaking changes. + Newer resources added. Major version release: SDK rebuilt using the Swagger specs - Changes in the namespaces and interfaces. Still in preview mode and contains breaking changes. diff --git a/src/SDKs/_metadata/automation_resource-manager.txt b/src/SDKs/_metadata/automation_resource-manager.txt index 5b842506aeaf..a4a52af18438 100644 --- a/src/SDKs/_metadata/automation_resource-manager.txt +++ b/src/SDKs/_metadata/automation_resource-manager.txt @@ -1,11 +1,11 @@ -2017-11-29 00:39:37 UTC +2018-01-11 00:24:09 UTC 1) azure-rest-api-specs repository information GitHub user: Azure Branch: current -Commit: 6a3962a206ad197fd3e85f97fcb5fbab2f302df0 +Commit: 894d0d80d65c3da2b7cb81696377fd1a94e1fc78 2) AutoRest information Requested version: latest -Bootstrapper version: C:\Users\vameru\AppData\Roaming\npm `-- autorest@1.2.2 -Latest installed version: 1.2.2 +Bootstrapper version: C:\Program Files\nodejs `-- autorest@2.0.4215 +Latest installed version: