From daf9f7c12304abeb4d068d9818379e3d8e0b20f4 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Wed, 1 Jun 2022 05:39:21 +0000 Subject: [PATCH 1/3] Move ADDomainServices to main --- src/ADDomainServices/ADDomainServices.sln | 116 +- .../Az.ADDomainServices.format.ps1xml | 18 - src/ADDomainServices/Az.ADDomainServices.psd1 | 6 +- src/ADDomainServices/Az.ADDomainServices.psm1 | 38 +- src/ADDomainServices/README.md | 71 +- src/ADDomainServices/build-module.ps1 | 18 +- src/ADDomainServices/check-dependencies.ps1 | 13 +- src/ADDomainServices/create-model-cmdlets.ps1 | 179 + .../custom/New-AzADDomainService.ps1 | 493 +- src/ADDomainServices/custom/README.md | 6 +- .../custom/Update-AzADDomainService.ps1 | 290 - ...ew-AzADDomainServiceForestTrustObject.ps1} | 38 +- ...New-AzADDomainServiceReplicaSetObject.ps1} | 25 +- .../examples/Get-AzADDomainService.md | 16 +- .../examples/New-AzADDomainService.md | 13 +- ...New-AzADDomainServiceForestTrustObject.md} | 7 +- .../New-AzADDomainServiceReplicaSet.md | 13 - .../New-AzADDomainServiceReplicaSetObject.md | 12 + .../examples/Remove-AzADDomainService.md | 6 +- .../examples/Update-AzADDomainService.md | 16 +- src/ADDomainServices/export-surface.ps1 | 5 +- .../exports/Get-AzADDomainService.ps1 | 73 +- .../exports/New-AzADDomainService.ps1 | 126 +- .../New-AzADDomainServiceForestTrust.ps1 | 102 - ...New-AzADDomainServiceForestTrustObject.ps1 | 137 + .../New-AzADDomainServiceReplicaSet.ps1 | 87 - .../New-AzADDomainServiceReplicaSetObject.ps1 | 121 + .../exports/ProxyCmdletDefinitions.ps1 | 1024 +-- src/ADDomainServices/exports/README.md | 4 +- .../exports/Remove-AzADDomainService.ps1 | 55 +- .../exports/Update-AzADDomainService.ps1 | 134 +- src/ADDomainServices/generate-help.ps1 | 7 +- src/ADDomainServices/generate-info.json | 10 +- src/ADDomainServices/generated/Module.cs | 37 +- .../generated/api/AdDomainServices.cs | 17 +- .../AdDomainServicesIdentity.PowerShell.cs | 48 +- .../AdDomainServicesIdentity.TypeConverter.cs | 26 +- .../Models/AdDomainServicesIdentity.json.cs | 8 +- .../Models/Api202001/CloudError.PowerShell.cs | 63 +- .../Api202001/CloudError.TypeConverter.cs | 30 +- .../api/Models/Api202001/CloudError.cs | 5 + .../api/Models/Api202001/CloudError.json.cs | 13 +- .../Api202001/CloudErrorBody.PowerShell.cs | 53 +- .../Api202001/CloudErrorBody.TypeConverter.cs | 31 +- .../api/Models/Api202001/CloudErrorBody.cs | 5 + .../Models/Api202001/CloudErrorBody.json.cs | 13 +- .../DomainSecuritySettings.PowerShell.cs | 63 +- .../DomainSecuritySettings.TypeConverter.cs | 31 +- .../Api202001/DomainSecuritySettings.cs | 5 + .../Api202001/DomainSecuritySettings.json.cs | 13 +- .../Api202001/DomainService.PowerShell.cs | 453 +- .../Api202001/DomainService.TypeConverter.cs | 31 +- .../api/Models/Api202001/DomainService.cs | 34 +- .../Models/Api202001/DomainService.json.cs | 13 +- .../DomainServiceListResult.PowerShell.cs | 33 +- .../DomainServiceListResult.TypeConverter.cs | 31 +- .../Api202001/DomainServiceListResult.cs | 5 + .../Api202001/DomainServiceListResult.json.cs | 13 +- .../DomainServiceProperties.PowerShell.cs | 383 +- .../DomainServiceProperties.TypeConverter.cs | 31 +- .../Api202001/DomainServiceProperties.cs | 21 +- .../Api202001/DomainServiceProperties.json.cs | 13 +- .../Api202001/ForestTrust.PowerShell.cs | 63 +- .../Api202001/ForestTrust.TypeConverter.cs | 31 +- .../api/Models/Api202001/ForestTrust.cs | 15 +- .../api/Models/Api202001/ForestTrust.json.cs | 17 +- .../Api202001/HealthAlert.PowerShell.cs | 83 +- .../Api202001/HealthAlert.TypeConverter.cs | 31 +- .../api/Models/Api202001/HealthAlert.cs | 5 + .../api/Models/Api202001/HealthAlert.json.cs | 13 +- .../Api202001/HealthMonitor.PowerShell.cs | 43 +- .../Api202001/HealthMonitor.TypeConverter.cs | 31 +- .../api/Models/Api202001/HealthMonitor.cs | 5 + .../Models/Api202001/HealthMonitor.json.cs | 13 +- .../Api202001/LdapsSettings.PowerShell.cs | 83 +- .../Api202001/LdapsSettings.TypeConverter.cs | 31 +- .../api/Models/Api202001/LdapsSettings.cs | 25 +- .../Models/Api202001/LdapsSettings.json.cs | 21 +- .../Api202001/MigrationProgress.PowerShell.cs | 33 +- .../MigrationProgress.TypeConverter.cs | 31 +- .../api/Models/Api202001/MigrationProgress.cs | 5 + .../Api202001/MigrationProgress.json.cs | 13 +- .../MigrationProperties.PowerShell.cs | 63 +- .../MigrationProperties.TypeConverter.cs | 31 +- .../Models/Api202001/MigrationProperties.cs | 5 + .../Api202001/MigrationProperties.json.cs | 13 +- .../NotificationSettings.PowerShell.cs | 43 +- .../NotificationSettings.TypeConverter.cs | 31 +- .../Models/Api202001/NotificationSettings.cs | 5 + .../Api202001/NotificationSettings.json.cs | 13 +- .../OperationDisplayInfo.PowerShell.cs | 53 +- .../OperationDisplayInfo.TypeConverter.cs | 31 +- .../Models/Api202001/OperationDisplayInfo.cs | 5 + .../Api202001/OperationDisplayInfo.json.cs | 13 +- .../Api202001/OperationEntity.PowerShell.cs | 83 +- .../OperationEntity.TypeConverter.cs | 31 +- .../api/Models/Api202001/OperationEntity.cs | 5 + .../Models/Api202001/OperationEntity.json.cs | 13 +- .../OperationEntityListResult.PowerShell.cs | 33 +- ...OperationEntityListResult.TypeConverter.cs | 31 +- .../Api202001/OperationEntityListResult.cs | 5 + .../OperationEntityListResult.json.cs | 13 +- .../Models/Api202001/ReplicaSet.PowerShell.cs | 113 +- .../Api202001/ReplicaSet.TypeConverter.cs | 30 +- .../api/Models/Api202001/ReplicaSet.cs | 5 + .../api/Models/Api202001/ReplicaSet.json.cs | 13 +- .../Models/Api202001/Resource.PowerShell.cs | 73 +- .../Api202001/Resource.TypeConverter.cs | 30 +- .../api/Models/Api202001/Resource.cs | 5 + .../api/Models/Api202001/Resource.json.cs | 13 +- .../ResourceForestSettings.PowerShell.cs | 33 +- .../ResourceForestSettings.TypeConverter.cs | 31 +- .../Api202001/ResourceForestSettings.cs | 5 + .../Api202001/ResourceForestSettings.json.cs | 13 +- .../Api202001/ResourceTags.PowerShell.cs | 13 +- .../Api202001/ResourceTags.TypeConverter.cs | 31 +- .../api/Models/Api202001/ResourceTags.cs | 5 + .../Api202001/ResourceTags.dictionary.cs | 5 + .../api/Models/Api202001/ResourceTags.json.cs | 13 +- .../api/Support/ExternalAccess.Completer.cs | 4 +- .../Support/ExternalAccess.TypeConverter.cs | 20 +- .../generated/api/Support/ExternalAccess.cs | 10 +- .../api/Support/FilteredSync.Completer.cs | 4 +- .../api/Support/FilteredSync.TypeConverter.cs | 20 +- .../generated/api/Support/FilteredSync.cs | 10 +- .../generated/api/Support/Ldaps.Completer.cs | 4 +- .../api/Support/Ldaps.TypeConverter.cs | 20 +- .../generated/api/Support/Ldaps.cs | 10 +- .../api/Support/NotifyDcAdmins.Completer.cs | 4 +- .../Support/NotifyDcAdmins.TypeConverter.cs | 20 +- .../generated/api/Support/NotifyDcAdmins.cs | 10 +- .../Support/NotifyGlobalAdmins.Completer.cs | 4 +- .../NotifyGlobalAdmins.TypeConverter.cs | 20 +- .../api/Support/NotifyGlobalAdmins.cs | 10 +- .../generated/api/Support/NtlmV1.Completer.cs | 4 +- .../api/Support/NtlmV1.TypeConverter.cs | 20 +- .../generated/api/Support/NtlmV1.cs | 10 +- .../SyncKerberosPasswords.Completer.cs | 4 +- .../SyncKerberosPasswords.TypeConverter.cs | 20 +- .../api/Support/SyncKerberosPasswords.cs | 10 +- .../Support/SyncNtlmPasswords.Completer.cs | 4 +- .../SyncNtlmPasswords.TypeConverter.cs | 20 +- .../api/Support/SyncNtlmPasswords.cs | 10 +- .../Support/SyncOnPremPasswords.Completer.cs | 4 +- .../SyncOnPremPasswords.TypeConverter.cs | 20 +- .../api/Support/SyncOnPremPasswords.cs | 10 +- .../generated/api/Support/TlsV1.Completer.cs | 4 +- .../api/Support/TlsV1.TypeConverter.cs | 20 +- .../generated/api/Support/TlsV1.cs | 10 +- .../GetAzADDomainServiceOperation_List.cs | 52 +- .../cmdlets/GetAzADDomainService_Get.cs | 31 +- .../GetAzADDomainService_GetViaIdentity.cs | 31 +- .../cmdlets/GetAzADDomainService_List.cs | 52 +- .../cmdlets/GetAzADDomainService_List1.cs | 52 +- .../NewAzADDomainService_CreateExpanded.cs | 135 +- .../cmdlets/RemoveAzADDomainService_Delete.cs | 21 +- ...moveAzADDomainService_DeleteViaIdentity.cs | 21 +- .../UpdateAzADDomainService_UpdateExpanded.cs | 132 +- ...DomainService_UpdateViaIdentityExpanded.cs | 134 +- .../generated/runtime/AsyncCommandRuntime.cs | 4 + .../runtime/AsyncOperationResponse.cs | 21 +- .../BuildTime/Cmdlets/ExportFormatPs1xml.cs | 4 +- .../BuildTime/Cmdlets/ExportProxyCmdlet.cs | 172 +- .../runtime/BuildTime/Cmdlets/ExportPsd1.cs | 270 +- .../BuildTime/Cmdlets/ExportTestStub.cs | 33 +- .../BuildTime/Cmdlets/GetScriptCmdlet.cs | 3 +- .../runtime/BuildTime/MarkdownRenderer.cs | 9 +- .../BuildTime/Models/PsHelpMarkdownOutputs.cs | 46 +- .../runtime/BuildTime/Models/PsHelpTypes.cs | 3 + .../BuildTime/Models/PsMarkdownTypes.cs | 31 +- .../BuildTime/Models/PsProxyOutputs.cs | 122 +- .../runtime/BuildTime/Models/PsProxyTypes.cs | 23 +- .../runtime/BuildTime/PsAttributes.cs | 2 +- .../runtime/BuildTime/PsExtensions.cs | 9 + .../Customizations/IJsonSerializable.cs | 28 +- .../generated/runtime/DictionaryExtensions.cs | 19 +- .../generated/runtime/EventDataExtensions.cs | 2 +- .../generated/runtime/Extensions.cs | 8 +- .../generated/runtime/IAssociativeArray.cs | 5 +- .../generated/runtime/ISendAsync.cs | 10 +- .../generated/runtime/MessageAttribute.cs | 360 ++ .../runtime/MessageAttributeHelper.cs | 161 + .../generated/runtime/Nodes/JsonNumber.cs | 10 +- .../generated/runtime/PipelineMocking.cs | 24 +- .../runtime/Properties/Resources.Designer.cs | 5633 +++++++++++++++++ .../runtime/Properties/Resources.resx | 1741 +++++ .../runtime/TypeConverterExtensions.cs | 41 +- .../runtime/UndeclaredResponseException.cs | 5 +- .../help/Az.ADDomainServices.md | 8 +- .../help/New-AzADDomainService.md | 83 +- ...New-AzADDomainServiceForestTrustObject.md} | 17 +- ... New-AzADDomainServiceReplicaSetObject.md} | 17 +- .../help/Update-AzADDomainService.md | 112 +- src/ADDomainServices/how-to.md | 10 +- .../Get-AzADDomainServiceOperation.ps1 | 25 +- .../internal/New-AzADDomainService.ps1 | 50 +- .../internal/ProxyCmdletDefinitions.ps1 | 424 +- src/ADDomainServices/internal/README.md | 6 +- .../internal/Update-AzADDomainService.ps1 | 344 - src/ADDomainServices/pack-module.ps1 | 5 +- src/ADDomainServices/run-module.ps1 | 7 +- src/ADDomainServices/test-module.ps1 | 56 +- .../test/New-AzADDomainService.Tests.ps1 | 4 +- ...New-AzADDomainServiceForestTrust.Tests.ps1 | 18 - ...ADDomainServiceForestTrustObject.Tests.ps1 | 21 + .../New-AzADDomainServiceReplicaSet.Tests.ps1 | 18 - ...zADDomainServiceReplicaSetObject.Tests.ps1 | 21 + .../test/Remove-AzADDomainService.Tests.ps1 | 2 +- src/ADDomainServices/test/loadEnv.ps1 | 5 +- 209 files changed, 13562 insertions(+), 3835 deletions(-) create mode 100644 src/ADDomainServices/create-model-cmdlets.ps1 delete mode 100644 src/ADDomainServices/custom/Update-AzADDomainService.ps1 rename src/ADDomainServices/custom/{New-AzADDomainServiceForestTrust.ps1 => autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1} (57%) rename src/ADDomainServices/custom/{New-AzADDomainServiceReplicaSet.ps1 => autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1} (63%) rename src/ADDomainServices/examples/{New-AzADDomainServiceForestTrust.md => New-AzADDomainServiceForestTrustObject.md} (56%) delete mode 100644 src/ADDomainServices/examples/New-AzADDomainServiceReplicaSet.md create mode 100644 src/ADDomainServices/examples/New-AzADDomainServiceReplicaSetObject.md delete mode 100644 src/ADDomainServices/exports/New-AzADDomainServiceForestTrust.ps1 create mode 100644 src/ADDomainServices/exports/New-AzADDomainServiceForestTrustObject.ps1 delete mode 100644 src/ADDomainServices/exports/New-AzADDomainServiceReplicaSet.ps1 create mode 100644 src/ADDomainServices/exports/New-AzADDomainServiceReplicaSetObject.ps1 create mode 100644 src/ADDomainServices/generated/runtime/MessageAttribute.cs create mode 100644 src/ADDomainServices/generated/runtime/MessageAttributeHelper.cs create mode 100644 src/ADDomainServices/generated/runtime/Properties/Resources.Designer.cs create mode 100644 src/ADDomainServices/generated/runtime/Properties/Resources.resx rename src/ADDomainServices/help/{New-AzADDomainServiceForestTrust.md => New-AzADDomainServiceForestTrustObject.md} (78%) rename src/ADDomainServices/help/{New-AzADDomainServiceReplicaSet.md => New-AzADDomainServiceReplicaSetObject.md} (70%) delete mode 100644 src/ADDomainServices/internal/Update-AzADDomainService.ps1 delete mode 100644 src/ADDomainServices/test/New-AzADDomainServiceForestTrust.Tests.ps1 create mode 100644 src/ADDomainServices/test/New-AzADDomainServiceForestTrustObject.Tests.ps1 delete mode 100644 src/ADDomainServices/test/New-AzADDomainServiceReplicaSet.Tests.ps1 create mode 100644 src/ADDomainServices/test/New-AzADDomainServiceReplicaSetObject.Tests.ps1 diff --git a/src/ADDomainServices/ADDomainServices.sln b/src/ADDomainServices/ADDomainServices.sln index da0b74cc5551..c8e6755c1ab3 100644 --- a/src/ADDomainServices/ADDomainServices.sln +++ b/src/ADDomainServices/ADDomainServices.sln @@ -1,48 +1,104 @@ + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 -VisualStudioVersion = 16.0.29709.97 +VisualStudioVersion = 16.0.30114.105 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{4096ABCB-1207-4B3F-B6D5-253B78D733A1}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{B5004B62-656E-4470-9ECE-7B779A1C7185}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{061B5374-F1A5-405F-BEF8-E3E490B8CB5C}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{5608FD5C-342D-4666-96C6-456772B715B6}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.ADDomainServices", "Az.ADDomainServices.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{1C527ED6-AA64-44B0-835B-3A356A4B2016}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ADDomainServices", "Az.ADDomainServices.csproj", "{75877F77-1AA6-485C-AFF3-1E568FD6CF0A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU - {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU - {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU - {62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU - {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU - {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU - {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030} + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|x64.ActiveCfg = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|x64.Build.0 = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|x86.ActiveCfg = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Debug|x86.Build.0 = Debug|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|Any CPU.Build.0 = Release|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|x64.ActiveCfg = Release|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|x64.Build.0 = Release|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|x86.ActiveCfg = Release|Any CPU + {4096ABCB-1207-4B3F-B6D5-253B78D733A1}.Release|x86.Build.0 = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|x64.ActiveCfg = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|x64.Build.0 = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|x86.ActiveCfg = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Debug|x86.Build.0 = Debug|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|Any CPU.Build.0 = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|x64.ActiveCfg = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|x64.Build.0 = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|x86.ActiveCfg = Release|Any CPU + {B5004B62-656E-4470-9ECE-7B779A1C7185}.Release|x86.Build.0 = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|x64.ActiveCfg = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|x64.Build.0 = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|x86.ActiveCfg = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Debug|x86.Build.0 = Debug|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|Any CPU.Build.0 = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|x64.ActiveCfg = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|x64.Build.0 = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|x86.ActiveCfg = Release|Any CPU + {061B5374-F1A5-405F-BEF8-E3E490B8CB5C}.Release|x86.Build.0 = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|x64.ActiveCfg = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|x64.Build.0 = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|x86.ActiveCfg = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Debug|x86.Build.0 = Debug|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|Any CPU.Build.0 = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|x64.ActiveCfg = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|x64.Build.0 = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|x86.ActiveCfg = Release|Any CPU + {5608FD5C-342D-4666-96C6-456772B715B6}.Release|x86.Build.0 = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|x64.ActiveCfg = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|x64.Build.0 = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|x86.ActiveCfg = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Debug|x86.Build.0 = Debug|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|Any CPU.Build.0 = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|x64.ActiveCfg = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|x64.Build.0 = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|x86.ActiveCfg = Release|Any CPU + {1C527ED6-AA64-44B0-835B-3A356A4B2016}.Release|x86.Build.0 = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|x64.ActiveCfg = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|x64.Build.0 = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|x86.ActiveCfg = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Debug|x86.Build.0 = Debug|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|Any CPU.Build.0 = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|x64.ActiveCfg = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|x64.Build.0 = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|x86.ActiveCfg = Release|Any CPU + {75877F77-1AA6-485C-AFF3-1E568FD6CF0A}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/ADDomainServices/Az.ADDomainServices.format.ps1xml b/src/ADDomainServices/Az.ADDomainServices.format.ps1xml index a9f09578c044..901a35b484d3 100644 --- a/src/ADDomainServices/Az.ADDomainServices.format.ps1xml +++ b/src/ADDomainServices/Az.ADDomainServices.format.ps1xml @@ -263,9 +263,6 @@ - - - @@ -282,9 +279,6 @@ TrustDirection - - TrustPassword - TrustedDomainFqdn @@ -395,9 +389,6 @@ - - - @@ -420,9 +411,6 @@ PfxCertificate - - PfxCertificatePassword - PublicCertificate @@ -685,9 +673,6 @@ - - - @@ -701,9 +686,6 @@ Name - - Type - diff --git a/src/ADDomainServices/Az.ADDomainServices.psd1 b/src/ADDomainServices/Az.ADDomainServices.psd1 index 74409bef192e..ec5f0dc90079 100644 --- a/src/ADDomainServices/Az.ADDomainServices.psd1 +++ b/src/ADDomainServices/Az.ADDomainServices.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/11/2021 +# Generated on: 6/1/2022 # @{ @@ -70,8 +70,8 @@ FormatsToProcess = './Az.ADDomainServices.format.ps1xml' # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. FunctionsToExport = 'Get-AzADDomainService', 'New-AzADDomainService', - 'New-AzADDomainServiceForestTrust', - 'New-AzADDomainServiceReplicaSet', 'Remove-AzADDomainService', + 'New-AzADDomainServiceForestTrustObject', + 'New-AzADDomainServiceReplicaSetObject', 'Remove-AzADDomainService', 'Update-AzADDomainService' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. diff --git a/src/ADDomainServices/Az.ADDomainServices.psm1 b/src/ADDomainServices/Az.ADDomainServices.psm1 index 085ee9b75b2e..3d9911fdb5d1 100644 --- a/src/ADDomainServices/Az.ADDomainServices.psm1 +++ b/src/ADDomainServices/Az.ADDomainServices.psm1 @@ -1,16 +1,17 @@ # region Generated # ---------------------------------------------------------------------------------- - # - # Copyright Microsoft Corporation - # Licensed under the Apache License, Version 2.0 (the "License"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at - # http://www.apache.org/licenses/LICENSE-2.0 - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. + # Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- # Load required Az.Accounts module $accountsName = 'Az.Accounts' @@ -24,17 +25,17 @@ } } if(-not $accountsModule) { - $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.2.3' } | Measure-Object).Count -gt 0 + $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0 if($hasAdequateVersion) { - $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.2.3 -Scope Global -PassThru + $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru } } } if(-not $accountsModule) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop - } elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) { - Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to remove '.PSSharedModules' in your home directory. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop + } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) { + Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop } Write-Information "Loaded Module '$($accountsModule.Name)'" @@ -49,7 +50,12 @@ # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad + + # Following two delegates are added for telemetry + $instance.GetTelemetryId = $VTable.GetTelemetryId + $instance.Telemetry = $VTable.Telemetry + # Tweaks the pipeline per call $instance.OnNewRequest = $VTable.OnNewRequest diff --git a/src/ADDomainServices/README.md b/src/ADDomainServices/README.md index 88198defcc67..494064660404 100644 --- a/src/ADDomainServices/README.md +++ b/src/ADDomainServices/README.md @@ -17,7 +17,7 @@ This directory contains the PowerShell module for the AdDomainServices service. This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. ## Module Requirements -- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater +- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater ## Authentication AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. @@ -30,7 +30,7 @@ For information on how to develop for `Az.ADDomainServices`, see [how-to.md](how > see https://aka.ms/autorest ``` yaml -Branch: 394ab556cb4aed1196918856a24be9b02609cc93 +branch: 394ab556cb4aed1196918856a24be9b02609cc93 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../readme.azure.noprofile.md @@ -50,8 +50,18 @@ subject-prefix: ADDomainService # If there are post APIs for some kinds of actions in the RP, you may need to # uncomment following line to support viaIdentity for these post APIs # identity-correction-for-post: true +resourcegroup-append: true directive: + - from: swagger-document + where: $.definitions..pfxCertificatePassword + transform: $.format = "password" + - from: swagger-document + where: $.definitions..trustPassword + transform: $.format = "password" + - from: swagger-document + where: $.definitions..pfxCertificate + transform: $.format = "byte" # Following is two common directive which are normally required in all the RPs # 1. Remove the unexpanded parameter set # 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well @@ -68,47 +78,64 @@ directive: - where: verb: Set remove: true + # Hide Operation cmdlets - where: subject: DomainServiceOperation hide: true + # Reset subject-prefix as AD as previous setting by subject-prefix tag converts AD to Ad - where: - verb: New - subject: (^DomainService)(.*) + subject-prefix: Ad(.*) set: - subject-prefix: ADDomainService - subject: $2 - hide: true + subject-prefix: AD$1 + # Hide to customize, DomainName -> required, ReplicaSet -> required - where: - verb: Update - subject: (^DomainService)(.*) - set: - subject-prefix: ADDomainService - subject: $2 + verb: New + subject: DomainService hide: true + # Set the default of Location same with first element in ReplicaSets so that it can keep as optional - where: - verb: Get - subject: (^DomainService)(.*) - set: - subject-prefix: ADDomainService - subject: $2 + verb: New + subject: DomainService + parameter-name: Location + set: + default: + name: Location Default + description: Gets the Location from the first element in ReplicaSets. + script: '$ReplicaSet[0].Location' + # Add validate set for DomainConfigurationType: "FullySynced", "ResourceTrusting" - where: - verb: Remove - subject: (^DomainService)(.*) - set: - subject-prefix: ADDomainService - subject: $2 + parameter-name: DomainConfigurationType + set: + completer: + name: DomainConfigurationType Completer + description: Gets the list of DomainConfigurationTypes available for this resource. + script: "'FullySynced', 'ResourceTrusting'" + # Added validate set for Sku: "Standard", "Enterprise", "Premium" + - where: + parameter-name: Sku + set: + completer: + name: Sku Completer + description: Gets the list of Skus available for this resource. + script: "'Standard', 'Enterprise', 'Premium'" + # Rename parameter LdapSettingLdap -> LdapSettingLdaps - where: parameter-name: LdapSettingLdap set: parameter-name: LdapSettingLdaps + # Rename parameter ResourceForestSetting -> ForestTrust - where: parameter-name: ResourceForestSetting set: parameter-name: ForestTrust + # Rename ResourceForestSettingResourceForest to ResourceForest - where: parameter-name: ResourceForestSettingResourceForest set: parameter-name: ResourceForest + - model-cmdlet: + - ForestTrust + - ReplicaSet - where: model-name: DomainService set: diff --git a/src/ADDomainServices/build-module.ps1 b/src/ADDomainServices/build-module.ps1 index ff69fa21eb78..42682c8d746d 100644 --- a/src/ADDomainServices/build-module.ps1 +++ b/src/ADDomainServices/build-module.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs) $ErrorActionPreference = 'Stop' @@ -104,13 +105,13 @@ if(Test-Path $customPsm1) { $exportsFolder = Join-Path $PSScriptRoot 'exports' if(Test-Path $exportsFolder) { - $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $exportsFolder $internalFolder = Join-Path $PSScriptRoot 'internal' if(Test-Path $internalFolder) { - $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $internalFolder @@ -120,6 +121,13 @@ $moduleName = 'Az.ADDomainServices' $examplesFolder = Join-Path $PSScriptRoot 'examples' $null = New-Item -ItemType Directory -Force -Path $examplesFolder +Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' +$modelCmdlets = @('ForestTrust', 'ReplicaSet') +if ($modelCmdlets.Count -gt 0) { + . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') + CreateModelCmdlet($modelCmdlets) +} + if($NoDocs) { Write-Host -ForegroundColor Green 'Creating exports...' Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder @@ -128,7 +136,7 @@ if($NoDocs) { $moduleDescription = 'Microsoft Azure PowerShell: AdDomainServices cmdlets' $docsFolder = Join-Path $PSScriptRoot 'docs' if(Test-Path $docsFolder) { - $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid diff --git a/src/ADDomainServices/check-dependencies.ps1 b/src/ADDomainServices/check-dependencies.ps1 index 7ada900d8f0e..c29591c7bfe1 100644 --- a/src/ADDomainServices/check-dependencies.ps1 +++ b/src/ADDomainServices/check-dependencies.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources) $ErrorActionPreference = 'Stop' @@ -24,7 +25,7 @@ if(-not $Isolated) { function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) { if($predicate) { $module = Get-Module -ListAvailable -Name $moduleName - if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0)) { + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." if ($requiredVersion) { @@ -46,17 +47,17 @@ if(Test-Path -Path $localModulesPath) { $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } -DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.2.3' +DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5' DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' $resourceDir = Join-Path $tools 'Resources' $resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1' -if ($Resources.IsPresent -and (-not (Test-Path -Path $resourceModule))) { +if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) { Write-Host -ForegroundColor Green "Building local Resource module used for test..." Set-Location $resourceDir - $null = autorest .\readme.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources + $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/ Set-Location $HOME/.PSSharedModules/Resources $null = .\build-module.ps1 diff --git a/src/ADDomainServices/create-model-cmdlets.ps1 b/src/ADDomainServices/create-model-cmdlets.ps1 new file mode 100644 index 000000000000..7ccb999082fe --- /dev/null +++ b/src/ADDomainServices/create-model-cmdlets.ps1 @@ -0,0 +1,179 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +function CreateModelCmdlet { + + param([string[]]$Models) + + if ($Models.Count -eq 0) + { + return + } + + $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models' + $ModuleName = 'ADDomainService' + $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets' + $null = New-Item -ItemType Directory -Force -Path $OutputDir + + $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs + $Content = '' + $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 ) + { $Content += get-content $_.fullname -raw + } } + + $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content) + $Nodes = $Tree.ChildNodes().ChildNodes() + foreach ($Model in $Models) + { + $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") } + if ($InterfaceNode.count -eq 0) { + continue + } + # through a queue, we iterate all the parent models. + $Queue = @($InterfaceNode) + $visited = @("I$Model") + $AllInterfaceNodes = @() + while ($Queue.count -ne 0) + { + $AllInterfaceNodes += $Queue[0] + # Baselist contains the direct parent models. + foreach ($parent in $Queue[0].BaseList.Types) + { + if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value))) + { + $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) }) + $visited = [Array]$visited + $parent.Type.Right.Identifier.Value + } + } + $first, $Queue = $Queue + } + + $Namespace = $InterfaceNode.Parent.Name + $ObjectType = $Model + $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" + # remove duplicated module name + if ($ObjectType.StartsWith($ModuleName)) { + $ModulePrefix = '' + } else { + $ModulePrefix = $ModuleName + } + $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir + + $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string] + $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string] + foreach ($Node in $AllInterfaceNodes) + { + foreach ($Member in $Node.Members) + { + $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments + $Required = $false + $Description = "" + $Readonly = $False + foreach ($Argument in $Arguments) + { + if ($Argument.NameEquals.Name.Identifier.Value -eq "Required") + { + $Required = $Argument.Expression.Token.Value + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Description") + { + $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"') + } + if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly") + { + $Readonly = $Argument.Expression.Token.Value + } + } + if ($Readonly) + { + continue + } + $Identifier = $Member.Identifier.Value + $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1] + $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string] + if ($Required) + { + $ParameterDefinePropertyList.Add("Mandatory") + } + if ($Description -ne "") + { + $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"") + } + $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList) + # check whether completer is needed + $completer = ''; + if($Type.Split('.').Split('.')[-2] -eq 'Support') { + # If Type is an array, need to strip [] + $strippedType = $Type.Replace('[]', '') + $completer += "`n [ArgumentCompleter([${strippedType}])]" + } + $ParameterDefineScript = " + [Parameter($ParameterDefineProperty)]${completer} + [${Type}] + `$${Identifier}" + $ParameterDefineScriptList.Add($ParameterDefineScript) + $ParameterAssignScriptList.Add(" + if (`$PSBoundParameters.ContainsKey('${Identifier}')) { + `$Object.${Identifier} = `$${Identifier} + }") + } + } + $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator "," + $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator "" + + $Script = " +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the ""License""); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an ""AS IS"" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ${ObjectType}. +.Description +Create an in-memory object for ${ObjectType}. + +.Outputs +${ObjectTypeWithNamespace} +.Link +https://docs.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +#> +function New-Az${ModulePrefix}${ObjectType}Object { + [OutputType('${ObjectTypeWithNamespace}')] + [CmdletBinding(PositionalBinding=`$false)] + Param( +${ParameterDefineScript} + ) + + process { + `$Object = [${ObjectTypeWithNamespace}]::New() +${ParameterAssignScript} + return `$Object + } +} +" + Set-Content -Path $OutputPath -Value $Script + } +} diff --git a/src/ADDomainServices/custom/New-AzADDomainService.ps1 b/src/ADDomainServices/custom/New-AzADDomainService.ps1 index ac57ccb1cfe6..40200bd63b5d 100644 --- a/src/ADDomainServices/custom/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/custom/New-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -20,6 +21,9 @@ If the specific service already exists, then any patchable properties will be up .Description The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. +.Example +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService @@ -28,255 +32,258 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -REPLICASET : List of ReplicaSets - [Location ]: Virtual network location - [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. - -RESOURCEFORESTSETTING : List of settings for Resource Forest +FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN + +REPLICASET : List of ReplicaSets + [Location ]: Virtual network location + [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> function New-AzADDomainService { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] - [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(Mandatory)] - [Alias('DomainServiceName')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the domain service. - ${Name}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [ValidateSet("FullySynced", "ResourceTrusting")] - [System.String] - # Domain Configuration Type - ${DomainConfigurationType}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the Azure domain that the user would like to deploy Domain Services to. - ${DomainName}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not NtlmV1 is enabled or disabled. - ${DomainSecuritySettingNtlmV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. - ${DomainSecuritySettingSyncKerberosPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. - ${DomainSecuritySettingSyncNtlmPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. - ${DomainSecuritySettingSyncOnPremPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not TlsV1 is enabled or disabled. - ${DomainSecuritySettingTlsV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Enabled or Disabled flag to turn on Group-based filtered sync - ${FilteredSync}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. - ${LdapSettingExternalAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not Secure LDAP is enabled or disabled. - ${LdapSettingLdaps}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.Security.SecureString] - # The password to decrypt the provided Secure LDAP certificate pfx file. - ${LdapSettingPfxCertificatePassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String[]] - # The list of additional recipients - ${NotificationSettingAdditionalRecipient}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Should domain controller admins be notified - ${NotificationSettingNotifyDcAdmin}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Should global admins be notified - ${NotificationSettingNotifyGlobalAdmin}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource Forest - ${ResourceForest}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [ValidateSet("Standard", "Enterprise", "Premium")] - [System.String] - # Sku Type - ${Sku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} - ) +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Alias('DomainServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [System.String] + # The name of the domain service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [System.String] + # The name of the resource group within the user's subscription. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Domain Configuration Type + ${DomainConfigurationType}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # The name of the Azure domain that the user would like to deploy Domain Services to. + ${DomainName}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] + # A flag to determine whether or not NtlmV1 is enabled or disabled. + ${DomainSecuritySettingNtlmV1}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] + # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. + ${DomainSecuritySettingSyncKerberosPassword}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] + # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. + ${DomainSecuritySettingSyncNtlmPassword}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] + # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. + ${DomainSecuritySettingSyncOnPremPassword}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] + # A flag to determine whether or not TlsV1 is enabled or disabled. + ${DomainSecuritySettingTlsV1}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Resource etag + ${Etag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] + # Enabled or Disabled flag to turn on Group-based filtered sync + ${FilteredSync}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + # List of settings for Resource Forest + # To construct, see NOTES section for FORESTTRUST properties and create a hash table. + ${ForestTrust}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] + # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. + ${LdapSettingExternalAccess}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] + # A flag to determine whether or not Secure LDAP is enabled or disabled. + ${LdapSettingLdaps}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.Security.SecureString] + # The password to decrypt the provided Secure LDAP certificate pfx file. + ${LdapSettingPfxCertificatePassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] + [System.String] + # Resource location + ${Location}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String[]] + # The list of additional recipients + ${NotificationSettingAdditionalRecipient}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] + # Should domain controller admins be notified + ${NotificationSettingNotifyDcAdmin}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] + # Should global admins be notified + ${NotificationSettingNotifyGlobalAdmin}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] + # List of ReplicaSets + # To construct, see NOTES section for REPLICASET properties and create a hash table. + ${ReplicaSet}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Resource Forest + ${ResourceForest}, + + [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Sku Type + ${Sku}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] + [System.Collections.Hashtable] + # Resource tags + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] + [System.Management.Automation.PSObject] + # The credentials, account, tenant, and subscription used for communication with Azure. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) process { - try { - $PSBoundParameters['Location'] = $PSBoundParameters['ReplicaSet'][0].Location - - if ($PSBoundParameters.ContainsKey('LdapSettingPfxCertificatePassword')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['LdapSettingPfxCertificatePassword'] - $PSBoundParameters['LdapSettingPfxCertificatePassword'] = $psTxt - } - - Az.ADDomainServices.internal\New-AzADDomainService @PSBoundParameters - } catch { - throw - } + Az.ADDomainServices.internal\New-AzADDomainService @PSBoundParameters } - } - \ No newline at end of file diff --git a/src/ADDomainServices/custom/README.md b/src/ADDomainServices/custom/README.md index db0ba82de429..15d0835d688d 100644 --- a/src/ADDomainServices/custom/README.md +++ b/src/ADDomainServices/custom/README.md @@ -12,7 +12,7 @@ For `Az.ADDomainServices` to use custom cmdlets, it does this two different ways For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.ADDomainServices.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder. -For script cmdlets, these are loaded via the `Az.ADDomainServices.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundemental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. +For script cmdlets, these are loaded via the `Az.ADDomainServices.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. @@ -32,10 +32,10 @@ These provide functionality to our HTTP pipeline and other useful features. In s ### Attributes For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DescriptionAttribute` - - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. + - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts. - `Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ADDomainServices`. - `Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.ADDomainServices`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.ADDomainServices`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/ADDomainServices/custom/Update-AzADDomainService.ps1 b/src/ADDomainServices/custom/Update-AzADDomainService.ps1 deleted file mode 100644 index 0f6a02ef7d9c..000000000000 --- a/src/ADDomainServices/custom/Update-AzADDomainService.ps1 +++ /dev/null @@ -1,290 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Description -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -INPUTOBJECT : Identity Parameter - [DomainServiceName ]: The name of the domain service. - [Id ]: Resource identity path - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -REPLICASET : List of ReplicaSets - [Location ]: Virtual network location - [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. - -RESOURCEFORESTSETTING : List of settings for Resource Forest - [FriendlyName ]: Friendly Name - [RemoteDnsIP ]: Remote Dns ips - [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password - [TrustedDomainFqdn ]: Trusted Domain FQDN -.Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/update-azaddomainservice -#> -function Update-AzADDomainService { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] - [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] - param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DomainServiceName')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the domain service. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [ValidateSet("FullySynced", "ResourceTrusting")] - [System.String] - # Domain Configuration Type - ${DomainConfigurationType}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not NtlmV1 is enabled or disabled. - ${DomainSecuritySettingNtlmV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. - ${DomainSecuritySettingSyncKerberosPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. - ${DomainSecuritySettingSyncNtlmPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. - ${DomainSecuritySettingSyncOnPremPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not TlsV1 is enabled or disabled. - ${DomainSecuritySettingTlsV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Enabled or Disabled flag to turn on Group-based filtered sync - ${FilteredSync}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. - ${LdapSettingExternalAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not Secure LDAP is enabled or disabled. - ${LdapSettingLdaps}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.Security.SecureString] - # The password to decrypt the provided Secure LDAP certificate pfx file. - ${LdapSettingPfxCertificatePassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String[]] - # The list of additional recipients - ${NotificationSettingAdditionalRecipient}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Should domain controller admins be notified - ${NotificationSettingNotifyDcAdmin}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Should global admins be notified - ${NotificationSettingNotifyGlobalAdmin}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource Forest - ${ResourceForest}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [ValidateSet("Standard", "Enterprise", "Premium")] - [System.String] - # Sku Type - ${Sku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} - ) - - process { - try { - - if ($PSBoundParameters.ContainsKey('LdapSettingPfxCertificatePassword')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['LdapSettingPfxCertificatePassword'] - $PSBoundParameters['LdapSettingPfxCertificatePassword'] = $psTxt - } - - Az.ADDomainServices.internal\Update-AzADDomainService @PSBoundParameters - } catch { - throw - } - } -} - - \ No newline at end of file diff --git a/src/ADDomainServices/custom/New-AzADDomainServiceForestTrust.ps1 b/src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 similarity index 57% rename from src/ADDomainServices/custom/New-AzADDomainServiceForestTrust.ps1 rename to src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 index 5069be33559a..8226a10e8c58 100644 --- a/src/ADDomainServices/custom/New-AzADDomainServiceForestTrust.ps1 +++ b/src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceForestTrustObject.ps1 @@ -1,30 +1,31 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, +# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis -Create a in-memory object for ForestTrust +Create an in-memory object for ForestTrust. .Description -Create a in-memory object for ForestTrust +Create an in-memory object for ForestTrust. .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust .Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceForestTrust +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceForestTrustObject #> -function New-AzADDomainServiceForestTrust { +function New-AzADDomainServiceForestTrustObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -49,14 +50,21 @@ function New-AzADDomainServiceForestTrust { process { $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust]::New() - $Object.FriendlyName = $FriendlyName - $Object.RemoteDnsIP = $RemoteDnsIP - $Object.TrustDirection = $TrustDirection + if ($PSBoundParameters.ContainsKey('FriendlyName')) { + $Object.FriendlyName = $FriendlyName + } + if ($PSBoundParameters.ContainsKey('RemoteDnsIP')) { + $Object.RemoteDnsIP = $RemoteDnsIP + } + if ($PSBoundParameters.ContainsKey('TrustDirection')) { + $Object.TrustDirection = $TrustDirection + } if ($PSBoundParameters.ContainsKey('TrustPassword')) { - $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $TrustPassword - $Object.TrustPassword = $psTxt - } - $Object.TrustedDomainFqdn = $TrustedDomainFqdn + $Object.TrustPassword = $TrustPassword + } + if ($PSBoundParameters.ContainsKey('TrustedDomainFqdn')) { + $Object.TrustedDomainFqdn = $TrustedDomainFqdn + } return $Object } } diff --git a/src/ADDomainServices/custom/New-AzADDomainServiceReplicaSet.ps1 b/src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 similarity index 63% rename from src/ADDomainServices/custom/New-AzADDomainServiceReplicaSet.ps1 rename to src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 index 2fe5e0308e54..c117c7c7393b 100644 --- a/src/ADDomainServices/custom/New-AzADDomainServiceReplicaSet.ps1 +++ b/src/ADDomainServices/custom/autogen-model-cmdlets/New-AzADDomainServiceReplicaSetObject.ps1 @@ -1,30 +1,31 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the \"License\"); +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an \"AS IS\" BASIS, +# distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis -Create a in-memory object for ReplicaSet +Create an in-memory object for ReplicaSet. .Description -Create a in-memory object for ReplicaSet +Create an in-memory object for ReplicaSet. .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet .Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceReplicaSet +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceReplicaSetObject #> -function New-AzADDomainServiceReplicaSet { +function New-AzADDomainServiceReplicaSetObject { [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet')] [CmdletBinding(PositionalBinding=$false)] Param( @@ -40,8 +41,12 @@ function New-AzADDomainServiceReplicaSet { process { $Object = [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet]::New() - $Object.Location = $Location - $Object.SubnetId = $SubnetId + if ($PSBoundParameters.ContainsKey('Location')) { + $Object.Location = $Location + } + if ($PSBoundParameters.ContainsKey('SubnetId')) { + $Object.SubnetId = $SubnetId + } return $Object } } diff --git a/src/ADDomainServices/examples/Get-AzADDomainService.md b/src/ADDomainServices/examples/Get-AzADDomainService.md index 88617b0a9c14..34a113a8ad88 100644 --- a/src/ADDomainServices/examples/Get-AzADDomainService.md +++ b/src/ADDomainServices/examples/Get-AzADDomainService.md @@ -1,7 +1,9 @@ ### Example 1: Get All ADDomainService By default ```powershell -PS C:\> Get-AzADDomainService +Get-AzADDomainService +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise @@ -11,8 +13,10 @@ Get All ADDomainService By default ### Example 2: Get ADDomainService By ResourceGroup and name ```powershell -PS C:\> Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise @@ -22,8 +26,10 @@ Get ADDomainService By ResourceGroup and name ### Example 3: Get all ADDomainService By ResourceGroup ```powershell -PS C:\> Get-AzADDomainService -ResourceGroupName youriADdomain +Get-AzADDomainService -ResourceGroupName youriADdomain +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise @@ -33,9 +39,11 @@ Get all ADDomainService By ResourceGroup ### Example 4: Get ADDomainService By InputObject ```powershell -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain Get-AzADDomainService -InputObject $getAzAddomain +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise diff --git a/src/ADDomainServices/examples/New-AzADDomainService.md b/src/ADDomainServices/examples/New-AzADDomainService.md index 5c9159a4703e..18d22b2fe3ea 100644 --- a/src/ADDomainServices/examples/New-AzADDomainService.md +++ b/src/ADDomainServices/examples/New-AzADDomainService.md @@ -1,14 +1,16 @@ -### Example 1: Create new ADDomainService +### Example 1: Create a new ADDomainService ```powershell -PS C:\> $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise ``` -Create new ADDomainService +Create a new ADDomainService ### Example 2: Create new ADDomainService with certificate ```powershell @@ -17,6 +19,7 @@ $replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscr $certificateBytes = get-content "certificate.pfx" -AsByteStream $base64String = [System.Convert]::ToBase64String($certificateBytes) $ldaps_pfx_pass = "MyStrongPassword" + New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) ``` @@ -27,3 +30,5 @@ youriADdomain youriAddomain.com westus Enterprise ``` Create new ADDomainService with certificate + + diff --git a/src/ADDomainServices/examples/New-AzADDomainServiceForestTrust.md b/src/ADDomainServices/examples/New-AzADDomainServiceForestTrustObject.md similarity index 56% rename from src/ADDomainServices/examples/New-AzADDomainServiceForestTrust.md rename to src/ADDomainServices/examples/New-AzADDomainServiceForestTrustObject.md index 6e86f7690cc0..6911f84c28d4 100644 --- a/src/ADDomainServices/examples/New-AzADDomainServiceForestTrust.md +++ b/src/ADDomainServices/examples/New-AzADDomainServiceForestTrustObject.md @@ -1,11 +1,12 @@ ### Example 1: Create ServiceForestTrust for ADDomain ```powershell -PS C:\> New-AzADDomainServiceForestTrust -FriendlyName FriendlyNameTest +New-AzADDomainServiceForestTrustObject -FriendlyName FriendlyNameTest +``` +```output FriendlyName RemoteDnsIP TrustDirection TrustPassword TrustedDomainFqdn ------------ ----------- -------------- ------------- ----------------- FriendlyNameTest ``` -Create ServiceForestTrust for ADDomain - +Create an in-memory object for ForestTrust. This object can be used to create or update a domain service. diff --git a/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSet.md b/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSet.md deleted file mode 100644 index fbc2eef035b2..000000000000 --- a/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSet.md +++ /dev/null @@ -1,13 +0,0 @@ -### Example 1: Create ReplicaSet for AdDomain -```powershell -PS C:\> New-AzADDomainServiceReplicaSet -Location eastus -SubnetId /subscriptions/**********-****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/Microsoft.Network/virtualNetworks/yourinttest/subnets/default - -DomainControllerIPAddress ExternalAccessIPAddress HealthLastEvaluated Location ServiceStatus SubnetId -------------------------- ----------------------- ------------------- -------- ------------- -------- - eastus /subscriptions/**** - ****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/M… -``` - -Create ReplicaSet for AdDomain - - diff --git a/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSetObject.md b/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSetObject.md new file mode 100644 index 000000000000..bf341e11f9fc --- /dev/null +++ b/src/ADDomainServices/examples/New-AzADDomainServiceReplicaSetObject.md @@ -0,0 +1,12 @@ +### Example 1: Create ReplicaSet for AdDomain +```powershell +New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vm/subnets/test-subnets +``` + +```output +DomainControllerIPAddress ExternalAccessIPAddress HealthLastEvaluated Location ServiceStatus SubnetId +------------------------- ----------------------- ------------------- -------- ------------- -------- + westus /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resource… +``` + +Create an in-memory object for ReplicaSet. This object can be used to create or update a domain service. diff --git a/src/ADDomainServices/examples/Remove-AzADDomainService.md b/src/ADDomainServices/examples/Remove-AzADDomainService.md index c5b176496a3c..40534c4923a7 100644 --- a/src/ADDomainServices/examples/Remove-AzADDomainService.md +++ b/src/ADDomainServices/examples/Remove-AzADDomainService.md @@ -1,16 +1,14 @@ ### Example 1: Delete the AzADDomain by ResourceGroupName and Name ```powershell -PS C:\> Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName - +Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName ``` Delete the AzADDomain by ResourceGroupName and Name ### Example 2: Delete the AzADDomain by InputObject ```powershell -PS C:\> $GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName +$GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName Remove-AzADDomainService -InputObject $GetADDomainExample - ``` Delete the AzADDomain by InputObject diff --git a/src/ADDomainServices/examples/Update-AzADDomainService.md b/src/ADDomainServices/examples/Update-AzADDomainService.md index ac568630e3b5..948bdb2b93a8 100644 --- a/src/ADDomainServices/examples/Update-AzADDomainService.md +++ b/src/ADDomainServices/examples/Update-AzADDomainService.md @@ -1,8 +1,9 @@ ### Example 1: Update AzADDomainService By ResourceGroupName and Name ```powershell -PS C:\> $ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySetting $ADDomainSetting +Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySettingTlsV1 Disabled +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise @@ -10,15 +11,16 @@ youriADdomain youriAddomain.com westus Enterprise Update AzADDomainService By ResourceGroupName and Name -### Example 2: Update AzADDomainService By Inputobject +### Example 2: Update AzADDomainService By InputObject ```powershell -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -$ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySetting $ADDomainSetting +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySettingTlsV1 Disabled +``` +```output Name Domain Name Location Sku ---- ----------- -------- --- youriADdomain youriAddomain.com westus Enterprise ``` -Update AzADDomainService By Inputobject +Update AzADDomainService By InputObject diff --git a/src/ADDomainServices/export-surface.ps1 b/src/ADDomainServices/export-surface.ps1 index 31ac327afd2f..f9f1dc94b753 100644 --- a/src/ADDomainServices/export-surface.ps1 +++ b/src/ADDomainServices/export-surface.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat) $ErrorActionPreference = 'Stop' diff --git a/src/ADDomainServices/exports/Get-AzADDomainService.ps1 b/src/ADDomainServices/exports/Get-AzADDomainService.ps1 index 2a8d816017b1..a3e76a10f110 100644 --- a/src/ADDomainServices/exports/Get-AzADDomainService.ps1 +++ b/src/ADDomainServices/exports/Get-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -19,31 +20,15 @@ The Get Domain Service operation retrieves a json representation of the Domain S .Description The Get Domain Service operation retrieves a json representation of the Domain Service. .Example -PS C:\> Get-AzADDomainService - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService .Example -PS C:\> Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain .Example -PS C:\> Get-AzADDomainService -ResourceGroupName youriADdomain - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService -ResourceGroupName youriADdomain .Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain Get-AzADDomainService -InputObject $getAzAddomain -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise - .Inputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity .Outputs @@ -59,7 +44,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/get-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/get-azaddomainservice #> function Get-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -152,6 +137,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.ADDomainServices.private\Get-AzADDomainService_Get'; GetViaIdentity = 'Az.ADDomainServices.private\Get-AzADDomainService_GetViaIdentity'; @@ -161,11 +164,14 @@ begin { if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -174,15 +180,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/ADDomainServices/exports/New-AzADDomainService.ps1 b/src/ADDomainServices/exports/New-AzADDomainService.ps1 index e3adc6b855a3..991b07ef680a 100644 --- a/src/ADDomainServices/exports/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/exports/New-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -21,12 +22,16 @@ If the specific service already exists, then any patchable properties will be up The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Example -PS C:\> $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +.Example +# Variables +$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ +$certificateBytes = get-content "certificate.pfx" -AsByteStream +$base64String = [System.Convert]::ToBase64String($certificateBytes) +$ldaps_pfx_pass = "MyStrongPassword" -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService @@ -39,14 +44,14 @@ FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN REPLICASET : List of ReplicaSets [Location ]: Virtual network location [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> function New-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -81,6 +86,7 @@ param( ${DomainName}, [Parameter(Mandatory)] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] # List of ReplicaSets @@ -88,6 +94,7 @@ param( ${ReplicaSet}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type @@ -96,65 +103,79 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] # A flag to determine whether or not NtlmV1 is enabled or disabled. ${DomainSecuritySettingNtlmV1}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ${DomainSecuritySettingSyncKerberosPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ${DomainSecuritySettingSyncNtlmPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # Resource etag + ${Etag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + # List of settings for Resource Forest + # To construct, see NOTES section for FORESTTRUST properties and create a hash table. + ${ForestTrust}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] @@ -164,6 +185,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] + [System.String] + # Resource location + ${Location}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, @@ -171,14 +200,14 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, @@ -189,13 +218,7 @@ param( ${ResourceForest}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -275,17 +298,41 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ CreateExpanded = 'Az.ADDomainServices.custom\New-AzADDomainService'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters['Location'] = $ReplicaSet[0].Location + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -294,15 +341,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/ADDomainServices/exports/New-AzADDomainServiceForestTrust.ps1 b/src/ADDomainServices/exports/New-AzADDomainServiceForestTrust.ps1 deleted file mode 100644 index db64fb93da38..000000000000 --- a/src/ADDomainServices/exports/New-AzADDomainServiceForestTrust.ps1 +++ /dev/null @@ -1,102 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for ForestTrust -.Description -Create a in-memory object for ForestTrust -.Example -PS C:\> New-AzADDomainServiceForestTrust -FriendlyName FriendlyNameTest - -FriendlyName RemoteDnsIP TrustDirection TrustPassword TrustedDomainFqdn ------------- ----------- -------------- ------------- ----------------- -FriendlyNameTest - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust -.Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceForestTrust -#> -function New-AzADDomainServiceForestTrust { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Friendly Name. - ${FriendlyName}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Remote Dns ips. - ${RemoteDnsIP}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Trust Direction. - ${TrustDirection}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.Security.SecureString] - # Trust Password. - ${TrustPassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Trusted Domain FQDN. - ${TrustedDomainFqdn} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceForestTrust'; - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} diff --git a/src/ADDomainServices/exports/New-AzADDomainServiceForestTrustObject.ps1 b/src/ADDomainServices/exports/New-AzADDomainServiceForestTrustObject.ps1 new file mode 100644 index 000000000000..2566061e7cb3 --- /dev/null +++ b/src/ADDomainServices/exports/New-AzADDomainServiceForestTrustObject.ps1 @@ -0,0 +1,137 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ForestTrust. +.Description +Create an in-memory object for ForestTrust. +.Example +New-AzADDomainServiceForestTrustObject -FriendlyName FriendlyNameTest + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +.Link +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceForestTrustObject +#> +function New-AzADDomainServiceForestTrustObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Friendly Name. + ${FriendlyName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Remote Dns ips. + ${RemoteDnsIP}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Trust Direction. + ${TrustDirection}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.Security.SecureString] + # Trust Password. + ${TrustPassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Trusted Domain FQDN. + ${TrustedDomainFqdn} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceForestTrustObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSet.ps1 b/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSet.ps1 deleted file mode 100644 index 141f1dbdc1f9..000000000000 --- a/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSet.ps1 +++ /dev/null @@ -1,87 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for ReplicaSet -.Description -Create a in-memory object for ReplicaSet -.Example -PS C:\> New-AzADDomainServiceReplicaSet -Location eastus -SubnetId /subscriptions/**********-****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/Microsoft.Network/virtualNetworks/yourinttest/subnets/default - -DomainControllerIPAddress ExternalAccessIPAddress HealthLastEvaluated Location ServiceStatus SubnetId -------------------------- ----------------------- ------------------- -------- ------------- -------- - eastus /subscriptions/**** - ****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/M… - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet -.Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceReplicaSet -#> -function New-AzADDomainServiceReplicaSet { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Virtual network location. - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the virtual network that Domain Services will be deployed on. - # The id of the subnet that Domain Services will be deployed on. - # /virtualNetwork/vnetName/subnets/subnetName. - ${SubnetId} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceReplicaSet'; - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} diff --git a/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSetObject.ps1 b/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSetObject.ps1 new file mode 100644 index 000000000000..796d45960735 --- /dev/null +++ b/src/ADDomainServices/exports/New-AzADDomainServiceReplicaSetObject.ps1 @@ -0,0 +1,121 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Create an in-memory object for ReplicaSet. +.Description +Create an in-memory object for ReplicaSet. +.Example +New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vm/subnets/test-subnets + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet +.Link +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceReplicaSetObject +#> +function New-AzADDomainServiceReplicaSetObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Virtual network location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # The name of the virtual network that Domain Services will be deployed on. + # The id of the subnet that Domain Services will be deployed on. + # /virtualNetwork/vnetName/subnets/subnetName. + ${SubnetId} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceReplicaSetObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/src/ADDomainServices/exports/ProxyCmdletDefinitions.ps1 b/src/ADDomainServices/exports/ProxyCmdletDefinitions.ps1 index 5c2358405c5e..43b669a5af39 100644 --- a/src/ADDomainServices/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ADDomainServices/exports/ProxyCmdletDefinitions.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -19,31 +20,15 @@ The Get Domain Service operation retrieves a json representation of the Domain S .Description The Get Domain Service operation retrieves a json representation of the Domain Service. .Example -PS C:\> Get-AzADDomainService - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService .Example -PS C:\> Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain .Example -PS C:\> Get-AzADDomainService -ResourceGroupName youriADdomain - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Get-AzADDomainService -ResourceGroupName youriADdomain .Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain Get-AzADDomainService -InputObject $getAzAddomain -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise - .Inputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity .Outputs @@ -59,7 +44,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/get-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/get-azaddomainservice #> function Get-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -152,6 +137,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Get = 'Az.ADDomainServices.private\Get-AzADDomainService_Get'; GetViaIdentity = 'Az.ADDomainServices.private\Get-AzADDomainService_GetViaIdentity'; @@ -161,11 +164,14 @@ begin { if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -174,32 +180,35 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } +} } -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- <# .Synopsis @@ -207,13 +216,11 @@ The Delete Domain Service operation deletes an existing Domain Service. .Description The Delete Domain Service operation deletes an existing Domain Service. .Example -PS C:\> Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName - +Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName .Example -PS C:\> $GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName +$GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName Remove-AzADDomainService -InputObject $GetADDomainExample - .Inputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity .Outputs @@ -229,7 +236,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/remove-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/remove-azaddomainservice #> function Remove-AzADDomainService { [OutputType([System.Boolean])] @@ -337,6 +344,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.ADDomainServices.private\Remove-AzADDomainService_Delete'; DeleteViaIdentity = 'Az.ADDomainServices.private\Remove-AzADDomainService_DeleteViaIdentity'; @@ -344,11 +369,14 @@ begin { if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -357,48 +385,51 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } +} } -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- <# .Synopsis -The Create Domain Service operation creates a new domain service with the specified parameters. -If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. +The Update Domain Service operation can be used to update the existing deployment. +The update call only supports the properties listed in the PATCH body. .Description -The Create Domain Service operation creates a new domain service with the specified parameters. -If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. +The Update Domain Service operation can be used to update the existing deployment. +The update call only supports the properties listed in the PATCH body. .Example -PS C:\> $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySettingTlsV1 Disabled +.Example +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySettingTlsV1 Disabled +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService .Notes @@ -410,34 +441,40 @@ FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN +INPUTOBJECT : Identity Parameter + [DomainServiceName ]: The name of the domain service. + [Id ]: Resource identity path + [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. + [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + REPLICASET : List of ReplicaSets [Location ]: Virtual network location [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/update-azaddomainservice #> -function New-AzADDomainService { +function Update-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('DomainServiceName')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [System.String] # The name of the domain service. ${Name}, - [Parameter(Mandatory)] + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [System.String] # The name of the resource group within the user's subscription. # The name is case insensitive. ${ResourceGroupName}, - [Parameter()] + [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -445,87 +482,102 @@ param( # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the Azure domain that the user would like to deploy Domain Services to. - ${DomainName}, - - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, + [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type ${DomainConfigurationType}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # The name of the Azure domain that the user would like to deploy Domain Services to. + ${DomainName}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] # A flag to determine whether or not NtlmV1 is enabled or disabled. ${DomainSecuritySettingNtlmV1}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ${DomainSecuritySettingSyncKerberosPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ${DomainSecuritySettingSyncNtlmPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # Resource etag + ${Etag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + # List of settings for Resource Forest + # To construct, see NOTES section for FORESTTRUST properties and create a hash table. + ${ForestTrust}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] @@ -535,6 +587,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Resource location + ${Location}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, @@ -542,31 +601,33 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource Forest - ${ResourceForest}, + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] + # List of ReplicaSets + # To construct, see NOTES section for REPLICASET properties and create a hash table. + ${ReplicaSet}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, + [System.String] + # Resource Forest + ${ResourceForest}, [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -646,17 +707,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - CreateExpanded = 'Az.ADDomainServices.custom\New-AzADDomainService'; + UpdateExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateViaIdentityExpanded'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -665,374 +748,198 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } +} } -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- <# .Synopsis -Create a in-memory object for ForestTrust +The Create Domain Service operation creates a new domain service with the specified parameters. +If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Description -Create a in-memory object for ForestTrust +The Create Domain Service operation creates a new domain service with the specified parameters. +If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Example -PS C:\> New-AzADDomainServiceForestTrust -FriendlyName FriendlyNameTest +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +.Example +# Variables +$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ +$certificateBytes = get-content "certificate.pfx" -AsByteStream +$base64String = [System.Convert]::ToBase64String($certificateBytes) +$ldaps_pfx_pass = "MyStrongPassword" -FriendlyName RemoteDnsIP TrustDirection TrustPassword TrustedDomainFqdn ------------- ----------- -------------- ------------- ----------------- -FriendlyNameTest +New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) .Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +FORESTTRUST : List of settings for Resource Forest + [FriendlyName ]: Friendly Name + [RemoteDnsIP ]: Remote Dns ips + [TrustDirection ]: Trust Direction + [TrustPassword ]: Trust Password + [TrustedDomainFqdn ]: Trusted Domain FQDN + +REPLICASET : List of ReplicaSets + [Location ]: Virtual network location + [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceForestTrust +https://docs.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> -function New-AzADDomainServiceForestTrust { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust])] -[CmdletBinding(PositionalBinding=$false)] +function New-AzADDomainService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] +[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( + [Parameter(Mandatory)] + [Alias('DomainServiceName')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [System.String] + # The name of the domain service. + ${Name}, + + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [System.String] + # The name of the resource group within the user's subscription. + # The name is case insensitive. + ${ResourceGroupName}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. + # The subscription ID forms part of the URI for every service call. + ${SubscriptionId}, + + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # Friendly Name. - ${FriendlyName}, + # The name of the Azure domain that the user would like to deploy Domain Services to. + ${DomainName}, + + [Parameter(Mandatory)] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] + # List of ReplicaSets + # To construct, see NOTES section for REPLICASET properties and create a hash table. + ${ReplicaSet}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # Remote Dns ips. - ${RemoteDnsIP}, + # Domain Configuration Type + ${DomainConfigurationType}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Trust Direction. - ${TrustDirection}, + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] + # A flag to determine whether or not NtlmV1 is enabled or disabled. + ${DomainSecuritySettingNtlmV1}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.Security.SecureString] - # Trust Password. - ${TrustPassword}, + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] + # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. + ${DomainSecuritySettingSyncKerberosPassword}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Trusted Domain FQDN. - ${TrustedDomainFqdn} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceForestTrust'; - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -Create a in-memory object for ReplicaSet -.Description -Create a in-memory object for ReplicaSet -.Example -PS C:\> New-AzADDomainServiceReplicaSet -Location eastus -SubnetId /subscriptions/**********-****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/Microsoft.Network/virtualNetworks/yourinttest/subnets/default - -DomainControllerIPAddress ExternalAccessIPAddress HealthLastEvaluated Location ServiceStatus SubnetId -------------------------- ----------------------- ------------------- -------- ------------- -------- - eastus /subscriptions/**** - ****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/M… - -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet -.Link -https://docs.microsoft.com/en-us/powershell/module/az.ADDomainServices/new-AzADDomainServiceReplicaSet -#> -function New-AzADDomainServiceReplicaSet { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet])] -[CmdletBinding(PositionalBinding=$false)] -param( - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Virtual network location. - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the virtual network that Domain Services will be deployed on. - # The id of the subnet that Domain Services will be deployed on. - # /virtualNetwork/vnetName/subnets/subnetName. - ${SubnetId} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceReplicaSet'; - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Description -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Example -PS C:\> $ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise -.Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -$ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FORESTTRUST : List of settings for Resource Forest - [FriendlyName ]: Friendly Name - [RemoteDnsIP ]: Remote Dns ips - [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password - [TrustedDomainFqdn ]: Trusted Domain FQDN - -INPUTOBJECT : Identity Parameter - [DomainServiceName ]: The name of the domain service. - [Id ]: Resource identity path - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -REPLICASET : List of ReplicaSets - [Location ]: Virtual network location - [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. -.Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/update-azaddomainservice -#> -function Update-AzADDomainService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DomainServiceName')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the domain service. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Domain Configuration Type - ${DomainConfigurationType}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not NtlmV1 is enabled or disabled. - ${DomainSecuritySettingNtlmV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. - ${DomainSecuritySettingSyncKerberosPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. - ${DomainSecuritySettingSyncNtlmPassword}, + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] + # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. + ${DomainSecuritySettingSyncNtlmPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # Resource etag + ${Etag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + # List of settings for Resource Forest + # To construct, see NOTES section for FORESTTRUST properties and create a hash table. + ${ForestTrust}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] @@ -1042,6 +949,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] + [System.String] + # Resource location + ${Location}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, @@ -1049,24 +964,17 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, - [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] @@ -1074,13 +982,7 @@ param( ${ResourceForest}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -1160,18 +1062,41 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - UpdateExpanded = 'Az.ADDomainServices.custom\Update-AzADDomainService'; - UpdateViaIdentityExpanded = 'Az.ADDomainServices.custom\Update-AzADDomainService'; + CreateExpanded = 'Az.ADDomainServices.custom\New-AzADDomainService'; } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters['Location'] = $ReplicaSet[0].Location + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -1180,15 +1105,260 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + } +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ForestTrust. +.Description +Create an in-memory object for ForestTrust. +.Example +New-AzADDomainServiceForestTrustObject -FriendlyName FriendlyNameTest + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust +.Link +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceForestTrustObject +#> +function New-AzADDomainServiceForestTrustObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrust])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Friendly Name. + ${FriendlyName}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Remote Dns ips. + ${RemoteDnsIP}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Trust Direction. + ${TrustDirection}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.Security.SecureString] + # Trust Password. + ${TrustPassword}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Trusted Domain FQDN. + ${TrustedDomainFqdn} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceForestTrustObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Create an in-memory object for ReplicaSet. +.Description +Create an in-memory object for ReplicaSet. +.Example +New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vm/subnets/test-subnets + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet +.Link +https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceReplicaSetObject +#> +function New-AzADDomainServiceReplicaSetObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSet])] +[CmdletBinding(PositionalBinding=$false)] +param( + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Virtual network location. + ${Location}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # The name of the virtual network that Domain Services will be deployed on. + # The id of the subnet that Domain Services will be deployed on. + # /virtualNetwork/vnetName/subnets/subnetName. + ${SubnetId} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + __AllParameterSets = 'Az.ADDomainServices.custom\New-AzADDomainServiceReplicaSetObject'; + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + } +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} } diff --git a/src/ADDomainServices/exports/README.md b/src/ADDomainServices/exports/README.md index 54f1de62bce0..2f8e63b2c5b8 100644 --- a/src/ADDomainServices/exports/README.md +++ b/src/ADDomainServices/exports/README.md @@ -1,5 +1,5 @@ # Exports -This directory contains the cmdlets *exported by* `Az.ADDomainServices`. No other cmdlets in this repository are directly exported. What that means is the `Az.ADDomainServices` module will run [Export-ModuleMember](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains the cmdlets *exported by* `Az.ADDomainServices`. No other cmdlets in this repository are directly exported. What that means is the `Az.ADDomainServices` module will run [Export-ModuleMember](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/export-modulemember) on the cmldets in this directory. The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no @@ -8,7 +8,7 @@ This directory contains the cmdlets *exported by* `Az.ADDomainServices`. No othe - Packaged: yes ## Details -The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.ADDomainServices.private.dll`) and from the `..\custom\Az.ADDomainServices.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [readme.md](..\internal/readme.md) in the `..\internal` folder. +The cmdlets generated here are created every time you run `build-module.ps1`. These cmdlets are a merge of all (excluding `InternalExport`) cmdlets from the private binary (`..\bin\Az.ADDomainServices.private.dll`) and from the `..\custom\Az.ADDomainServices.custom.psm1` module. Cmdlets that are *not merged* from those directories are decorated with the `InternalExport` attribute. This happens when you set the cmdlet to **hide** from configuration. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) or the [README.md](..\internal/README.md) in the `..\internal` folder. ## Purpose We generate script cmdlets out of the binary cmdlets and custom cmdlets. The format of script cmdlets are simplistic; thus, easier to generate at build time. Generating the cmdlets is required as to allow merging of generated binary, hand-written binary, and hand-written custom cmdlets. For Azure cmdlets, having script cmdlets simplifies the mechanism for exporting Azure profiles. diff --git a/src/ADDomainServices/exports/Remove-AzADDomainService.ps1 b/src/ADDomainServices/exports/Remove-AzADDomainService.ps1 index dac657cb63af..b7d1db330443 100644 --- a/src/ADDomainServices/exports/Remove-AzADDomainService.ps1 +++ b/src/ADDomainServices/exports/Remove-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -19,13 +20,11 @@ The Delete Domain Service operation deletes an existing Domain Service. .Description The Delete Domain Service operation deletes an existing Domain Service. .Example -PS C:\> Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName - +Remove-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName .Example -PS C:\> $GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName +$GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName Remove-AzADDomainService -InputObject $GetADDomainExample - .Inputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity .Outputs @@ -41,7 +40,7 @@ INPUTOBJECT : Identity Parameter [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/remove-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/remove-azaddomainservice #> function Remove-AzADDomainService { [OutputType([System.Boolean])] @@ -149,6 +148,24 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ Delete = 'Az.ADDomainServices.private\Remove-AzADDomainService_Delete'; DeleteViaIdentity = 'Az.ADDomainServices.private\Remove-AzADDomainService_DeleteViaIdentity'; @@ -156,11 +173,14 @@ begin { if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -169,15 +189,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/ADDomainServices/exports/Update-AzADDomainService.ps1 b/src/ADDomainServices/exports/Update-AzADDomainService.ps1 index 1b9a2df5b08d..ad4f3fa90b17 100644 --- a/src/ADDomainServices/exports/Update-AzADDomainService.ps1 +++ b/src/ADDomainServices/exports/Update-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -21,20 +22,10 @@ The update call only supports the properties listed in the PATCH body. The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body. .Example -PS C:\> $ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySettingTlsV1 Disabled .Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -$ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +$getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain +Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySettingTlsV1 Disabled .Inputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity @@ -49,7 +40,7 @@ FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN INPUTOBJECT : Identity Parameter @@ -62,7 +53,7 @@ REPLICASET : List of ReplicaSets [Location ]: Virtual network location [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/update-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/update-azaddomainservice #> function Update-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -98,73 +89,94 @@ param( ${InputObject}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type ${DomainConfigurationType}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # The name of the Azure domain that the user would like to deploy Domain Services to. + ${DomainName}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] # A flag to determine whether or not NtlmV1 is enabled or disabled. ${DomainSecuritySettingNtlmV1}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ${DomainSecuritySettingSyncKerberosPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ${DomainSecuritySettingSyncNtlmPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ${DomainSecuritySettingSyncOnPremPassword}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] # A flag to determine whether or not TlsV1 is enabled or disabled. ${DomainSecuritySettingTlsV1}, [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] + # Resource etag + ${Etag}, + + [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] # Enabled or Disabled flag to turn on Group-based filtered sync ${FilteredSync}, + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] + # List of settings for Resource Forest + # To construct, see NOTES section for FORESTTRUST properties and create a hash table. + ${ForestTrust}, + [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ${LdapSettingExternalAccess}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] # A flag to determine whether or not Secure LDAP is enabled or disabled. ${LdapSettingLdaps}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] @@ -174,6 +186,13 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [System.String] + # Resource location + ${Location}, + + [Parameter()] + [AllowEmptyCollection()] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients ${NotificationSettingAdditionalRecipient}, @@ -181,18 +200,19 @@ param( [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] # Should domain controller admins be notified ${NotificationSettingNotifyDcAdmin}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] # Should global admins be notified ${NotificationSettingNotifyGlobalAdmin}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] # List of ReplicaSets @@ -206,13 +226,7 @@ param( ${ResourceForest}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -292,18 +306,39 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + $mapping = @{ - UpdateExpanded = 'Az.ADDomainServices.custom\Update-AzADDomainService'; - UpdateViaIdentityExpanded = 'Az.ADDomainServices.custom\Update-AzADDomainService'; + UpdateExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } } @@ -312,15 +347,32 @@ process { try { $steppablePipeline.Process($_) } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} end { try { $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() throw } -} +} } diff --git a/src/ADDomainServices/generate-help.ps1 b/src/ADDomainServices/generate-help.ps1 index a49b15369064..cf9b24379ae4 100644 --- a/src/ADDomainServices/generate-help.ps1 +++ b/src/ADDomainServices/generate-help.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated) $ErrorActionPreference = 'Stop' @@ -34,7 +35,7 @@ if(-not $hasProfiles) { $docsFolder = Join-Path $PSScriptRoot 'docs' if(Test-Path $docsFolder) { - $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'readme.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue + $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue $examplesFolder = Join-Path $PSScriptRoot 'examples' diff --git a/src/ADDomainServices/generate-info.json b/src/ADDomainServices/generate-info.json index ddd2beb12df0..b403a0c738aa 100644 --- a/src/ADDomainServices/generate-info.json +++ b/src/ADDomainServices/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_powershell": "3.0.414", "autorest": "`-- (empty)", - "node": "v10.16.0", - "swagger_commit": "1d1b92032bd2a910979bfdbb94776d52bcf31659", - "autorest_core": "3.0.6351", - "autorest_modelerfour": "4.15.414" + "autorest_powershell": "3.0.489", + "swagger_commit": "261f2cd5b009f319d44149da020c42e3d0832a7a", + "node": "v14.15.5", + "autorest_modelerfour": "4.15.414", + "autorest_core": "3.8.4" } diff --git a/src/ADDomainServices/generated/Module.cs b/src/ADDomainServices/generated/Module.cs index 3afd557f94e9..93daa8b94c69 100644 --- a/src/ADDomainServices/generated/Module.cs +++ b/src/ADDomainServices/generated/Module.cs @@ -10,8 +10,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices using PipelineChangeDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>; using GetParameterDelegate = global::System.Func; using ModuleLoadPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; - using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using ArgumentCompleterDelegate = global::System.Func; + using GetTelemetryIdDelegate = global::System.Func; + using TelemetryDelegate = global::System.Action; + using NewRequestPipelineDelegate = global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>, global::System.Action, global::System.Threading.Tasks.Task>, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>>>; using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; @@ -30,6 +32,8 @@ public partial class Module /// the ISendAsync pipeline instance (when proxy is enabled) private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline _pipelineWithProxy; + public bool _useProxy = false; + public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); /// Gets completion data for azure specific fields @@ -44,6 +48,9 @@ public partial class Module /// The delegate to call to get parameter data from a common module. public GetParameterDelegate GetParameterValue { get; set; } + /// The delegate to get the telemetry Id. + public GetTelemetryIdDelegate GetTelemetryId { get; set; } + /// Backing field for property. private static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module _instance; @@ -65,6 +72,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.ADDomainServices"; + /// The delegate for creating a telemetry. + public TelemetryDelegate Telemetry { get; set; } + /// The from the cmdlet /// The HttpPipeline for the request @@ -82,12 +92,13 @@ public partial class Module /// the cmdlet's correlation id. /// the cmdlet's process record correlation id. /// the cmdlet's parameterset name. + /// a dict for extensible parameters /// An instance of Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline for the remote call. - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null) + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline CreatePipeline(global::System.Management.Automation.InvocationInfo invocationInfo, string correlationId, string processRecordId, string parameterSetName = null, global::System.Collections.Generic.IDictionary extensibleParameters = null) { Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline pipeline = null; BeforeCreatePipeline(invocationInfo, ref pipeline); - pipeline = (pipeline ?? (_handler.UseProxy ? _pipelineWithProxy : _pipeline)).Clone(); + pipeline = (pipeline ?? (_useProxy ? _pipelineWithProxy : _pipeline)).Clone(); AfterCreatePipeline(invocationInfo, ref pipeline); pipeline.Append(new Runtime.CmdInfoHandler(processRecordId, invocationInfo, parameterSetName).SendAsync); OnNewRequest?.Invoke( invocationInfo, correlationId,processRecordId, (step)=> { pipeline.Prepend(step); } , (step)=> { pipeline.Append(step); } ); @@ -114,7 +125,7 @@ public void Init() /// Creates the module instance. private Module() { - /// constructor + // constructor ClientAPI = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.AdDomainServices(); _handler.Proxy = _webProxy; _pipeline = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpPipeline(new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.HttpClientFactory(new global::System.Net.Http.HttpClient())); @@ -126,12 +137,24 @@ private Module() /// True if the proxy should use default credentials public void SetProxyConfiguration(global::System.Uri proxy, global::System.Management.Automation.PSCredential proxyCredential, bool proxyUseDefaultCredentials) { + _useProxy = proxy != null; + if (proxy == null) + { + return; + } // set the proxy configuration _webProxy.Address = proxy; _webProxy.BypassProxyOnLocal = false; - _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); - _webProxy.UseDefaultCredentials = proxyUseDefaultCredentials; - _handler.UseProxy = proxy != null; + if (proxyUseDefaultCredentials) + { + _webProxy.Credentials = null; + _webProxy.UseDefaultCredentials = true; + } + else + { + _webProxy.UseDefaultCredentials = false; + _webProxy.Credentials = proxyCredential ?.GetNetworkCredential(); + } } /// Called to dispatch events to the common module listener diff --git a/src/ADDomainServices/generated/api/AdDomainServices.cs b/src/ADDomainServices/generated/api/AdDomainServices.cs index 4447c9ba3f93..39ee3e1d2499 100644 --- a/src/ADDomainServices/generated/api/AdDomainServices.cs +++ b/src/ADDomainServices/generated/api/AdDomainServices.cs @@ -67,7 +67,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.AAD/operations$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.AAD/operations$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.AAD/operations'"); @@ -233,7 +233,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}'"); @@ -388,6 +388,7 @@ public partial class AdDomainServices // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -511,7 +512,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}'"); @@ -664,6 +665,7 @@ public partial class AdDomainServices // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } @@ -792,7 +794,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}'"); @@ -1009,7 +1011,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices'"); @@ -1135,7 +1137,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AAD/domainServices$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.AAD/domainServices$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.AAD/domainServices'"); @@ -1306,7 +1308,7 @@ public partial class AdDomainServices { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$").Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.AAD/domainServices/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}'"); @@ -1461,6 +1463,7 @@ public partial class AdDomainServices // make the final call _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } break; } } diff --git a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.PowerShell.cs b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.PowerShell.cs index a75fe90ca39c..166927ff0d0d 100644 --- a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.PowerShell.cs @@ -30,7 +30,8 @@ public partial class AdDomainServicesIdentity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -42,7 +43,8 @@ public partial class AdDomainServicesIdentity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -65,10 +67,22 @@ internal AdDomainServicesIdentity(global::System.Collections.IDictionary content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName = (string) content.GetValueForProperty("DomainServiceName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id, global::System.Convert.ToString); + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainServiceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName = (string) content.GetValueForProperty("DomainServiceName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -86,10 +100,22 @@ internal AdDomainServicesIdentity(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName = (string) content.GetValueForProperty("DomainServiceName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id, global::System.Convert.ToString); + if (content.Contains("SubscriptionId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + } + if (content.Contains("ResourceGroupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + } + if (content.Contains("DomainServiceName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName = (string) content.GetValueForProperty("DomainServiceName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).DomainServiceName, global::System.Convert.ToString); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentityInternal)this).Id, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } @@ -123,7 +149,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDoma /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.TypeConverter.cs index b8653e3f8156..786922df4d6a 100644 --- a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.TypeConverter.cs @@ -14,20 +14,20 @@ public partial class AdDomainServicesIdentityTypeConverter : global::System.Mana { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -80,19 +80,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -104,8 +105,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.json.cs b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.json.cs index 212bf7d08b9a..d79b031cbfe6 100644 --- a/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.json.cs +++ b/src/ADDomainServices/generated/api/Models/AdDomainServicesIdentity.json.cs @@ -19,7 +19,7 @@ public partial class AdDomainServicesIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class AdDomainServicesIdentity /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -41,7 +42,8 @@ public partial class AdDomainServicesIdentity /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.PowerShell.cs index bc34b71d1c93..6ba64ddb0765 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class CloudError /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class CloudError /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -61,11 +68,26 @@ internal CloudError(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + } AfterDeserializeDictionary(content); } @@ -83,11 +105,26 @@ internal CloudError(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + if (content.Contains("Error")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom); + } + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + } AfterDeserializePSObject(content); } @@ -121,7 +158,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.TypeConverter.cs index 0ca24eb79ec6..d17b27f754ff 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,19 @@ public partial class CloudErrorTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.cs index 588d912f4e0d..1cbca0e526e9 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.json.cs index d9227ef46f47..6486ccc59cf7 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudError.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudError.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class CloudError partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class CloudError /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class CloudError /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.PowerShell.cs index 605839f56e7c..19a66f0d119c 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class CloudErrorBody /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class CloudErrorBody /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -61,10 +68,22 @@ internal CloudErrorBody(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + } AfterDeserializeDictionary(content); } @@ -82,10 +101,22 @@ internal CloudErrorBody(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + if (content.Contains("Code")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Code, global::System.Convert.ToString); + } + if (content.Contains("Message")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Message, global::System.Convert.ToString); + } + if (content.Contains("Target")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Target, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBodyInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.CloudErrorBodyTypeConverter.ConvertFrom)); + } AfterDeserializePSObject(content); } @@ -119,7 +150,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudErrorBody FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.TypeConverter.cs index 01afbc7281e0..16fb5d0b93bf 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class CloudErrorBodyTypeConverter : global::System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.cs index 5ee99c7d7d40..ac15ff5e6824 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.json.cs index e2868111faa7..c30ff77cd1e3 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/CloudErrorBody.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class CloudErrorBody partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class CloudErrorBody /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class CloudErrorBody /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.PowerShell.cs index 4a3fe6e8831f..c25f838790e5 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class DomainSecuritySettings /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class DomainSecuritySettings /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -89,11 +96,26 @@ internal DomainSecuritySettings(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("NtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("TlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("SyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("SyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("SyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + if (content.Contains("NtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("NtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("TlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("TlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("SyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("SyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("SyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("SyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("SyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("SyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } AfterDeserializeDictionary(content); } @@ -111,11 +133,26 @@ internal DomainSecuritySettings(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("NtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("TlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("SyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("SyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("SyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + if (content.Contains("NtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("NtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).NtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("TlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("TlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).TlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("SyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("SyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("SyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("SyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("SyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("SyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettingsInternal)this).SyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } AfterDeserializePSObject(content); } @@ -123,7 +160,7 @@ internal DomainSecuritySettings(global::System.Management.Automation.PSObject co /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.TypeConverter.cs index c0ee8d6b45e0..95e35d7a6d05 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class DomainSecuritySettingsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.cs index 6194faf2b0ac..2a51a2db81ab 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.json.cs index 9b067ff3c253..5d0ea4d55aef 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainSecuritySettings.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class DomainSecuritySettings partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class DomainSecuritySettings /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class DomainSecuritySettings /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.PowerShell.cs index 79aca8cb1713..4c9580118cef 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class DomainService /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class DomainService /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -87,50 +94,182 @@ internal DomainService(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServicePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate = (string) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword = (string) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("PropertiesResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("LdapsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("NotificationSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FilteredSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); + } + if (content.Contains("ResourceForestSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("DomainSecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("DeploymentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId, global::System.Convert.ToString); + } + if (content.Contains("SyncOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner, global::System.Convert.ToString); + } + if (content.Contains("ReplicaSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainConfigurationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingLdap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("LdapSettingPfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate = (byte[]) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate, i => i); + } + if (content.Contains("LdapSettingPublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingCertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } + if (content.Contains("ResourceForestSettingResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); + } + if (content.Contains("DomainSecuritySettingNtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("DomainSecuritySettingTlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("NotificationSettingAdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationPropertyMigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("LdapSettingPfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("LdapSettingCertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PropertiesResourceForestSettingsSettings")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("PropertiesResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainSecuritySettingSyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("MigrationPropertyOldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("MigrationPropertyOldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -148,50 +287,182 @@ internal DomainService(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServicePropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate = (string) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword = (string) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("PropertiesResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + } + if (content.Contains("LdapsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("NotificationSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("FilteredSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); + } + if (content.Contains("ResourceForestSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("DomainSecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("DeploymentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DeploymentId, global::System.Convert.ToString); + } + if (content.Contains("SyncOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).SyncOwner, global::System.Convert.ToString); + } + if (content.Contains("ReplicaSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainConfigurationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainConfigurationType, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingLdap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("LdapSettingPfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate = (byte[]) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificate, i => i); + } + if (content.Contains("LdapSettingPublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingCertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } + if (content.Contains("ResourceForestSettingResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); + } + if (content.Contains("DomainSecuritySettingNtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("DomainSecuritySettingTlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("NotificationSettingAdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationPropertyMigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("LdapSettingPfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingPfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("LdapSettingCertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("PropertiesResourceForestSettingsSettings")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("PropertiesResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).PropertiesResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainSecuritySettingSyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("MigrationPropertyOldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("MigrationPropertyOldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } @@ -199,7 +470,7 @@ internal DomainService(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.TypeConverter.cs index 30517029af9a..9f77029da0d0 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class DomainServiceTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.cs index cb599ac75c57..696a978a2a25 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -61,7 +66,7 @@ public partial class DomainService : /// Resource etag [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] - public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Etag = value; } + public string Etag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Etag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Etag = value ?? null; } /// Enabled or Disabled flag to turn on Group-based filtered sync [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] @@ -101,12 +106,12 @@ public partial class DomainService : /// [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] - public string LdapSettingPfxCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificate = value ?? null; } + public byte[] LdapSettingPfxCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificate = value ?? null /* byte array */; } /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] - public string LdapSettingPfxCertificatePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificatePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificatePassword = value ?? null; } + public System.Security.SecureString LdapSettingPfxCertificatePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificatePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).LdapSettingPfxCertificatePassword = value ?? null; } /// Public certificate used to configure secure ldap. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] @@ -116,7 +121,7 @@ public partial class DomainService : /// Resource location [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.FormatTable(Index = 2)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Location = value; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Location = value ?? null; } /// Internal Acessors for DeploymentId string Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceInternal.DeploymentId { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).DeploymentId; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).DeploymentId = value; } @@ -248,6 +253,11 @@ public partial class DomainService : [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] public string ResourceForestSettingResourceForest { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).ResourceForestSettingResourceForest; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)Property).ResourceForestSettingResourceForest = value ?? null; } + /// Gets the resource group name + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Owned)] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] + public string ResourceGroupName { get => (new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Success ? new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(this.Id).Groups["resourceGroupName"].Value : null); } + /// Sku Type [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.FormatTable(Index = 3)] @@ -261,7 +271,7 @@ public partial class DomainService : /// Resource tags [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)__resource).Tag = value ?? null /* model class */; } /// Azure Active Directory Tenant Id [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] @@ -288,7 +298,7 @@ public DomainService() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener eventListener) { @@ -420,16 +430,16 @@ public partial interface IDomainService : ReadOnly = false, Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - string LdapSettingPfxCertificate { get; set; } + PossibleTypes = new [] { typeof(byte[]) })] + byte[] LdapSettingPfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - string LdapSettingPfxCertificatePassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString LdapSettingPfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, @@ -604,9 +614,9 @@ internal partial interface IDomainServiceInternal : /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - string LdapSettingPfxCertificate { get; set; } + byte[] LdapSettingPfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. - string LdapSettingPfxCertificatePassword { get; set; } + System.Security.SecureString LdapSettingPfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. string LdapSettingPublicCertificate { get; set; } /// Secure LDAP Settings diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.json.cs index 702e8d70d4e3..5c3ff8ccef6a 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainService.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainService.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class DomainService partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class DomainService /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class DomainService /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.PowerShell.cs index 4c971afe9e21..1ae7f8429e19 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class DomainServiceListResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class DomainServiceListResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -89,8 +96,14 @@ internal DomainServiceListResult(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServiceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServiceTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -108,8 +121,14 @@ internal DomainServiceListResult(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServiceTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainServiceTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } @@ -117,7 +136,7 @@ internal DomainServiceListResult(global::System.Management.Automation.PSObject c /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.TypeConverter.cs index 8b3065cddb7c..9d407a821a6f 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class DomainServiceListResultTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.cs index 6176f4fa9569..79ade03baf86 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.json.cs index 387948570f3b..a16729294316 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceListResult.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class DomainServiceListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class DomainServiceListResult /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class DomainServiceListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.PowerShell.cs index 833357e3c906..b86d80dba71d 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class DomainServiceProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class DomainServiceProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -89,43 +96,154 @@ internal DomainServiceProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate = (string) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("ResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword = (string) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("LdapsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceForestSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("DomainSecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("NotificationSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("DeploymentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId, global::System.Convert.ToString); + } + if (content.Contains("SyncOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner, global::System.Convert.ToString); + } + if (content.Contains("ReplicaSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainConfigurationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("FilteredSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingLdap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("LdapSettingPfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate = (byte[]) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate, i => i); + } + if (content.Contains("LdapSettingPublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingCertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } + if (content.Contains("ResourceForestSettingResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); + } + if (content.Contains("DomainSecuritySettingNtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("DomainSecuritySettingTlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("NotificationSettingAdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationPropertyMigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("LdapSettingPfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("LdapSettingCertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResourceForestSettingsSettings")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("ResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainSecuritySettingSyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("MigrationPropertyOldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("MigrationPropertyOldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -143,43 +261,154 @@ internal DomainServiceProperties(global::System.Management.Automation.PSObject c return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate = (string) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("ResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword = (string) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("LdapsSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings) content.GetValueForProperty("LdapsSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapsSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.LdapsSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("ResourceForestSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings) content.GetValueForProperty("ResourceForestSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceForestSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("DomainSecuritySetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainSecuritySettings) content.GetValueForProperty("DomainSecuritySetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainSecuritySettingsTypeConverter.ConvertFrom); + } + if (content.Contains("NotificationSetting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings) content.GetValueForProperty("NotificationSetting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSetting, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.NotificationSettingsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationProperty")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties) content.GetValueForProperty("MigrationProperty",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProperty, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationPropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("Version")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version = (int?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Version, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).TenantId, global::System.Convert.ToString); + } + if (content.Contains("DomainName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName = (string) content.GetValueForProperty("DomainName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainName, global::System.Convert.ToString); + } + if (content.Contains("DeploymentId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId = (string) content.GetValueForProperty("DeploymentId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DeploymentId, global::System.Convert.ToString); + } + if (content.Contains("SyncOwner")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner = (string) content.GetValueForProperty("SyncOwner",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).SyncOwner, global::System.Convert.ToString); + } + if (content.Contains("ReplicaSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]) content.GetValueForProperty("ReplicaSet",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ReplicaSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ReplicaSetTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainConfigurationType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType = (string) content.GetValueForProperty("DomainConfigurationType",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainConfigurationType, global::System.Convert.ToString); + } + if (content.Contains("Sku")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku = (string) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).Sku, global::System.Convert.ToString); + } + if (content.Contains("FilteredSync")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync?) content.GetValueForProperty("FilteredSync",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).FilteredSync, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync.CreateFrom); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingLdap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("LdapSettingLdap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingLdap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("LdapSettingPfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate = (byte[]) content.GetValueForProperty("LdapSettingPfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificate, i => i); + } + if (content.Contains("LdapSettingPublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate = (string) content.GetValueForProperty("LdapSettingPublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingCertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint = (string) content.GetValueForProperty("LdapSettingCertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("LdapSettingExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("LdapSettingExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } + if (content.Contains("ResourceForestSettingResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest = (string) content.GetValueForProperty("ResourceForestSettingResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingResourceForest, global::System.Convert.ToString); + } + if (content.Contains("DomainSecuritySettingNtlmV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1?) content.GetValueForProperty("DomainSecuritySettingNtlmV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingNtlmV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1.CreateFrom); + } + if (content.Contains("DomainSecuritySettingTlsV1")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1 = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1?) content.GetValueForProperty("DomainSecuritySettingTlsV1",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingTlsV1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1.CreateFrom); + } + if (content.Contains("NotificationSettingAdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient = (string[]) content.GetValueForProperty("NotificationSettingAdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingAdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationPropertyMigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationPropertyMigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyMigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("LdapSettingPfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("LdapSettingPfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingPfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("LdapSettingCertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("LdapSettingCertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).LdapSettingCertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResourceForestSettingsSettings")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("ResourceForestSettingsSettings",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).ResourceForestSettingsSettings, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("DomainSecuritySettingSyncNtlmPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncNtlmPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncNtlmPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncKerberosPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncKerberosPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncKerberosPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords.CreateFrom); + } + if (content.Contains("DomainSecuritySettingSyncOnPremPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords?) content.GetValueForProperty("DomainSecuritySettingSyncOnPremPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).DomainSecuritySettingSyncOnPremPassword, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotificationSettingNotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotificationSettingNotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotificationSettingNotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).NotificationSettingNotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("MigrationPropertyOldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId = (string) content.GetValueForProperty("MigrationPropertyOldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("MigrationPropertyOldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId = (string) content.GetValueForProperty("MigrationPropertyOldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationPropertyOldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServicePropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } @@ -187,7 +416,7 @@ internal DomainServiceProperties(global::System.Management.Automation.PSObject c /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.TypeConverter.cs index 1b3be3234e46..9eafea01c799 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class DomainServicePropertiesTypeConverter : global::System.Manag { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.cs index 715e70bd2883..284fc958d1c4 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -90,11 +95,11 @@ public partial class DomainServiceProperties : /// of the certificate pfx file. /// [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] - public string LdapSettingPfxCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificate = value ?? null; } + public byte[] LdapSettingPfxCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificate = value ?? null /* byte array */; } /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] - public string LdapSettingPfxCertificatePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificatePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificatePassword = value ?? null; } + public System.Security.SecureString LdapSettingPfxCertificatePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificatePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)LdapsSetting).PfxCertificatePassword = value ?? null; } /// Public certificate used to configure secure ldap. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Inlined)] @@ -385,16 +390,16 @@ public partial interface IDomainServiceProperties : ReadOnly = false, Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - string LdapSettingPfxCertificate { get; set; } + PossibleTypes = new [] { typeof(byte[]) })] + byte[] LdapSettingPfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - string LdapSettingPfxCertificatePassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString LdapSettingPfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, @@ -569,9 +574,9 @@ internal partial interface IDomainServicePropertiesInternal /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - string LdapSettingPfxCertificate { get; set; } + byte[] LdapSettingPfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. - string LdapSettingPfxCertificatePassword { get; set; } + System.Security.SecureString LdapSettingPfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. string LdapSettingPublicCertificate { get; set; } /// Secure LDAP Settings diff --git a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.json.cs index e75f9271f09f..c5008232cf26 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/DomainServiceProperties.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class DomainServiceProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class DomainServiceProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class DomainServiceProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.PowerShell.cs index 9384622e8679..3597dc65de22 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class ForestTrust /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class ForestTrust /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -87,11 +94,26 @@ internal ForestTrust(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn = (string) content.GetValueForProperty("TrustedDomainFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection = (string) content.GetValueForProperty("TrustDirection",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP = (string) content.GetValueForProperty("RemoteDnsIP",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword = (string) content.GetValueForProperty("TrustPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword, global::System.Convert.ToString); + if (content.Contains("TrustedDomainFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn = (string) content.GetValueForProperty("TrustedDomainFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn, global::System.Convert.ToString); + } + if (content.Contains("TrustDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection = (string) content.GetValueForProperty("TrustDirection",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RemoteDnsIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP = (string) content.GetValueForProperty("RemoteDnsIP",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP, global::System.Convert.ToString); + } + if (content.Contains("TrustPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword = (System.Security.SecureString) content.GetValueForProperty("TrustPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword, (object ss) => (System.Security.SecureString)ss); + } AfterDeserializeDictionary(content); } @@ -109,11 +131,26 @@ internal ForestTrust(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn = (string) content.GetValueForProperty("TrustedDomainFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection = (string) content.GetValueForProperty("TrustDirection",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP = (string) content.GetValueForProperty("RemoteDnsIP",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword = (string) content.GetValueForProperty("TrustPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword, global::System.Convert.ToString); + if (content.Contains("TrustedDomainFqdn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn = (string) content.GetValueForProperty("TrustedDomainFqdn",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustedDomainFqdn, global::System.Convert.ToString); + } + if (content.Contains("TrustDirection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection = (string) content.GetValueForProperty("TrustDirection",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustDirection, global::System.Convert.ToString); + } + if (content.Contains("FriendlyName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName = (string) content.GetValueForProperty("FriendlyName",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).FriendlyName, global::System.Convert.ToString); + } + if (content.Contains("RemoteDnsIP")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP = (string) content.GetValueForProperty("RemoteDnsIP",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).RemoteDnsIP, global::System.Convert.ToString); + } + if (content.Contains("TrustPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword = (System.Security.SecureString) content.GetValueForProperty("TrustPassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrustInternal)this).TrustPassword, (object ss) => (System.Security.SecureString)ss); + } AfterDeserializePSObject(content); } @@ -121,7 +158,7 @@ internal ForestTrust(global::System.Management.Automation.PSObject content) /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.TypeConverter.cs index e6d3ef6ca1a9..5c5084caad66 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class ForestTrustTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.cs b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.cs index f5f629e1cb76..6c71b3c1f025 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -30,11 +35,11 @@ public partial class ForestTrust : public string TrustDirection { get => this._trustDirection; set => this._trustDirection = value; } /// Backing field for property. - private string _trustPassword; + private System.Security.SecureString _trustPassword; /// Trust Password [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Owned)] - public string TrustPassword { get => this._trustPassword; set => this._trustPassword = value; } + public System.Security.SecureString TrustPassword { get => this._trustPassword; set => this._trustPassword = value; } /// Backing field for property. private string _trustedDomainFqdn; @@ -83,8 +88,8 @@ public partial interface IForestTrust : ReadOnly = false, Description = @"Trust Password", SerializedName = @"trustPassword", - PossibleTypes = new [] { typeof(string) })] - string TrustPassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString TrustPassword { get; set; } /// Trusted Domain FQDN [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, @@ -106,7 +111,7 @@ internal partial interface IForestTrustInternal /// Trust Direction string TrustDirection { get; set; } /// Trust Password - string TrustPassword { get; set; } + System.Security.SecureString TrustPassword { get; set; } /// Trusted Domain FQDN string TrustedDomainFqdn { get; set; } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.json.cs index 2c09d64de8ad..507406106042 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ForestTrust.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class ForestTrust partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class ForestTrust /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class ForestTrust /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -62,7 +69,7 @@ internal ForestTrust(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime {_trustDirection = If( json?.PropertyT("trustDirection"), out var __jsonTrustDirection) ? (string)__jsonTrustDirection : (string)TrustDirection;} {_friendlyName = If( json?.PropertyT("friendlyName"), out var __jsonFriendlyName) ? (string)__jsonFriendlyName : (string)FriendlyName;} {_remoteDnsIP = If( json?.PropertyT("remoteDnsIps"), out var __jsonRemoteDnsIps) ? (string)__jsonRemoteDnsIps : (string)RemoteDnsIP;} - {_trustPassword = If( json?.PropertyT("trustPassword"), out var __jsonTrustPassword) ? (string)__jsonTrustPassword : (string)TrustPassword;} + {_trustPassword = If( json?.PropertyT("trustPassword"), out var __jsonTrustPassword) ? new System.Net.NetworkCredential("",(string)__jsonTrustPassword).SecurePassword : TrustPassword;} AfterFromJson(json); } @@ -101,7 +108,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode AddIf( null != (((object)this._trustDirection)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._trustDirection.ToString()) : null, "trustDirection" ,container.Add ); AddIf( null != (((object)this._friendlyName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._friendlyName.ToString()) : null, "friendlyName" ,container.Add ); AddIf( null != (((object)this._remoteDnsIP)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._remoteDnsIP.ToString()) : null, "remoteDnsIps" ,container.Add ); - AddIf( null != (((object)this._trustPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._trustPassword.ToString()) : null, "trustPassword" ,container.Add ); + AddIf( null != (((object)this._trustPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._trustPassword))) : null, "trustPassword" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.PowerShell.cs index 5b92addf3002..b8966feab1e2 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class HealthAlert /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class HealthAlert /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlert FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,13 +101,34 @@ internal HealthAlert(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue = (string) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised = (global::System.DateTime?) content.GetValueForProperty("Raised",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected = (global::System.DateTime?) content.GetValueForProperty("LastDetected",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri = (string) content.GetValueForProperty("ResolutionUri",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Issue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue = (string) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("Raised")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised = (global::System.DateTime?) content.GetValueForProperty("Raised",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastDetected")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected = (global::System.DateTime?) content.GetValueForProperty("LastDetected",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResolutionUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri = (string) content.GetValueForProperty("ResolutionUri",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -118,13 +146,34 @@ internal HealthAlert(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue = (string) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised = (global::System.DateTime?) content.GetValueForProperty("Raised",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected = (global::System.DateTime?) content.GetValueForProperty("LastDetected",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri = (string) content.GetValueForProperty("ResolutionUri",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Issue")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue = (string) content.GetValueForProperty("Issue",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Issue, global::System.Convert.ToString); + } + if (content.Contains("Severity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity = (string) content.GetValueForProperty("Severity",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Severity, global::System.Convert.ToString); + } + if (content.Contains("Raised")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised = (global::System.DateTime?) content.GetValueForProperty("Raised",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).Raised, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastDetected")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected = (global::System.DateTime?) content.GetValueForProperty("LastDetected",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).LastDetected, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResolutionUri")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri = (string) content.GetValueForProperty("ResolutionUri",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlertInternal)this).ResolutionUri, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.TypeConverter.cs index 8527db0bdea2..9e1a8a47caab 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class HealthAlertTypeConverter : global::System.Management.Automa { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.cs index e5585092e5c8..fe6a3370ee43 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.json.cs index faac183951c9..f5bc48b610ac 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthAlert.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class HealthAlert partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class HealthAlert /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class HealthAlert /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.PowerShell.cs index fa0e025c03cf..c3ba67c7e078 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class HealthMonitor /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class HealthMonitor /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitor FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,9 +101,18 @@ internal HealthMonitor(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -114,9 +130,18 @@ internal HealthMonitor(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Detail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail = (string) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitorInternal)this).Detail, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.TypeConverter.cs index caaa2221f283..979bb90c38c7 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class HealthMonitorTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.cs index 9827bed04dca..851a4aef1d6b 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.json.cs index b31164d3f926..1094466f4768 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/HealthMonitor.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class HealthMonitor partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class HealthMonitor /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class HealthMonitor /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.PowerShell.cs index 02a367f35447..a0f9e983bc3c 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class LdapsSettings /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class LdapsSettings /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,13 +101,34 @@ internal LdapsSettings(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("Ldap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate = (string) content.GetValueForProperty("PfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword = (string) content.GetValueForProperty("PfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate = (string) content.GetValueForProperty("PublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint = (string) content.GetValueForProperty("CertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("CertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("ExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + if (content.Contains("Ldap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("Ldap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("PfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate = (byte[]) content.GetValueForProperty("PfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate, i => i); + } + if (content.Contains("PfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("PfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("PublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate = (string) content.GetValueForProperty("PublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("CertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint = (string) content.GetValueForProperty("CertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("CertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("CertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("ExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } AfterDeserializeDictionary(content); } @@ -118,13 +146,34 @@ internal LdapsSettings(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("Ldap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate = (string) content.GetValueForProperty("PfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword = (string) content.GetValueForProperty("PfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate = (string) content.GetValueForProperty("PublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint = (string) content.GetValueForProperty("CertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("CertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("ExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + if (content.Contains("Ldap")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps?) content.GetValueForProperty("Ldap",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).Ldap, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps.CreateFrom); + } + if (content.Contains("PfxCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate = (byte[]) content.GetValueForProperty("PfxCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificate, i => i); + } + if (content.Contains("PfxCertificatePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword = (System.Security.SecureString) content.GetValueForProperty("PfxCertificatePassword",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PfxCertificatePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("PublicCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate = (string) content.GetValueForProperty("PublicCertificate",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).PublicCertificate, global::System.Convert.ToString); + } + if (content.Contains("CertificateThumbprint")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint = (string) content.GetValueForProperty("CertificateThumbprint",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateThumbprint, global::System.Convert.ToString); + } + if (content.Contains("CertificateNotAfter")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter = (global::System.DateTime?) content.GetValueForProperty("CertificateNotAfter",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).CertificateNotAfter, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ExternalAccess")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess?) content.GetValueForProperty("ExternalAccess",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal)this).ExternalAccess, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess.CreateFrom); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.TypeConverter.cs index c5433d3a55ea..89923de920c3 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class LdapsSettingsTypeConverter : global::System.Management.Auto { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.cs b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.cs index d2e0f7aea20b..e8619a98f76c 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -48,21 +53,21 @@ public partial class LdapsSettings : string Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ILdapsSettingsInternal.PublicCertificate { get => this._publicCertificate; set { {_publicCertificate = value;} } } /// Backing field for property. - private string _pfxCertificate; + private byte[] _pfxCertificate; /// /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Owned)] - public string PfxCertificate { get => this._pfxCertificate; set => this._pfxCertificate = value; } + public byte[] PfxCertificate { get => this._pfxCertificate; set => this._pfxCertificate = value; } /// Backing field for property. - private string _pfxCertificatePassword; + private System.Security.SecureString _pfxCertificatePassword; /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Origin(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.PropertyOrigin.Owned)] - public string PfxCertificatePassword { get => this._pfxCertificatePassword; set => this._pfxCertificatePassword = value; } + public System.Security.SecureString PfxCertificatePassword { get => this._pfxCertificatePassword; set => this._pfxCertificatePassword = value; } /// Backing field for property. private string _publicCertificate; @@ -124,16 +129,16 @@ public partial interface ILdapsSettings : ReadOnly = false, Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - string PfxCertificate { get; set; } + PossibleTypes = new [] { typeof(byte[]) })] + byte[] PfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - string PfxCertificatePassword { get; set; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + System.Security.SecureString PfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( Required = false, @@ -162,9 +167,9 @@ internal partial interface ILdapsSettingsInternal /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - string PfxCertificate { get; set; } + byte[] PfxCertificate { get; set; } /// The password to decrypt the provided Secure LDAP certificate pfx file. - string PfxCertificatePassword { get; set; } + System.Security.SecureString PfxCertificatePassword { get; set; } /// Public certificate used to configure secure ldap. string PublicCertificate { get; set; } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.json.cs index 807aff79802b..b2e61ba33b7d 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/LdapsSettings.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class LdapsSettings partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class LdapsSettings /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class LdapsSettings /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. @@ -71,8 +78,8 @@ internal LdapsSettings(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runti return; } {_ldap = If( json?.PropertyT("ldaps"), out var __jsonLdaps) ? (string)__jsonLdaps : (string)Ldap;} - {_pfxCertificate = If( json?.PropertyT("pfxCertificate"), out var __jsonPfxCertificate) ? (string)__jsonPfxCertificate : (string)PfxCertificate;} - {_pfxCertificatePassword = If( json?.PropertyT("pfxCertificatePassword"), out var __jsonPfxCertificatePassword) ? (string)__jsonPfxCertificatePassword : (string)PfxCertificatePassword;} + {_pfxCertificate = If( json?.PropertyT("pfxCertificate"), out var __w) ? System.Convert.FromBase64String( ((string)__w).Replace("_","/").Replace("-","+").PadRight( ((string)__w).Length + ((string)__w).Length * 3 % 4, '=') ) : null;} + {_pfxCertificatePassword = If( json?.PropertyT("pfxCertificatePassword"), out var __jsonPfxCertificatePassword) ? new System.Net.NetworkCredential("",(string)__jsonPfxCertificatePassword).SecurePassword : PfxCertificatePassword;} {_publicCertificate = If( json?.PropertyT("publicCertificate"), out var __jsonPublicCertificate) ? (string)__jsonPublicCertificate : (string)PublicCertificate;} {_certificateThumbprint = If( json?.PropertyT("certificateThumbprint"), out var __jsonCertificateThumbprint) ? (string)__jsonCertificateThumbprint : (string)CertificateThumbprint;} {_certificateNotAfter = If( json?.PropertyT("certificateNotAfter"), out var __jsonCertificateNotAfter) ? global::System.DateTime.TryParse((string)__jsonCertificateNotAfter, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCertificateNotAfterValue) ? __jsonCertificateNotAfterValue : CertificateNotAfter : CertificateNotAfter;} @@ -100,8 +107,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode return container; } AddIf( null != (((object)this._ldap)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._ldap.ToString()) : null, "ldaps" ,container.Add ); - AddIf( null != (((object)this._pfxCertificate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._pfxCertificate.ToString()) : null, "pfxCertificate" ,container.Add ); - AddIf( null != (((object)this._pfxCertificatePassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._pfxCertificatePassword.ToString()) : null, "pfxCertificatePassword" ,container.Add ); + AddIf( null != this._pfxCertificate ? global::System.Convert.ToBase64String( this._pfxCertificate) : null ,(v)=> container.Add( "pfxCertificate",v) ); + AddIf( null != (((object)this._pfxCertificatePassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._pfxCertificatePassword))) : null, "pfxCertificatePassword" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._publicCertificate)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonString(this._publicCertificate.ToString()) : null, "publicCertificate" ,container.Add ); diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.PowerShell.cs index f53ea9db93c3..92258d760998 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class MigrationProgress /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class MigrationProgress /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,8 +101,14 @@ internal MigrationProgress(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage = (double?) content.GetValueForProperty("CompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage = (string) content.GetValueForProperty("ProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage, global::System.Convert.ToString); + if (content.Contains("CompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage = (double?) content.GetValueForProperty("CompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage = (string) content.GetValueForProperty("ProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -113,8 +126,14 @@ internal MigrationProgress(global::System.Management.Automation.PSObject content return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage = (double?) content.GetValueForProperty("CompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage = (string) content.GetValueForProperty("ProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage, global::System.Convert.ToString); + if (content.Contains("CompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage = (double?) content.GetValueForProperty("CompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).CompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("ProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage = (string) content.GetValueForProperty("ProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgressInternal)this).ProgressMessage, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.TypeConverter.cs index 97f9c8731882..2d8e803dfc76 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class MigrationProgressTypeConverter : global::System.Management. { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.cs index e96a5d6d7a78..3867266334ae 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.json.cs index a02f6093220e..e481984707f0 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProgress.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class MigrationProgress partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class MigrationProgress /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class MigrationProgress /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.PowerShell.cs index bc706477fbfe..c8378d4ccdd6 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class MigrationProperties /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class MigrationProperties /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,11 +101,26 @@ internal MigrationProperties(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId = (string) content.GetValueForProperty("OldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId = (string) content.GetValueForProperty("OldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("MigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("OldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId = (string) content.GetValueForProperty("OldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("OldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId = (string) content.GetValueForProperty("OldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -116,11 +138,26 @@ internal MigrationProperties(global::System.Management.Automation.PSObject conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId = (string) content.GetValueForProperty("OldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId = (string) content.GetValueForProperty("OldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + if (content.Contains("MigrationProgress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationProgress) content.GetValueForProperty("MigrationProgress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgress, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.MigrationProgressTypeConverter.ConvertFrom); + } + if (content.Contains("OldSubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId = (string) content.GetValueForProperty("OldSubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldSubnetId, global::System.Convert.ToString); + } + if (content.Contains("OldVnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId = (string) content.GetValueForProperty("OldVnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).OldVnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("MigrationProgressCompletionPercentage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage = (double?) content.GetValueForProperty("MigrationProgressCompletionPercentage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressCompletionPercentage, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + } + if (content.Contains("MigrationProgressMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage = (string) content.GetValueForProperty("MigrationProgressMessage",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IMigrationPropertiesInternal)this).MigrationProgressMessage, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.TypeConverter.cs index 52e831734f46..e94285f8634f 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class MigrationPropertiesTypeConverter : global::System.Managemen { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.cs index 9658f7aa2946..af2ea84bb9cd 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.json.cs index 537bfdcc34cc..d7b62d327c11 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/MigrationProperties.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class MigrationProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class MigrationProperties /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class MigrationProperties /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.PowerShell.cs index 41a1ce999c49..fce3f784e040 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class NotificationSettings /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class NotificationSettings /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -96,9 +103,18 @@ internal NotificationSettings(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient = (string[]) content.GetValueForProperty("AdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + if (content.Contains("NotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("AdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient = (string[]) content.GetValueForProperty("AdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } AfterDeserializeDictionary(content); } @@ -116,9 +132,18 @@ internal NotificationSettings(global::System.Management.Automation.PSObject cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient = (string[]) content.GetValueForProperty("AdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + if (content.Contains("NotifyGlobalAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins?) content.GetValueForProperty("NotifyGlobalAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyGlobalAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins.CreateFrom); + } + if (content.Contains("NotifyDcAdmin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins?) content.GetValueForProperty("NotifyDcAdmin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).NotifyDcAdmin, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins.CreateFrom); + } + if (content.Contains("AdditionalRecipient")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient = (string[]) content.GetValueForProperty("AdditionalRecipient",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.INotificationSettingsInternal)this).AdditionalRecipient, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.TypeConverter.cs index c2a9b5aa5f70..20b960bd9e74 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class NotificationSettingsTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.cs b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.cs index 609d3fc66131..a3dbba9de525 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.json.cs index 5f689dd99247..70e0030cfae6 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/NotificationSettings.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class NotificationSettings partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class NotificationSettings /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class NotificationSettings /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.PowerShell.cs index 97dcacd38856..ec246c2ca3d1 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class OperationDisplayInfo /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class OperationDisplayInfo /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -96,10 +103,22 @@ internal OperationDisplayInfo(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource, global::System.Convert.ToString); + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Operation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); + } + if (content.Contains("Provider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); + } + if (content.Contains("Resource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -117,10 +136,22 @@ internal OperationDisplayInfo(global::System.Management.Automation.PSObject cont return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource, global::System.Convert.ToString); + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("Operation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Operation, global::System.Convert.ToString); + } + if (content.Contains("Provider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Provider, global::System.Convert.ToString); + } + if (content.Contains("Resource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfoInternal)this).Resource, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.TypeConverter.cs index e90a9f4f7316..9d26b103bb93 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class OperationDisplayInfoTypeConverter : global::System.Manageme { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.cs index 437020b511c6..b3726effa2d3 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.json.cs index e4968930b1b8..909ffcd70196 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationDisplayInfo.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class OperationDisplayInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class OperationDisplayInfo /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class OperationDisplayInfo /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.PowerShell.cs index 48c7e0410508..5cae789d4449 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class OperationEntity /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class OperationEntity /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,13 +101,34 @@ internal OperationEntity(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationDisplayInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource, global::System.Convert.ToString); + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationDisplayInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -118,13 +146,34 @@ internal OperationEntity(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationDisplayInfoTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource, global::System.Convert.ToString); + if (content.Contains("Display")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationDisplayInfo) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationDisplayInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Origin")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).Origin, global::System.Convert.ToString); + } + if (content.Contains("DisplayDescription")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayDescription, global::System.Convert.ToString); + } + if (content.Contains("DisplayOperation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayOperation, global::System.Convert.ToString); + } + if (content.Contains("DisplayProvider")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayProvider, global::System.Convert.ToString); + } + if (content.Contains("DisplayResource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityInternal)this).DisplayResource, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.TypeConverter.cs index c087e0bfad5c..b4089d439eb8 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class OperationEntityTypeConverter : global::System.Management.Au { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.cs index 5255b11de01b..d69d6b61eb1c 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.json.cs index fd5cca4f3caf..034eea83cd5b 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntity.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class OperationEntity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class OperationEntity /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class OperationEntity /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.PowerShell.cs index 466e6a3d8511..5bf6c73bd268 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class OperationEntityListResult /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class OperationEntityListResult /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -96,8 +103,14 @@ internal OperationEntityListResult(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationEntityTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink, global::System.Convert.ToString); + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationEntityTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -115,8 +128,14 @@ internal OperationEntityListResult(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationEntityTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink, global::System.Convert.ToString); + if (content.Contains("Value")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.OperationEntityTypeConverter.ConvertFrom)); + } + if (content.Contains("NextLink")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResultInternal)this).NextLink, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.TypeConverter.cs index 527b6a58889a..772688775ea5 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class OperationEntityListResultTypeConverter : global::System.Man { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.cs index 92096395571a..4ec2548aa5c0 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.json.cs index 865052f811da..d3d3bc72ee0b 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/OperationEntityListResult.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class OperationEntityListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class OperationEntityListResult /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class OperationEntityListResult /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.PowerShell.cs index ce11bcd70634..fc060a18dbec 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class ReplicaSet /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class ReplicaSet /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,16 +101,46 @@ internal ReplicaSet(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId = (string) content.GetValueForProperty("VnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress = (string[]) content.GetValueForProperty("DomainControllerIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress = (string) content.GetValueForProperty("ExternalAccessIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus = (string) content.GetValueForProperty("ServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated = (global::System.DateTime?) content.GetValueForProperty("HealthLastEvaluated",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitor[]) content.GetValueForProperty("HealthMonitor",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthMonitorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlert[]) content.GetValueForProperty("HealthAlert",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthAlertTypeConverter.ConvertFrom)); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("VnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId = (string) content.GetValueForProperty("VnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainControllerIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress = (string[]) content.GetValueForProperty("DomainControllerIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ExternalAccessIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress = (string) content.GetValueForProperty("ExternalAccessIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress, global::System.Convert.ToString); + } + if (content.Contains("ServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus = (string) content.GetValueForProperty("ServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("HealthLastEvaluated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated = (global::System.DateTime?) content.GetValueForProperty("HealthLastEvaluated",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HealthMonitor")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitor[]) content.GetValueForProperty("HealthMonitor",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthMonitorTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthAlert")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlert[]) content.GetValueForProperty("HealthAlert",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthAlertTypeConverter.ConvertFrom)); + } AfterDeserializeDictionary(content); } @@ -121,16 +158,46 @@ internal ReplicaSet(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId = (string) content.GetValueForProperty("VnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress = (string[]) content.GetValueForProperty("DomainControllerIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress = (string) content.GetValueForProperty("ExternalAccessIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus = (string) content.GetValueForProperty("ServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated = (global::System.DateTime?) content.GetValueForProperty("HealthLastEvaluated",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitor[]) content.GetValueForProperty("HealthMonitor",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthMonitorTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlert[]) content.GetValueForProperty("HealthAlert",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthAlertTypeConverter.ConvertFrom)); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("VnetSiteId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId = (string) content.GetValueForProperty("VnetSiteId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).VnetSiteId, global::System.Convert.ToString); + } + if (content.Contains("SubnetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId = (string) content.GetValueForProperty("SubnetId",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).SubnetId, global::System.Convert.ToString); + } + if (content.Contains("DomainControllerIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress = (string[]) content.GetValueForProperty("DomainControllerIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).DomainControllerIPAddress, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("ExternalAccessIPAddress")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress = (string) content.GetValueForProperty("ExternalAccessIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ExternalAccessIPAddress, global::System.Convert.ToString); + } + if (content.Contains("ServiceStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus = (string) content.GetValueForProperty("ServiceStatus",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).ServiceStatus, global::System.Convert.ToString); + } + if (content.Contains("HealthLastEvaluated")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated = (global::System.DateTime?) content.GetValueForProperty("HealthLastEvaluated",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthLastEvaluated, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("HealthMonitor")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthMonitor[]) content.GetValueForProperty("HealthMonitor",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthMonitor, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthMonitorTypeConverter.ConvertFrom)); + } + if (content.Contains("HealthAlert")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IHealthAlert[]) content.GetValueForProperty("HealthAlert",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSetInternal)this).HealthAlert, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.HealthAlertTypeConverter.ConvertFrom)); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.TypeConverter.cs index 7f1959cd83c9..3b472f25dc72 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,19 @@ public partial class ReplicaSetTypeConverter : global::System.Management.Automat { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.cs b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.cs index e72921dcd554..2a6d0c2f9e6b 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.json.cs index 8418a74c3aa8..43c31948dc7b 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ReplicaSet.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class ReplicaSet partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class ReplicaSet /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class ReplicaSet /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/Resource.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/Resource.PowerShell.cs index 9313c0dbc19f..c0affa7dd0f2 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/Resource.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/Resource.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class Resource /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class Resource /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -94,12 +101,30 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -117,12 +142,30 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ResourceTagsTypeConverter.ConvertFrom); + } + if (content.Contains("Etag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag = (string) content.GetValueForProperty("Etag",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceInternal)this).Etag, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/Resource.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/Resource.TypeConverter.cs index 0652787bf4be..9f88658d6aa7 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/Resource.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/Resource.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,19 @@ public partial class ResourceTypeConverter : global::System.Management.Automatio { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +74,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +99,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/Resource.cs b/src/ADDomainServices/generated/api/Models/Api202001/Resource.cs index 120d61b04e47..7c4d6a6599a8 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/Resource.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/Resource.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/Resource.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/Resource.json.cs index ba1cc34ff793..876620387327 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/Resource.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/Resource.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class Resource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class Resource /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class Resource /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.PowerShell.cs index 45304d297e1a..ab4be885a5bd 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class ResourceForestSettings /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class ResourceForestSettings /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -79,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettings FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// @@ -96,8 +103,14 @@ internal ResourceForestSettings(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest = (string) content.GetValueForProperty("ResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest, global::System.Convert.ToString); + if (content.Contains("Setting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest = (string) content.GetValueForProperty("ResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest, global::System.Convert.ToString); + } AfterDeserializeDictionary(content); } @@ -115,8 +128,14 @@ internal ResourceForestSettings(global::System.Management.Automation.PSObject co return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest = (string) content.GetValueForProperty("ResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest, global::System.Convert.ToString); + if (content.Contains("Setting")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting = (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]) content.GetValueForProperty("Setting",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).Setting, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ForestTrustTypeConverter.ConvertFrom)); + } + if (content.Contains("ResourceForest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest = (string) content.GetValueForProperty("ResourceForest",((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceForestSettingsInternal)this).ResourceForest, global::System.Convert.ToString); + } AfterDeserializePSObject(content); } diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.TypeConverter.cs index e68380e79cd7..6a8b457af9b1 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class ResourceForestSettingsTypeConverter : global::System.Manage { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.cs index 0265d7fd4186..9295c46c9267 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.json.cs index 3cec3486185c..2ea78850f348 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceForestSettings.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class ResourceForestSettings partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class ResourceForestSettings /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class ResourceForestSettings /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.PowerShell.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.PowerShell.cs index a169c470fdec..af4afecab207 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.PowerShell.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.PowerShell.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -26,7 +31,8 @@ public partial class ResourceTags /// /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Collections.IDictionary content that should be used. @@ -38,7 +44,8 @@ public partial class ResourceTags /// /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -77,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api2020 /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.TypeConverter.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.TypeConverter.cs index 806b85831844..1426e12dca00 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.TypeConverter.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell; @@ -9,20 +14,20 @@ public partial class ResourceTagsTypeConverter : global::System.Management.Autom { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the + /// type. /// /// the instance to check if it can be converted to the type. @@ -70,19 +75,20 @@ public static bool CanConvertFrom(dynamic sourceValue) } /// - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the + /// parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false + /// true if the converter can convert the parameter to the parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -94,8 +100,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.cs index 6470d2121a6f..1da9720623ee 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.dictionary.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.dictionary.cs index a66a7105dfd9..8a28fbd4fbb7 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.dictionary.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.dictionary.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; diff --git a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.json.cs b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.json.cs index 894cb5d007ea..aded45921a73 100644 --- a/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.json.cs +++ b/src/ADDomainServices/generated/api/Models/Api202001/ResourceTags.json.cs @@ -1,3 +1,8 @@ +// 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.PowerShell.Cmdlets.ADDomainServices.Models.Api202001 { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; @@ -15,7 +20,7 @@ public partial class ResourceTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -25,7 +30,8 @@ public partial class ResourceTags /// /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of /// the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output parameter. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JsonNode that should be deserialized into this object. @@ -37,7 +43,8 @@ public partial class ResourceTags /// /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the /// object before it is serialized. - /// If you wish to disable the default serialization entirely, return true in the output parameter. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. /// Implement this method in a partial class to enable this behavior. /// /// The JSON container that the serialization result will be placed in. diff --git a/src/ADDomainServices/generated/api/Support/ExternalAccess.Completer.cs b/src/ADDomainServices/generated/api/Support/ExternalAccess.Completer.cs index 7a814e91c0f6..66eea5783203 100644 --- a/src/ADDomainServices/generated/api/Support/ExternalAccess.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/ExternalAccess.Completer.cs @@ -30,11 +30,11 @@ public partial struct ExternalAccess : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/ExternalAccess.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/ExternalAccess.TypeConverter.cs index 453c43e41d19..65d54bc4b09d 100644 --- a/src/ADDomainServices/generated/api/Support/ExternalAccess.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/ExternalAccess.TypeConverter.cs @@ -14,32 +14,32 @@ public partial class ExternalAccessTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/ExternalAccess.cs b/src/ADDomainServices/generated/api/Support/ExternalAccess.cs index e26b58500771..b6d50fbedb22 100644 --- a/src/ADDomainServices/generated/api/Support/ExternalAccess.cs +++ b/src/ADDomainServices/generated/api/Support/ExternalAccess.cs @@ -42,7 +42,7 @@ public override bool Equals(object obj) return obj is ExternalAccess && Equals((ExternalAccess)obj); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ExternalAccess(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum ExternalAccess - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum ExternalAccess - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess e2) { diff --git a/src/ADDomainServices/generated/api/Support/FilteredSync.Completer.cs b/src/ADDomainServices/generated/api/Support/FilteredSync.Completer.cs index f0ae8e78e5c8..8dbd8afbfd7d 100644 --- a/src/ADDomainServices/generated/api/Support/FilteredSync.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/FilteredSync.Completer.cs @@ -28,11 +28,11 @@ public partial struct FilteredSync : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/FilteredSync.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/FilteredSync.TypeConverter.cs index 8ad6ef295f23..88cc1f4bf5a4 100644 --- a/src/ADDomainServices/generated/api/Support/FilteredSync.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/FilteredSync.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class FilteredSyncTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/FilteredSync.cs b/src/ADDomainServices/generated/api/Support/FilteredSync.cs index 74465e9d0505..a3c204d0478f 100644 --- a/src/ADDomainServices/generated/api/Support/FilteredSync.cs +++ b/src/ADDomainServices/generated/api/Support/FilteredSync.cs @@ -40,7 +40,7 @@ public override bool Equals(object obj) return obj is FilteredSync && Equals((FilteredSync)obj); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private FilteredSync(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum FilteredSync - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum FilteredSync - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync e2) { diff --git a/src/ADDomainServices/generated/api/Support/Ldaps.Completer.cs b/src/ADDomainServices/generated/api/Support/Ldaps.Completer.cs index 2491010dcb0d..2497fd98d2bf 100644 --- a/src/ADDomainServices/generated/api/Support/Ldaps.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/Ldaps.Completer.cs @@ -28,11 +28,11 @@ public partial struct Ldaps : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/Ldaps.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/Ldaps.TypeConverter.cs index d4792f5342dd..c42ab1ce3597 100644 --- a/src/ADDomainServices/generated/api/Support/Ldaps.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/Ldaps.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class LdapsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/Ldaps.cs b/src/ADDomainServices/generated/api/Support/Ldaps.cs index b54170cffdb0..176f786e394c 100644 --- a/src/ADDomainServices/generated/api/Support/Ldaps.cs +++ b/src/ADDomainServices/generated/api/Support/Ldaps.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private Ldaps(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum Ldaps - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum Ldaps - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps e2) { diff --git a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.Completer.cs b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.Completer.cs index 90667b55eb29..cb9a2bb01d6f 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.Completer.cs @@ -28,11 +28,11 @@ public partial struct NotifyDcAdmins : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.TypeConverter.cs index 5ee764b664ab..0796d3882e72 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class NotifyDcAdminsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.cs b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.cs index 567e8807eec3..19f6207527b2 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyDcAdmins.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private NotifyDcAdmins(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum NotifyDcAdmins - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum NotifyDcAdmins - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins e2) { diff --git a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.Completer.cs b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.Completer.cs index 6e5da4b0b10c..fd70b17bd7e7 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.Completer.cs @@ -28,11 +28,11 @@ public partial struct NotifyGlobalAdmins : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.TypeConverter.cs index 849e3e1265b7..8afac8f25b8b 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class NotifyGlobalAdminsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.cs b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.cs index 8764ff2584c8..59f76bdf3ff8 100644 --- a/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.cs +++ b/src/ADDomainServices/generated/api/Support/NotifyGlobalAdmins.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private NotifyGlobalAdmins(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum NotifyGlobalAdmins - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum NotifyGlobalAdmins - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins e2) { diff --git a/src/ADDomainServices/generated/api/Support/NtlmV1.Completer.cs b/src/ADDomainServices/generated/api/Support/NtlmV1.Completer.cs index 27dd33ce3856..ce3a53d94f51 100644 --- a/src/ADDomainServices/generated/api/Support/NtlmV1.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/NtlmV1.Completer.cs @@ -28,11 +28,11 @@ public partial struct NtlmV1 : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/NtlmV1.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/NtlmV1.TypeConverter.cs index f24d3586966a..4dd2b487ea74 100644 --- a/src/ADDomainServices/generated/api/Support/NtlmV1.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/NtlmV1.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class NtlmV1TypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/NtlmV1.cs b/src/ADDomainServices/generated/api/Support/NtlmV1.cs index 8410dcd0ceae..a708a7b8057e 100644 --- a/src/ADDomainServices/generated/api/Support/NtlmV1.cs +++ b/src/ADDomainServices/generated/api/Support/NtlmV1.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private NtlmV1(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum NtlmV1 - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum NtlmV1 - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 e2) { diff --git a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.Completer.cs b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.Completer.cs index 15b64e185f69..ba91cd9c0cc6 100644 --- a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.Completer.cs @@ -30,11 +30,11 @@ public partial struct SyncKerberosPasswords : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.TypeConverter.cs index 6b45b597c8c2..dc0b4644624a 100644 --- a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.TypeConverter.cs @@ -14,32 +14,32 @@ public partial class SyncKerberosPasswordsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.cs b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.cs index 463f56675ca8..a7688f438b30 100644 --- a/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.cs +++ b/src/ADDomainServices/generated/api/Support/SyncKerberosPasswords.cs @@ -49,7 +49,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SyncKerberosPasswords(string underlyingValue) { @@ -80,8 +80,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum SyncKerberosPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords e2) { @@ -89,8 +89,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum SyncKerberosPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords e2) { diff --git a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.Completer.cs b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.Completer.cs index 0a7a5a75d250..ddc552d23515 100644 --- a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.Completer.cs @@ -28,11 +28,11 @@ public partial struct SyncNtlmPasswords : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.TypeConverter.cs index 23d884b59cba..d42d971fc5a1 100644 --- a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SyncNtlmPasswordsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.cs b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.cs index 6f637c2674a0..74a9d937d4fc 100644 --- a/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.cs +++ b/src/ADDomainServices/generated/api/Support/SyncNtlmPasswords.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SyncNtlmPasswords(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum SyncNtlmPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum SyncNtlmPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords e2) { diff --git a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.Completer.cs b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.Completer.cs index 19f85182a9cc..87762ab6d272 100644 --- a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.Completer.cs @@ -28,11 +28,11 @@ public partial struct SyncOnPremPasswords : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.TypeConverter.cs index 3b10e164b765..16b4bf7ba34c 100644 --- a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class SyncOnPremPasswordsTypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.cs b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.cs index 65695092c0d4..71a8dd5b2953 100644 --- a/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.cs +++ b/src/ADDomainServices/generated/api/Support/SyncOnPremPasswords.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private SyncOnPremPasswords(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum SyncOnPremPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum SyncOnPremPasswords - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords e2) { diff --git a/src/ADDomainServices/generated/api/Support/TlsV1.Completer.cs b/src/ADDomainServices/generated/api/Support/TlsV1.Completer.cs index ce1867e06466..452c45a9610d 100644 --- a/src/ADDomainServices/generated/api/Support/TlsV1.Completer.cs +++ b/src/ADDomainServices/generated/api/Support/TlsV1.Completer.cs @@ -28,11 +28,11 @@ public partial struct TlsV1 : { if (global::System.String.IsNullOrEmpty(wordToComplete) || "Enabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Enabled", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); + yield return new global::System.Management.Automation.CompletionResult("'Enabled'", "Enabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Enabled"); } if (global::System.String.IsNullOrEmpty(wordToComplete) || "Disabled".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { - yield return new global::System.Management.Automation.CompletionResult("Disabled", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); + yield return new global::System.Management.Automation.CompletionResult("'Disabled'", "Disabled", global::System.Management.Automation.CompletionResultType.ParameterValue, "Disabled"); } } } diff --git a/src/ADDomainServices/generated/api/Support/TlsV1.TypeConverter.cs b/src/ADDomainServices/generated/api/Support/TlsV1.TypeConverter.cs index 0a5117ff21cb..b4990a164797 100644 --- a/src/ADDomainServices/generated/api/Support/TlsV1.TypeConverter.cs +++ b/src/ADDomainServices/generated/api/Support/TlsV1.TypeConverter.cs @@ -12,32 +12,32 @@ public partial class TlsV1TypeConverter : { /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the - /// parameter, otherwise false. + /// true if the converter can convert the parameter to the parameter, otherwise false. /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to diff --git a/src/ADDomainServices/generated/api/Support/TlsV1.cs b/src/ADDomainServices/generated/api/Support/TlsV1.cs index 317a2ea6f7a2..ed4c1e2824b4 100644 --- a/src/ADDomainServices/generated/api/Support/TlsV1.cs +++ b/src/ADDomainServices/generated/api/Support/TlsV1.cs @@ -47,7 +47,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private TlsV1(string underlyingValue) { @@ -78,8 +78,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding != operator for enum TlsV1 - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are not equal to the same value public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 e2) { @@ -87,8 +87,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.ADDoma } /// Overriding == operator for enum TlsV1 - /// the value to compare against - /// the value to compare against + /// the value to compare against + /// the value to compare against /// true if the two instances are equal to the same value public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 e1, Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 e2) { diff --git a/src/ADDomainServices/generated/cmdlets/GetAzADDomainServiceOperation_List.cs b/src/ADDomainServices/generated/cmdlets/GetAzADDomainServiceOperation_List.cs index 0802d6700ce3..0603d1a8bcf7 100644 --- a/src/ADDomainServices/generated/cmdlets/GetAzADDomainServiceOperation_List.cs +++ b/src/ADDomainServices/generated/cmdlets/GetAzADDomainServiceOperation_List.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// Lists all the available Domain Services operations. /// @@ -33,6 +34,12 @@ public partial class GetAzADDomainServiceOperation_List : global::System.Managem /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -66,11 +73,11 @@ public partial class GetAzADDomainServiceOperation_List : global::System.Managem public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -99,8 +106,8 @@ public partial class GetAzADDomainServiceOperation_List : global::System.Managem /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -111,8 +118,8 @@ public partial class GetAzADDomainServiceOperation_List : global::System.Managem /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -123,6 +130,11 @@ public partial class GetAzADDomainServiceOperation_List : global::System.Managem /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -134,7 +146,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -176,7 +188,7 @@ public GetAzADDomainServiceOperation_List() case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Information: { var data = messageData(); - WriteInformation(data, new[] { data.Message }); + WriteInformation(data.Message, new string[]{}); return ; } case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Debug: @@ -242,7 +254,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -285,8 +296,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -325,8 +336,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntityListResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -346,13 +357,18 @@ protected override void StopProcessing() // pageable / value / nextLink var result = await response; WriteObject(result.Value,true); - if (result.NextLink != null) + _nextLink = result.NextLink; + if (_isFirst) { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + _isFirst = false; + while (_nextLink != null) { - requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DomainServiceOperationsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DomainServiceOperationsList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } } } } diff --git a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_Get.cs b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_Get.cs index 0900cf3e4678..d60c9e1af3d6 100644 --- a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_Get.cs +++ b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_Get.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The Get Domain Service operation retrieves a json representation of the Domain Service. @@ -67,11 +68,11 @@ public partial class GetAzADDomainService_Get : global::System.Management.Automa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -152,8 +153,8 @@ public partial class GetAzADDomainService_Get : global::System.Management.Automa /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -164,8 +165,8 @@ public partial class GetAzADDomainService_Get : global::System.Management.Automa /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -176,6 +177,11 @@ public partial class GetAzADDomainService_Get : global::System.Management.Automa /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -187,7 +193,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -229,7 +235,7 @@ public GetAzADDomainService_Get() case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Information: { var data = messageData(); - WriteInformation(data, new[] { data.Message }); + WriteInformation(data.Message, new string[]{}); return ; } case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Debug: @@ -295,7 +301,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -341,8 +346,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -381,8 +386,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_GetViaIdentity.cs b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_GetViaIdentity.cs index 377066c212cb..7d1aed2a8343 100644 --- a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_GetViaIdentity.cs +++ b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_GetViaIdentity.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The Get Domain Service operation retrieves a json representation of the Domain Service. @@ -75,11 +76,11 @@ public partial class GetAzADDomainService_GetViaIdentity : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -108,8 +109,8 @@ public partial class GetAzADDomainService_GetViaIdentity : global::System.Manage /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -120,8 +121,8 @@ public partial class GetAzADDomainService_GetViaIdentity : global::System.Manage /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -132,6 +133,11 @@ public partial class GetAzADDomainService_GetViaIdentity : global::System.Manage /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -143,7 +149,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -185,7 +191,7 @@ public GetAzADDomainService_GetViaIdentity() case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Information: { var data = messageData(); - WriteInformation(data, new[] { data.Message }); + WriteInformation(data.Message, new string[]{}); return ; } case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Debug: @@ -251,7 +257,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -314,8 +319,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -354,8 +359,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List.cs b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List.cs index c45e36e052d6..a64f711af48b 100644 --- a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List.cs +++ b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The List Domain Services in Subscription operation lists all the domain services available under the given subscription @@ -35,6 +36,12 @@ public partial class GetAzADDomainService_List : global::System.Management.Autom /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -68,11 +75,11 @@ public partial class GetAzADDomainService_List : global::System.Management.Autom public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -122,8 +129,8 @@ public partial class GetAzADDomainService_List : global::System.Management.Autom /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -134,8 +141,8 @@ public partial class GetAzADDomainService_List : global::System.Management.Autom /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -146,6 +153,11 @@ public partial class GetAzADDomainService_List : global::System.Management.Autom /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -157,7 +169,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -199,7 +211,7 @@ public GetAzADDomainService_List() case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Information: { var data = messageData(); - WriteInformation(data, new[] { data.Message }); + WriteInformation(data.Message, new string[]{}); return ; } case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Debug: @@ -265,7 +277,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -311,8 +322,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -351,8 +362,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -372,13 +383,18 @@ protected override void StopProcessing() // pageable / value / nextLink var result = await response; WriteObject(result.Value,true); - if (result.NextLink != null) + _nextLink = result.NextLink; + if (_isFirst) { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + _isFirst = false; + while (_nextLink != null) { - requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DomainServicesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DomainServicesList_Call(requestMessage, onOk, onDefault, this, Pipeline); + } } } } diff --git a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List1.cs b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List1.cs index 1da2c0618423..f51b12455ce7 100644 --- a/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List1.cs +++ b/src/ADDomainServices/generated/cmdlets/GetAzADDomainService_List1.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The List Domain Services in Resource Group operation lists all the domain services available under the given resource @@ -35,6 +36,12 @@ public partial class GetAzADDomainService_List1 : global::System.Management.Auto /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A flag to tell whether it is the first onOK call. + private bool _isFirst = true; + + /// Link to retrieve next page. + private string _nextLink; + /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -68,11 +75,11 @@ public partial class GetAzADDomainService_List1 : global::System.Management.Auto public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -138,8 +145,8 @@ public partial class GetAzADDomainService_List1 : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -150,8 +157,8 @@ public partial class GetAzADDomainService_List1 : global::System.Management.Auto /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResult + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -162,6 +169,11 @@ public partial class GetAzADDomainService_List1 : global::System.Management.Auto /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -173,7 +185,7 @@ protected override void BeginProcessing() /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// @@ -215,7 +227,7 @@ public GetAzADDomainService_List1() case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Information: { var data = messageData(); - WriteInformation(data, new[] { data.Message }); + WriteInformation(data.Message, new string[]{}); return ; } case Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.Debug: @@ -281,7 +293,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -327,8 +338,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -367,8 +378,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainServiceListResult + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -388,13 +399,18 @@ protected override void StopProcessing() // pageable / value / nextLink var result = await response; WriteObject(result.Value,true); - if (result.NextLink != null) + _nextLink = result.NextLink; + if (_isFirst) { - if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + _isFirst = false; + while (_nextLink != null) { - requestMessage = requestMessage.Clone(new global::System.Uri( result.NextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DomainServicesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + if (responseMessage.RequestMessage is System.Net.Http.HttpRequestMessage requestMessage ) + { + requestMessage = requestMessage.Clone(new global::System.Uri( _nextLink ),Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Method.Get ); + await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.FollowingNextLink); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.DomainServicesListByResourceGroup_Call(requestMessage, onOk, onDefault, this, Pipeline); + } } } } diff --git a/src/ADDomainServices/generated/cmdlets/NewAzADDomainService_CreateExpanded.cs b/src/ADDomainServices/generated/cmdlets/NewAzADDomainService_CreateExpanded.cs index d095349bbc7a..03f680cce49e 100644 --- a/src/ADDomainServices/generated/cmdlets/NewAzADDomainService_CreateExpanded.cs +++ b/src/ADDomainServices/generated/cmdlets/NewAzADDomainService_CreateExpanded.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service @@ -36,6 +37,9 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Domain service. + private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -67,7 +71,11 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Domain Configuration Type", SerializedName = @"domainConfigurationType", PossibleTypes = new [] { typeof(string) })] - public string DomainConfigurationType { get => DomainServiceBody.DomainConfigurationType ?? null; set => DomainServiceBody.DomainConfigurationType = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"DomainConfigurationType Completer", + Description =@"Gets the list of DomainConfigurationTypes available for this resource.", + Script = @"'FullySynced', 'ResourceTrusting'")] + public string DomainConfigurationType { get => _domainServiceBody.DomainConfigurationType ?? null; set => _domainServiceBody.DomainConfigurationType = value; } /// /// The name of the Azure domain that the user would like to deploy Domain Services to. @@ -80,7 +88,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"The name of the Azure domain that the user would like to deploy Domain Services to.", SerializedName = @"domainName", PossibleTypes = new [] { typeof(string) })] - public string DomainName { get => DomainServiceBody.DomainName ?? null; set => DomainServiceBody.DomainName = value; } + public string DomainName { get => _domainServiceBody.DomainName ?? null; set => _domainServiceBody.DomainName = value; } /// A flag to determine whether or not NtlmV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not NtlmV1 is enabled or disabled.")] @@ -92,7 +100,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"ntlmV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => DomainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => DomainServiceBody.DomainSecuritySettingNtlmV1 = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => _domainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => _domainServiceBody.DomainSecuritySettingNtlmV1 = value; } /// /// A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. @@ -106,7 +114,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"syncKerberosPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } /// A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncNtlmPasswords is enabled or disabled.")] @@ -118,7 +126,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"syncNtlmPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } /// A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncOnPremPasswords is enabled or disabled.")] @@ -130,7 +138,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"syncOnPremPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } /// A flag to determine whether or not TlsV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not TlsV1 is enabled or disabled.")] @@ -142,13 +150,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"tlsV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => DomainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => DomainServiceBody.DomainSecuritySettingTlsV1 = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); - - /// Domain service. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService DomainServiceBody { get => this._domainServiceBody; set => this._domainServiceBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => _domainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => _domainServiceBody.DomainSecuritySettingTlsV1 = value; } /// Resource etag [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource etag")] @@ -159,7 +161,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Resource etag", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] - public string Etag { get => DomainServiceBody.Etag ?? null; set => DomainServiceBody.Etag = value; } + public string Etag { get => _domainServiceBody.Etag ?? null; set => _domainServiceBody.Etag = value; } /// Enabled or Disabled flag to turn on Group-based filtered sync [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enabled or Disabled flag to turn on Group-based filtered sync")] @@ -171,7 +173,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"filteredSync", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => DomainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => DomainServiceBody.FilteredSync = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => _domainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => _domainServiceBody.FilteredSync = value; } /// List of settings for Resource Forest [global::System.Management.Automation.AllowEmptyCollection] @@ -183,7 +185,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"List of settings for Resource Forest", SerializedName = @"settings", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => DomainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => DomainServiceBody.PropertiesResourceForestSettingsSettings = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => _domainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => _domainServiceBody.PropertiesResourceForestSettingsSettings = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -212,7 +214,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"externalAccess", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => DomainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => DomainServiceBody.LdapSettingExternalAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => _domainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => _domainServiceBody.LdapSettingExternalAccess = value; } /// A flag to determine whether or not Secure LDAP is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not Secure LDAP is enabled or disabled.")] @@ -224,21 +226,36 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"ldaps", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => DomainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => DomainServiceBody.LdapSettingLdap = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => _domainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => _domainServiceBody.LdapSettingLdap = value; } /// /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.")] + internal byte[] LdapSettingPfxCertificate { get => _domainServiceBody.LdapSettingPfxCertificate ?? null /* byte array */; set => _domainServiceBody.LdapSettingPfxCertificate = value; } + + /// + /// Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here + /// should be a base64encoded representation of the certificate pfx file.) + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.)")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", - SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificate { get => DomainServiceBody.LdapSettingPfxCertificate ?? null; set => DomainServiceBody.LdapSettingPfxCertificate = value; } + public string LdapSettingPfxCertificateInputFile + { + set + { + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(value, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid input path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple input paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + LdapSettingPfxCertificate = global::System.IO.File.ReadAllBytes(paths[0]); + } + } /// The password to decrypt the provided Secure LDAP certificate pfx file. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password to decrypt the provided Secure LDAP certificate pfx file.")] @@ -248,8 +265,8 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificatePassword { get => DomainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => DomainServiceBody.LdapSettingPfxCertificatePassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString LdapSettingPfxCertificatePassword { get => _domainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => _domainServiceBody.LdapSettingPfxCertificatePassword = value; } /// Resource location [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location")] @@ -260,14 +277,18 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Resource location", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => DomainServiceBody.Location ?? null; set => DomainServiceBody.Location = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo( + Name = @"Location Default", + Description =@"Gets the Location from the first element in ReplicaSets.", + Script = @"$ReplicaSet[0].Location")] + public string Location { get => _domainServiceBody.Location ?? null; set => _domainServiceBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -303,7 +324,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"The list of additional recipients", SerializedName = @"additionalRecipients", PossibleTypes = new [] { typeof(string) })] - public string[] NotificationSettingAdditionalRecipient { get => DomainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => DomainServiceBody.NotificationSettingAdditionalRecipient = value; } + public string[] NotificationSettingAdditionalRecipient { get => _domainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => _domainServiceBody.NotificationSettingAdditionalRecipient = value; } /// Should domain controller admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should domain controller admins be notified")] @@ -315,7 +336,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"notifyDcAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => DomainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => DomainServiceBody.NotificationSettingNotifyDcAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => _domainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => _domainServiceBody.NotificationSettingNotifyDcAdmin = value; } /// Should global admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should global admins be notified")] @@ -327,7 +348,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage SerializedName = @"notifyGlobalAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => DomainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => DomainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => _domainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => _domainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } /// /// The instance of the that the remote call will use. @@ -360,7 +381,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"List of ReplicaSets", SerializedName = @"replicaSets", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => DomainServiceBody.ReplicaSet ?? null /* arrayOf */; set => DomainServiceBody.ReplicaSet = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => _domainServiceBody.ReplicaSet ?? null /* arrayOf */; set => _domainServiceBody.ReplicaSet = value; } /// Resource Forest [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Forest")] @@ -371,7 +392,7 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Resource Forest", SerializedName = @"resourceForest", PossibleTypes = new [] { typeof(string) })] - public string ResourceForest { get => DomainServiceBody.ResourceForestSettingResourceForest ?? null; set => DomainServiceBody.ResourceForestSettingResourceForest = value; } + public string ResourceForest { get => _domainServiceBody.ResourceForestSettingResourceForest ?? null; set => _domainServiceBody.ResourceForestSettingResourceForest = value; } /// Backing field for property. private string _resourceGroupName; @@ -398,7 +419,11 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Sku Type", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] - public string Sku { get => DomainServiceBody.Sku ?? null; set => DomainServiceBody.Sku = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"Sku Completer", + Description =@"Gets the list of Skus available for this resource.", + Script = @"'Standard', 'Enterprise', 'Premium'")] + public string Sku { get => _domainServiceBody.Sku ?? null; set => _domainServiceBody.Sku = value; } /// Backing field for property. private string _subscriptionId; @@ -431,15 +456,15 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage Description = @"Resource tags", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => DomainServiceBody.Tag ?? null /* object */; set => DomainServiceBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => _domainServiceBody.Tag ?? null /* object */; set => _domainServiceBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -450,8 +475,8 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -462,6 +487,11 @@ public partial class NewAzADDomainService_CreateExpanded : global::System.Manage /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -487,7 +517,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.NewAzADDomain clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.DomainServiceBody = this.DomainServiceBody; + clone._domainServiceBody = this._domainServiceBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -497,7 +527,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.NewAzADDomain /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -638,7 +668,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -653,12 +682,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DomainServicesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, DomainServiceBody, onOk, onDefault, this, Pipeline); + await this.Client.DomainServicesCreateOrUpdate(SubscriptionId, ResourceGroupName, Name, _domainServiceBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=DomainServiceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_domainServiceBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -681,8 +710,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -704,14 +733,14 @@ protected override void StopProcessing() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -721,8 +750,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_Delete.cs b/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_Delete.cs index 0055f89fdf5a..09331bc13791 100644 --- a/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_Delete.cs +++ b/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_Delete.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// The Delete Domain Service operation deletes an existing Domain Service. /// @@ -70,11 +71,11 @@ public partial class RemoveAzADDomainService_Delete : global::System.Management. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -170,8 +171,8 @@ public partial class RemoveAzADDomainService_Delete : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -202,6 +203,11 @@ public partial class RemoveAzADDomainService_Delete : global::System.Management. /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -236,7 +242,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.RemoveAzADDom /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -369,7 +375,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -420,8 +425,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_DeleteViaIdentity.cs b/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_DeleteViaIdentity.cs index d110c8defb0a..74622bf0a9aa 100644 --- a/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_DeleteViaIdentity.cs +++ b/src/ADDomainServices/generated/cmdlets/RemoveAzADDomainService_DeleteViaIdentity.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// The Delete Domain Service operation deletes an existing Domain Service. /// @@ -78,11 +79,11 @@ public partial class RemoveAzADDomainService_DeleteViaIdentity : global::System. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -126,8 +127,8 @@ public partial class RemoveAzADDomainService_DeleteViaIdentity : global::System. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -158,6 +159,11 @@ public partial class RemoveAzADDomainService_DeleteViaIdentity : global::System. /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -189,7 +195,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.RemoveAzADDom /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -322,7 +328,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -393,8 +398,8 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateExpanded.cs b/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateExpanded.cs index 39cd54b339b2..26a8f603ea06 100644 --- a/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateExpanded.cs +++ b/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateExpanded.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties @@ -14,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}" /// - [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzADDomainService_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService))] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Description(@"The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.")] @@ -36,6 +36,9 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Domain service. + private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -67,7 +70,11 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Domain Configuration Type", SerializedName = @"domainConfigurationType", PossibleTypes = new [] { typeof(string) })] - public string DomainConfigurationType { get => DomainServiceBody.DomainConfigurationType ?? null; set => DomainServiceBody.DomainConfigurationType = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"DomainConfigurationType Completer", + Description =@"Gets the list of DomainConfigurationTypes available for this resource.", + Script = @"'FullySynced', 'ResourceTrusting'")] + public string DomainConfigurationType { get => _domainServiceBody.DomainConfigurationType ?? null; set => _domainServiceBody.DomainConfigurationType = value; } /// /// The name of the Azure domain that the user would like to deploy Domain Services to. @@ -80,7 +87,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"The name of the Azure domain that the user would like to deploy Domain Services to.", SerializedName = @"domainName", PossibleTypes = new [] { typeof(string) })] - public string DomainName { get => DomainServiceBody.DomainName ?? null; set => DomainServiceBody.DomainName = value; } + public string DomainName { get => _domainServiceBody.DomainName ?? null; set => _domainServiceBody.DomainName = value; } /// A flag to determine whether or not NtlmV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not NtlmV1 is enabled or disabled.")] @@ -92,7 +99,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"ntlmV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => DomainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => DomainServiceBody.DomainSecuritySettingNtlmV1 = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => _domainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => _domainServiceBody.DomainSecuritySettingNtlmV1 = value; } /// /// A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. @@ -106,7 +113,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"syncKerberosPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } /// A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncNtlmPasswords is enabled or disabled.")] @@ -118,7 +125,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"syncNtlmPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } /// A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncOnPremPasswords is enabled or disabled.")] @@ -130,7 +137,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"syncOnPremPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } /// A flag to determine whether or not TlsV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not TlsV1 is enabled or disabled.")] @@ -142,13 +149,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"tlsV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => DomainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => DomainServiceBody.DomainSecuritySettingTlsV1 = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); - - /// Domain service. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService DomainServiceBody { get => this._domainServiceBody; set => this._domainServiceBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => _domainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => _domainServiceBody.DomainSecuritySettingTlsV1 = value; } /// Resource etag [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource etag")] @@ -159,7 +160,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Resource etag", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] - public string Etag { get => DomainServiceBody.Etag ?? null; set => DomainServiceBody.Etag = value; } + public string Etag { get => _domainServiceBody.Etag ?? null; set => _domainServiceBody.Etag = value; } /// Enabled or Disabled flag to turn on Group-based filtered sync [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enabled or Disabled flag to turn on Group-based filtered sync")] @@ -171,7 +172,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"filteredSync", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => DomainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => DomainServiceBody.FilteredSync = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => _domainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => _domainServiceBody.FilteredSync = value; } /// List of settings for Resource Forest [global::System.Management.Automation.AllowEmptyCollection] @@ -183,7 +184,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"List of settings for Resource Forest", SerializedName = @"settings", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => DomainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => DomainServiceBody.PropertiesResourceForestSettingsSettings = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => _domainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => _domainServiceBody.PropertiesResourceForestSettingsSettings = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -212,7 +213,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"externalAccess", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => DomainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => DomainServiceBody.LdapSettingExternalAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => _domainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => _domainServiceBody.LdapSettingExternalAccess = value; } /// A flag to determine whether or not Secure LDAP is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not Secure LDAP is enabled or disabled.")] @@ -224,21 +225,36 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"ldaps", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => DomainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => DomainServiceBody.LdapSettingLdap = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => _domainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => _domainServiceBody.LdapSettingLdap = value; } /// /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.")] + internal byte[] LdapSettingPfxCertificate { get => _domainServiceBody.LdapSettingPfxCertificate ?? null /* byte array */; set => _domainServiceBody.LdapSettingPfxCertificate = value; } + + /// + /// Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here + /// should be a base64encoded representation of the certificate pfx file.) + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.)")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", - SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificate { get => DomainServiceBody.LdapSettingPfxCertificate ?? null; set => DomainServiceBody.LdapSettingPfxCertificate = value; } + public string LdapSettingPfxCertificateInputFile + { + set + { + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(value, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid input path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple input paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + LdapSettingPfxCertificate = global::System.IO.File.ReadAllBytes(paths[0]); + } + } /// The password to decrypt the provided Secure LDAP certificate pfx file. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password to decrypt the provided Secure LDAP certificate pfx file.")] @@ -248,8 +264,8 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificatePassword { get => DomainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => DomainServiceBody.LdapSettingPfxCertificatePassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString LdapSettingPfxCertificatePassword { get => _domainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => _domainServiceBody.LdapSettingPfxCertificatePassword = value; } /// Resource location [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location")] @@ -260,14 +276,14 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Resource location", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => DomainServiceBody.Location ?? null; set => DomainServiceBody.Location = value; } + public string Location { get => _domainServiceBody.Location ?? null; set => _domainServiceBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -303,7 +319,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"The list of additional recipients", SerializedName = @"additionalRecipients", PossibleTypes = new [] { typeof(string) })] - public string[] NotificationSettingAdditionalRecipient { get => DomainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => DomainServiceBody.NotificationSettingAdditionalRecipient = value; } + public string[] NotificationSettingAdditionalRecipient { get => _domainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => _domainServiceBody.NotificationSettingAdditionalRecipient = value; } /// Should domain controller admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should domain controller admins be notified")] @@ -315,7 +331,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"notifyDcAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => DomainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => DomainServiceBody.NotificationSettingNotifyDcAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => _domainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => _domainServiceBody.NotificationSettingNotifyDcAdmin = value; } /// Should global admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should global admins be notified")] @@ -327,7 +343,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man SerializedName = @"notifyGlobalAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => DomainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => DomainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => _domainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => _domainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } /// /// The instance of the that the remote call will use. @@ -360,7 +376,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"List of ReplicaSets", SerializedName = @"replicaSets", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => DomainServiceBody.ReplicaSet ?? null /* arrayOf */; set => DomainServiceBody.ReplicaSet = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => _domainServiceBody.ReplicaSet ?? null /* arrayOf */; set => _domainServiceBody.ReplicaSet = value; } /// Resource Forest [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Forest")] @@ -371,7 +387,7 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Resource Forest", SerializedName = @"resourceForest", PossibleTypes = new [] { typeof(string) })] - public string ResourceForest { get => DomainServiceBody.ResourceForestSettingResourceForest ?? null; set => DomainServiceBody.ResourceForestSettingResourceForest = value; } + public string ResourceForest { get => _domainServiceBody.ResourceForestSettingResourceForest ?? null; set => _domainServiceBody.ResourceForestSettingResourceForest = value; } /// Backing field for property. private string _resourceGroupName; @@ -398,7 +414,11 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Sku Type", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] - public string Sku { get => DomainServiceBody.Sku ?? null; set => DomainServiceBody.Sku = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"Sku Completer", + Description =@"Gets the list of Skus available for this resource.", + Script = @"'Standard', 'Enterprise', 'Premium'")] + public string Sku { get => _domainServiceBody.Sku ?? null; set => _domainServiceBody.Sku = value; } /// Backing field for property. private string _subscriptionId; @@ -431,15 +451,15 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man Description = @"Resource tags", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => DomainServiceBody.Tag ?? null /* object */; set => DomainServiceBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => _domainServiceBody.Tag ?? null /* object */; set => _domainServiceBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -450,8 +470,8 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -462,6 +482,11 @@ public partial class UpdateAzADDomainService_UpdateExpanded : global::System.Man /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -487,7 +512,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.UpdateAzADDom clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.DomainServiceBody = this.DomainServiceBody; + clone._domainServiceBody = this._domainServiceBody; clone.SubscriptionId = this.SubscriptionId; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; @@ -497,7 +522,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.UpdateAzADDom /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -630,7 +655,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -645,12 +669,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DomainServicesUpdate(SubscriptionId, ResourceGroupName, Name, DomainServiceBody, onOk, onDefault, this, Pipeline); + await this.Client.DomainServicesUpdate(SubscriptionId, ResourceGroupName, Name, _domainServiceBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=DomainServiceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,Name=Name,body=_domainServiceBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -681,8 +705,8 @@ public UpdateAzADDomainService_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -704,14 +728,14 @@ public UpdateAzADDomainService_UpdateExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -721,8 +745,8 @@ public UpdateAzADDomainService_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateViaIdentityExpanded.cs b/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateViaIdentityExpanded.cs index d770a1d266b1..acdfbb49ba93 100644 --- a/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateViaIdentityExpanded.cs +++ b/src/ADDomainServices/generated/cmdlets/UpdateAzADDomainService_UpdateViaIdentityExpanded.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets { using static Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Extensions; + using System; /// /// The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties @@ -14,7 +15,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets /// /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AAD/domainServices/{domainServiceName}" /// - [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzADDomainService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService))] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Description(@"The Update Domain Service operation can be used to update the existing deployment. The update call only supports the properties listed in the PATCH body.")] @@ -36,6 +36,9 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Domain service. + private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); + /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Runtime)] @@ -67,7 +70,11 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Domain Configuration Type", SerializedName = @"domainConfigurationType", PossibleTypes = new [] { typeof(string) })] - public string DomainConfigurationType { get => DomainServiceBody.DomainConfigurationType ?? null; set => DomainServiceBody.DomainConfigurationType = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"DomainConfigurationType Completer", + Description =@"Gets the list of DomainConfigurationTypes available for this resource.", + Script = @"'FullySynced', 'ResourceTrusting'")] + public string DomainConfigurationType { get => _domainServiceBody.DomainConfigurationType ?? null; set => _domainServiceBody.DomainConfigurationType = value; } /// /// The name of the Azure domain that the user would like to deploy Domain Services to. @@ -80,7 +87,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"The name of the Azure domain that the user would like to deploy Domain Services to.", SerializedName = @"domainName", PossibleTypes = new [] { typeof(string) })] - public string DomainName { get => DomainServiceBody.DomainName ?? null; set => DomainServiceBody.DomainName = value; } + public string DomainName { get => _domainServiceBody.DomainName ?? null; set => _domainServiceBody.DomainName = value; } /// A flag to determine whether or not NtlmV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not NtlmV1 is enabled or disabled.")] @@ -92,7 +99,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"ntlmV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => DomainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => DomainServiceBody.DomainSecuritySettingNtlmV1 = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 DomainSecuritySettingNtlmV1 { get => _domainServiceBody.DomainSecuritySettingNtlmV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1)""); set => _domainServiceBody.DomainSecuritySettingNtlmV1 = value; } /// /// A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. @@ -106,7 +113,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"syncKerberosPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords DomainSecuritySettingSyncKerberosPassword { get => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncKerberosPassword = value; } /// A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncNtlmPasswords is enabled or disabled.")] @@ -118,7 +125,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"syncNtlmPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords DomainSecuritySettingSyncNtlmPassword { get => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncNtlmPassword = value; } /// A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not SyncOnPremPasswords is enabled or disabled.")] @@ -130,7 +137,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"syncOnPremPasswords", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => DomainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords DomainSecuritySettingSyncOnPremPassword { get => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords)""); set => _domainServiceBody.DomainSecuritySettingSyncOnPremPassword = value; } /// A flag to determine whether or not TlsV1 is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not TlsV1 is enabled or disabled.")] @@ -142,13 +149,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"tlsV1", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => DomainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => DomainServiceBody.DomainSecuritySettingTlsV1 = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService _domainServiceBody= new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.DomainService(); - - /// Domain service. - private Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService DomainServiceBody { get => this._domainServiceBody; set => this._domainServiceBody = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 DomainSecuritySettingTlsV1 { get => _domainServiceBody.DomainSecuritySettingTlsV1 ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1)""); set => _domainServiceBody.DomainSecuritySettingTlsV1 = value; } /// Resource etag [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource etag")] @@ -159,7 +160,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Resource etag", SerializedName = @"etag", PossibleTypes = new [] { typeof(string) })] - public string Etag { get => DomainServiceBody.Etag ?? null; set => DomainServiceBody.Etag = value; } + public string Etag { get => _domainServiceBody.Etag ?? null; set => _domainServiceBody.Etag = value; } /// Enabled or Disabled flag to turn on Group-based filtered sync [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Enabled or Disabled flag to turn on Group-based filtered sync")] @@ -171,7 +172,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"filteredSync", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => DomainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => DomainServiceBody.FilteredSync = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync FilteredSync { get => _domainServiceBody.FilteredSync ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync)""); set => _domainServiceBody.FilteredSync = value; } /// List of settings for Resource Forest [global::System.Management.Automation.AllowEmptyCollection] @@ -183,7 +184,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"List of settings for Resource Forest", SerializedName = @"settings", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => DomainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => DomainServiceBody.PropertiesResourceForestSettingsSettings = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[] ForestTrust { get => _domainServiceBody.PropertiesResourceForestSettingsSettings ?? null /* arrayOf */; set => _domainServiceBody.PropertiesResourceForestSettingsSettings = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -220,7 +221,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"externalAccess", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => DomainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => DomainServiceBody.LdapSettingExternalAccess = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess LdapSettingExternalAccess { get => _domainServiceBody.LdapSettingExternalAccess ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess)""); set => _domainServiceBody.LdapSettingExternalAccess = value; } /// A flag to determine whether or not Secure LDAP is enabled or disabled. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "A flag to determine whether or not Secure LDAP is enabled or disabled.")] @@ -232,21 +233,36 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"ldaps", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => DomainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => DomainServiceBody.LdapSettingLdap = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps LdapSettingLdaps { get => _domainServiceBody.LdapSettingLdap ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps)""); set => _domainServiceBody.LdapSettingLdap = value; } /// /// The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation /// of the certificate pfx file. /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.")] + internal byte[] LdapSettingPfxCertificate { get => _domainServiceBody.LdapSettingPfxCertificate ?? null /* byte array */; set => _domainServiceBody.LdapSettingPfxCertificate = value; } + + /// + /// Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here + /// should be a base64encoded representation of the certificate pfx file.) + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.)")] [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category(global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"The certificate required to configure Secure LDAP. The parameter passed here should be a base64encoded representation of the certificate pfx file.", - SerializedName = @"pfxCertificate", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificate { get => DomainServiceBody.LdapSettingPfxCertificate ?? null; set => DomainServiceBody.LdapSettingPfxCertificate = value; } + public string LdapSettingPfxCertificateInputFile + { + set + { + var paths = this.SessionState.Path.GetResolvedProviderPathFromPSPath(value, out var provider); + if (provider.Name != "FileSystem" || paths.Count == 0) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Invalid input path."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + if (paths.Count > 1) + { + ThrowTerminatingError( new System.Management.Automation.ErrorRecord(new global::System.Exception("Multiple input paths not allowed."),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, value) ); + } + LdapSettingPfxCertificate = global::System.IO.File.ReadAllBytes(paths[0]); + } + } /// The password to decrypt the provided Secure LDAP certificate pfx file. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The password to decrypt the provided Secure LDAP certificate pfx file.")] @@ -256,8 +272,8 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: ReadOnly = false, Description = @"The password to decrypt the provided Secure LDAP certificate pfx file.", SerializedName = @"pfxCertificatePassword", - PossibleTypes = new [] { typeof(string) })] - public string LdapSettingPfxCertificatePassword { get => DomainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => DomainServiceBody.LdapSettingPfxCertificatePassword = value; } + PossibleTypes = new [] { typeof(System.Security.SecureString) })] + public System.Security.SecureString LdapSettingPfxCertificatePassword { get => _domainServiceBody.LdapSettingPfxCertificatePassword ?? null; set => _domainServiceBody.LdapSettingPfxCertificatePassword = value; } /// Resource location [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource location")] @@ -268,14 +284,14 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Resource location", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => DomainServiceBody.Location ?? null; set => DomainServiceBody.Location = value; } + public string Location { get => _domainServiceBody.Location ?? null; set => _domainServiceBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -296,7 +312,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"The list of additional recipients", SerializedName = @"additionalRecipients", PossibleTypes = new [] { typeof(string) })] - public string[] NotificationSettingAdditionalRecipient { get => DomainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => DomainServiceBody.NotificationSettingAdditionalRecipient = value; } + public string[] NotificationSettingAdditionalRecipient { get => _domainServiceBody.NotificationSettingAdditionalRecipient ?? null /* arrayOf */; set => _domainServiceBody.NotificationSettingAdditionalRecipient = value; } /// Should domain controller admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should domain controller admins be notified")] @@ -308,7 +324,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"notifyDcAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => DomainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => DomainServiceBody.NotificationSettingNotifyDcAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins NotificationSettingNotifyDcAdmin { get => _domainServiceBody.NotificationSettingNotifyDcAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins)""); set => _domainServiceBody.NotificationSettingNotifyDcAdmin = value; } /// Should global admins be notified [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Should global admins be notified")] @@ -320,7 +336,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: SerializedName = @"notifyGlobalAdmins", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins))] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => DomainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => DomainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins NotificationSettingNotifyGlobalAdmin { get => _domainServiceBody.NotificationSettingNotifyGlobalAdmin ?? ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins)""); set => _domainServiceBody.NotificationSettingNotifyGlobalAdmin = value; } /// /// The instance of the that the remote call will use. @@ -353,7 +369,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"List of ReplicaSets", SerializedName = @"replicaSets", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => DomainServiceBody.ReplicaSet ?? null /* arrayOf */; set => DomainServiceBody.ReplicaSet = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[] ReplicaSet { get => _domainServiceBody.ReplicaSet ?? null /* arrayOf */; set => _domainServiceBody.ReplicaSet = value; } /// Resource Forest [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Forest")] @@ -364,7 +380,7 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Resource Forest", SerializedName = @"resourceForest", PossibleTypes = new [] { typeof(string) })] - public string ResourceForest { get => DomainServiceBody.ResourceForestSettingResourceForest ?? null; set => DomainServiceBody.ResourceForestSettingResourceForest = value; } + public string ResourceForest { get => _domainServiceBody.ResourceForestSettingResourceForest ?? null; set => _domainServiceBody.ResourceForestSettingResourceForest = value; } /// Sku Type [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Sku Type")] @@ -375,7 +391,11 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Sku Type", SerializedName = @"sku", PossibleTypes = new [] { typeof(string) })] - public string Sku { get => DomainServiceBody.Sku ?? null; set => DomainServiceBody.Sku = value; } + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.CompleterInfo( + Name = @"Sku Completer", + Description =@"Gets the list of Skus available for this resource.", + Script = @"'Standard', 'Enterprise', 'Premium'")] + public string Sku { get => _domainServiceBody.Sku ?? null; set => _domainServiceBody.Sku = value; } /// Resource tags [global::Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.ExportAs(typeof(global::System.Collections.Hashtable))] @@ -387,15 +407,15 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: Description = @"Resource tags", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => DomainServiceBody.Tag ?? null /* object */; set => DomainServiceBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags Tag { get => _domainServiceBody.Tag ?? null /* object */; set => _domainServiceBody.Tag = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) @@ -406,8 +426,8 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) @@ -418,6 +438,11 @@ public partial class UpdateAzADDomainService_UpdateViaIdentityExpanded : global: /// protected override void BeginProcessing() { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { @@ -443,14 +468,14 @@ public Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Cmdlets.UpdateAzADDom clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.DomainServiceBody = this.DomainServiceBody; + clone._domainServiceBody = this._domainServiceBody; return clone; } /// Performs clean-up after the command execution protected override void EndProcessing() { - ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } /// Handles/Dispatches events during the call to the REST service. @@ -583,7 +608,6 @@ protected override void ProcessRecord() { using( NoSynchronizationContext ) { - await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); if (null != HttpPipelinePrepend) @@ -600,7 +624,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.DomainServicesUpdateViaIdentity(InputObject.Id, DomainServiceBody, onOk, onDefault, this, Pipeline); + await this.Client.DomainServicesUpdateViaIdentity(InputObject.Id, _domainServiceBody, onOk, onDefault, this, Pipeline); } else { @@ -617,13 +641,13 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DomainServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.DomainServicesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DomainServiceName ?? null, DomainServiceBody, onOk, onDefault, this, Pipeline); + await this.Client.DomainServicesUpdate(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.DomainServiceName ?? null, _domainServiceBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=DomainServiceBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_domainServiceBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -654,8 +678,8 @@ public UpdateAzADDomainService_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.ICloudError + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// @@ -677,14 +701,14 @@ public UpdateAzADDomainService_UpdateViaIdentityExpanded() { // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); } else { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=DomainServiceBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_domainServiceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } }); @@ -694,8 +718,8 @@ public UpdateAzADDomainService_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a from the remote call + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService + /// from the remote call /// /// A that will be complete when handling of the method is completed. /// diff --git a/src/ADDomainServices/generated/runtime/AsyncCommandRuntime.cs b/src/ADDomainServices/generated/runtime/AsyncCommandRuntime.cs index 8ebb2d8acce9..2b871054600a 100644 --- a/src/ADDomainServices/generated/runtime/AsyncCommandRuntime.cs +++ b/src/ADDomainServices/generated/runtime/AsyncCommandRuntime.cs @@ -38,6 +38,10 @@ internal AsyncCommandRuntime(System.Management.Automation.PSCmdlet cmdlet, Cance this.originalThread = System.Threading.Thread.CurrentThread; this.cancellationToken = cancellationToken; this.cmdlet = cmdlet; + if (cmdlet.PagingParameters != null) + { + WriteDebug("Client side pagination is enabled for this cmdlet"); + } cmdlet.CommandRuntime = this; } diff --git a/src/ADDomainServices/generated/runtime/AsyncOperationResponse.cs b/src/ADDomainServices/generated/runtime/AsyncOperationResponse.cs index e36ac4f480a6..5ca0a9f7fe80 100644 --- a/src/ADDomainServices/generated/runtime/AsyncOperationResponse.cs +++ b/src/ADDomainServices/generated/runtime/AsyncOperationResponse.cs @@ -31,10 +31,10 @@ public static AsyncOperationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets /// - /// Creates a new instance of , deserializing the content from a json string. + /// Creates a new instance of , deserializing the content from a json string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// an instance of the model class. public static AsyncOperationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Json.JsonNode.Parse(jsonText)); } @@ -43,19 +43,19 @@ public partial class AsyncOperationResponseTypeConverter : System.Management.Aut { /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to the /// parameter. /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false. /// public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the + /// Determines if the converter can convert the parameter to a type /// parameter. /// /// the instance to check if it can be converted to the - /// Determines if the parameter can be converted to the parameter + /// Determines if the parameter can be converted to the parameter /// /// the to convert from /// the to convert to /// - /// true if the converter can convert the parameter to the + /// true if the converter can convert the parameter to the /// parameter, otherwise false /// public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// - /// Converts the parameter to the parameter using and + /// Converts the parameter to the parameter using and /// /// the to convert from /// the to convert to @@ -128,8 +128,7 @@ public static bool CanConvertFrom(dynamic sourceValue) public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// - /// Converts the parameter to the parameter using and + /// Converts the parameter into an instance of /// /// the value to convert into an instance of . /// diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs index 448b2a245958..3bbd0f4be652 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportFormatPs1xml.cs @@ -21,6 +21,8 @@ public class ExportFormatPs1xml : PSCmdlet private const string ModelNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models"; private const string SupportNamespace = @"Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support"; + private const string PropertiesExcludedForTableview = @"Id,Type"; + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); protected override void ProcessRecord() @@ -55,7 +57,7 @@ private static IEnumerable GetFilteredViewParameters() return types.Select(t => new ViewParameters(t, t.GetProperties() .Select(p => new PropertyFormat(p)) .Where(pf => !pf.Property.GetCustomAttributes().Any() - && (!IsAzure || pf.Property.Name != "Id") + && (!PropertiesExcludedForTableview.Split(',').Contains(pf.Property.Name)) && (pf.FormatTable != null || (pf.Origin != PropertyOrigin.Inlined && pf.Property.PropertyType.IsPsSimple()))) .OrderByDescending(pf => pf.Index.HasValue) .ThenBy(pf => pf.Index) diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index b4bb27cf7fe6..3c0b7dbe47d4 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -54,38 +54,26 @@ public class ExportProxyCmdlet : PSCmdlet protected override void ProcessRecord() { - try { - var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); - var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); - var profileGroups = allProfiles.Any() - ? variants - .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) - .GroupBy(pv => pv.profile) - .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) - : new[] { new ProfileGroup(variants) }; - var variantGroups = profileGroups.SelectMany(pg => pg.Variants - .GroupBy(v => new { v.CmdletName, v.IsInternal }) - .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), - Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) - .ToArray(); - - foreach (var variantGroup in variantGroups) + try { - var parameterGroups = variantGroup.ParameterGroups.ToList(); - var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; - var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; - var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); - List examples = new List(); - foreach (var it in markdownInfo.Examples) - { - examples.Add(it); - } - variantGroup.HelpInfo.Examples = examples.ToArray(); - var sb = new StringBuilder(); - sb.Append(@" + var variants = GetModuleCmdletsAndHelpInfo(this, ModulePath).SelectMany(ci => ci.ToVariants()).Where(v => !v.IsDoNotExport).ToArray(); + var allProfiles = variants.SelectMany(v => v.Profiles).Distinct().ToArray(); + var profileGroups = allProfiles.Any() + ? variants + .SelectMany(v => (v.Profiles.Any() ? v.Profiles : allProfiles).Select(p => (profile: p, variant: v))) + .GroupBy(pv => pv.profile) + .Select(pvg => new ProfileGroup(pvg.Select(pv => pv.variant).ToArray(), pvg.Key)) + : new[] { new ProfileGroup(variants) }; + var variantGroups = profileGroups.SelectMany(pg => pg.Variants + .GroupBy(v => new { v.CmdletName, v.IsInternal }) + .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + .ToArray(); + + var license = new StringBuilder(); + license.Append(@" # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the ""License""); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -95,65 +83,95 @@ protected override void ProcessRecord() # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- "); - sb.Append($"{Environment.NewLine}"); - sb.Append(variantGroup.ToHelpCommentOutput()); - sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); - sb.Append(variantGroup.Aliases.ToAliasOutput()); - sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); - sb.Append(variantGroup.ToCmdletBindingOutput()); - sb.Append(variantGroup.ProfileName.ToProfileOutput()); - - sb.Append("param("); - sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); - foreach (var parameterGroup in parameterGroups) + HashSet LicenseSet = new HashSet(); + foreach (var variantGroup in variantGroups) { - var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; - foreach (var parameter in parameters) + var parameterGroups = variantGroup.ParameterGroups.ToList(); + var isValidProfile = !String.IsNullOrEmpty(variantGroup.ProfileName) && variantGroup.ProfileName != NoProfiles; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, variantGroup.ProfileName) : ExamplesFolder; + var markdownInfo = new MarkdownHelpInfo(variantGroup, examplesFolder); + List examples = new List(); + foreach (var it in markdownInfo.Examples) { - sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + examples.Add(it); } - sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); - sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); - sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); - sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); - sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); - sb.Append(parameterGroup.ToDefaultInfoOutput()); - sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); - sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); - sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); - } - sb.Append($"){Environment.NewLine}{Environment.NewLine}"); - - sb.Append(variantGroup.ToBeginOutput()); - sb.Append(variantGroup.ToProcessOutput()); - sb.Append(variantGroup.ToEndOutput()); + variantGroup.HelpInfo.Examples = examples.ToArray(); + var sb = new StringBuilder(); + sb.Append($"{Environment.NewLine}"); + sb.Append(variantGroup.ToHelpCommentOutput()); + sb.Append($"function {variantGroup.CmdletName} {{{Environment.NewLine}"); + sb.Append(variantGroup.Aliases.ToAliasOutput()); + sb.Append(variantGroup.OutputTypes.ToOutputTypeOutput()); + sb.Append(variantGroup.ToCmdletBindingOutput()); + sb.Append(variantGroup.ProfileName.ToProfileOutput()); + + sb.Append("param("); + sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) + { + var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; + parameters = parameters.Where(p => !p.IsHidden()); + if (!parameters.Any()) + { + continue; + } + foreach (var parameter in parameters) + { + sb.Append(parameter.ToParameterOutput(variantGroup.HasMultipleVariants, parameterGroup.HasAllVariants)); + } + sb.Append(parameterGroup.Aliases.ToAliasOutput(true)); + sb.Append(parameterGroup.HasValidateNotNull.ToValidateNotNullOutput()); + sb.Append(parameterGroup.HasAllowEmptyArray.ToAllowEmptyArray()); + sb.Append(parameterGroup.CompleterInfo.ToArgumentCompleterOutput()); + sb.Append(parameterGroup.OrderCategory.ToParameterCategoryOutput()); + sb.Append(parameterGroup.InfoAttribute.ToInfoOutput(parameterGroup.ParameterType)); + sb.Append(parameterGroup.ToDefaultInfoOutput()); + sb.Append(parameterGroup.ParameterType.ToParameterTypeOutput()); + sb.Append(parameterGroup.Description.ToParameterDescriptionOutput()); + sb.Append(parameterGroup.ParameterName.ToParameterNameOutput(parameterGroups.IndexOf(parameterGroup) == parameterGroups.Count - 1)); + } + sb.Append($"){Environment.NewLine}{Environment.NewLine}"); - sb.Append($"}}{Environment.NewLine}"); + sb.Append(variantGroup.ToBeginOutput()); + sb.Append(variantGroup.ToProcessOutput()); + sb.Append(variantGroup.ToEndOutput()); - Directory.CreateDirectory(variantGroup.OutputFolder); - File.WriteAllText(variantGroup.FilePath, sb.ToString()); + sb.Append($"}}{Environment.NewLine}"); - File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); - } + Directory.CreateDirectory(variantGroup.OutputFolder); + File.WriteAllText(variantGroup.FilePath, license.ToString()); + File.AppendAllText(variantGroup.FilePath, sb.ToString()); + if (!LicenseSet.Contains(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"))) + { + // only add license in the header + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), license.ToString()); + LicenseSet.Add(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1")); + } + File.AppendAllText(Path.Combine(variantGroup.OutputFolder, "ProxyCmdletDefinitions.ps1"), sb.ToString()); + } - if (!ExcludeDocs) - { - var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); - foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + if (!ExcludeDocs) { - var profileName = variantGroupsByProfile.Key; - var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; - var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; - var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; - WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + var moduleInfo = new PsModuleHelpInfo(ModuleName, ModuleGuid, ModuleDescription); + foreach (var variantGroupsByProfile in variantGroups.GroupBy(vg => vg.ProfileName)) + { + var profileName = variantGroupsByProfile.Key; + var isValidProfile = !String.IsNullOrEmpty(profileName) && profileName != NoProfiles; + var docsFolder = isValidProfile ? Path.Combine(DocsFolder, profileName) : DocsFolder; + var examplesFolder = isValidProfile ? Path.Combine(ExamplesFolder, profileName) : ExamplesFolder; + WriteMarkdowns(variantGroupsByProfile, moduleInfo, docsFolder, examplesFolder); + } } } - } catch (Exception ee) { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } } } } diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs index eb69745ccd6d..1dba65cfba57 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportPsd1.cs @@ -12,114 +12,180 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.PowerShell { - [Cmdlet(VerbsData.Export, "Psd1")] - [DoNotExport] - public class ExportPsd1 : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string CustomFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string Psd1Path { get; set; } - - [Parameter(Mandatory = true)] - public Guid ModuleGuid { get; set; } - - private static readonly bool IsAzure = Convert.ToBoolean(@"true"); - private const string CustomFolderRelative = "./custom"; - private const string Indent = Psd1Indent; - - protected override void ProcessRecord() + [Cmdlet(VerbsData.Export, "Psd1")] + [DoNotExport] + public class ExportPsd1 : PSCmdlet { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } - if (!Directory.Exists(CustomFolder)) - { - throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string CustomFolder { get; set; } - string version = Convert.ToString(@"0.1.0"); - // Validate the module version should be semantic version - // Following regex is official from https://semver.org/ - Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); - if (rx.Matches(version).Count != 1) - { - throw new ArgumentException("Module-version is not a valid Semantic Version"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string Psd1Path { get; set; } - string previewVersion = null; - if (version.Contains('-')) - { - string[] versions = version.Split("-".ToCharArray(), 2); - version = versions[0]; - previewVersion = versions[1]; - } + [Parameter(Mandatory = true)] + public Guid ModuleGuid { get; set; } - var sb = new StringBuilder(); - sb.AppendLine("@{"); - sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); - sb.AppendLine($@"{Indent}RootModule = '{"./Az.ADDomainServices.psm1"}'"); - sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); - sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); - sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); - sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); - sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: AdDomainServices cmdlets"}'"); - sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); - sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); - sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.ADDomainServices.private.dll"}'"); - - var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) - .Where(f => f.EndsWith(".format.ps1xml")) - .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); - var formatList = customFormatPs1xmlFiles.Prepend("./Az.ADDomainServices.format.ps1xml").ToPsList(); - sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); - - var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); - var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); - var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); - sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); - - sb.AppendLine($@"{Indent}PrivateData = @{{"); - sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); - - if (previewVersion != null) - { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); - } - sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule AdDomainServices".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); - sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); - sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); - var profilesList = ""; - if (IsAzure && !String.IsNullOrEmpty(profilesList)) + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); + private const string CustomFolderRelative = "./custom"; + private const string Indent = Psd1Indent; + private const string Undefined = "undefined"; + private bool IsUndefined(string value) => string.Equals(Undefined, value, StringComparison.OrdinalIgnoreCase); + + protected override void ProcessRecord() { - sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + if (!Directory.Exists(CustomFolder)) + { + throw new ArgumentException($"Custom folder '{CustomFolder}' does not exist"); + } + + string version = Convert.ToString(@"0.1.0"); + // Validate the module version should be semantic version + // Following regex is official from https://semver.org/ + Regex rx = new Regex(@"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$", RegexOptions.Compiled); + if (rx.Matches(version).Count != 1) + { + throw new ArgumentException("Module-version is not a valid Semantic Version"); + } + + string previewVersion = null; + if (version.Contains('-')) + { + string[] versions = version.Split("-".ToCharArray(), 2); + version = versions[0]; + previewVersion = versions[1]; + } + + var sb = new StringBuilder(); + sb.AppendLine("@{"); + sb.AppendLine($@"{GuidStart} = '{ModuleGuid}'"); + sb.AppendLine($@"{Indent}RootModule = '{"./Az.ADDomainServices.psm1"}'"); + sb.AppendLine($@"{Indent}ModuleVersion = '{version}'"); + sb.AppendLine($@"{Indent}CompatiblePSEditions = 'Core', 'Desktop'"); + sb.AppendLine($@"{Indent}Author = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}CompanyName = '{"Microsoft Corporation"}'"); + sb.AppendLine($@"{Indent}Copyright = '{"Microsoft Corporation. All rights reserved."}'"); + sb.AppendLine($@"{Indent}Description = '{"Microsoft Azure PowerShell: AdDomainServices cmdlets"}'"); + sb.AppendLine($@"{Indent}PowerShellVersion = '5.1'"); + sb.AppendLine($@"{Indent}DotNetFrameworkVersion = '4.7.2'"); + + // RequiredModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredModules = @({"undefined"})"); + } + + // RequiredAssemblies + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}RequiredAssemblies = @({"undefined"})"); + } + else + { + sb.AppendLine($@"{Indent}RequiredAssemblies = '{"./bin/Az.ADDomainServices.private.dll"}'"); + } + + // NestedModules + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}NestedModules = @({"undefined"})"); + } + + // FormatsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FormatsToProcess = @({"undefined"})"); + } + else + { + var customFormatPs1xmlFiles = Directory.GetFiles(CustomFolder) + .Where(f => f.EndsWith(".format.ps1xml")) + .Select(f => $"{CustomFolderRelative}/{Path.GetFileName(f)}"); + var formatList = customFormatPs1xmlFiles.Prepend("./Az.ADDomainServices.format.ps1xml").ToPsList(); + sb.AppendLine($@"{Indent}FormatsToProcess = {formatList}"); + } + + // TypesToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}TypesToProcess = @({"undefined"})"); + } + + // ScriptsToProcess + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}ScriptsToProcess = @({"undefined"})"); + } + + var functionInfos = GetScriptCmdlets(ExportsFolder).ToArray(); + // FunctionsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}FunctionsToExport = @({"undefined"})"); + } + else + { + var cmdletsList = functionInfos.Select(fi => fi.Name).Distinct().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}FunctionsToExport = {cmdletsList}"); + } + + // AliasesToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}AliasesToExport = @({"undefined"})"); + } + else + { + var aliasesList = functionInfos.SelectMany(fi => fi.ScriptBlock.Attributes).ToAliasNames().Append("*").ToPsList(); + sb.AppendLine($@"{Indent}AliasesToExport = {aliasesList}"); + } + + // CmdletsToExport + if (!IsUndefined("undefined")) + { + sb.AppendLine($@"{Indent}CmdletsToExport = @({"undefined"})"); + } + + sb.AppendLine($@"{Indent}PrivateData = @{{"); + sb.AppendLine($@"{Indent}{Indent}PSData = @{{"); + + if (previewVersion != null) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + } + sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"Azure ResourceManager ARM PSModule AdDomainServices".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"https://aka.ms/azps-license"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ProjectUri = '{"https://github.com/Azure/azure-powershell"}'"); + sb.AppendLine($@"{Indent}{Indent}{Indent}ReleaseNotes = ''"); + var profilesList = ""; + if (IsAzure && !String.IsNullOrEmpty(profilesList)) + { + sb.AppendLine($@"{Indent}{Indent}{Indent}Profiles = {profilesList}"); + } + + sb.AppendLine($@"{Indent}{Indent}}}"); + sb.AppendLine($@"{Indent}}}"); + sb.AppendLine(@"}"); + + File.WriteAllText(Psd1Path, sb.ToString()); + } + catch (Exception ee) + { + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; + } } - - sb.AppendLine($@"{Indent}{Indent}}}"); - sb.AppendLine($@"{Indent}}}"); - sb.AppendLine(@"}"); - - File.WriteAllText(Psd1Path, sb.ToString()); - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } } - } } diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs index 2f5ab324e2a1..c871ebbe4430 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -57,6 +57,13 @@ protected override void ProcessRecord() } } $env = @{} +if ($UsePreviousConfigForRecord) { + $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json + $previousEnv.psobject.properties | Foreach-Object { $env[$_.Name] = $_.Value } +} +# Add script method called AddWithCache to $env, when useCache is set true, it will try to get the value from the $env first. +# example: $val = $env.AddWithCache('key', $val, $true) +$env | Add-Member -Type ScriptMethod -Value { param( [string]$key, [object]$val, [bool]$useCache) if ($this.Contains($key) -and $useCache) { return $this[$key] } else { $this[$key] = $val; return $val } } -Name 'AddWithCache' function setupEnv() { # Preload subscriptionId and tenant from context, which will be used in test # as default. You could change them if needed. @@ -94,21 +101,25 @@ function cleanupEnv() { foreach (var variantGroup in variantGroups) { var sb = new StringBuilder(); - sb.AppendLine(@"$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' -if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' -} -. ($loadEnvPath)" + sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); + sb.AppendLine(@"{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath)" ); - sb.AppendLine($@"$TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); - sb.AppendLine(@"$currentPath = $PSScriptRoot -while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent + sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@" $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName } -. ($mockingPath | Select-Object -First 1).FullName "); + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); var variants = variantGroup.Variants .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs index 9fc94b62a650..7cf9c55315ec 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Cmdlets/GetScriptCmdlet.cs @@ -45,7 +45,8 @@ protected override void ProcessRecord() } catch (System.Exception ee) { - System.Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + System.Console.Error.WriteLine($"{ee.GetType().Name}: {ee.Message}"); + System.Console.Error.WriteLine(ee.StackTrace); throw ee; } } diff --git a/src/ADDomainServices/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/ADDomainServices/generated/runtime/BuildTime/MarkdownRenderer.cs index ccfdfaae405c..22702383dc77 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -53,13 +53,6 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod sb.Append(parameter.ToHelpParameterOutput()); } } - if (markdownInfo.SupportsPaging) - { - foreach (var parameter in SupportsPagingParameters) - { - sb.Append(parameter.ToHelpParameterOutput()); - } - } sb.Append($"### CommonParameters{Environment.NewLine}This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).{Environment.NewLine}{Environment.NewLine}"); @@ -79,7 +72,7 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod sb.Append($"ALIASES{Environment.NewLine}{Environment.NewLine}"); foreach (var alias in markdownInfo.Aliases) { - sb.Append($"### {alias}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"{alias}{Environment.NewLine}{Environment.NewLine}"); } if (markdownInfo.ComplexInterfaceInfos.Any()) { diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs index afc65520dfdd..9d2c76f32da6 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpMarkdownOutputs.cs @@ -52,6 +52,17 @@ public override string ToString() internal class HelpExampleOutput { + private string ExampleTemplate = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + Environment.NewLine; + + private string ExampleTemplateWithOutput = + "{0}{1}" + Environment.NewLine + + "{2}" + Environment.NewLine + "{3}" + Environment.NewLine + "{4}" + Environment.NewLine + Environment.NewLine + + "{5}" + Environment.NewLine + "{6}" + Environment.NewLine + "{7}" + Environment.NewLine + Environment.NewLine + + "{8}" + Environment.NewLine + Environment.NewLine; + public MarkdownExampleHelpInfo ExampleInfo { get; } public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) @@ -59,17 +70,26 @@ public HelpExampleOutput(MarkdownExampleHelpInfo exampleInfo) ExampleInfo = exampleInfo; } - public override string ToString() => $@"{ExampleNameHeader}{ExampleInfo.Name} -{ExampleCodeHeader} -{ExampleInfo.Code} -{ExampleCodeFooter} - -{ExampleInfo.Description.ToDescriptionFormat()} - -"; + public override string ToString() + { + if (string.IsNullOrEmpty(ExampleInfo.Output)) + { + return string.Format(ExampleTemplate, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleInfo.Description.ToDescriptionFormat()); + } + else + { + return string.Format(ExampleTemplateWithOutput, + ExampleNameHeader, ExampleInfo.Name, + ExampleCodeHeader, ExampleInfo.Code, ExampleCodeFooter, + ExampleOutputHeader, ExampleInfo.Output, ExampleOutputFooter, + ExampleInfo.Description.ToDescriptionFormat()); ; + } + } } - - + internal class HelpParameterOutput { public MarkdownParameterHelpInfo ParameterInfo { get; } @@ -113,7 +133,7 @@ internal class ModulePageMetadataOutput { public PsModuleHelpInfo ModuleInfo { get; } - private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/en-us/powershell/module/"; + private static string HelpLinkPrefix { get; } = @"https://docs.microsoft.com/powershell/module/"; public ModulePageMetadataOutput(PsModuleHelpInfo moduleInfo) { @@ -141,7 +161,7 @@ public ModulePageCmdletOutput(MarkdownHelpInfo helpInfo) } public override string ToString() => $@"### [{HelpInfo.CmdletName}]({HelpInfo.CmdletName}.md) -{HelpInfo.Description.ToDescriptionFormat()} +{HelpInfo.Synopsis.ToDescriptionFormat()} "; } @@ -161,6 +181,8 @@ public static string ToDescriptionFormat(this string text, bool escapeAngleBrack public const string ExampleNameHeader = "### "; public const string ExampleCodeHeader = "```powershell"; public const string ExampleCodeFooter = "```"; + public const string ExampleOutputHeader = "```output"; + public const string ExampleOutputFooter = "```"; public static HelpMetadataOutput ToHelpMetadataOutput(this MarkdownHelpInfo helpInfo) => new HelpMetadataOutput(helpInfo); diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs index 6349b5f2f3a1..81393e25bf14 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsHelpTypes.cs @@ -109,18 +109,21 @@ internal class PsHelpExampleInfo { public string Title { get; } public string Code { get; } + public string Output { get; } public string Remarks { get; } public PsHelpExampleInfo(PSObject exampleObject) { Title = exampleObject.GetProperty("title"); Code = exampleObject.GetProperty("code"); + Output = exampleObject.GetProperty("output"); Remarks = exampleObject.GetProperty("remarks").EmptyIfNull().ToDescriptionText(); } public PsHelpExampleInfo(MarkdownExampleHelpInfo markdownExample) { Title = markdownExample.Name; Code = markdownExample.Code; + Output = markdownExample.Output; Remarks = markdownExample.Description; } diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs index 3cb3507cda09..4ffaa393efd5 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsMarkdownTypes.cs @@ -39,7 +39,7 @@ internal class MarkdownHelpInfo public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string externalHelpFilename = "") { ExternalHelpFilename = externalHelpFilename; - ModuleName = variantGroup.ModuleName; + ModuleName = variantGroup.RootModuleName != "" ? variantGroup.RootModuleName : variantGroup.ModuleName; var helpInfo = variantGroup.HelpInfo; var commentInfo = variantGroup.CommentInfo; Schema = Version.Parse("2.0.0"); @@ -52,12 +52,12 @@ public MarkdownHelpInfo(VariantGroup variantGroup, string examplesFolder, string SyntaxInfos = variantGroup.Variants .Select(v => new MarkdownSyntaxHelpInfo(v, variantGroup.ParameterGroups, v.VariantName == variantGroup.DefaultParameterSetName)) .OrderByDescending(v => v.IsDefault).ThenBy(v => v.ParameterSetName).ToArray(); - Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() + Examples = GetExamplesFromMarkdown(examplesFolder).NullIfEmpty() ?? helpInfo.Examples.Select(e => e.ToExampleHelpInfo()).ToArray().NullIfEmpty() ?? DefaultExampleHelpInfos; Parameters = variantGroup.ParameterGroups - .Where(pg => !pg.DontShow) + .Where(pg => !pg.DontShow && !pg.Parameters.All(p => p.IsHidden())) .Select(pg => new MarkdownParameterHelpInfo( variantGroup.Variants.SelectMany(v => v.HelpInfo.Parameters).Where(phi => phi.Name == pg.ParameterName).ToArray(), pg)) .OrderBy(phi => phi.Name).ToArray(); @@ -91,12 +91,17 @@ private MarkdownExampleHelpInfo[] GetExamplesFromMarkdown(string examplesFolder) var code = codeStartIndex.HasValue && codeEndIndex.HasValue ? String.Join(Environment.NewLine, eg.Skip(codeStartIndex.Value + 1).Take(codeEndIndex.Value - (codeStartIndex.Value + 1))) : String.Empty; - var descriptionStartIndex = (codeEndIndex ?? 0) + 1; + var outputStartIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputHeader) ? (int?)i : null).FirstOrDefault(i => i.HasValue); + var outputEndIndex = eg.Select((l, i) => l.StartsWith(ExampleOutputFooter) ? (int?)i : null).FirstOrDefault(i => i.HasValue && i > outputStartIndex); + var output = outputStartIndex.HasValue && outputEndIndex.HasValue + ? String.Join(Environment.NewLine, eg.Skip(outputStartIndex.Value + 1).Take(outputEndIndex.Value - (outputStartIndex.Value + 1))) + : String.Empty; + var descriptionStartIndex = (outputEndIndex ?? (codeEndIndex ?? 0)) + 1; descriptionStartIndex = String.IsNullOrWhiteSpace(eg[descriptionStartIndex]) ? descriptionStartIndex + 1 : descriptionStartIndex; var descriptionEndIndex = eg.Length - 1; descriptionEndIndex = String.IsNullOrWhiteSpace(eg[descriptionEndIndex]) ? descriptionEndIndex - 1 : descriptionEndIndex; var description = String.Join(Environment.NewLine, eg.Skip(descriptionStartIndex).Take((descriptionEndIndex + 1) - descriptionStartIndex)); - return new MarkdownExampleHelpInfo(name, code, description); + return new MarkdownExampleHelpInfo(name, code, output, description); }).ToArray(); } } @@ -115,7 +120,7 @@ public MarkdownSyntaxHelpInfo(Variant variant, ParameterGroup[] parameterGroups, IsDefault = isDefault; ParameterSetName = Variant.VariantName; Parameters = Variant.Parameters - .Where(p => !p.DontShow).OrderByDescending(p => p.IsMandatory) + .Where(p => !p.DontShow && !p.IsHidden()).OrderByDescending(p => p.IsMandatory) //https://stackoverflow.com/a/6461526/294804 .ThenByDescending(p => p.Position.HasValue).ThenBy(p => p.Position) // Use the OrderCategory of the parameter group because the final order category is the highest of the group, and not the order category of the individual parameters from the variants. @@ -132,10 +137,6 @@ private string CreateSyntaxFormat() { parameterStrings = parameterStrings.Append(" [-Confirm]").Append(" [-WhatIf]"); } - if (Variant.SupportsPaging) - { - parameterStrings = parameterStrings.Append(" [-First ]").Append(" [-IncludeTotalCount]").Append(" [-Skip ]"); - } parameterStrings = parameterStrings.Append(" []"); var lines = new List(20); @@ -158,12 +159,14 @@ internal class MarkdownExampleHelpInfo { public string Name { get; } public string Code { get; } + public string Output { get; } public string Description { get; } - public MarkdownExampleHelpInfo(string name, string code, string description) + public MarkdownExampleHelpInfo(string name, string code, string output, string description) { Name = name; Code = code; + Output = output; Description = description; } } @@ -217,12 +220,12 @@ public MarkdownParameterHelpInfo(PsParameterHelpInfo[] parameterHelpInfos, Param internal static class MarkdownTypesExtensions { - public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Remarks); + public static MarkdownExampleHelpInfo ToExampleHelpInfo(this PsHelpExampleInfo exampleInfo) => new MarkdownExampleHelpInfo(exampleInfo.Title, exampleInfo.Code, exampleInfo.Output, exampleInfo.Remarks); public static MarkdownExampleHelpInfo[] DefaultExampleHelpInfos = { - new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}"), - new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"PS C:\> {{{{ Add code here }}}}{Environment.NewLine}{Environment.NewLine}{{{{ Add output here }}}}", @"{{ Add description here }}") + new MarkdownExampleHelpInfo("Example 1: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), + new MarkdownExampleHelpInfo("Example 2: {{ Add title here }}", $@"{{{{ Add code here }}}}", $@"{{{{ Add output here }}}}", @"{{ Add description here }}"), }; public static MarkdownParameterHelpInfo[] SupportsShouldProcessParameters = diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index abe948701f62..a21929046f66 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -96,6 +96,17 @@ public ValidateNotNullOutput(bool hasValidateNotNull) public override string ToString() => HasValidateNotNull ? $"{Indent}[ValidateNotNull()]{Environment.NewLine}" : String.Empty; } + internal class AllowEmptyArrayOutput + { + public bool HasAllowEmptyArray { get; } + + public AllowEmptyArrayOutput(bool hasAllowEmptyArray) + { + HasAllowEmptyArray = hasAllowEmptyArray; + } + + public override string ToString() => HasAllowEmptyArray ? $"{Indent}[AllowEmptyCollection()]{Environment.NewLine}" : String.Empty; + } internal class ArgumentCompleterOutput { public CompleterInfo CompleterInfo { get; } @@ -157,15 +168,56 @@ public ParameterNameOutput(string parameterName, bool isLast) public override string ToString() => $"{Indent}${{{ParameterName}}}{(IsLast ? String.Empty : $",{Environment.NewLine}")}{Environment.NewLine}"; } - internal class BeginOutput + internal class BaseOutput { public VariantGroup VariantGroup { get; } - public BeginOutput(VariantGroup variantGroup) + protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; } + public string ClearTelemetryContext() + { + return (!VariantGroup.IsInternal && IsAzure) ? $@"{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()" : ""; + } + } + + internal class BeginOutput : BaseOutput + { + public BeginOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + public string GetProcessCustomAttributesAtRuntime() + { + return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; + } + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}}} +{Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}$internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}{Indent}if ($internalCalledCmdlets -eq '') {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} else {{ +{Indent}{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name +{Indent}{Indent}{Indent}}} +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' +{Indent}{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"begin {{ {Indent}try {{ {Indent}{Indent}$outBuffer = $null @@ -173,12 +225,15 @@ public override string ToString() => $@"begin {{ {Indent}{Indent}{Indent}$PSBoundParameters['OutBuffer'] = 1 {Indent}{Indent}}} {Indent}{Indent}$parameterSet = $PSCmdlet.ParameterSetName +{GetTelemetry()} {GetParameterSetToCmdletMapping()}{GetDefaultValuesStatements()} +{GetProcessCustomAttributesAtRuntime()} {Indent}{Indent}$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) {Indent}{Indent}$scriptCmd = {{& $wrappedCmd @PSBoundParameters}} {Indent}{Indent}$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) {Indent}{Indent}$steppablePipeline.Begin($PSCmdlet) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} }} @@ -215,28 +270,69 @@ private string GetDefaultValuesStatements() } } - internal class ProcessOutput + internal class ProcessOutput : BaseOutput { + public ProcessOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetFinally() + { + if (IsAzure && !VariantGroup.IsInternal) + { + return $@" +{Indent}finally {{ +{Indent}{Indent}$backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId +{Indent}{Indent}$backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}}} +"; + } + return ""; + } public override string ToString() => $@"process {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.Process($_) {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} +{GetFinally()} }} - "; } - internal class EndOutput + internal class EndOutput : BaseOutput { + public EndOutput(VariantGroup variantGroup) : base(variantGroup) + { + } + + private string GetTelemetry() + { + if (!VariantGroup.IsInternal && IsAzure) + { + return $@" +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets +{Indent}{Indent}if ($preTelemetryId -eq '') {{ +{Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() +{Indent}{Indent}}} +{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId +"; + } + return ""; + } public override string ToString() => $@"end {{ {Indent}try {{ {Indent}{Indent}$steppablePipeline.End() +{GetTelemetry()} {Indent}}} catch {{ +{ClearTelemetryContext()} {Indent}{Indent}throw {Indent}}} -}} +}} "; } @@ -290,7 +386,7 @@ public ParameterDescriptionOutput(string description) public override string ToString() => !String.IsNullOrEmpty(Description) ? Description.ToDescriptionFormat(false).NormalizeNewLines() - .Split(new [] { Environment.NewLine }, StringSplitOptions.None) + .Split(new[] { Environment.NewLine }, StringSplitOptions.None) .Aggregate(String.Empty, (c, n) => c + $"{Indent}# {n}{Environment.NewLine}") : String.Empty; } @@ -366,7 +462,7 @@ internal class PropertySyntaxOutput public Type ParameterType { get; } public bool IsMandatory { get; } public int? Position { get; } - + public bool IncludeSpace { get; } public bool IncludeDash { get; } @@ -432,7 +528,7 @@ public static string ToPsType(this Type type) // https://stackoverflow.com/a/5284606/294804 private static string RemoveEnd(this string text, string suffix) => text.EndsWith(suffix) ? text.Substring(0, text.Length - suffix.Length) : text; - public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new []{"
", "\r\n", "\n"}); + public static string ToPsSingleLine(this string value, string replacer = " ") => value.ReplaceNewLines(replacer, new[] { "
", "\r\n", "\n" }); public static string ToPsStringLiteral(this string value) => value?.Replace("'", "''").Replace("‘", "''").Replace("’", "''").ToPsSingleLine().Trim() ?? String.Empty; @@ -465,6 +561,8 @@ public static string ToSyntaxTypeName(this Type type) public static ValidateNotNullOutput ToValidateNotNullOutput(this bool hasValidateNotNull) => new ValidateNotNullOutput(hasValidateNotNull); + public static AllowEmptyArrayOutput ToAllowEmptyArray(this bool hasAllowEmptyArray) => new AllowEmptyArrayOutput(hasAllowEmptyArray); + public static ArgumentCompleterOutput ToArgumentCompleterOutput(this CompleterInfo completerInfo) => new ArgumentCompleterOutput(completerInfo); public static DefaultInfoOutput ToDefaultInfoOutput(this ParameterGroup parameterGroup) => new DefaultInfoOutput(parameterGroup); @@ -475,9 +573,9 @@ public static string ToSyntaxTypeName(this Type type) public static BeginOutput ToBeginOutput(this VariantGroup variantGroup) => new BeginOutput(variantGroup); - public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(); + public static ProcessOutput ToProcessOutput(this VariantGroup variantGroup) => new ProcessOutput(variantGroup); - public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(); + public static EndOutput ToEndOutput(this VariantGroup variantGroup) => new EndOutput(variantGroup); public static HelpCommentOutput ToHelpCommentOutput(this VariantGroup variantGroup) => new HelpCommentOutput(variantGroup); @@ -497,7 +595,7 @@ public static string ToSyntaxTypeName(this Type type) public static string ToNoteOutput(this ComplexInterfaceInfo complexInterfaceInfo, string currentIndent = "", bool includeDashes = false, bool includeBackticks = false, bool isFirst = true) { - string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => + string RenderProperty(ComplexInterfaceInfo info, string indent, bool dash, bool backtick) => $"{indent}{(dash ? "- " : String.Empty)}{(backtick ? "`" : String.Empty)}{info.ToPropertySyntaxOutput()}{(backtick ? "`" : String.Empty)}: {info.Description}"; var nested = complexInterfaceInfo.NestedInfos.Select(ni => diff --git a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 260b44c7124a..038ac9fadddf 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -30,6 +30,8 @@ public ProfileGroup(Variant[] variants, string profileName = NoProfiles) internal class VariantGroup { public string ModuleName { get; } + + public string RootModuleName {get => @"";} public string CmdletName { get; } public string CmdletVerb { get; } public string CmdletNoun { get; } @@ -171,6 +173,7 @@ internal class ParameterGroup public string[] Aliases { get; } public bool HasValidateNotNull { get; } + public bool HasAllowEmptyArray { get; } public CompleterInfo CompleterInfo { get; } public DefaultInfo DefaultInfo { get; } public bool HasDefaultInfo { get; } @@ -205,6 +208,7 @@ public ParameterGroup(string parameterName, Parameter[] parameters, string[] all Aliases = Parameters.SelectMany(p => p.Attributes).ToAliasNames().ToArray(); HasValidateNotNull = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); + HasAllowEmptyArray = Parameters.SelectMany(p => p.Attributes.OfType()).Any(); CompleterInfo = Parameters.Select(p => p.CompleterInfoAttribute).FirstOrDefault()?.ToCompleterInfo() ?? Parameters.Select(p => p.ArgumentCompleterAttribute).FirstOrDefault()?.ToCompleterInfo(); DefaultInfo = Parameters.Select(p => p.DefaultInfoAttribute).FirstOrDefault()?.ToDefaultInfo(this) @@ -363,7 +367,7 @@ internal class CommentInfo public string OnlineVersion { get; } public string[] RelatedLinks { get; } - private const string HelpLinkPrefix = @"https://docs.microsoft.com/en-us/powershell/module/"; + private const string HelpLinkPrefix = @"https://docs.microsoft.com/powershell/module/"; public CommentInfo(VariantGroup variantGroup) { @@ -383,7 +387,9 @@ public CommentInfo(VariantGroup variantGroup) helpInfo.OutputTypes.Where(it => it.Name.NullIfWhiteSpace() != null).Select(ot => ot.Name).ToArray()) .Where(o => o != "None").Distinct().OrderBy(o => o).ToArray(); - OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{variantGroup.ModuleName.ToLowerInvariant()}/{variantGroup.CmdletName.ToLowerInvariant()}"; + // Use root module name in the help link + var moduleName = variantGroup.RootModuleName == "" ? variantGroup.ModuleName.ToLowerInvariant() : variantGroup.RootModuleName.ToLowerInvariant(); + OnlineVersion = helpInfo.OnlineVersion?.Uri.NullIfEmpty() ?? $@"{HelpLinkPrefix}{moduleName}/{variantGroup.CmdletName.ToLowerInvariant()}"; RelatedLinks = helpInfo.RelatedLinks.Select(rl => rl.Text).ToArray(); } } @@ -466,12 +472,21 @@ public static Parameter[] ToParameters(this Variant variant) { var parameters = variant.Metadata.Parameters.AsEnumerable(); var parameterHelp = variant.HelpInfo.Parameters.AsEnumerable(); + if (variant.HasParameterSets) { parameters = parameters.Where(p => p.Value.ParameterSets.Keys.Any(k => k == variant.VariantName || k == AllParameterSets)); - parameterHelp = parameterHelp.Where(ph => !ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)); + parameterHelp = parameterHelp.Where(ph => (!ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)) && ph.Name != "IncludeTotalCount"); + } + var result = parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))); + if (variant.SupportsPaging) { + // If supportsPaging is set, we will need to add First and Skip parameters since they are treated as common parameters which as not contained on Metadata>parameters + variant.Info.Parameters["First"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Gets only the first 'n' objects."; + variant.Info.Parameters["Skip"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Ignores the first 'n' objects and then gets the remaining objects."; + result = result.Append(new Parameter(variant.VariantName, "First", variant.Info.Parameters["First"], parameterHelp.FirstOrDefault(ph => ph.Name == "First"))); + result = result.Append(new Parameter(variant.VariantName, "Skip", variant.Info.Parameters["Skip"], parameterHelp.FirstOrDefault(ph => ph.Name == "Skip"))); } - return parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))).ToArray(); + return result.ToArray(); } public static Attribute[] ToAttributes(this Variant variant) => variant.IsFunction diff --git a/src/ADDomainServices/generated/runtime/BuildTime/PsAttributes.cs b/src/ADDomainServices/generated/runtime/BuildTime/PsAttributes.cs index 4ec4fea4eee5..93e99c7ac2ad 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/PsAttributes.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/PsAttributes.cs @@ -17,7 +17,7 @@ public DescriptionAttribute(string description) } } - [AttributeUsage(AttributeTargets.Class)] + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)] public class DoNotExportAttribute : Attribute { } diff --git a/src/ADDomainServices/generated/runtime/BuildTime/PsExtensions.cs b/src/ADDomainServices/generated/runtime/BuildTime/PsExtensions.cs index 4a2fff9fe854..6bb614c630d8 100644 --- a/src/ADDomainServices/generated/runtime/BuildTime/PsExtensions.cs +++ b/src/ADDomainServices/generated/runtime/BuildTime/PsExtensions.cs @@ -156,5 +156,14 @@ public static IEnumerable RunScript(this EngineIntrinsics engineIntrinsics public static void RunScript(this EngineIntrinsics engineIntrinsics, ScriptBlock block) => engineIntrinsics.RunScript(block.ToString()); + + /// + /// Returns if a parameter should be hidden by checking for . + /// + /// A PowerShell parameter. + public static bool IsHidden(this Parameter parameter) + { + return parameter.Attributes.Any(attr => attr is DoNotExportAttribute); + } } } diff --git a/src/ADDomainServices/generated/runtime/Customizations/IJsonSerializable.cs b/src/ADDomainServices/generated/runtime/Customizations/IJsonSerializable.cs index 8b9b62824ce3..1daacd1685cc 100644 --- a/src/ADDomainServices/generated/runtime/Customizations/IJsonSerializable.cs +++ b/src/ADDomainServices/generated/runtime/Customizations/IJsonSerializable.cs @@ -75,12 +75,18 @@ private static JsonNode ToJsonValue(ValueType vValue) return new JsonBoolean(bValue); } - // dates + // dates if (vValue is DateTime dtValue) { return new JsonDate(dtValue); } + // DictionaryEntity struct type + if (vValue is System.Collections.DictionaryEntry deValue) + { + return new JsonObject { { deValue.Key.ToString(), ToJsonValue(deValue.Value) } }; + } + // sorry, no idea. return null; } @@ -113,7 +119,7 @@ private static JsonNode TryToJsonValue(dynamic oValue) // if we got something out, let's use it. if (null != jsonValue) { - // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? + // JsonNumber is really a literal json value. Just don't try to cast that back to an actual number, ok? return new JsonNumber(jsonValue.ToString()); } @@ -123,11 +129,11 @@ private static JsonNode TryToJsonValue(dynamic oValue) /// /// Serialize an object by using a variety of methods. /// - /// the object to be serialized. + /// the object to be serialized. /// the serialized JsonNode (if successful), otherwise, null internal static JsonNode ToJsonValue(object value) { - // things that implement our interface are preferred. + // things that implement our interface are preferred. if (value is Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.IJsonSerializable jsonSerializable) { return jsonSerializable.ToJson(); @@ -139,7 +145,7 @@ internal static JsonNode ToJsonValue(object value) return new JsonString(value.ToString()); } - // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) + // value types are fairly straightforward (fallback to ToJson()/ToJsonString() or literal JsonString ) if (value is System.ValueType vValue) { return ToJsonValue(vValue) ?? TryToJsonValue(vValue) ?? new JsonString(vValue.ToString()); @@ -151,7 +157,15 @@ internal static JsonNode ToJsonValue(object value) return Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.JsonSerializable.ToJson(dictionary, null); } - // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) + // hashtables are converted to dictionaries for serialization + if (value is System.Collections.Hashtable hashtable) + { + var dict = new System.Collections.Generic.Dictionary(); + DictionaryExtensions.HashTableToDictionary(hashtable, dict); + return Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.JsonSerializable.ToJson(dict, null); + } + + // enumerable collections are handled like arrays (again, fallback to ToJson()/ToJsonString() or literal JsonString) if (value is System.Collections.IEnumerable enumerableValue) { // some kind of enumerable value @@ -177,7 +191,7 @@ internal static JsonObject ToJson(System.Collections.Generic.IDictionary(System.Collections.Hashtable hashtable, System.Collections.Generic.IDictionary dictionary) { + if (null == hashtable) + { + return; + } foreach (var each in hashtable.Keys) { var key = each.ToString(); var value = hashtable[key]; if (null != value) { - if (value is System.Collections.Hashtable nested) + try { - HashTableToDictionary(nested, new System.Collections.Generic.Dictionary()); + dictionary[key] = (V)value; } - else + catch { - try - { - dictionary[key] = (V)value; - } - catch - { - // Values getting dropped; not compatible with target dictionary. Not sure what to do here. - } + // Values getting dropped; not compatible with target dictionary. Not sure what to do here. } } } diff --git a/src/ADDomainServices/generated/runtime/EventDataExtensions.cs b/src/ADDomainServices/generated/runtime/EventDataExtensions.cs index 33e53775bf91..3285a7efcd29 100644 --- a/src/ADDomainServices/generated/runtime/EventDataExtensions.cs +++ b/src/ADDomainServices/generated/runtime/EventDataExtensions.cs @@ -7,7 +7,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime { using System; - [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] /// /// PowerShell-specific data on top of the llc# EventData /// @@ -16,6 +15,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime /// Obviously, this code would need to be duplcated on both modules. /// This is preferable to sharing a common library, as versioning makes that problematic. /// + [System.ComponentModel.TypeConverter(typeof(EventDataConverter))] public partial class EventData : EventArgs { } diff --git a/src/ADDomainServices/generated/runtime/Extensions.cs b/src/ADDomainServices/generated/runtime/Extensions.cs index 0400e64071c4..aed77acd9d4a 100644 --- a/src/ADDomainServices/generated/runtime/Extensions.cs +++ b/src/ADDomainServices/generated/runtime/Extensions.cs @@ -5,9 +5,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime { using System.Linq; + using System; internal static partial class Extensions { + public static T[] SubArray(this T[] array, int offset, int length) + { + return new ArraySegment(array, offset, length) + .ToArray(); + } public static T ReadHeaders(this T instance, global::System.Net.Http.Headers.HttpResponseHeaders headers) where T : class { @@ -50,7 +56,7 @@ internal static void AddIf(T value, string serializedName, System.Actionthe HttpResponseMessage to fetch a header from /// the header name /// the first header value as a string from an HttpReponseMessage. string.empty if there is no header value matching - internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => headerName == each.Key).Value?.FirstOrDefault() ?? string.Empty; + internal static string GetFirstHeader(this System.Net.Http.HttpResponseMessage response, string headerName) => response.Headers.FirstOrDefault(each => string.Equals(headerName, each.Key, System.StringComparison.OrdinalIgnoreCase)).Value?.FirstOrDefault() ?? string.Empty; /// /// Sets the Synchronization Context to null, and returns an IDisposable that when disposed, diff --git a/src/ADDomainServices/generated/runtime/IAssociativeArray.cs b/src/ADDomainServices/generated/runtime/IAssociativeArray.cs index f6c5ea9d6e11..92f6cbedbc30 100644 --- a/src/ADDomainServices/generated/runtime/IAssociativeArray.cs +++ b/src/ADDomainServices/generated/runtime/IAssociativeArray.cs @@ -2,16 +2,19 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +#define DICT_PROPERTIES namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime { /// A subset of IDictionary that doesn't implement IEnumerable or IDictionary to work around PowerShell's aggressive formatter public interface IAssociativeArray { +#if DICT_PROPERTIES System.Collections.Generic.IEnumerable Keys { get; } System.Collections.Generic.IEnumerable Values { get; } + int Count { get; } +#endif System.Collections.Generic.IDictionary AdditionalProperties { get; } T this[string index] { get; set; } - int Count { get; } void Add(string key, T value); bool ContainsKey(string key); bool Remove(string key); diff --git a/src/ADDomainServices/generated/runtime/ISendAsync.cs b/src/ADDomainServices/generated/runtime/ISendAsync.cs index 9586dda11eb8..ac926d3b0e97 100644 --- a/src/ADDomainServices/generated/runtime/ISendAsync.cs +++ b/src/ADDomainServices/generated/runtime/ISendAsync.cs @@ -238,6 +238,8 @@ internal static Task CloneWithContentAndDispose(this HttpReq /// Clones an HttpRequestMessage (without the content) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static HttpRequestMessage Clone(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { @@ -252,9 +254,9 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste { clone.Properties.Add(prop); } - + foreach (KeyValuePair> header in original.Headers) - { + { /* **temporarily skip cloning telemetry related headers** clone.Headers.TryAddWithoutValidation(header.Key, header.Value); @@ -264,7 +266,7 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste clone.Headers.TryAddWithoutValidation(header.Key, header.Value); } } - + return clone; } @@ -272,6 +274,8 @@ internal static HttpRequestMessage Clone(this HttpRequestMessage original, Syste /// Clones an HttpRequestMessage (including the content stream and content headers) /// /// Original HttpRequestMessage (Will be diposed before returning) + /// + /// /// A clone of the HttpRequestMessage internal static async Task CloneWithContent(this HttpRequestMessage original, System.Uri requestUri = null, System.Net.Http.HttpMethod method = null) { diff --git a/src/ADDomainServices/generated/runtime/MessageAttribute.cs b/src/ADDomainServices/generated/runtime/MessageAttribute.cs new file mode 100644 index 000000000000..00cc67ab8549 --- /dev/null +++ b/src/ADDomainServices/generated/runtime/MessageAttribute.cs @@ -0,0 +1,360 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ +namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime +{ + using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.generated.runtime.Properties; + using System; + using System.Collections.Generic; + using System.Globalization; + using System.Linq; + using System.Management.Automation; + using System.Text; + + [AttributeUsage(AttributeTargets.All)] + public class GenericBreakingChangeAttribute : Attribute + { + private string _message; + //A dexcription of what the change is about, non mandatory + public string ChangeDescription { get; set; } = null; + + //The version the change is effective from, non mandatory + public string DeprecateByVersion { get; } + public bool DeprecateByVersionSet { get; } = false; + + //The date on which the change comes in effect + public DateTime ChangeInEfectByDate { get; } + public bool ChangeInEfectByDateSet { get; } = false; + + //Old way of calling the cmdlet + public string OldWay { get; set; } + //New way fo calling the cmdlet + public string NewWay { get; set; } + + public GenericBreakingChangeAttribute(string message) + { + _message = message; + } + + public GenericBreakingChangeAttribute(string message, string deprecateByVersion) + { + _message = message; + this.DeprecateByVersion = deprecateByVersion; + this.DeprecateByVersionSet = true; + } + + public GenericBreakingChangeAttribute(string message, string deprecateByVersion, string changeInEfectByDate) + { + _message = message; + this.DeprecateByVersion = deprecateByVersion; + this.DeprecateByVersionSet = true; + + if (DateTime.TryParse(changeInEfectByDate, new CultureInfo("en-US"), DateTimeStyles.None, out DateTime result)) + { + this.ChangeInEfectByDate = result; + this.ChangeInEfectByDateSet = true; + } + } + + public DateTime getInEffectByDate() + { + return this.ChangeInEfectByDate.Date; + } + + + /** + * This function prints out the breaking change message for the attribute on the cmdline + * */ + public void PrintCustomAttributeInfo(Action writeOutput) + { + + if (!GetAttributeSpecificMessage().StartsWith(Environment.NewLine)) + { + writeOutput(Environment.NewLine); + } + writeOutput(string.Format(Resources.BreakingChangesAttributesDeclarationMessage, GetAttributeSpecificMessage())); + + + if (!string.IsNullOrWhiteSpace(ChangeDescription)) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesChangeDescriptionMessage, this.ChangeDescription)); + } + + if (ChangeInEfectByDateSet) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByDateMessage, this.ChangeInEfectByDate.ToString("d"))); + } + + if (DeprecateByVersionSet) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesInEffectByVersion, this.DeprecateByVersion)); + } + + if (OldWay != null && NewWay != null) + { + writeOutput(string.Format(Resources.BreakingChangesAttributesUsageChangeMessageConsole, OldWay, NewWay)); + } + } + + public virtual bool IsApplicableToInvocation(InvocationInfo invocation) + { + return true; + } + + protected virtual string GetAttributeSpecificMessage() + { + return _message; + } + } + + [AttributeUsage(AttributeTargets.All)] + public class CmdletBreakingChangeAttribute : GenericBreakingChangeAttribute + { + + public string ReplacementCmdletName { get; set; } + + public CmdletBreakingChangeAttribute() : + base(string.Empty) + { + } + + public CmdletBreakingChangeAttribute(string deprecateByVersione) : + base(string.Empty, deprecateByVersione) + { + } + + public CmdletBreakingChangeAttribute(string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByVersion, changeInEfectByDate) + { + } + + protected override string GetAttributeSpecificMessage() + { + if (string.IsNullOrWhiteSpace(ReplacementCmdletName)) + { + return Resources.BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement; + } + else + { + return string.Format(Resources.BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement, ReplacementCmdletName); + } + } + } + + [AttributeUsage(AttributeTargets.All)] + public class ParameterSetBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string[] ChangedParameterSet { set; get; } + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet) : + base(string.Empty) + { + ChangedParameterSet = changedParameterSet; + } + + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersione) : + base(string.Empty, deprecateByVersione) + { + ChangedParameterSet = changedParameterSet; + } + + public ParameterSetBreakingChangeAttribute(string[] changedParameterSet, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByVersion, changeInEfectByDate) + { + ChangedParameterSet = changedParameterSet; + } + + protected override string GetAttributeSpecificMessage() + { + + return Resources.BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement; + + } + + public bool IsApplicableToInvocation(InvocationInfo invocation, string parameterSetName) + { + if (ChangedParameterSet != null) + return ChangedParameterSet.Contains(parameterSetName); + return false; + } + + } + + [AttributeUsage(AttributeTargets.All)] + public class PreviewMessageAttribute : Attribute + { + public string _message; + + public PreviewMessageAttribute() + { + this._message = Resources.PreviewCmdletMessage; + } + + public PreviewMessageAttribute(string message) + { + this._message = message; + } + + public void PrintCustomAttributeInfo(System.Management.Automation.PSCmdlet psCmdlet) + { + psCmdlet.WriteWarning(this._message); + } + + public virtual bool IsApplicableToInvocation(InvocationInfo invocation) + { + return true; + } + } + + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)] + public class ParameterBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string NameOfParameterChanging { get; } + + public string ReplaceMentCmdletParameterName { get; set; } = null; + + public bool IsBecomingMandatory { get; set; } = false; + + public String OldParamaterType { get; set; } + + public String NewParameterType { get; set; } + + public ParameterBreakingChangeAttribute(string nameOfParameterChanging) : + base(string.Empty) + { + this.NameOfParameterChanging = nameOfParameterChanging; + } + + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion) : + base(string.Empty, deprecateByVersion) + { + this.NameOfParameterChanging = nameOfParameterChanging; + } + + public ParameterBreakingChangeAttribute(string nameOfParameterChanging, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByVersion, changeInEfectByDate) + { + this.NameOfParameterChanging = nameOfParameterChanging; + } + + protected override string GetAttributeSpecificMessage() + { + StringBuilder message = new StringBuilder(); + if (!string.IsNullOrWhiteSpace(ReplaceMentCmdletParameterName)) + { + if (IsBecomingMandatory) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplacedMandatory, NameOfParameterChanging, ReplaceMentCmdletParameterName)); + } + else + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterReplaced, NameOfParameterChanging, ReplaceMentCmdletParameterName)); + } + } + else + { + if (IsBecomingMandatory) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterMandatoryNow, NameOfParameterChanging)); + } + else + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterChanging, NameOfParameterChanging)); + } + } + + //See if the type of the param is changing + if (OldParamaterType != null && !string.IsNullOrWhiteSpace(NewParameterType)) + { + message.Append(string.Format(Resources.BreakingChangeAttributeParameterTypeChange, OldParamaterType, NewParameterType)); + } + return message.ToString(); + } + + /// + /// See if the bound parameters contain the current parameter, if they do + /// then the attribbute is applicable + /// If the invocationInfo is null we return true + /// + /// + /// bool + public override bool IsApplicableToInvocation(InvocationInfo invocationInfo) + { + bool? applicable = invocationInfo == null ? true : invocationInfo.BoundParameters?.Keys?.Contains(this.NameOfParameterChanging); + return applicable.HasValue ? applicable.Value : false; + } + } + + [AttributeUsage(AttributeTargets.All)] + public class OutputBreakingChangeAttribute : GenericBreakingChangeAttribute + { + public string DeprecatedCmdLetOutputType { get; } + + //This is still a String instead of a Type as this + //might be undefined at the time of adding the attribute + public string ReplacementCmdletOutputType { get; set; } + + public string[] DeprecatedOutputProperties { get; set; } + + public string[] NewOutputProperties { get; set; } + + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType) : + base(string.Empty) + { + this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; + } + + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion) : + base(string.Empty, deprecateByVersion) + { + this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; + } + + public OutputBreakingChangeAttribute(string deprecatedCmdletOutputType, string deprecateByVersion, string changeInEfectByDate) : + base(string.Empty, deprecateByVersion, changeInEfectByDate) + { + this.DeprecatedCmdLetOutputType = deprecatedCmdletOutputType; + } + + protected override string GetAttributeSpecificMessage() + { + StringBuilder message = new StringBuilder(); + + //check for the deprecation scenario + if (string.IsNullOrWhiteSpace(ReplacementCmdletOutputType) && NewOutputProperties == null && DeprecatedOutputProperties == null && string.IsNullOrWhiteSpace(ChangeDescription)) + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputTypeDeprecated, DeprecatedCmdLetOutputType)); + } + else + { + if (!string.IsNullOrWhiteSpace(ReplacementCmdletOutputType)) + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange1, DeprecatedCmdLetOutputType, ReplacementCmdletOutputType)); + } + else + { + message.Append(string.Format(Resources.BreakingChangesAttributesCmdLetOutputChange2, DeprecatedCmdLetOutputType)); + } + + if (DeprecatedOutputProperties != null && DeprecatedOutputProperties.Length > 0) + { + message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesRemoved); + foreach (string property in DeprecatedOutputProperties) + { + message.Append(" '" + property + "'"); + } + } + + if (NewOutputProperties != null && NewOutputProperties.Length > 0) + { + message.Append(Resources.BreakingChangesAttributesCmdLetOutputPropertiesAdded); + foreach (string property in NewOutputProperties) + { + message.Append(" '" + property + "'"); + } + } + } + return message.ToString(); + } + } +} \ No newline at end of file diff --git a/src/ADDomainServices/generated/runtime/MessageAttributeHelper.cs b/src/ADDomainServices/generated/runtime/MessageAttributeHelper.cs new file mode 100644 index 000000000000..db4933f406bc --- /dev/null +++ b/src/ADDomainServices/generated/runtime/MessageAttributeHelper.cs @@ -0,0 +1,161 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime +{ + using Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.generated.runtime.Properties; + using System; + using System.Collections.Generic; + using System.Linq; + using System.Management.Automation; + using System.Reflection; + using System.Text; + using System.Threading.Tasks; + public class MessageAttributeHelper + { + public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; + public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; + + /** + * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) + * And reads all the deprecation attributes attached to it + * Prints a message on the cmdline For each of the attribute found + * + * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, + * We only process the Parameter beaking change attributes attached only params listed in this list (if present) + * */ + public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet, System.Management.Automation.PSCmdlet psCmdlet) + { + bool supressWarningOrError = false; + + try + { + supressWarningOrError = bool.Parse(System.Environment.GetEnvironmentVariable(SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME)); + } + catch (Exception) + { + //no action + } + + if (supressWarningOrError) + { + //Do not process the attributes at runtime... The env variable to override the warning messages is set + return; + } + + List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); + StringBuilder sb = new StringBuilder(); + Action appendBreakingChangeInfo = (string s) => sb.Append(s); + + if (attributes != null && attributes.Count > 0) + { + appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesHeaderMessage, commandInfo.Name.Split('_')[0])); + + foreach (GenericBreakingChangeAttribute attribute in attributes) + { + attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo); + } + + appendBreakingChangeInfo(string.Format(Resources.BreakingChangesAttributesFooterMessage, BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK)); + + psCmdlet.WriteWarning(sb.ToString()); + } + + List previewAttributes = new List(GetAllPreviewAttributesInType(commandInfo, invocationInfo)); + + if (previewAttributes != null && previewAttributes.Count > 0) + { + foreach (PreviewMessageAttribute attribute in previewAttributes) + { + attribute.PrintCustomAttributeInfo(psCmdlet); + } + } + } + + + /** + * This function takes in a CommandInfo (CmdletInfo or FunctionInfo) + * And returns all the deprecation attributes attached to it + * + * the boundParameterNames is a list of parameters bound to the cmdlet at runtime, + * We only process the Parameter beaking change attributes attached only params listed in this list (if present) + **/ + private static IEnumerable GetAllBreakingChangeAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo, String parameterSet) + { + List attributeList = new List(); + + if (commandInfo.GetType() == typeof(CmdletInfo)) + { + var type = ((CmdletInfo)commandInfo).ImplementingType; + attributeList.AddRange(type.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + + foreach (MethodInfo m in type.GetRuntimeMethods()) + { + attributeList.AddRange((m.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast())); + } + + foreach (FieldInfo f in type.GetRuntimeFields()) + { + attributeList.AddRange(f.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + } + + foreach (PropertyInfo p in type.GetRuntimeProperties()) + { + attributeList.AddRange(p.GetCustomAttributes(typeof(GenericBreakingChangeAttribute), false).Cast()); + } + } + else if (commandInfo.GetType() == typeof(FunctionInfo)) + { + attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); + foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) + { + attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(GenericBreakingChangeAttribute).IsAssignableFrom(e.GetType())).Cast()); + } + } + return invocationInfo == null ? attributeList : attributeList.Where(e => e.GetType() == typeof(ParameterSetBreakingChangeAttribute) ? ((ParameterSetBreakingChangeAttribute)e).IsApplicableToInvocation(invocationInfo, parameterSet) : e.IsApplicableToInvocation(invocationInfo)); + } + private static IEnumerable GetAllPreviewAttributesInType(CommandInfo commandInfo, InvocationInfo invocationInfo) + { + List attributeList = new List(); + if (commandInfo.GetType() == typeof(CmdletInfo)) + { + var type = ((CmdletInfo)commandInfo).ImplementingType; + attributeList.AddRange(type.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + + foreach (MethodInfo m in type.GetRuntimeMethods()) + { + attributeList.AddRange((m.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast())); + } + + foreach (FieldInfo f in type.GetRuntimeFields()) + { + attributeList.AddRange(f.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + } + + foreach (PropertyInfo p in type.GetRuntimeProperties()) + { + attributeList.AddRange(p.GetCustomAttributes(typeof(PreviewMessageAttribute), false).Cast()); + } + } + else if (commandInfo.GetType() == typeof(FunctionInfo)) + { + attributeList.AddRange(((FunctionInfo)commandInfo).ScriptBlock.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); + foreach (var parameter in ((FunctionInfo)commandInfo).Parameters) + { + attributeList.AddRange(parameter.Value.Attributes.Where(e => typeof(PreviewMessageAttribute).IsAssignableFrom(e.GetType())).Cast()); + } + } + return invocationInfo == null ? attributeList : attributeList.Where(e => e.IsApplicableToInvocation(invocationInfo)); + } + } +} diff --git a/src/ADDomainServices/generated/runtime/Nodes/JsonNumber.cs b/src/ADDomainServices/generated/runtime/Nodes/JsonNumber.cs index 742814d930e9..2a8ff753b651 100644 --- a/src/ADDomainServices/generated/runtime/Nodes/JsonNumber.cs +++ b/src/ADDomainServices/generated/runtime/Nodes/JsonNumber.cs @@ -33,12 +33,12 @@ internal JsonNumber(long value) internal JsonNumber(float value) { - this.value = value.ToString(); + this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); } internal JsonNumber(double value) { - this.value = value.ToString(); + this.value = value.ToString(System.Globalization.CultureInfo.InvariantCulture); } internal override JsonType Type => JsonType.Number; @@ -79,13 +79,13 @@ public static implicit operator UInt64(JsonNumber number) => ulong.Parse(number.Value); public static implicit operator decimal(JsonNumber number) - => decimal.Parse(number.Value); + => decimal.Parse(number.Value, System.Globalization.CultureInfo.InvariantCulture); public static implicit operator Double(JsonNumber number) - => double.Parse(number.value); + => double.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); public static implicit operator float(JsonNumber number) - => float.Parse(number.value); + => float.Parse(number.value, System.Globalization.CultureInfo.InvariantCulture); public static implicit operator JsonNumber(short data) => new JsonNumber(data.ToString()); diff --git a/src/ADDomainServices/generated/runtime/PipelineMocking.cs b/src/ADDomainServices/generated/runtime/PipelineMocking.cs index 7cabc4659020..0c48e7c62813 100644 --- a/src/ADDomainServices/generated/runtime/PipelineMocking.cs +++ b/src/ADDomainServices/generated/runtime/PipelineMocking.cs @@ -81,9 +81,9 @@ public void PushScenario(string it) internal static IEnumerable> FilterHeaders(IEnumerable>> headers) => headers.Select(header => new KeyValuePair(header.Key, Blacklist.Contains(header.Key) ? Removed : new XImmutableArray(header.Value.ToArray()))); - internal static JsonNode SerializeContent(HttpContent content) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result); + internal static JsonNode SerializeContent(HttpContent content, ref bool isBase64) => content == null ? XNull.Instance : SerializeContent(content.ReadAsByteArrayAsync().Result, ref isBase64); - internal static JsonNode SerializeContent(byte[] content) + internal static JsonNode SerializeContent(byte[] content, ref bool isBase64) { if (null == content || content.Length == 0) { @@ -102,14 +102,14 @@ internal static JsonNode SerializeContent(byte[] content) return new JsonString(System.Convert.ToBase64String(content)); } - internal static byte[] DeserializeContent(string content) + internal static byte[] DeserializeContent(string content, bool isBase64) { if (string.IsNullOrWhiteSpace(content)) { return new byte[0]; } - if (content.EndsWith("==")) + if (isBase64) { try { @@ -126,11 +126,14 @@ internal static byte[] DeserializeContent(string content) public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMessage response) { var messages = System.IO.File.Exists(this.recordingPath) ? Load() : new JsonObject() ?? new JsonObject(); + bool isBase64Request = false; + bool isBase64Response = false; messages[rqKey] = new JsonObject { { "Request",new JsonObject { { "Method", request.Method.Method }, { "RequestUri", request.RequestUri }, - { "Content", SerializeContent( request.Content) }, + { "Content", SerializeContent( request.Content, ref isBase64Request) }, + { "isContentBase64", isBase64Request }, { "Headers", new JsonObject(FilterHeaders(request.Headers)) }, { "ContentHeaders", request.Content == null ? new JsonObject() : new JsonObject(FilterHeaders(request.Content.Headers))} } }, @@ -138,7 +141,8 @@ public void SaveMessage(string rqKey, HttpRequestMessage request, HttpResponseMe { "StatusCode", (int)response.StatusCode}, { "Headers", new JsonObject(FilterHeaders(response.Headers))}, { "ContentHeaders", new JsonObject(FilterHeaders(response.Content.Headers))}, - { "Content", SerializeContent(response.Content) }, + { "Content", SerializeContent(response.Content, ref isBase64Response) }, + { "isContentBase64", isBase64Response }, }} }; System.IO.File.WriteAllText(this.recordingPath, messages.ToString()); @@ -176,10 +180,12 @@ public HttpResponseMessage LoadMessage(string rqKey) var respMessage = message.Property("Response"); // --------------------------- deserialize response ---------------------------------------------------------------- + bool isBase64Response = false; + respMessage.BooleanProperty("isContentBase64", ref isBase64Response); var response = new HttpResponseMessage { StatusCode = (HttpStatusCode)respMessage.NumberProperty("StatusCode", ref sc), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(respMessage.StringProperty("Content"), isBase64Response)) }; foreach (var each in respMessage.Property("Headers")) @@ -199,11 +205,13 @@ public HttpResponseMessage LoadMessage(string rqKey) } // --------------------------- deserialize request ---------------------------------------------------------------- + bool isBase64Request = false; + reqMessage.BooleanProperty("isContentBase64", ref isBase64Request); response.RequestMessage = new HttpRequestMessage { Method = new HttpMethod(reqMessage.StringProperty("Method")), RequestUri = new System.Uri(reqMessage.StringProperty("RequestUri")), - Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"))) + Content = new System.Net.Http.ByteArrayContent(DeserializeContent(reqMessage.StringProperty("Content"), isBase64Request)) }; foreach (var each in reqMessage.Property("Headers")) diff --git a/src/ADDomainServices/generated/runtime/Properties/Resources.Designer.cs b/src/ADDomainServices/generated/runtime/Properties/Resources.Designer.cs new file mode 100644 index 000000000000..1594ecd2e5b6 --- /dev/null +++ b/src/ADDomainServices/generated/runtime/Properties/Resources.Designer.cs @@ -0,0 +1,5633 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.generated.runtime.Properties +{ + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager + { + get + { + if (object.ReferenceEquals(resourceMan, null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.generated.runtime.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to The remote server returned an error: (401) Unauthorized.. + /// + public static string AccessDeniedExceptionMessage + { + get + { + return ResourceManager.GetString("AccessDeniedExceptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account id doesn't match one in subscription.. + /// + public static string AccountIdDoesntMatchSubscription + { + get + { + return ResourceManager.GetString("AccountIdDoesntMatchSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account needs to be specified. + /// + public static string AccountNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("AccountNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account "{0}" has been added.. + /// + public static string AddAccountAdded + { + get + { + return ResourceManager.GetString("AddAccountAdded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To switch to a different subscription, please use Select-AzureSubscription.. + /// + public static string AddAccountChangeSubscription + { + get + { + return ResourceManager.GetString("AddAccountChangeSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential".. + /// + public static string AddAccountNonInteractiveGuestOrFpo + { + get + { + return ResourceManager.GetString("AddAccountNonInteractiveGuestOrFpo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription "{0}" is selected as the default subscription.. + /// + public static string AddAccountShowDefaultSubscription + { + get + { + return ResourceManager.GetString("AddAccountShowDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To view all the subscriptions, please use Get-AzureSubscription.. + /// + public static string AddAccountViewSubscriptions + { + get + { + return ResourceManager.GetString("AddAccountViewSubscriptions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} is created successfully.. + /// + public static string AddOnCreatedMessage + { + get + { + return ResourceManager.GetString("AddOnCreatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-on name {0} is already used.. + /// + public static string AddOnNameAlreadyUsed + { + get + { + return ResourceManager.GetString("AddOnNameAlreadyUsed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} not found.. + /// + public static string AddOnNotFound + { + get + { + return ResourceManager.GetString("AddOnNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-on {0} is removed successfully.. + /// + public static string AddOnRemovedMessage + { + get + { + return ResourceManager.GetString("AddOnRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-On {0} is updated successfully.. + /// + public static string AddOnUpdatedMessage + { + get + { + return ResourceManager.GetString("AddOnUpdatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}.. + /// + public static string AddRoleMessageCreate + { + get + { + return ResourceManager.GetString("AddRoleMessageCreate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’.. + /// + public static string AddRoleMessageCreateNode + { + get + { + return ResourceManager.GetString("AddRoleMessageCreateNode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure".. + /// + public static string AddRoleMessageCreatePHP + { + get + { + return ResourceManager.GetString("AddRoleMessageCreatePHP", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator. + /// + public static string AddRoleMessageInsufficientPermissions + { + get + { + return ResourceManager.GetString("AddRoleMessageInsufficientPermissions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A role name '{0}' already exists. + /// + public static string AddRoleMessageRoleExists + { + get + { + return ResourceManager.GetString("AddRoleMessageRoleExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Profile {0} already has an endpoint with name {1}. + /// + public static string AddTrafficManagerEndpointFailed + { + get + { + return ResourceManager.GetString("AddTrafficManagerEndpointFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. + ///The data is anonymous and does not include commandline argument values. + ///The data is collected by Microsoft. + /// + ///Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. + ///Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable [rest of string was truncated]";. + /// + public static string ARMDataCollectionMessage + { + get + { + return ResourceManager.GetString("ARMDataCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [Common.Authentication]: Authenticating for account {0} with single tenant {1}.. + /// + public static string AuthenticatingForSingleTenant + { + get + { + return ResourceManager.GetString("AuthenticatingForSingleTenant", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Windows Azure Powershell\. + /// + public static string AzureDirectory + { + get + { + return ResourceManager.GetString("AzureDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://manage.windowsazure.com. + /// + public static string AzurePortalUrl + { + get + { + return ResourceManager.GetString("AzurePortalUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_PORTAL_URL. + /// + public static string AzurePortalUrlEnv + { + get + { + return ResourceManager.GetString("AzurePortalUrlEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Selected profile must not be null.. + /// + public static string AzureProfileMustNotBeNull + { + get + { + return ResourceManager.GetString("AzureProfileMustNotBeNull", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure SDK\{0}\. + /// + public static string AzureSdkDirectory + { + get + { + return ResourceManager.GetString("AzureSdkDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File '{0}' already exists. Use the -Force parameter to overwrite it.. + /// + public static string AzureVMDscArchiveAlreadyExists + { + get + { + return ResourceManager.GetString("AzureVMDscArchiveAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find configuration data file: {0}. + /// + public static string AzureVMDscCannotFindConfigurationDataFile + { + get + { + return ResourceManager.GetString("AzureVMDscCannotFindConfigurationDataFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Create Archive. + /// + public static string AzureVMDscCreateArchiveAction + { + get + { + return ResourceManager.GetString("AzureVMDscCreateArchiveAction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The configuration data must be a .psd1 file. + /// + public static string AzureVMDscInvalidConfigurationDataFile + { + get + { + return ResourceManager.GetString("AzureVMDscInvalidConfigurationDataFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Parsing configuration script: {0}. + /// + public static string AzureVMDscParsingConfiguration + { + get + { + return ResourceManager.GetString("AzureVMDscParsingConfiguration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it.. + /// + public static string AzureVMDscStorageBlobAlreadyExists + { + get + { + return ResourceManager.GetString("AzureVMDscStorageBlobAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload '{0}'. + /// + public static string AzureVMDscUploadToBlobStorageAction + { + get + { + return ResourceManager.GetString("AzureVMDscUploadToBlobStorageAction", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Execution failed because a background thread could not prompt the user.. + /// + public static string BaseShouldMethodFailureReason + { + get + { + return ResourceManager.GetString("BaseShouldMethodFailureReason", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Base Uri was empty.. + /// + public static string BaseUriEmpty + { + get + { + return ResourceManager.GetString("BaseUriEmpty", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} begin processing without ParameterSet.. + /// + public static string BeginProcessingWithoutParameterSetLog + { + get + { + return ResourceManager.GetString("BeginProcessingWithoutParameterSetLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} begin processing with ParameterSet '{1}'.. + /// + public static string BeginProcessingWithParameterSetLog + { + get + { + return ResourceManager.GetString("BeginProcessingWithParameterSetLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Blob with the name {0} already exists in the account.. + /// + public static string BlobAlreadyExistsInTheAccount + { + get + { + return ResourceManager.GetString("BlobAlreadyExistsInTheAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://{0}.blob.core.windows.net/. + /// + public static string BlobEndpointUri + { + get + { + return ResourceManager.GetString("BlobEndpointUri", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_BLOBSTORAGE_TEMPLATE. + /// + public static string BlobEndpointUriEnv + { + get + { + return ResourceManager.GetString("BlobEndpointUriEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is changing.. + /// + public static string BreakingChangeAttributeParameterChanging + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterChanging", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is becoming mandatory.. + /// + public static string BreakingChangeAttributeParameterMandatoryNow + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterMandatoryNow", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is being replaced by parameter : '{1}'.. + /// + public static string BreakingChangeAttributeParameterReplaced + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterReplaced", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The parameter : '{0}' is being replaced by mandatory parameter : '{1}'.. + /// + public static string BreakingChangeAttributeParameterReplacedMandatory + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterReplacedMandatory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The type of the parameter is changing from '{0}' to '{1}'.. + /// + public static string BreakingChangeAttributeParameterTypeChange + { + get + { + return ResourceManager.GetString("BreakingChangeAttributeParameterTypeChange", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Change description : {0} + ///. + /// + public static string BreakingChangesAttributesChangeDescriptionMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesChangeDescriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. + /// + public static string BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageNoReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet is being deprecated. There will be no replacement for it.. + /// + public static string BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesParameterSetDeprecationMessageNoReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet '{0}' is replacing this cmdlet.. + /// + public static string BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetDeprecationMessageWithReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The output type is changing from the existing type :'{0}' to the new type :'{1}'. + /// + public static string BreakingChangesAttributesCmdLetOutputChange1 + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange1", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "The output type '{0}' is changing". + /// + public static string BreakingChangesAttributesCmdLetOutputChange2 + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputChange2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + ///- The following properties are being added to the output type : + ///. + /// + public static string BreakingChangesAttributesCmdLetOutputPropertiesAdded + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesAdded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to + /// - The following properties in the output type are being deprecated : + ///. + /// + public static string BreakingChangesAttributesCmdLetOutputPropertiesRemoved + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputPropertiesRemoved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The output type '{0}' is being deprecated without a replacement.. + /// + public static string BreakingChangesAttributesCmdLetOutputTypeDeprecated + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesCmdLetOutputTypeDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to - {0} + /// + ///. + /// + public static string BreakingChangesAttributesDeclarationMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to - Cmdlet : '{0}' + /// - {1} + ///. + /// + public static string BreakingChangesAttributesDeclarationMessageWithCmdletName + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesDeclarationMessageWithCmdletName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to NOTE : Go to {0} for steps to suppress (and other related information on) the breaking change messages.. + /// + public static string BreakingChangesAttributesFooterMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesFooterMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Breaking changes in the cmdlet '{0}' :. + /// + public static string BreakingChangesAttributesHeaderMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesHeaderMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note : This change will take effect on '{0}' + ///. + /// + public static string BreakingChangesAttributesInEffectByDateMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByDateMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note :The change is expected to take effect from the version : '{0}' + /// + ///. + /// + public static string BreakingChangesAttributesInEffectByVersion + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesInEffectByVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ```powershell + ///# Old + ///{0} + /// + ///# New + ///{1} + ///``` + /// + ///. + /// + public static string BreakingChangesAttributesUsageChangeMessage + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cmdlet invocation changes : + /// Old Way : {0} + /// New Way : {1}. + /// + public static string BreakingChangesAttributesUsageChangeMessageConsole + { + get + { + return ResourceManager.GetString("BreakingChangesAttributesUsageChangeMessageConsole", resourceCulture); + } + } + + /// + /// The cmdlet is in experimental stage. The function may not be enabled in current subscription. + /// + public static string ExperimentalCmdletMessage + { + get + { + return ResourceManager.GetString("ExperimentalCmdletMessage", resourceCulture); + } + } + + + + /// + /// Looks up a localized string similar to CACHERUNTIMEURL. + /// + public static string CacheRuntimeUrl + { + get + { + return ResourceManager.GetString("CacheRuntimeUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to cache. + /// + public static string CacheRuntimeValue + { + get + { + return ResourceManager.GetString("CacheRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to CacheRuntimeVersion. + /// + public static string CacheRuntimeVersionKey + { + get + { + return ResourceManager.GetString("CacheRuntimeVersionKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}). + /// + public static string CacheVersionWarningText + { + get + { + return ResourceManager.GetString("CacheVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot change built-in environment {0}.. + /// + public static string CannotChangeBuiltinEnvironment + { + get + { + return ResourceManager.GetString("CannotChangeBuiltinEnvironment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find {0} with name {1}.. + /// + public static string CannotFind + { + get + { + return ResourceManager.GetString("CannotFind", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deployment for service {0} with {1} slot doesn't exist. + /// + public static string CannotFindDeployment + { + get + { + return ResourceManager.GetString("CannotFindDeployment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Can't find valid Microsoft Azure role in current directory {0}. + /// + public static string CannotFindRole + { + get + { + return ResourceManager.GetString("CannotFindRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist. + /// + public static string CannotFindServiceConfigurationFile + { + get + { + return ResourceManager.GetString("CannotFindServiceConfigurationFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders.. + /// + public static string CannotFindServiceRoot + { + get + { + return ResourceManager.GetString("CannotFindServiceRoot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated.. + /// + public static string CannotUpdateUnknownSubscription + { + get + { + return ResourceManager.GetString("CannotUpdateUnknownSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ManagementCertificate. + /// + public static string CertificateElementName + { + get + { + return ResourceManager.GetString("CertificateElementName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to certificate.pfx. + /// + public static string CertificateFileName + { + get + { + return ResourceManager.GetString("CertificateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Certificate imported into CurrentUser\My\{0}. + /// + public static string CertificateImportedMessage + { + get + { + return ResourceManager.GetString("CertificateImportedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No certificate was found in the certificate store with thumbprint {0}. + /// + public static string CertificateNotFoundInStore + { + get + { + return ResourceManager.GetString("CertificateNotFoundInStore", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Your account does not have access to the private key for certificate {0}. + /// + public static string CertificatePrivateKeyAccessError + { + get + { + return ResourceManager.GetString("CertificatePrivateKeyAccessError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} {1} deployment for {2} service. + /// + public static string ChangeDeploymentStateWaitMessage + { + get + { + return ResourceManager.GetString("ChangeDeploymentStateWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cloud service {0} is in {1} state.. + /// + public static string ChangeDeploymentStatusCompleteMessage + { + get + { + return ResourceManager.GetString("ChangeDeploymentStatusCompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing/Removing public environment '{0}' is not allowed.. + /// + public static string ChangePublicEnvironmentMessage + { + get + { + return ResourceManager.GetString("ChangePublicEnvironmentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} is set to value {1}. + /// + public static string ChangeSettingsElementMessage + { + get + { + return ResourceManager.GetString("ChangeSettingsElementMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Changing public environment is not supported.. + /// + public static string ChangingDefaultEnvironmentNotSupported + { + get + { + return ResourceManager.GetString("ChangingDefaultEnvironmentNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Choose which publish settings file to use:. + /// + public static string ChoosePublishSettingsFile + { + get + { + return ResourceManager.GetString("ChoosePublishSettingsFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel. + /// + public static string ClientDiagnosticLevelName + { + get + { + return ResourceManager.GetString("ClientDiagnosticLevelName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1. + /// + public static string ClientDiagnosticLevelValue + { + get + { + return ResourceManager.GetString("ClientDiagnosticLevelValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to cloud_package.cspkg. + /// + public static string CloudPackageFileName + { + get + { + return ResourceManager.GetString("CloudPackageFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceConfiguration.Cloud.cscfg. + /// + public static string CloudServiceConfigurationFileName + { + get + { + return ResourceManager.GetString("CloudServiceConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Add-ons for {0}. + /// + public static string CloudServiceDescription + { + get + { + return ResourceManager.GetString("CloudServiceDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive.. + /// + public static string CommunicationCouldNotBeEstablished + { + get + { + return ResourceManager.GetString("CommunicationCouldNotBeEstablished", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Complete. + /// + public static string CompleteMessage + { + get + { + return ResourceManager.GetString("CompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to OperationID : '{0}'. + /// + public static string ComputeCloudExceptionOperationIdMessage + { + get + { + return ResourceManager.GetString("ComputeCloudExceptionOperationIdMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to config.json. + /// + public static string ConfigurationFileName + { + get + { + return ResourceManager.GetString("ConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to VirtualMachine creation failed.. + /// + public static string CreateFailedErrorMessage + { + get + { + return ResourceManager.GetString("CreateFailedErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead.. + /// + public static string CreateWebsiteFailed + { + get + { + return ResourceManager.GetString("CreateWebsiteFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core. + /// + public static string DataCacheClientsType + { + get + { + return ResourceManager.GetString("DataCacheClientsType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to //blobcontainer[@datacenter='{0}']. + /// + public static string DatacenterBlobQuery + { + get + { + return ResourceManager.GetString("DatacenterBlobQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft Azure PowerShell Data Collection Confirmation. + /// + public static string DataCollectionActivity + { + get + { + return ResourceManager.GetString("DataCollectionActivity", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You choose not to participate in Microsoft Azure PowerShell data collection.. + /// + public static string DataCollectionConfirmNo + { + get + { + return ResourceManager.GetString("DataCollectionConfirmNo", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This confirmation message will be dismissed in '{0}' second(s).... + /// + public static string DataCollectionConfirmTime + { + get + { + return ResourceManager.GetString("DataCollectionConfirmTime", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You choose to participate in Microsoft Azure PowerShell data collection.. + /// + public static string DataCollectionConfirmYes + { + get + { + return ResourceManager.GetString("DataCollectionConfirmYes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The setting profile has been saved to the following path '{0}'.. + /// + public static string DataCollectionSaveFileInformation + { + get + { + return ResourceManager.GetString("DataCollectionSaveFileInformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription. + /// + public static string DefaultAndCurrentSubscription + { + get + { + return ResourceManager.GetString("DefaultAndCurrentSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to none. + /// + public static string DefaultFileVersion + { + get + { + return ResourceManager.GetString("DefaultFileVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There are no hostnames which could be used for validation.. + /// + public static string DefaultHostnamesValidation + { + get + { + return ResourceManager.GetString("DefaultHostnamesValidation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 8080. + /// + public static string DefaultPort + { + get + { + return ResourceManager.GetString("DefaultPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1000. + /// + public static string DefaultRoleCachingInMB + { + get + { + return ResourceManager.GetString("DefaultRoleCachingInMB", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Auto. + /// + public static string DefaultUpgradeMode + { + get + { + return ResourceManager.GetString("DefaultUpgradeMode", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 80. + /// + public static string DefaultWebPort + { + get + { + return ResourceManager.GetString("DefaultWebPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete. + /// + public static string Delete + { + get + { + return ResourceManager.GetString("Delete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0} slot for service {1} is already in {2} state. + /// + public static string DeploymentAlreadyInState + { + get + { + return ResourceManager.GetString("DeploymentAlreadyInState", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The deployment in {0} slot for service {1} is removed. + /// + public static string DeploymentRemovedMessage + { + get + { + return ResourceManager.GetString("DeploymentRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel. + /// + public static string DiagnosticLevelName + { + get + { + return ResourceManager.GetString("DiagnosticLevelName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1. + /// + public static string DiagnosticLevelValue + { + get + { + return ResourceManager.GetString("DiagnosticLevelValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The key to add already exists in the dictionary.. + /// + public static string DictionaryAddAlreadyContainsKey + { + get + { + return ResourceManager.GetString("DictionaryAddAlreadyContainsKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The array index cannot be less than zero.. + /// + public static string DictionaryCopyToArrayIndexLessThanZero + { + get + { + return ResourceManager.GetString("DictionaryCopyToArrayIndexLessThanZero", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The supplied array does not have enough room to contain the copied elements.. + /// + public static string DictionaryCopyToArrayTooShort + { + get + { + return ResourceManager.GetString("DictionaryCopyToArrayTooShort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided dns {0} doesn't exist. + /// + public static string DnsDoesNotExist + { + get + { + return ResourceManager.GetString("DnsDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft Azure Certificate. + /// + public static string EnableRemoteDesktop_FriendlyCertificateName + { + get + { + return ResourceManager.GetString("EnableRemoteDesktop_FriendlyCertificateName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Endpoint can't be retrieved for storage account. + /// + public static string EndPointNotFoundForBlobStorage + { + get + { + return ResourceManager.GetString("EndPointNotFoundForBlobStorage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} end processing.. + /// + public static string EndProcessingLog + { + get + { + return ResourceManager.GetString("EndProcessingLog", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet.. + /// + public static string EnvironmentDoesNotSupportActiveDirectory + { + get + { + return ResourceManager.GetString("EnvironmentDoesNotSupportActiveDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The environment '{0}' already exists.. + /// + public static string EnvironmentExists + { + get + { + return ResourceManager.GetString("EnvironmentExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment name doesn't match one in subscription.. + /// + public static string EnvironmentNameDoesntMatchSubscription + { + get + { + return ResourceManager.GetString("EnvironmentNameDoesntMatchSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment name needs to be specified.. + /// + public static string EnvironmentNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("EnvironmentNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Environment needs to be specified.. + /// + public static string EnvironmentNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("EnvironmentNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The environment name '{0}' is not found.. + /// + public static string EnvironmentNotFound + { + get + { + return ResourceManager.GetString("EnvironmentNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to environments.xml. + /// + public static string EnvironmentsFileName + { + get + { + return ResourceManager.GetString("EnvironmentsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error creating VirtualMachine. + /// + public static string ErrorCreatingVirtualMachine + { + get + { + return ResourceManager.GetString("ErrorCreatingVirtualMachine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to download available runtimes for location '{0}'. + /// + public static string ErrorRetrievingRuntimesForLocation + { + get + { + return ResourceManager.GetString("ErrorRetrievingRuntimesForLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Error updating VirtualMachine. + /// + public static string ErrorUpdatingVirtualMachine + { + get + { + return ResourceManager.GetString("ErrorUpdatingVirtualMachine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Job Id {0} failed. Error: {1}, ExceptionDetails: {2}. + /// + public static string FailedJobErrorMessage + { + get + { + return ResourceManager.GetString("FailedJobErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File path is not valid.. + /// + public static string FilePathIsNotValid + { + get + { + return ResourceManager.GetString("FilePathIsNotValid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The HTTP request was forbidden with client authentication scheme 'Anonymous'.. + /// + public static string FirstPurchaseErrorMessage + { + get + { + return ResourceManager.GetString("FirstPurchaseErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell.. + /// + public static string FirstPurchaseMessage + { + get + { + return ResourceManager.GetString("FirstPurchaseMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operation Status:. + /// + public static string GatewayOperationStatus + { + get + { + return ResourceManager.GetString("GatewayOperationStatus", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\General. + /// + public static string GeneralScaffolding + { + get + { + return ResourceManager.GetString("GeneralScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Getting all available Microsoft Azure Add-Ons, this may take few minutes.... + /// + public static string GetAllAddOnsWaitMessage + { + get + { + return ResourceManager.GetString("GetAllAddOnsWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name{0}Primary Key{0}Seconday Key. + /// + public static string GetStorageKeysHeader + { + get + { + return ResourceManager.GetString("GetStorageKeysHeader", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Git not found. Please install git and place it in your command line path.. + /// + public static string GitNotFound + { + get + { + return ResourceManager.GetString("GitNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Could not find publish settings. Please run Import-AzurePublishSettingsFile.. + /// + public static string GlobalSettingsManager_Load_PublishSettingsNotFound + { + get + { + return ResourceManager.GetString("GlobalSettingsManager_Load_PublishSettingsNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find the WadCfg end element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoEndWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoEndWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WadCfg start element in the config is not matching the end element.. + /// + public static string IaasDiagnosticsBadConfigNoMatchingWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoMatchingWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find the WadCfg element in the config.. + /// + public static string IaasDiagnosticsBadConfigNoWadCfg + { + get + { + return ResourceManager.GetString("IaasDiagnosticsBadConfigNoWadCfg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode.dll. + /// + public static string IISNodeDll + { + get + { + return ResourceManager.GetString("IISNodeDll", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode. + /// + public static string IISNodeEngineKey + { + get + { + return ResourceManager.GetString("IISNodeEngineKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode-dev\\release\\x64. + /// + public static string IISNodePath + { + get + { + return ResourceManager.GetString("IISNodePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to iisnode. + /// + public static string IISNodeRuntimeValue + { + get + { + return ResourceManager.GetString("IISNodeRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}). + /// + public static string IISNodeVersionWarningText + { + get + { + return ResourceManager.GetString("IISNodeVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Illegal characters in path.. + /// + public static string IllegalPath + { + get + { + return ResourceManager.GetString("IllegalPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. + /// + public static string InternalServerErrorMessage + { + get + { + return ResourceManager.GetString("InternalServerErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot enable memcach protocol on a cache worker role {0}.. + /// + public static string InvalidCacheRoleName + { + get + { + return ResourceManager.GetString("InvalidCacheRoleName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings. + /// + public static string InvalidCertificate + { + get + { + return ResourceManager.GetString("InvalidCertificate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid certificate format.. + /// + public static string InvalidCertificateSingle + { + get + { + return ResourceManager.GetString("InvalidCertificateSingle", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided configuration path is invalid or doesn't exist. + /// + public static string InvalidConfigPath + { + get + { + return ResourceManager.GetString("InvalidConfigPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2.. + /// + public static string InvalidCountryNameMessage + { + get + { + return ResourceManager.GetString("InvalidCountryNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription.. + /// + public static string InvalidDefaultSubscription + { + get + { + return ResourceManager.GetString("InvalidDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deployment with {0} does not exist. + /// + public static string InvalidDeployment + { + get + { + return ResourceManager.GetString("InvalidDeployment", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production".. + /// + public static string InvalidDeploymentSlot + { + get + { + return ResourceManager.GetString("InvalidDeploymentSlot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "{0}" is an invalid DNS name for {1}. + /// + public static string InvalidDnsName + { + get + { + return ResourceManager.GetString("InvalidDnsName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid service endpoint.. + /// + public static string InvalidEndpoint + { + get + { + return ResourceManager.GetString("InvalidEndpoint", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided file in {0} must be have {1} extension. + /// + public static string InvalidFileExtension + { + get + { + return ResourceManager.GetString("InvalidFileExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File {0} has invalid characters. + /// + public static string InvalidFileName + { + get + { + return ResourceManager.GetString("InvalidFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must create your git publishing credentials using the Microsoft Azure portal. + ///Please follow these steps in the portal: + ///1. On the left side open "Web Sites" + ///2. Click on any website + ///3. Choose "Setup Git Publishing" or "Reset deployment credentials" + ///4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username}. + /// + public static string InvalidGitCredentials + { + get + { + return ResourceManager.GetString("InvalidGitCredentials", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The value {0} provided is not a valid GUID. Please provide a valid GUID.. + /// + public static string InvalidGuid + { + get + { + return ResourceManager.GetString("InvalidGuid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The specified hostname does not exist. Please specify a valid hostname for the site.. + /// + public static string InvalidHostnameValidation + { + get + { + return ResourceManager.GetString("InvalidHostnameValidation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} instances must be greater than or equal 0 and less than or equal 20. + /// + public static string InvalidInstancesCount + { + get + { + return ResourceManager.GetString("InvalidInstancesCount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file.. + /// + public static string InvalidJobFile + { + get + { + return ResourceManager.GetString("InvalidJobFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Could not download a valid runtime manifest, Please check your internet connection and try again.. + /// + public static string InvalidManifestError + { + get + { + return ResourceManager.GetString("InvalidManifestError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The account {0} was not found. Please specify a valid account name.. + /// + public static string InvalidMediaServicesAccount + { + get + { + return ResourceManager.GetString("InvalidMediaServicesAccount", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided name "{0}" does not match the service bus namespace naming rules.. + /// + public static string InvalidNamespaceName + { + get + { + return ResourceManager.GetString("InvalidNamespaceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path must specify a valid path to an Azure profile.. + /// + public static string InvalidNewProfilePath + { + get + { + return ResourceManager.GetString("InvalidNewProfilePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Value cannot be null. Parameter name: '{0}'. + /// + public static string InvalidNullArgument + { + get + { + return ResourceManager.GetString("InvalidNullArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} is invalid or empty. + /// + public static string InvalidOrEmptyArgumentMessage + { + get + { + return ResourceManager.GetString("InvalidOrEmptyArgumentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided package path is invalid or doesn't exist. + /// + public static string InvalidPackagePath + { + get + { + return ResourceManager.GetString("InvalidPackagePath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to '{0}' is an invalid parameter set name.. + /// + public static string InvalidParameterSetName + { + get + { + return ResourceManager.GetString("InvalidParameterSetName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} doesn't exist in {1} or you've not passed valid value for it. + /// + public static string InvalidPath + { + get + { + return ResourceManager.GetString("InvalidPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path {0} has invalid characters. + /// + public static string InvalidPathName + { + get + { + return ResourceManager.GetString("InvalidPathName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token}. + /// + public static string InvalidProfileProperties + { + get + { + return ResourceManager.GetString("InvalidProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile. + /// + public static string InvalidPublishSettingsSchema + { + get + { + return ResourceManager.GetString("InvalidPublishSettingsSchema", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided role name "{0}" has invalid characters. + /// + public static string InvalidRoleNameMessage + { + get + { + return ResourceManager.GetString("InvalidRoleNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid name for the service root folder is required. + /// + public static string InvalidRootNameMessage + { + get + { + return ResourceManager.GetString("InvalidRootNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} is not a recognized runtime type. + /// + public static string InvalidRuntimeError + { + get + { + return ResourceManager.GetString("InvalidRuntimeError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid language is required. + /// + public static string InvalidScaffoldingLanguageArg + { + get + { + return ResourceManager.GetString("InvalidScaffoldingLanguageArg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No subscription is currently selected. Use Select-Subscription to activate a subscription.. + /// + public static string InvalidSelectedSubscription + { + get + { + return ResourceManager.GetString("InvalidSelectedSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations.. + /// + public static string InvalidServiceBusLocation + { + get + { + return ResourceManager.GetString("InvalidServiceBusLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please provide a service name or run this command from inside a service project directory.. + /// + public static string InvalidServiceName + { + get + { + return ResourceManager.GetString("InvalidServiceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must provide valid value for {0}. + /// + public static string InvalidServiceSettingElement + { + get + { + return ResourceManager.GetString("InvalidServiceSettingElement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to settings.json is invalid or doesn't exist. + /// + public static string InvalidServiceSettingMessage + { + get + { + return ResourceManager.GetString("InvalidServiceSettingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data.. + /// + public static string InvalidSubscription + { + get + { + return ResourceManager.GetString("InvalidSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided subscription id {0} is not valid. + /// + public static string InvalidSubscriptionId + { + get + { + return ResourceManager.GetString("InvalidSubscriptionId", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Must specify a non-null subscription name.. + /// + public static string InvalidSubscriptionName + { + get + { + return ResourceManager.GetString("InvalidSubscriptionName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet. + /// + public static string InvalidSubscriptionNameMessage + { + get + { + return ResourceManager.GetString("InvalidSubscriptionNameMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided subscriptions file {0} has invalid content.. + /// + public static string InvalidSubscriptionsDataSchema + { + get + { + return ResourceManager.GetString("InvalidSubscriptionsDataSchema", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge.. + /// + public static string InvalidVMSize + { + get + { + return ResourceManager.GetString("InvalidVMSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The web job file must have *.zip extension. + /// + public static string InvalidWebJobFile + { + get + { + return ResourceManager.GetString("InvalidWebJobFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Singleton option works for continuous jobs only.. + /// + public static string InvalidWebJobSingleton + { + get + { + return ResourceManager.GetString("InvalidWebJobSingleton", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The website {0} was not found. Please specify a valid website name.. + /// + public static string InvalidWebsite + { + get + { + return ResourceManager.GetString("InvalidWebsite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No job for id: {0} was found.. + /// + public static string JobNotFound + { + get + { + return ResourceManager.GetString("JobNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to engines. + /// + public static string JsonEnginesSectionName + { + get + { + return ResourceManager.GetString("JsonEnginesSectionName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Scaffolding for this language is not yet supported. + /// + public static string LanguageScaffoldingIsNotSupported + { + get + { + return ResourceManager.GetString("LanguageScaffoldingIsNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Link already established. + /// + public static string LinkAlreadyEstablished + { + get + { + return ResourceManager.GetString("LinkAlreadyEstablished", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to local_package.csx. + /// + public static string LocalPackageFileName + { + get + { + return ResourceManager.GetString("LocalPackageFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceConfiguration.Local.cscfg. + /// + public static string LocalServiceConfigurationFileName + { + get + { + return ResourceManager.GetString("LocalServiceConfigurationFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Looking for {0} deployment for {1} cloud service.... + /// + public static string LookingForDeploymentMessage + { + get + { + return ResourceManager.GetString("LookingForDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Looking for cloud service {0}.... + /// + public static string LookingForServiceMessage + { + get + { + return ResourceManager.GetString("LookingForServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure Long-Running Job. + /// + public static string LROJobName + { + get + { + return ResourceManager.GetString("LROJobName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter.. + /// + public static string LROTaskExceptionMessage + { + get + { + return ResourceManager.GetString("LROTaskExceptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to managementCertificate.pem. + /// + public static string ManagementCertificateFileName + { + get + { + return ResourceManager.GetString("ManagementCertificateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ?whr={0}. + /// + public static string ManagementPortalRealmFormat + { + get + { + return ResourceManager.GetString("ManagementPortalRealmFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to //baseuri. + /// + public static string ManifestBaseUriQuery + { + get + { + return ResourceManager.GetString("ManifestBaseUriQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to uri. + /// + public static string ManifestBlobUriKey + { + get + { + return ResourceManager.GetString("ManifestBlobUriKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml. + /// + public static string ManifestUri + { + get + { + return ResourceManager.GetString("ManifestUri", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'.. + /// + public static string MissingCertificateInProfileProperties + { + get + { + return ResourceManager.GetString("MissingCertificateInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'.. + /// + public static string MissingPasswordInProfileProperties + { + get + { + return ResourceManager.GetString("MissingPasswordInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Property bag Hashtable must contain a 'SubscriptionId'.. + /// + public static string MissingSubscriptionInProfileProperties + { + get + { + return ResourceManager.GetString("MissingSubscriptionInProfileProperties", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Multiple Add-Ons found holding name {0}. + /// + public static string MultipleAddOnsFoundMessage + { + get + { + return ResourceManager.GetString("MultipleAddOnsFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername.. + /// + public static string MultiplePublishingUsernames + { + get + { + return ResourceManager.GetString("MultiplePublishingUsernames", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The first publish settings file "{0}" is used. If you want to use another file specify the file name.. + /// + public static string MultiplePublishSettingsFilesFoundMessage + { + get + { + return ResourceManager.GetString("MultiplePublishSettingsFilesFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Plugins.Caching.NamedCaches. + /// + public static string NamedCacheSettingName + { + get + { + return ResourceManager.GetString("NamedCacheSettingName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]}. + /// + public static string NamedCacheSettingValue + { + get + { + return ResourceManager.GetString("NamedCacheSettingValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A publishing username is required. Please specify one using the argument PublishingUsername.. + /// + public static string NeedPublishingUsernames + { + get + { + return ResourceManager.GetString("NeedPublishingUsernames", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to New Add-On Confirmation. + /// + public static string NewAddOnConformation + { + get + { + return ResourceManager.GetString("NewAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my + ///contact information with {2}.. + /// + public static string NewMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("NewMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names.. + /// + public static string NewNamespaceErrorMessage + { + get + { + return ResourceManager.GetString("NewNamespaceErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of + ///use and privacy statement at {0} and (c) agree to sharing my contact information with {2}.. + /// + public static string NewNonMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("NewNonMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service has been created at {0}. + /// + public static string NewServiceCreatedMessage + { + get + { + return ResourceManager.GetString("NewServiceCreatedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No. + /// + public static string No + { + get + { + return ResourceManager.GetString("No", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription.. + /// + public static string NoCachedToken + { + get + { + return ResourceManager.GetString("NoCachedToken", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole.. + /// + public static string NoCacheWorkerRoles + { + get + { + return ResourceManager.GetString("NoCacheWorkerRoles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No clouds available. + /// + public static string NoCloudsAvailable + { + get + { + return ResourceManager.GetString("NoCloudsAvailable", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "There is no current context, please log in using Connect-AzAccount.". + /// + public static string NoCurrentContextForDataCmdlet + { + get + { + return ResourceManager.GetString("NoCurrentContextForDataCmdlet", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to nodejs. + /// + public static string NodeDirectory + { + get + { + return ResourceManager.GetString("NodeDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node. + /// + public static string NodeEngineKey + { + get + { + return ResourceManager.GetString("NodeEngineKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node.exe. + /// + public static string NodeExe + { + get + { + return ResourceManager.GetString("NodeExe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name>. + /// + public static string NoDefaultSubscriptionMessage + { + get + { + return ResourceManager.GetString("NoDefaultSubscriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft SDKs\Azure\Nodejs\Nov2011. + /// + public static string NodeModulesPath + { + get + { + return ResourceManager.GetString("NodeModulesPath", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to nodejs. + /// + public static string NodeProgramFilesFolderName + { + get + { + return ResourceManager.GetString("NodeProgramFilesFolderName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to node. + /// + public static string NodeRuntimeValue + { + get + { + return ResourceManager.GetString("NodeRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\Node. + /// + public static string NodeScaffolding + { + get + { + return ResourceManager.GetString("NodeScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node. + /// + public static string NodeScaffoldingResources + { + get + { + return ResourceManager.GetString("NodeScaffoldingResources", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}). + /// + public static string NodeVersionWarningText + { + get + { + return ResourceManager.GetString("NodeVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No, I do not agree. + /// + public static string NoHint + { + get + { + return ResourceManager.GetString("NoHint", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please connect to internet before executing this cmdlet. + /// + public static string NoInternetConnection + { + get + { + return ResourceManager.GetString("NoInternetConnection", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <NONE>. + /// + public static string None + { + get + { + return ResourceManager.GetString("None", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No publish settings files with extension *.publishsettings are found in the directory "{0}".. + /// + public static string NoPublishSettingsFilesFoundMessage + { + get + { + return ResourceManager.GetString("NoPublishSettingsFilesFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to There is no subscription associated with account {0}.. + /// + public static string NoSubscriptionAddedMessage + { + get + { + return ResourceManager.GetString("NoSubscriptionAddedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount?. + /// + public static string NoSubscriptionFoundForTenant + { + get + { + return ResourceManager.GetString("NoSubscriptionFoundForTenant", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration.. + /// + public static string NotCacheWorkerRole + { + get + { + return ResourceManager.GetString("NotCacheWorkerRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Certificate can't be null.. + /// + public static string NullCertificateMessage + { + get + { + return ResourceManager.GetString("NullCertificateMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} could not be null or empty. + /// + public static string NullObjectMessage + { + get + { + return ResourceManager.GetString("NullObjectMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to add a null RoleSettings to {0}. + /// + public static string NullRoleSettingsMessage + { + get + { + return ResourceManager.GetString("NullRoleSettingsMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to add new role to null service definition. + /// + public static string NullServiceDefinitionMessage + { + get + { + return ResourceManager.GetString("NullServiceDefinitionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The request offer '{0}' is not found.. + /// + public static string OfferNotFoundMessage + { + get + { + return ResourceManager.GetString("OfferNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operation "{0}" failed on VM with ID: {1}. + /// + public static string OperationFailedErrorMessage + { + get + { + return ResourceManager.GetString("OperationFailedErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The REST operation failed with message '{0}' and error code '{1}'. + /// + public static string OperationFailedMessage + { + get + { + return ResourceManager.GetString("OperationFailedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state.. + /// + public static string OperationTimedOutOrError + { + get + { + return ResourceManager.GetString("OperationTimedOutOrError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to package. + /// + public static string Package + { + get + { + return ResourceManager.GetString("Package", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Package is created at service root path {0}.. + /// + public static string PackageCreated + { + get + { + return ResourceManager.GetString("PackageCreated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {{ + /// "author": "", + /// + /// "name": "{0}", + /// "version": "0.0.0", + /// "dependencies":{{}}, + /// "devDependencies":{{}}, + /// "optionalDependencies": {{}}, + /// "engines": {{ + /// "node": "*", + /// "iisnode": "*" + /// }} + /// + ///}} + ///. + /// + public static string PackageJsonDefaultFile + { + get + { + return ResourceManager.GetString("PackageJsonDefaultFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to package.json. + /// + public static string PackageJsonFileName + { + get + { + return ResourceManager.GetString("PackageJsonFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path {0} doesn't exist.. + /// + public static string PathDoesNotExist + { + get + { + return ResourceManager.GetString("PathDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path for {0} doesn't exist in {1}.. + /// + public static string PathDoesNotExistForElement + { + get + { + return ResourceManager.GetString("PathDoesNotExistForElement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the Peer Asn has to be provided.. + /// + public static string PeerAsnRequired + { + get + { + return ResourceManager.GetString("PeerAsnRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 5.4.0. + /// + public static string PHPDefaultRuntimeVersion + { + get + { + return ResourceManager.GetString("PHPDefaultRuntimeVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to php. + /// + public static string PhpRuntimeValue + { + get + { + return ResourceManager.GetString("PhpRuntimeValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resources\Scaffolding\PHP. + /// + public static string PHPScaffolding + { + get + { + return ResourceManager.GetString("PHPScaffolding", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP. + /// + public static string PHPScaffoldingResources + { + get + { + return ResourceManager.GetString("PHPScaffoldingResources", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}). + /// + public static string PHPVersionWarningText + { + get + { + return ResourceManager.GetString("PHPVersionWarningText", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to You must create your first web site using the Microsoft Azure portal. + ///Please follow these steps in the portal: + ///1. At the bottom of the page, click on New > Web Site > Quick Create + ///2. Type {0} in the URL field + ///3. Click on "Create Web Site" + ///4. Once the site has been created, click on the site name + ///5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create.. + /// + public static string PortalInstructions + { + get + { + return ResourceManager.GetString("PortalInstructions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git". + /// + public static string PortalInstructionsGit + { + get + { + return ResourceManager.GetString("PortalInstructionsGit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This cmdlet is in preview. The functionality may not be available in the selected subscription. + /// + public static string PreviewCmdletMessage + { + get + { + return ResourceManager.GetString("PreviewCmdletMessage", resourceCulture); + } + } + + + /// + /// Looks up a localized string similar to A value for the Primary Peer Subnet has to be provided.. + /// + public static string PrimaryPeerSubnetRequired + { + get + { + return ResourceManager.GetString("PrimaryPeerSubnetRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Promotion code can be used only when updating to a new plan.. + /// + public static string PromotionCodeWithCurrentPlanMessage + { + get + { + return ResourceManager.GetString("PromotionCodeWithCurrentPlanMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service not published at user request.. + /// + public static string PublishAbortedAtUserRequest + { + get + { + return ResourceManager.GetString("PublishAbortedAtUserRequest", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Complete.. + /// + public static string PublishCompleteMessage + { + get + { + return ResourceManager.GetString("PublishCompleteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Connecting.... + /// + public static string PublishConnectingMessage + { + get + { + return ResourceManager.GetString("PublishConnectingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created Deployment ID: {0}.. + /// + public static string PublishCreatedDeploymentMessage + { + get + { + return ResourceManager.GetString("PublishCreatedDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created hosted service '{0}'.. + /// + public static string PublishCreatedServiceMessage + { + get + { + return ResourceManager.GetString("PublishCreatedServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Created Website URL: {0}.. + /// + public static string PublishCreatedWebsiteMessage + { + get + { + return ResourceManager.GetString("PublishCreatedWebsiteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Creating.... + /// + public static string PublishCreatingServiceMessage + { + get + { + return ResourceManager.GetString("PublishCreatingServiceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Initializing.... + /// + public static string PublishInitializingMessage + { + get + { + return ResourceManager.GetString("PublishInitializingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to busy. + /// + public static string PublishInstanceStatusBusy + { + get + { + return ResourceManager.GetString("PublishInstanceStatusBusy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to creating the virtual machine. + /// + public static string PublishInstanceStatusCreating + { + get + { + return ResourceManager.GetString("PublishInstanceStatusCreating", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Instance {0} of role {1} is {2}.. + /// + public static string PublishInstanceStatusMessage + { + get + { + return ResourceManager.GetString("PublishInstanceStatusMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ready. + /// + public static string PublishInstanceStatusReady + { + get + { + return ResourceManager.GetString("PublishInstanceStatusReady", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Preparing deployment for {0} with Subscription ID: {1}.... + /// + public static string PublishPreparingDeploymentMessage + { + get + { + return ResourceManager.GetString("PublishPreparingDeploymentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publishing {0} to Microsoft Azure. This may take several minutes.... + /// + public static string PublishServiceStartMessage + { + get + { + return ResourceManager.GetString("PublishServiceStartMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to publish settings. + /// + public static string PublishSettings + { + get + { + return ResourceManager.GetString("PublishSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure. + /// + public static string PublishSettingsElementName + { + get + { + return ResourceManager.GetString("PublishSettingsElementName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to .PublishSettings. + /// + public static string PublishSettingsFileExtention + { + get + { + return ResourceManager.GetString("PublishSettingsFileExtention", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to publishSettings.xml. + /// + public static string PublishSettingsFileName + { + get + { + return ResourceManager.GetString("PublishSettingsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to &whr={0}. + /// + public static string PublishSettingsFileRealmFormat + { + get + { + return ResourceManager.GetString("PublishSettingsFileRealmFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Publish settings imported. + /// + public static string PublishSettingsSetSuccessfully + { + get + { + return ResourceManager.GetString("PublishSettingsSetSuccessfully", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AZURE_PUBLISHINGPROFILE_URL. + /// + public static string PublishSettingsUrlEnv + { + get + { + return ResourceManager.GetString("PublishSettingsUrlEnv", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starting.... + /// + public static string PublishStartingMessage + { + get + { + return ResourceManager.GetString("PublishStartingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upgrading.... + /// + public static string PublishUpgradingMessage + { + get + { + return ResourceManager.GetString("PublishUpgradingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Uploading Package to storage service {0}.... + /// + public static string PublishUploadingPackageMessage + { + get + { + return ResourceManager.GetString("PublishUploadingPackageMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Verifying storage account '{0}'.... + /// + public static string PublishVerifyingStorageMessage + { + get + { + return ResourceManager.GetString("PublishVerifyingStorageMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path '{0}' not found.. + /// + public static string PublishVMDscExtensionAdditionalContentPathNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionAdditionalContentPathNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration published to {0}. + /// + public static string PublishVMDscExtensionArchiveUploadedMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionArchiveUploadedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy '{0}' to '{1}'.. + /// + public static string PublishVMDscExtensionCopyFileVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCopyFileVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Copy the module '{0}' to '{1}'.. + /// + public static string PublishVMDscExtensionCopyModuleVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCopyModuleVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid configuration file: {0}. + ///The file needs to be a PowerShell script (.ps1 or .psm1).. + /// + public static string PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionCreateArchiveConfigFileInvalidExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleted '{0}'. + /// + public static string PublishVMDscExtensionDeletedFileMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDeletedFileMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot delete '{0}': {1}. + /// + public static string PublishVMDscExtensionDeleteErrorMessage + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDeleteErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Path '{0}' not found.. + /// + public static string PublishVMDscExtensionDirectoryNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionDirectoryNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot get module for DscResource '{0}'. Possible solutions: + ///1) Specify -ModuleName for Import-DscResource in your configuration. + ///2) Unblock module that contains resource. + ///3) Move Import-DscResource inside Node block. + ///. + /// + public static string PublishVMDscExtensionGetDscResourceFailed + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionGetDscResourceFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to List of required modules: [{0}].. + /// + public static string PublishVMDscExtensionRequiredModulesVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionRequiredModulesVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version.. + /// + public static string PublishVMDscExtensionRequiredPsVersion + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionRequiredPsVersion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration script '{0}' contained parse errors: + ///{1}. + /// + public static string PublishVMDscExtensionStorageParserErrors + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionStorageParserErrors", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Temp folder '{0}' created.. + /// + public static string PublishVMDscExtensionTempFolderVerbose + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionTempFolderVerbose", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid configuration file: {0}. + ///The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip).. + /// + public static string PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileInvalidExtension", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Configuration file '{0}' not found.. + /// + public static string PublishVMDscExtensionUploadArchiveConfigFileNotExist + { + get + { + return ResourceManager.GetString("PublishVMDscExtensionUploadArchiveConfigFileNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Azure PowerShell collects usage data in order to improve your experience. + ///The data is anonymous and does not include commandline argument values. + ///The data is collected by Microsoft. + /// + ///Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. + ///Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enab [rest of string was truncated]";. + /// + public static string RDFEDataCollectionMessage + { + get + { + return ResourceManager.GetString("RDFEDataCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Replace current deployment with '{0}' Id ?. + /// + public static string RedeployCommit + { + get + { + return ResourceManager.GetString("RedeployCommit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to regenerate key?. + /// + public static string RegenerateKeyWarning + { + get + { + return ResourceManager.GetString("RegenerateKeyWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Generate new key.. + /// + public static string RegenerateKeyWhatIfMessage + { + get + { + return ResourceManager.GetString("RegenerateKeyWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove account '{0}'?. + /// + public static string RemoveAccountConfirmation + { + get + { + return ResourceManager.GetString("RemoveAccountConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing account. + /// + public static string RemoveAccountMessage + { + get + { + return ResourceManager.GetString("RemoveAccountMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove Add-On Confirmation. + /// + public static string RemoveAddOnConformation + { + get + { + return ResourceManager.GetString("RemoveAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm.. + /// + public static string RemoveAddOnMessage + { + get + { + return ResourceManager.GetString("RemoveAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureBGPPeering Operation failed.. + /// + public static string RemoveAzureBGPPeeringFailed + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Bgp Peering. + /// + public static string RemoveAzureBGPPeeringMessage + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Bgp Peering with Service Key {0}.. + /// + public static string RemoveAzureBGPPeeringSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Bgp Peering with service key '{0}'?. + /// + public static string RemoveAzureBGPPeeringWarning + { + get + { + return ResourceManager.GetString("RemoveAzureBGPPeeringWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit with service key '{0}'?. + /// + public static string RemoveAzureDedicatdCircuitWarning + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatdCircuitWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureDedicatedCircuit Operation failed.. + /// + public static string RemoveAzureDedicatedCircuitFailed + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureDedicatedCircuitLink Operation failed.. + /// + public static string RemoveAzureDedicatedCircuitLinkFailed + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Dedicated Circui Link. + /// + public static string RemoveAzureDedicatedCircuitLinkMessage + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1}. + /// + public static string RemoveAzureDedicatedCircuitLinkSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'?. + /// + public static string RemoveAzureDedicatedCircuitLinkWarning + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitLinkWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing Dedicated Circuit. + /// + public static string RemoveAzureDedicatedCircuitMessage + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Azure Dedicated Circuit with Service Key {0}.. + /// + public static string RemoveAzureDedicatedCircuitSucceeded + { + get + { + return ResourceManager.GetString("RemoveAzureDedicatedCircuitSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing cloud service {0}.... + /// + public static string RemoveAzureServiceWaitMessage + { + get + { + return ResourceManager.GetString("RemoveAzureServiceWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription.. + /// + public static string RemoveDefaultSubscription + { + get + { + return ResourceManager.GetString("RemoveDefaultSubscription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing {0} deployment for {1} service. + /// + public static string RemoveDeploymentWaitMessage + { + get + { + return ResourceManager.GetString("RemoveDeploymentWaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'?. + /// + public static string RemoveEnvironmentConfirmation + { + get + { + return ResourceManager.GetString("RemoveEnvironmentConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing environment. + /// + public static string RemoveEnvironmentMessage + { + get + { + return ResourceManager.GetString("RemoveEnvironmentMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing job collection. + /// + public static string RemoveJobCollectionMessage + { + get + { + return ResourceManager.GetString("RemoveJobCollectionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the job collection "{0}". + /// + public static string RemoveJobCollectionWarning + { + get + { + return ResourceManager.GetString("RemoveJobCollectionWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing job. + /// + public static string RemoveJobMessage + { + get + { + return ResourceManager.GetString("RemoveJobMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the job "{0}". + /// + public static string RemoveJobWarning + { + get + { + return ResourceManager.GetString("RemoveJobWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the account?. + /// + public static string RemoveMediaAccountWarning + { + get + { + return ResourceManager.GetString("RemoveMediaAccountWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account removed.. + /// + public static string RemoveMediaAccountWhatIfMessage + { + get + { + return ResourceManager.GetString("RemoveMediaAccountWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription.. + /// + public static string RemoveNamespaceErrorMessage + { + get + { + return ResourceManager.GetString("RemoveNamespaceErrorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing old package {0}.... + /// + public static string RemovePackage + { + get + { + return ResourceManager.GetString("RemovePackage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile?. + /// + public static string RemoveProfileConfirmation + { + get + { + return ResourceManager.GetString("RemoveProfileConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing the Azure profile. + /// + public static string RemoveProfileMessage + { + get + { + return ResourceManager.GetString("RemoveProfileMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the namespace '{0}'?. + /// + public static string RemoveServiceBusNamespaceConfirmation + { + get + { + return ResourceManager.GetString("RemoveServiceBusNamespaceConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove cloud service?. + /// + public static string RemoveServiceWarning + { + get + { + return ResourceManager.GetString("RemoveServiceWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove cloud service and all it's deployments. + /// + public static string RemoveServiceWhatIfMessage + { + get + { + return ResourceManager.GetString("RemoveServiceWhatIfMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove subscription '{0}'?. + /// + public static string RemoveSubscriptionConfirmation + { + get + { + return ResourceManager.GetString("RemoveSubscriptionConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing subscription. + /// + public static string RemoveSubscriptionMessage + { + get + { + return ResourceManager.GetString("RemoveSubscriptionMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The endpoint {0} cannot be removed from profile {1} because it's not in the profile.. + /// + public static string RemoveTrafficManagerEndpointMissing + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerEndpointMissing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove-AzureTrafficManagerProfile Operation failed.. + /// + public static string RemoveTrafficManagerProfileFailed + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileFailed", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Successfully removed Traffic Manager profile with name {0}.. + /// + public static string RemoveTrafficManagerProfileSucceeded + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileSucceeded", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the Traffic Manager profile "{0}"?. + /// + public static string RemoveTrafficManagerProfileWarning + { + get + { + return ResourceManager.GetString("RemoveTrafficManagerProfileWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete the VM '{0}'?. + /// + public static string RemoveVMConfirmationMessage + { + get + { + return ResourceManager.GetString("RemoveVMConfirmationMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleting VM.. + /// + public static string RemoveVMMessage + { + get + { + return ResourceManager.GetString("RemoveVMMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing WebJob.... + /// + public static string RemoveWebJobMessage + { + get + { + return ResourceManager.GetString("RemoveWebJobMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove job '{0}'?. + /// + public static string RemoveWebJobWarning + { + get + { + return ResourceManager.GetString("RemoveWebJobWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing website. + /// + public static string RemoveWebsiteMessage + { + get + { + return ResourceManager.GetString("RemoveWebsiteMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to remove the website "{0}". + /// + public static string RemoveWebsiteWarning + { + get + { + return ResourceManager.GetString("RemoveWebsiteWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Removing public environment is not supported.. + /// + public static string RemovingDefaultEnvironmentsNotSupported + { + get + { + return ResourceManager.GetString("RemovingDefaultEnvironmentsNotSupported", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Deleting namespace. + /// + public static string RemovingNamespaceMessage + { + get + { + return ResourceManager.GetString("RemovingNamespaceMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Repository is not setup. You need to pass a valid site name.. + /// + public static string RepositoryNotSetup + { + get + { + return ResourceManager.GetString("RepositoryNotSetup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use.. + /// + public static string ReservedIPNameNoLongerInUseButStillBeingReserved + { + get + { + return ResourceManager.GetString("ReservedIPNameNoLongerInUseButStillBeingReserved", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resource with ID : {0} does not exist.. + /// + public static string ResourceNotFound + { + get + { + return ResourceManager.GetString("ResourceNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Restart. + /// + public static string Restart + { + get + { + return ResourceManager.GetString("Restart", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resume. + /// + public static string Resume + { + get + { + return ResourceManager.GetString("Resume", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /role:{0};"{1}/{0}" . + /// + public static string RoleArgTemplate + { + get + { + return ResourceManager.GetString("RoleArgTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to bin. + /// + public static string RoleBinFolderName + { + get + { + return ResourceManager.GetString("RoleBinFolderName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} is {1}. + /// + public static string RoleInstanceWaitMsg + { + get + { + return ResourceManager.GetString("RoleInstanceWaitMsg", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 20. + /// + public static string RoleMaxInstances + { + get + { + return ResourceManager.GetString("RoleMaxInstances", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to role name. + /// + public static string RoleName + { + get + { + return ResourceManager.GetString("RoleName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided role name {0} doesn't exist. + /// + public static string RoleNotFoundMessage + { + get + { + return ResourceManager.GetString("RoleNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RoleSettings.xml. + /// + public static string RoleSettingsTemplateFileName + { + get + { + return ResourceManager.GetString("RoleSettingsTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role type {0} doesn't exist. + /// + public static string RoleTypeDoesNotExist + { + get + { + return ResourceManager.GetString("RoleTypeDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to public static Dictionary<string, Location> ReverseLocations { get; private set; }. + /// + public static string RuntimeDeploymentLocationError + { + get + { + return ResourceManager.GetString("RuntimeDeploymentLocationError", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Preparing runtime deployment for service '{0}'. + /// + public static string RuntimeDeploymentStart + { + get + { + return ResourceManager.GetString("RuntimeDeploymentStart", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version?. + /// + public static string RuntimeMismatchWarning + { + get + { + return ResourceManager.GetString("RuntimeMismatchWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEOVERRIDEURL. + /// + public static string RuntimeOverrideKey + { + get + { + return ResourceManager.GetString("RuntimeOverrideKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /runtimemanifest/runtimes/runtime. + /// + public static string RuntimeQuery + { + get + { + return ResourceManager.GetString("RuntimeQuery", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEID. + /// + public static string RuntimeTypeKey + { + get + { + return ResourceManager.GetString("RuntimeTypeKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEURL. + /// + public static string RuntimeUrlKey + { + get + { + return ResourceManager.GetString("RuntimeUrlKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to RUNTIMEVERSIONPRIMARYKEY. + /// + public static string RuntimeVersionPrimaryKey + { + get + { + return ResourceManager.GetString("RuntimeVersionPrimaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to scaffold.xml. + /// + public static string ScaffoldXml + { + get + { + return ResourceManager.GetString("ScaffoldXml", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation. + /// + public static string SchedulerInvalidLocation + { + get + { + return ResourceManager.GetString("SchedulerInvalidLocation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the Secondary Peer Subnet has to be provided.. + /// + public static string SecondaryPeerSubnetRequired + { + get + { + return ResourceManager.GetString("SecondaryPeerSubnetRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} already exists on disk in location {1}. + /// + public static string ServiceAlreadyExistsOnDisk + { + get + { + return ResourceManager.GetString("ServiceAlreadyExistsOnDisk", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No ServiceBus authorization rule with the given characteristics was found. + /// + public static string ServiceBusAuthorizationRuleNotFound + { + get + { + return ResourceManager.GetString("ServiceBusAuthorizationRuleNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The service bus entity '{0}' is not found.. + /// + public static string ServiceBusEntityTypeNotFound + { + get + { + return ResourceManager.GetString("ServiceBusEntityTypeNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Internal Server Error. This could happen due to an incorrect/missing namespace. + /// + public static string ServiceBusNamespaceMissingMessage + { + get + { + return ResourceManager.GetString("ServiceBusNamespaceMissingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service configuration. + /// + public static string ServiceConfiguration + { + get + { + return ResourceManager.GetString("ServiceConfiguration", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service definition. + /// + public static string ServiceDefinition + { + get + { + return ResourceManager.GetString("ServiceDefinition", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ServiceDefinition.csdef. + /// + public static string ServiceDefinitionFileName + { + get + { + return ResourceManager.GetString("ServiceDefinitionFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0}Deploy. + /// + public static string ServiceDeploymentName + { + get + { + return ResourceManager.GetString("ServiceDeploymentName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The specified cloud service "{0}" does not exist.. + /// + public static string ServiceDoesNotExist + { + get + { + return ResourceManager.GetString("ServiceDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} slot for service {1} is in {2} state, please wait until it finish and update it's status. + /// + public static string ServiceIsInTransitionState + { + get + { + return ResourceManager.GetString("ServiceIsInTransitionState", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}.". + /// + public static string ServiceManagementClientExceptionStringFormat + { + get + { + return ResourceManager.GetString("ServiceManagementClientExceptionStringFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Begin Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionBeginOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionBeginOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Completed Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionCompletedOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionCompletedOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Begin Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionInOCSBeginOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSBeginOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Completed Operation: {0}. + /// + public static string ServiceManagementExecuteClientActionInOCSCompletedOperation + { + get + { + return ResourceManager.GetString("ServiceManagementExecuteClientActionInOCSCompletedOperation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service name. + /// + public static string ServiceName + { + get + { + return ResourceManager.GetString("ServiceName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provided service name {0} already exists, please pick another name. + /// + public static string ServiceNameExists + { + get + { + return ResourceManager.GetString("ServiceNameExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please provide name for the hosted service. + /// + public static string ServiceNameMissingMessage + { + get + { + return ResourceManager.GetString("ServiceNameMissingMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service parent directory. + /// + public static string ServiceParentDirectory + { + get + { + return ResourceManager.GetString("ServiceParentDirectory", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Service {0} removed successfully. + /// + public static string ServiceRemovedMessage + { + get + { + return ResourceManager.GetString("ServiceRemovedMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service directory. + /// + public static string ServiceRoot + { + get + { + return ResourceManager.GetString("ServiceRoot", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to service settings. + /// + public static string ServiceSettings + { + get + { + return ResourceManager.GetString("ServiceSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.. + /// + public static string ServiceSettings_ValidateStorageAccountName_InvalidName + { + get + { + return ResourceManager.GetString("ServiceSettings_ValidateStorageAccountName_InvalidName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The {0} slot for cloud service {1} doesn't exist.. + /// + public static string ServiceSlotDoesNotExist + { + get + { + return ResourceManager.GetString("ServiceSlotDoesNotExist", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} slot for service {1} is {2}. + /// + public static string ServiceStatusChanged + { + get + { + return ResourceManager.GetString("ServiceStatusChanged", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Set Add-On Confirmation. + /// + public static string SetAddOnConformation + { + get + { + return ResourceManager.GetString("SetAddOnConformation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Profile {0} does not contain endpoint {1}. Adding it.. + /// + public static string SetInexistentTrafficManagerEndpointMessage + { + get + { + return ResourceManager.GetString("SetInexistentTrafficManagerEndpointMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining + ///in the existing plan. + ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my + ///contact information with {2}.. + /// + public static string SetMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("SetMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Note - You will be charged the amount for the new plan, without being refunded for time remaining + ///in the existing plan. + ///By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis + ///for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) + ///acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of + ///use and privacy statement at <url> and (c) agree to sharing my contact information with {2}.. + /// + public static string SetNonMicrosoftAddOnMessage + { + get + { + return ResourceManager.GetString("SetNonMicrosoftAddOnMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Role {0} instances are set to {1}. + /// + public static string SetRoleInstancesMessage + { + get + { + return ResourceManager.GetString("SetRoleInstancesMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {"Slot":"","Location":"","Subscription":"","StorageAccountName":""}. + /// + public static string SettingsFileEmptyContent + { + get + { + return ResourceManager.GetString("SettingsFileEmptyContent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to deploymentSettings.json. + /// + public static string SettingsFileName + { + get + { + return ResourceManager.GetString("SettingsFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insufficient parameters passed to create a new endpoint.. + /// + public static string SetTrafficManagerEndpointNeedsParameters + { + get + { + return ResourceManager.GetString("SetTrafficManagerEndpointNeedsParameters", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambiguous operation: the profile name specified doesn't match the name of the profile object.. + /// + public static string SetTrafficManagerProfileAmbiguous + { + get + { + return ResourceManager.GetString("SetTrafficManagerProfileAmbiguous", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts.. + /// + public static string ShouldContinueFail + { + get + { + return ResourceManager.GetString("ShouldContinueFail", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Confirm. + /// + public static string ShouldProcessCaption + { + get + { + return ResourceManager.GetString("ShouldProcessCaption", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter.. + /// + public static string ShouldProcessFailConfirm + { + get + { + return ResourceManager.GetString("ShouldProcessFailConfirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again.. + /// + public static string ShouldProcessFailImpact + { + get + { + return ResourceManager.GetString("ShouldProcessFailImpact", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter.. + /// + public static string ShouldProcessFailWhatIf + { + get + { + return ResourceManager.GetString("ShouldProcessFailWhatIf", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Shutdown. + /// + public static string Shutdown + { + get + { + return ResourceManager.GetString("Shutdown", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to /sites:{0};{1};"{2}/{0}" . + /// + public static string SitesArgTemplate + { + get + { + return ResourceManager.GetString("SitesArgTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 1000. + /// + public static string StandardRetryDelayInMs + { + get + { + return ResourceManager.GetString("StandardRetryDelayInMs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Start. + /// + public static string Start + { + get + { + return ResourceManager.GetString("Start", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Started. + /// + public static string StartedEmulator + { + get + { + return ResourceManager.GetString("StartedEmulator", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starting Emulator.... + /// + public static string StartingEmulator + { + get + { + return ResourceManager.GetString("StartingEmulator", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to start. + /// + public static string StartStorageEmulatorCommandArgument + { + get + { + return ResourceManager.GetString("StartStorageEmulatorCommandArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stop. + /// + public static string Stop + { + get + { + return ResourceManager.GetString("Stop", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stopping emulator.... + /// + public static string StopEmulatorMessage + { + get + { + return ResourceManager.GetString("StopEmulatorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Stopped. + /// + public static string StoppedEmulatorMessage + { + get + { + return ResourceManager.GetString("StoppedEmulatorMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to stop. + /// + public static string StopStorageEmulatorCommandArgument + { + get + { + return ResourceManager.GetString("StopStorageEmulatorCommandArgument", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Account Name:. + /// + public static string StorageAccountName + { + get + { + return ResourceManager.GetString("StorageAccountName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot find storage account '{0}' please type the name of an existing storage account.. + /// + public static string StorageAccountNotFound + { + get + { + return ResourceManager.GetString("StorageAccountNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to AzureStorageEmulator.exe. + /// + public static string StorageEmulatorExe + { + get + { + return ResourceManager.GetString("StorageEmulatorExe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to InstallPath. + /// + public static string StorageEmulatorInstallPathRegistryKeyValue + { + get + { + return ResourceManager.GetString("StorageEmulatorInstallPathRegistryKeyValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to SOFTWARE\Microsoft\Windows Azure Storage Emulator. + /// + public static string StorageEmulatorRegistryKey + { + get + { + return ResourceManager.GetString("StorageEmulatorRegistryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Primary Key:. + /// + public static string StoragePrimaryKey + { + get + { + return ResourceManager.GetString("StoragePrimaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Secondary Key:. + /// + public static string StorageSecondaryKey + { + get + { + return ResourceManager.GetString("StorageSecondaryKey", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription named {0} already exists.. + /// + public static string SubscriptionAlreadyExists + { + get + { + return ResourceManager.GetString("SubscriptionAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information.. + /// + public static string SubscriptionDataFileDeprecated + { + get + { + return ResourceManager.GetString("SubscriptionDataFileDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to DefaultSubscriptionData.xml. + /// + public static string SubscriptionDataFileName + { + get + { + return ResourceManager.GetString("SubscriptionDataFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription data file {0} does not exist.. + /// + public static string SubscriptionDataFileNotFound + { + get + { + return ResourceManager.GetString("SubscriptionDataFileNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription id {0} doesn't exist.. + /// + public static string SubscriptionIdNotFoundMessage + { + get + { + return ResourceManager.GetString("SubscriptionIdNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription must not be null. + /// + public static string SubscriptionMustNotBeNull + { + get + { + return ResourceManager.GetString("SubscriptionMustNotBeNull", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription name needs to be specified.. + /// + public static string SubscriptionNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("SubscriptionNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The subscription name {0} doesn't exist.. + /// + public static string SubscriptionNameNotFoundMessage + { + get + { + return ResourceManager.GetString("SubscriptionNameNotFoundMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Subscription needs to be specified.. + /// + public static string SubscriptionNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("SubscriptionNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Suspend. + /// + public static string Suspend + { + get + { + return ResourceManager.GetString("Suspend", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Swapping website production slot .... + /// + public static string SwappingWebsite + { + get + { + return ResourceManager.GetString("SwappingWebsite", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to swap the website '{0}' production slot with slot '{1}'?. + /// + public static string SwapWebsiteSlotWarning + { + get + { + return ResourceManager.GetString("SwapWebsiteSlotWarning", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The Switch-AzureMode cmdlet is deprecated and will be removed in a future release.. + /// + public static string SwitchAzureModeDeprecated + { + get + { + return ResourceManager.GetString("SwitchAzureModeDeprecated", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}'. + /// + public static string TraceBeginLROJob + { + get + { + return ResourceManager.GetString("TraceBeginLROJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}'. + /// + public static string TraceBlockLROThread + { + get + { + return ResourceManager.GetString("TraceBlockLROThread", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Completing cmdlet execution in RunJob. + /// + public static string TraceEndLROJob + { + get + { + return ResourceManager.GetString("TraceEndLROJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}'. + /// + public static string TraceHandleLROStateChange + { + get + { + return ResourceManager.GetString("TraceHandleLROStateChange", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job due to stoppage or failure. + /// + public static string TraceHandlerCancelJob + { + get + { + return ResourceManager.GetString("TraceHandlerCancelJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Unblocking job that was previously blocked.. + /// + public static string TraceHandlerUnblockJob + { + get + { + return ResourceManager.GetString("TraceHandlerUnblockJob", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Error in cmdlet execution. + /// + public static string TraceLROJobException + { + get + { + return ResourceManager.GetString("TraceLROJobException", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: Removing state changed event handler, exception '{0}'. + /// + public static string TraceRemoveLROEventHandler + { + get + { + return ResourceManager.GetString("TraceRemoveLROEventHandler", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to [AzureLongRunningJob]: ShouldMethod '{0}' unblocked.. + /// + public static string TraceUnblockLROThread + { + get + { + return ResourceManager.GetString("TraceUnblockLROThread", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}.. + /// + public static string UnableToDecodeBase64String + { + get + { + return ResourceManager.GetString("UnableToDecodeBase64String", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Unable to update mismatching Json structured: {0} {1}.. + /// + public static string UnableToPatchJson + { + get + { + return ResourceManager.GetString("UnableToPatchJson", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The provider {0} is unknown.. + /// + public static string UnknownProviderMessage + { + get + { + return ResourceManager.GetString("UnknownProviderMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Update. + /// + public static string Update + { + get + { + return ResourceManager.GetString("Update", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Updated settings for subscription '{0}'. Current subscription is '{1}'.. + /// + public static string UpdatedSettings + { + get + { + return ResourceManager.GetString("UpdatedSettings", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User name is not valid.. + /// + public static string UserNameIsNotValid + { + get + { + return ResourceManager.GetString("UserNameIsNotValid", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to User name needs to be specified.. + /// + public static string UserNameNeedsToBeSpecified + { + get + { + return ResourceManager.GetString("UserNameNeedsToBeSpecified", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A value for the VLan Id has to be provided.. + /// + public static string VlanIdRequired + { + get + { + return ResourceManager.GetString("VlanIdRequired", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Please wait.... + /// + public static string WaitMessage + { + get + { + return ResourceManager.GetString("WaitMessage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The azure storage emulator is not installed, skip launching.... + /// + public static string WarningWhenStorageEmulatorIsMissing + { + get + { + return ResourceManager.GetString("WarningWhenStorageEmulatorIsMissing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Web.cloud.config. + /// + public static string WebCloudConfig + { + get + { + return ResourceManager.GetString("WebCloudConfig", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to web.config. + /// + public static string WebConfigTemplateFileName + { + get + { + return ResourceManager.GetString("WebConfigTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to MSDeploy. + /// + public static string WebDeployKeywordInWebSitePublishProfile + { + get + { + return ResourceManager.GetString("WebDeployKeywordInWebSitePublishProfile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cannot build the project successfully. Please see logs in {0}.. + /// + public static string WebProjectBuildFailTemplate + { + get + { + return ResourceManager.GetString("WebProjectBuildFailTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebRole. + /// + public static string WebRole + { + get + { + return ResourceManager.GetString("WebRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to setup_web.cmd > log.txt. + /// + public static string WebRoleStartupTaskCommandLine + { + get + { + return ResourceManager.GetString("WebRoleStartupTaskCommandLine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebRole.xml. + /// + public static string WebRoleTemplateFileName + { + get + { + return ResourceManager.GetString("WebRoleTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Webspace.. + /// + public static string WebsiteAlreadyExists + { + get + { + return ResourceManager.GetString("WebsiteAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WebSite with given name {0} already exists in the specified Subscription and Location.. + /// + public static string WebsiteAlreadyExistsReplacement + { + get + { + return ResourceManager.GetString("WebsiteAlreadyExistsReplacement", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Site {0} already has repository created for it.. + /// + public static string WebsiteRepositoryAlreadyExists + { + get + { + return ResourceManager.GetString("WebsiteRepositoryAlreadyExists", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Workspaces/WebsiteExtension/Website/{0}/dashboard/. + /// + public static string WebsiteSufixUrl + { + get + { + return ResourceManager.GetString("WebsiteSufixUrl", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to https://{0}/msdeploy.axd?site={1}. + /// + public static string WebSiteWebDeployUriTemplate + { + get + { + return ResourceManager.GetString("WebSiteWebDeployUriTemplate", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WorkerRole. + /// + public static string WorkerRole + { + get + { + return ResourceManager.GetString("WorkerRole", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to setup_worker.cmd > log.txt. + /// + public static string WorkerRoleStartupTaskCommandLine + { + get + { + return ResourceManager.GetString("WorkerRoleStartupTaskCommandLine", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to WorkerRole.xml. + /// + public static string WorkerRoleTemplateFileName + { + get + { + return ResourceManager.GetString("WorkerRoleTemplateFileName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (x86). + /// + public static string x86InProgramFiles + { + get + { + return ResourceManager.GetString("x86InProgramFiles", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes. + /// + public static string Yes + { + get + { + return ResourceManager.GetString("Yes", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes, I agree. + /// + public static string YesHint + { + get + { + return ResourceManager.GetString("YesHint", resourceCulture); + } + } + } +} diff --git a/src/ADDomainServices/generated/runtime/Properties/Resources.resx b/src/ADDomainServices/generated/runtime/Properties/Resources.resx new file mode 100644 index 000000000000..598cd53e958a --- /dev/null +++ b/src/ADDomainServices/generated/runtime/Properties/Resources.resx @@ -0,0 +1,1741 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + The remote server returned an error: (401) Unauthorized. + + + Account "{0}" has been added. + + + To switch to a different subscription, please use Select-AzureSubscription. + + + Subscription "{0}" is selected as the default subscription. + + + To view all the subscriptions, please use Get-AzureSubscription. + + + Add-On {0} is created successfully. + + + Add-on name {0} is already used. + + + Add-On {0} not found. + + + Add-on {0} is removed successfully. + + + Add-On {0} is updated successfully. + + + Role has been created at {0}\{1}. + + + Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for Node.js by running ‘npm install azure’. + + + Role has been created at {0}\{1}. For easy access to Microsoft Azure services from your application code, install the Microsoft Azure client library for PHP by running "pear WindowsAzure/WindowsAzure". + + + Unable to set role permissions. Please give the 'Network Service' user 'Read & execute' and 'Modify' permissions to the role folder, or run PowerShell as an Administrator + + + A role name '{0}' already exists + + + Windows Azure Powershell\ + + + https://manage.windowsazure.com + + + AZURE_PORTAL_URL + + + Azure SDK\{0}\ + + + Base Uri was empty. + WAPackIaaS + + + {0} begin processing without ParameterSet. + + + {0} begin processing with ParameterSet '{1}'. + + + Blob with the name {0} already exists in the account. + + + https://{0}.blob.core.windows.net/ + + + AZURE_BLOBSTORAGE_TEMPLATE + + + CACHERUNTIMEURL + + + cache + + + CacheRuntimeVersion + + + Installing caching version {0} for Role '{1}' (the caching version locally installed is: {2}) + + + Cannot find {0} with name {1}. + + + Deployment for service {0} with {1} slot doesn't exist + + + Can't find valid Microsoft Azure role in current directory {0} + + + service {0} configuration file (ServiceConfiguration.Cloud.cscfg) is either null or doesn't exist + + + Invalid service path! Cannot locate ServiceDefinition.csdef in current folder or parent folders. + + + The subscription named {0} with id {1} is not currently imported. You must import this subscription before it can be updated. + + + ManagementCertificate + + + certificate.pfx + + + Certificate imported into CurrentUser\My\{0} + + + Your account does not have access to the private key for certificate {0} + + + {0} {1} deployment for {2} service + + + Cloud service {0} is in {1} state. + + + Changing/Removing public environment '{0}' is not allowed. + + + Service {0} is set to value {1} + + + Choose which publish settings file to use: + + + Microsoft.WindowsAzure.Plugins.Caching.ClientDiagnosticLevel + + + 1 + + + cloud_package.cspkg + + + ServiceConfiguration.Cloud.cscfg + + + Add-ons for {0} + + + Communication could not be established. This could be due to an invalid subscription ID. Note that subscription IDs are case sensitive. + + + Complete + + + config.json + + + VirtualMachine creation failed. + WAPackIaaS + + + Creating the website failed. If this is the first website for this subscription, please create it using the management portal instead. + + + Microsoft.ApplicationServer.Caching.DataCacheClientsSection, Microsoft.ApplicationServer.Caching.Core + + + //blobcontainer[@datacenter='{0}'] + + + Setting: {0} as the default and current subscription. To view other subscriptions use Get-AzureSubscription + + + none + + + There are no hostnames which could be used for validation. + + + 8080 + + + 1000 + + + Auto + + + 80 + + + Delete + WAPackIaaS + + + The {0} slot for service {1} is already in {2} state + + + The deployment in {0} slot for service {1} is removed + + + Microsoft.WindowsAzure.Plugins.Caching.DiagnosticLevel + + + 1 + + + The key to add already exists in the dictionary. + + + The array index cannot be less than zero. + + + The supplied array does not have enough room to contain the copied elements. + + + The provided dns {0} doesn't exist + + + Microsoft Azure Certificate + + + Endpoint can't be retrieved for storage account + + + {0} end processing. + + + To use Active Directory authentication, you must configure the ActiveDirectoryEndpoint, ActiveDirectoryTenantId, and ActiveDirectorServiceEndpointResourceId for environment of '{0}'. You can configure these properties for this environment using the Set-AzureEnvironment cmdlet. + + + The environment '{0}' already exists. + + + environments.xml + + + Error creating VirtualMachine + WAPackIaaS + + + Unable to download available runtimes for location '{0}' + + + Error updating VirtualMachine + WAPackIaaS + + + Job Id {0} failed. Error: {1}, ExceptionDetails: {2} + WAPackIaaS + + + The HTTP request was forbidden with client authentication scheme 'Anonymous'. + + + This add-on requires you to purchase the first instance through the Microsoft Azure Portal. Subsequent purchases can be performed through PowerShell. + + + Operation Status: + + + Resources\Scaffolding\General + + + Getting all available Microsoft Azure Add-Ons, this may take few minutes... + + + Name{0}Primary Key{0}Seconday Key + + + Git not found. Please install git and place it in your command line path. + + + Could not find publish settings. Please run Import-AzurePublishSettingsFile. + + + iisnode.dll + + + iisnode + + + iisnode-dev\\release\\x64 + + + iisnode + + + Installing IISNode version {0} in Azure for WebRole '{1}' (the version locally installed is: {2}) + + + Internal Server Error + + + Cannot enable memcach protocol on a cache worker role {0}. + + + Invalid certificate format. + + + The provided configuration path is invalid or doesn't exist + + + The country name is invalid, please use a valid two character country code, as described in ISO 3166-1 alpha-2. + + + Deployment with {0} does not exist + + + The deployment slot name {0} is invalid. Slot name must be either "Staging" or "Production". + + + Invalid service endpoint. + + + File {0} has invalid characters + + + You must create your git publishing credentials using the Microsoft Azure portal. +Please follow these steps in the portal: +1. On the left side open "Web Sites" +2. Click on any website +3. Choose "Setup Git Publishing" or "Reset deployment credentials" +4. Back in the PowerShell window, rerun this command by typing "New-AzureWebSite {site name} -Git -PublishingUsername {username} + + + The value {0} provided is not a valid GUID. Please provide a valid GUID. + + + The specified hostname does not exist. Please specify a valid hostname for the site. + + + Role {0} instances must be greater than or equal 0 and less than or equal 20 + + + There was an error creating your webjob. Please make sure that the script is in the root folder of the zip file. + + + Could not download a valid runtime manifest, Please check your internet connection and try again. + + + The account {0} was not found. Please specify a valid account name. + + + The provided name "{0}" does not match the service bus namespace naming rules. + + + Value cannot be null. Parameter name: '{0}' + + + The provided package path is invalid or doesn't exist + + + '{0}' is an invalid parameter set name. + + + {0} doesn't exist in {1} or you've not passed valid value for it + + + Path {0} has invalid characters + + + The provided publish settings file {0} has invalid content. Please get valid by running cmdlet Get-AzurePublishSettingsFile + + + The provided role name "{0}" has invalid characters + + + A valid name for the service root folder is required + + + {0} is not a recognized runtime type + + + A valid language is required + + + No subscription is currently selected. Use Select-Subscription to activate a subscription. + + + The provided location "{0}" does not exist in the available locations use Get-AzureSBLocation for listing available locations. + + + Please provide a service name or run this command from inside a service project directory. + + + You must provide valid value for {0} + + + settings.json is invalid or doesn't exist + + + The subscription named '{0}' cannot be found. Use Set-AzureSubscription to initialize the subscription data. + + + The provided subscription id {0} is not valid + + + A valid subscription name is required. This can be provided using the -Subscription parameter or by setting the subscription via the Set-AzureSubscription cmdlet + + + The provided subscriptions file {0} has invalid content. + + + Role {0} VM size should be ExtraSmall, Small, Medium, Large or ExtraLarge. + + + The web job file must have *.zip extension + + + Singleton option works for continuous jobs only. + + + The website {0} was not found. Please specify a valid website name. + + + No job for id: {0} was found. + WAPackIaaS + + + engines + + + Scaffolding for this language is not yet supported + + + Link already established + + + local_package.csx + + + ServiceConfiguration.Local.cscfg + + + Looking for {0} deployment for {1} cloud service... + + + Looking for cloud service {0}... + + + managementCertificate.pem + + + ?whr={0} + + + //baseuri + + + uri + + + http://az413943.vo.msecnd.net/node/runtimemanifest_0.7.5.2.xml + + + Multiple Add-Ons found holding name {0} + + + Multiple possible publishing users. Please go to the Portal and use the listed deployment user, or click 'set/reset deployment credentials' to set up a new user account, then reurn this cmdlet and specify PublishingUsername. + + + The first publish settings file "{0}" is used. If you want to use another file specify the file name. + + + Microsoft.WindowsAzure.Plugins.Caching.NamedCaches + + + {"caches":[{"name":"default","policy":{"eviction":{"type":0},"expiration":{"defaultTTL":10,"isExpirable":true,"type":1},"serverNotification":{"isEnabled":false}},"secondaries":0}]} + + + A publishing username is required. Please specify one using the argument PublishingUsername. + + + New Add-On Confirmation + + + By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my +contact information with {2}. + + + Internal Server Error. This could happen because the namespace name is already used or due to an incorrect location name. Use Get-AzureSBLocation cmdlet to list valid names. + + + By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of +use and privacy statement at {0} and (c) agree to sharing my contact information with {2}. + + + Service has been created at {0} + + + No + + + There is no access token cached for subscription {0}, user id {1}. Use the Add-AzureAccount cmdlet to log in again and get a token for this subscription. + + + The service does not have any cache worker roles, add one first by running cmdlet Add-AzureCacheWorkerRole. + + + No clouds available + WAPackIaaS + + + nodejs + + + node + + + node.exe + + + There is no default subscription set, please set a default subscription by running Set-AzureSubscription -Default <subscription name> + + + Microsoft SDKs\Azure\Nodejs\Nov2011 + + + nodejs + + + node + + + Resources\Scaffolding\Node + + + Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.Node + + + Installing Node version {0} in Azure for Role '{1}' (the Node version locally installed is: {2}) + + + No, I do not agree + + + No publish settings files with extension *.publishsettings are found in the directory "{0}". + + + '{0}' must be a cache worker role. Verify that it has proper cache worker role configuration. + + + Certificate can't be null. + + + {0} could not be null or empty + + + Unable to add a null RoleSettings to {0} + + + Unable to add new role to null service definition + + + The request offer '{0}' is not found. + + + Operation "{0}" failed on VM with ID: {1} + WAPackIaaS + + + The REST operation failed with message '{0}' and error code '{1}' + + + Job Id {0} did not complete within expected time or it is in Failed/Canceled/Invalid state. + WAPackIaaS + + + package + + + Package is created at service root path {0}. + + + {{ + "author": "", + + "name": "{0}", + "version": "0.0.0", + "dependencies":{{}}, + "devDependencies":{{}}, + "optionalDependencies": {{}}, + "engines": {{ + "node": "*", + "iisnode": "*" + }} + +}} + + + + package.json + + + A value for the Peer Asn has to be provided. + + + 5.4.0 + + + php + + + Resources\Scaffolding\PHP + + + Microsoft.WindowsAzure.Commands.CloudService.ScaffoldingResources.PHP + + + Installing PHP version {0} for Role '{1}' (the PHP version locally installed is: {2}) + + + You must create your first web site using the Microsoft Azure portal. +Please follow these steps in the portal: +1. At the bottom of the page, click on New > Web Site > Quick Create +2. Type {0} in the URL field +3. Click on "Create Web Site" +4. Once the site has been created, click on the site name +5. Click on "Set up Git publishing" or "Reset deployment credentials" and setup a publishing username and password. Use those credentials for all new websites you create. + + + 6. Back in the console window, rerun this command by typing "New-AzureWebsite <site name> -Git" + + + A value for the Primary Peer Subnet has to be provided. + + + Promotion code can be used only when updating to a new plan. + + + Service not published at user request. + + + Complete. + + + Connecting... + + + Created Deployment ID: {0}. + + + Created hosted service '{0}'. + + + Created Website URL: {0}. + + + Creating... + + + Initializing... + + + busy + + + creating the virtual machine + + + Instance {0} of role {1} is {2}. + + + ready + + + Preparing deployment for {0} with Subscription ID: {1}... + + + Publishing {0} to Microsoft Azure. This may take several minutes... + + + publish settings + + + Azure + + + .PublishSettings + + + publishSettings.xml + + + Publish settings imported + + + AZURE_PUBLISHINGPROFILE_URL + + + Starting... + + + Upgrading... + + + Uploading Package to storage service {0}... + + + Verifying storage account '{0}'... + + + Replace current deployment with '{0}' Id ? + + + Are you sure you want to regenerate key? + + + Generate new key. + + + Are you sure you want to remove account '{0}'? + + + Removing account + + + Remove Add-On Confirmation + + + If you delete this add-on, your data may be deleted and the operation may not be undone. You may have to purchase it again from the Microsoft Azure Store to use it. The price of the add-on may not be refunded. Are you sure you want to delete this add-on? Enter “Yes” to confirm. + + + Remove-AzureBGPPeering Operation failed. + + + Removing Bgp Peering + + + Successfully removed Azure Bgp Peering with Service Key {0}. + + + Are you sure you want to remove the Bgp Peering with service key '{0}'? + + + Are you sure you want to remove the Dedicated Circuit with service key '{0}'? + + + Remove-AzureDedicatedCircuit Operation failed. + + + Remove-AzureDedicatedCircuitLink Operation failed. + + + Removing Dedicated Circui Link + + + Successfully removed Azure Dedicated Circuit Link with Service Key {0} and Vnet Name {1} + + + Are you sure you want to remove the Dedicated Circuit Link with service key '{0}' and virtual network name '{1}'? + + + Removing Dedicated Circuit + + + Successfully removed Azure Dedicated Circuit with Service Key {0}. + + + Removing cloud service {0}... + + + Removing {0} deployment for {1} service + + + Removing job collection + + + Are you sure you want to remove the job collection "{0}" + + + Removing job + + + Are you sure you want to remove the job "{0}" + + + Are you sure you want to remove the account? + + + Account removed. + + + Internal Server Error. This could happen because the namespace does not exist or it does not exist under your subscription. + + + Removing old package {0}... + + + Are you sure you want to delete the namespace '{0}'? + + + Are you sure you want to remove cloud service? + + + Remove cloud service and all it's deployments + + + Are you sure you want to remove subscription '{0}'? + + + Removing subscription + + + Are you sure you want to delete the VM '{0}'? + + + Deleting VM. + + + Removing WebJob... + + + Are you sure you want to remove job '{0}'? + + + Removing website + + + Are you sure you want to remove the website "{0}" + + + Deleting namespace + + + Repository is not setup. You need to pass a valid site name. + + + Reserved IP with the Name:'{0}' will no longer be in use after the deployment is deleted, and it is still reserved for later use. + + + Resource with ID : {0} does not exist. + WAPackIaaS + + + Restart + WAPackIaaS + + + Resume + WAPackIaaS + + + /role:{0};"{1}/{0}" + + + bin + + + Role {0} is {1} + + + 20 + + + role name + + + The provided role name {0} doesn't exist + + + RoleSettings.xml + + + Role type {0} doesn't exist + + + public static Dictionary<string, Location> ReverseLocations { get; private set; } + + + Preparing runtime deployment for service '{0}' + + + WARNING Runtime Mismatch: Are you sure that you want to publish service '{0}' using an Azure runtime version that does not match your local runtime version? + + + RUNTIMEOVERRIDEURL + + + /runtimemanifest/runtimes/runtime + + + RUNTIMEID + + + RUNTIMEURL + + + RUNTIMEVERSIONPRIMARYKEY + + + scaffold.xml + + + Invalid location entered. Pick one of the locations from Get-AzureSchedulerLocation + + + A value for the Secondary Peer Subnet has to be provided. + + + Service {0} already exists on disk in location {1} + + + No ServiceBus authorization rule with the given characteristics was found + + + The service bus entity '{0}' is not found. + + + Internal Server Error. This could happen due to an incorrect/missing namespace + + + service configuration + + + service definition + + + ServiceDefinition.csdef + + + {0}Deploy + + + The specified cloud service "{0}" does not exist. + + + {0} slot for service {1} is in {2} state, please wait until it finish and update it's status + + + Begin Operation: {0} + + + Completed Operation: {0} + + + Begin Operation: {0} + + + Completed Operation: {0} + + + service name + + + Please provide name for the hosted service + + + service parent directory + + + Service {0} removed successfully + + + service directory + + + service settings + + + The storage account name '{0}' is invalid. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + + + The {0} slot for cloud service {1} doesn't exist. + + + {0} slot for service {1} is {2} + + + Set Add-On Confirmation + + + Note - You will be charged the amount for the new plan, without being refunded for time remaining +in the existing plan. +By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +agree to the {2}'s terms of user and privacy statement at {0} and (c) agree to sharing my +contact information with {2}. + + + Note - You will be charged the amount for the new plan, without being refunded for time remaining +in the existing plan. +By typing "Yes", I (a) authorize Microsoft to charge my current payment method on a monthly basis +for the amount indicated at {0} for {1} until my service is cancelled or terminated, and (b) +acknowledge the offering is provided by {2}, not Microsoft, and agree to {2}'s terms of +use and privacy statement at <url> and (c) agree to sharing my contact information with {2}. + + + Role {0} instances are set to {1} + + + {"Slot":"","Location":"","Subscription":"","StorageAccountName":""} + + + deploymentSettings.json + + + Confirm + + + Shutdown + WAPackIaaS + + + /sites:{0};{1};"{2}/{0}" + + + 1000 + + + Start + WAPackIaaS + + + Started + + + Starting Emulator... + + + start + + + Stop + WAPackIaaS + + + Stopping emulator... + + + Stopped + + + stop + + + Account Name: + + + Cannot find storage account '{0}' please type the name of an existing storage account. + + + AzureStorageEmulator.exe + + + InstallPath + + + SOFTWARE\Microsoft\Windows Azure Storage Emulator + + + Primary Key: + + + Secondary Key: + + + The subscription named {0} already exists. + + + DefaultSubscriptionData.xml + + + The subscription data file {0} does not exist. + + + Subscription must not be null + WAPackIaaS + + + Suspend + WAPackIaaS + + + Swapping website production slot ... + + + Are you sure you want to swap the website '{0}' production slot with slot '{1}'? + + + The provider {0} is unknown. + + + Update + WAPackIaaS + + + Updated settings for subscription '{0}'. Current subscription is '{1}'. + + + A value for the VLan Id has to be provided. + + + Please wait... + + + The azure storage emulator is not installed, skip launching... + + + Web.cloud.config + + + web.config + + + MSDeploy + + + Cannot build the project successfully. Please see logs in {0}. + + + WebRole + + + setup_web.cmd > log.txt + + + WebRole.xml + + + WebSite with given name {0} already exists in the specified Subscription and Webspace. + + + WebSite with given name {0} already exists in the specified Subscription and Location. + + + Site {0} already has repository created for it. + + + Workspaces/WebsiteExtension/Website/{0}/dashboard/ + + + https://{0}/msdeploy.axd?site={1} + + + WorkerRole + + + setup_worker.cmd > log.txt + + + WorkerRole.xml + + + Yes + + + Yes, I agree + + + Remove-AzureTrafficManagerProfile Operation failed. + + + Successfully removed Traffic Manager profile with name {0}. + + + Are you sure you want to remove the Traffic Manager profile "{0}"? + + + Profile {0} already has an endpoint with name {1} + + + Profile {0} does not contain endpoint {1}. Adding it. + + + The endpoint {0} cannot be removed from profile {1} because it's not in the profile. + + + Insufficient parameters passed to create a new endpoint. + + + Ambiguous operation: the profile name specified doesn't match the name of the profile object. + + + <NONE> + + + "An exception occurred when calling the ServiceManagement API. HTTP Status Code: {0}. Service Management Error Code: {1}. Message: {2}. Operation Tracking ID: {3}." + {0} is the HTTP status code. {1} is the Service Management Error Code. {2} is the Service Management Error message. {3} is the operation tracking ID. + + + Unable to decode string from base 64. Please make sure the string is correctly encoded: {0}. + {0} is the string that is not in a valid base 64 format. + + + Skipping external tenant {0}, because you are using a guest or a foreign principal object identity. In order to access this tenant, please run Add-AzureAccount without "-Credential". + + + Removing an environment will remove all associated subscriptions and accounts. Are you sure you want to remove an environment '{0}'? + + + Removing environment + + + There is no subscription associated with account {0}. + + + Account id doesn't match one in subscription. + + + Environment name doesn't match one in subscription. + + + Removing the Azure profile will remove all associated environments, subscriptions, and accounts. Are you sure you want to remove the Azure profile? + + + Removing the Azure profile + + + The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information. + + + Account needs to be specified + + + No default subscription has been designated. Use Select-AzureSubscription -Default <subscriptionName> to set the default subscription. + + + Path must specify a valid path to an Azure profile. + + + Property bag Hashtable must contain one of the following sets of properties: {SubscriptionId, Certificate}, {SubscriptionId, Username, Password}, {SubscriptionId, ServicePrincipal, Password, Tenant}, {SubscriptionId, AccountId, Token} + + + Property bag Hashtable must contain a 'Certificate' of type 'X509Certificate2'. + + + Property bag Hashtable must contain a 'Password' with an associated 'Username' or 'ServicePrincipal'. + + + Property bag Hashtable must contain a 'SubscriptionId'. + + + Selected profile must not be null. + + + The Switch-AzureMode cmdlet is deprecated and will be removed in a future release. + + + OperationID : '{0}' + + + Cannot get module for DscResource '{0}'. Possible solutions: +1) Specify -ModuleName for Import-DscResource in your configuration. +2) Unblock module that contains resource. +3) Move Import-DscResource inside Node block. + + 0 = name of DscResource + + + Your current PowerShell version {1} is less then required by this cmdlet {0}. Consider download and install latest PowerShell version. + {0} = minimal required PS version, {1} = current PS version + + + Parsing configuration script: {0} + {0} is the path to a script file + + + Configuration script '{0}' contained parse errors: +{1} + 0 = path to the configuration script, 1 = parser errors + + + List of required modules: [{0}]. + {0} = list of modules + + + Temp folder '{0}' created. + {0} = temp folder path + + + Copy '{0}' to '{1}'. + {0} = source, {1} = destination + + + Copy the module '{0}' to '{1}'. + {0} = source, {1} = destination + + + File '{0}' already exists. Use the -Force parameter to overwrite it. + {0} is the path to a file + + + Configuration file '{0}' not found. + 0 = path to the configuration file + + + Path '{0}' not found. + 0 = path to the additional content file/directory + + + Path '{0}' not found. + 0 = path to the additional content file/directory + + + Invalid configuration file: {0}. +The file needs to be a PowerShell script (.ps1 or .psm1) or a ZIP archive (.zip). + 0 = path to the configuration file + + + Invalid configuration file: {0}. +The file needs to be a PowerShell script (.ps1 or .psm1). + 0 = path to the configuration file + + + Create Archive + + + Upload '{0}' + {0} is the name of an storage blob + + + Storage Blob '{0}' already exists. Use the -Force parameter to overwrite it. + {0} is the name of an storage blob + + + Configuration published to {0} + {0} is an URI + + + Deleted '{0}' + {0} is the path of a file + + + Cannot delete '{0}': {1} + {0} is the path of a file, {1} is an error message + + + Cannot find the WadCfg end element in the config. + + + WadCfg start element in the config is not matching the end element. + + + Cannot find the WadCfg element in the config. + + + Cannot find configuration data file: {0} + + + The configuration data must be a .psd1 file + + + Cannot change built-in environment {0}. + + + Azure PowerShell collects usage data in order to improve your experience. +The data is anonymous and does not include commandline argument values. +The data is collected by Microsoft. + +Use the Disable-AzDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Az.Accounts module. To disable data collection: PS > Disable-AzDataCollection. +Use the Enable-AzDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Az.Accounts module. To enable data collection: PS > Enable-AzDataCollection. + + + Microsoft Azure PowerShell Data Collection Confirmation + + + You choose not to participate in Microsoft Azure PowerShell data collection. + + + This confirmation message will be dismissed in '{0}' second(s)... + + + You choose to participate in Microsoft Azure PowerShell data collection. + + + The setting profile has been saved to the following path '{0}'. + + + [Common.Authentication]: Authenticating for account {0} with single tenant {1}. + + + Changing public environment is not supported. + + + Environment name needs to be specified. + + + Environment needs to be specified. + + + The environment name '{0}' is not found. + + + File path is not valid. + + + Must specify a non-null subscription name. + + + The default subscription is being removed. Use Select-AzureSubscription -Default <subscriptionName> to select a new default subscription. + + + Removing public environment is not supported. + + + The subscription id {0} doesn't exist. + + + Subscription name needs to be specified. + + + The subscription name {0} doesn't exist. + + + Subscription needs to be specified. + + + User name is not valid. + + + User name needs to be specified. + + + "There is no current context, please log in using Connect-AzAccount." + + + No subscriptions are associated with the logged in account in Azure Service Management (RDFE). This means that the logged in user is not an administrator or co-administrator for any account.\r\nDid you mean to execute Connect-AzAccount? + + + No certificate was found in the certificate store with thumbprint {0} + + + Illegal characters in path. + + + Invalid certificate format. Publish settings may be corrupted. Use Get-AzurePublishSettingsFile to download updated settings + + + "{0}" is an invalid DNS name for {1} + + + The provided file in {0} must be have {1} extension + + + {0} is invalid or empty + + + Please connect to internet before executing this cmdlet + + + Path {0} doesn't exist. + + + Path for {0} doesn't exist in {1}. + + + &whr={0} + + + The provided service name {0} already exists, please pick another name + + + Unable to update mismatching Json structured: {0} {1}. + + + (x86) + + + Azure PowerShell collects usage data in order to improve your experience. +The data is anonymous and does not include commandline argument values. +The data is collected by Microsoft. + +Use the Disable-AzureDataCollection cmdlet to turn the feature Off. The cmdlet can be found in the Azure module. To disable data collection: PS > Disable-AzureDataCollection. +Use the Enable-AzureDataCollection cmdlet to turn the feature On. The cmdlet can be found in the Azure module. To enable data collection: PS > Enable-AzureDataCollection. + + + Execution failed because a background thread could not prompt the user. + + + Azure Long-Running Job + + + The cmdlet failed in background execution. The returned error was '{0}'. Please execute the cmdlet again. You may need to execute this cmdlet synchronously, by omitting the '-AsJob' parameter. + 0(string): exception message in background task + + + Please execute the cmdlet again and include the 'Force' parameter, if available, to avoid unnecessary prompts. + + + Please execute the cmdlet again and omit the 'Confirm' parameter when using the 'AsJob' parameter. + + + Please increase the user $ConfirmPreference setting, or include turn off confirmation using '-Confirm:$false' when using the 'AsJob' parameter and execute the cmdet again. + + + Please execute the cmdlet again and omit the 'WhatIf' parameter when using the 'AsJob' parameter. + + + [AzureLongRunningJob]: Starting cmdlet execution, setting for cmdlet confirmation required: '{0}' + 0(bool): whether cmdlet confirmation is required + + + [AzureLongRunningJob]: Blocking job for ShouldMethod '{0}' + 0(string): method type + + + [AzureLongRunningJob]: Completing cmdlet execution in RunJob + + + [AzureLongRunningJob]: State change from '{0}' to '{1}' because '{2}' + 0(string): last state, 1(string): new state, 2(string): state change reason + + + [AzureLongRunningJob]: Unblocking job due to stoppage or failure + + + [AzureLongRunningJob]: Unblocking job that was previously blocked. + + + [AzureLongRunningJob]: Error in cmdlet execution + + + [AzureLongRunningJob]: Removing state changed event handler, exception '{0}' + 0(string): exception message + + + [AzureLongRunningJob]: ShouldMethod '{0}' unblocked. + 0(string): methodType + + + +- The parameter : '{0}' is changing. + + + +- The parameter : '{0}' is becoming mandatory. + + + +- The parameter : '{0}' is being replaced by parameter : '{1}'. + + + +- The parameter : '{0}' is being replaced by mandatory parameter : '{1}'. + + + +- Change description : {0} + + + The cmdlet is being deprecated. There will be no replacement for it. + + + The cmdlet parameter set is being deprecated. There will be no replacement for it. + + + The cmdlet '{0}' is replacing this cmdlet. + + + +- The output type is changing from the existing type :'{0}' to the new type :'{1}' + + + +- The output type '{0}' is changing + + + +- The following properties are being added to the output type : + + + +- The following properties in the output type are being deprecated : + + + {0} + + + +- Cmdlet : '{0}' + - {1} + + + Upcoming breaking changes in the cmdlet '{0}' : + + + +- This change will take effect on '{0}' + + + +- The change is expected to take effect from the version : '{0}' + + + ```powershell +# Old +{0} + +# New +{1} +``` + + + + +Cmdlet invocation changes : + Old Way : {0} + New Way : {1} + + + +The output type '{0}' is being deprecated without a replacement. + + + +The type of the parameter is changing from '{0}' to '{1}'. + + + +Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell. + + + This cmdlet is in preview. The functionality may not be available in the selected subscription. + + \ No newline at end of file diff --git a/src/ADDomainServices/generated/runtime/TypeConverterExtensions.cs b/src/ADDomainServices/generated/runtime/TypeConverterExtensions.cs index 9f50336b6a51..40231c3a767c 100644 --- a/src/ADDomainServices/generated/runtime/TypeConverterExtensions.cs +++ b/src/ADDomainServices/generated/runtime/TypeConverterExtensions.cs @@ -32,10 +32,10 @@ internal static T[] SelectToArray(object source, System.Func System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); } #else - catch + catch { // silent conversion fail - } + } #endif return new T[0]; // empty result if couldn't convert. } @@ -53,10 +53,10 @@ internal static T[] SelectToArray(object source, System.Func System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); } #else - catch + catch { // silent conversion fail - } + } #endif } return result.ToArray(); @@ -141,9 +141,9 @@ internal static T GetValueForProperty(this System.Collections.Generic.I System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); } #else - catch + catch { - } + } #endif return defaultValue; } @@ -160,9 +160,9 @@ internal static T GetValueForProperty(this System.Collections.IDictionary dic System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); } #else - catch + catch { - } + } #endif return defaultValue; } @@ -180,11 +180,32 @@ internal static T GetValueForProperty(this System.Management.Automation.PSObj System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); } #else - catch + catch { - } + } #endif return defaultValue; } + + internal static bool Contains(this System.Management.Automation.PSObject psObject, string propertyName) + { + bool result = false; + try + { + var property = System.Linq.Enumerable.FirstOrDefault(psObject.Properties, each => System.String.Equals(each.Name.ToString(), propertyName, System.StringComparison.CurrentCultureIgnoreCase)); + result = property == null ? false : true; + } +#if DEBUG + catch (System.Exception E) + { + System.Console.Error.WriteLine($"{E.GetType().Name}/{E.Message}/{E.StackTrace}"); + } +#else + catch + { + } +#endif + return result; + } } } diff --git a/src/ADDomainServices/generated/runtime/UndeclaredResponseException.cs b/src/ADDomainServices/generated/runtime/UndeclaredResponseException.cs index d3e7954a4973..a1fe639de1d3 100644 --- a/src/ADDomainServices/generated/runtime/UndeclaredResponseException.cs +++ b/src/ADDomainServices/generated/runtime/UndeclaredResponseException.cs @@ -63,7 +63,10 @@ public RestException(System.Net.Http.HttpResponseMessage response) catch { // couldn't get the code/message from the body response. - // we'll create one below. + // In this case, we will assume the response is the expected error message + if(!string.IsNullOrEmpty(ResponseBody)) { + message = ResponseBody; + } } #endif if (string.IsNullOrEmpty(message)) diff --git a/src/ADDomainServices/help/Az.ADDomainServices.md b/src/ADDomainServices/help/Az.ADDomainServices.md index 05c0d3af8674..5d97e4465906 100644 --- a/src/ADDomainServices/help/Az.ADDomainServices.md +++ b/src/ADDomainServices/help/Az.ADDomainServices.md @@ -18,11 +18,11 @@ The Get Domain Service operation retrieves a json representation of the Domain S The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. -### [New-AzADDomainServiceForestTrust](New-AzADDomainServiceForestTrust.md) -Create a in-memory object for ForestTrust +### [New-AzADDomainServiceForestTrustObject](New-AzADDomainServiceForestTrustObject.md) +Create an in-memory object for ForestTrust. -### [New-AzADDomainServiceReplicaSet](New-AzADDomainServiceReplicaSet.md) -Create a in-memory object for ReplicaSet +### [New-AzADDomainServiceReplicaSetObject](New-AzADDomainServiceReplicaSetObject.md) +Create an in-memory object for ReplicaSet. ### [Remove-AzADDomainService](Remove-AzADDomainService.md) The Delete Domain Service operation deletes an existing Domain Service. diff --git a/src/ADDomainServices/help/New-AzADDomainService.md b/src/ADDomainServices/help/New-AzADDomainService.md index 5317df71ec36..fe83df4ec990 100644 --- a/src/ADDomainServices/help/New-AzADDomainService.md +++ b/src/ADDomainServices/help/New-AzADDomainService.md @@ -16,14 +16,16 @@ If the specific service already exists, then any patchable properties will be up ``` New-AzADDomainService -Name -ResourceGroupName -DomainName -ReplicaSet [-SubscriptionId ] [-DomainConfigurationType ] - [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] [-DomainSecuritySettingSyncOnPremPassword ] - [-DomainSecuritySettingTlsV1 ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] [-LdapSettingPfxCertificate ] - [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] - [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] + [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] + [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] + [-Etag ] [-FilteredSync ] [-ForestTrust ] + [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] + [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] + [-Location ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ResourceForest ] [-Sku ] + [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -32,10 +34,10 @@ If the specific service already exists, then any patchable properties will be up ## EXAMPLES -### Example 1: Create new ADDomainService +### Example 1: Create a new ADDomainService ```powershell -$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet ``` ```output @@ -44,7 +46,7 @@ Name Domain Name Location Sku youriADdomain youriAddomain.com westus Enterprise ``` -Create new ADDomainService +Create a new ADDomainService ### Example 2: Create new ADDomainService with certificate ```powershell @@ -53,6 +55,7 @@ $replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscr $certificateBytes = get-content "certificate.pfx" -AsByteStream $base64String = [System.Convert]::ToBase64String($certificateBytes) $ldaps_pfx_pass = "MyStrongPassword" + New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) ``` @@ -130,7 +133,7 @@ Accept wildcard characters: False A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 Parameter Sets: (All) Aliases: @@ -145,7 +148,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords Parameter Sets: (All) Aliases: @@ -160,7 +163,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords Parameter Sets: (All) Aliases: @@ -175,7 +178,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords Parameter Sets: (All) Aliases: @@ -189,6 +192,21 @@ Accept wildcard characters: False ### -DomainSecuritySettingTlsV1 A flag to determine whether or not TlsV1 is enabled or disabled. +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + ```yaml Type: System.String Parameter Sets: (All) @@ -205,7 +223,7 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync Parameter Sets: (All) Aliases: @@ -236,7 +254,7 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess Parameter Sets: (All) Aliases: @@ -251,7 +269,7 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps Parameter Sets: (All) Aliases: @@ -262,9 +280,9 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificate -The certificate required to configure Secure LDAP. -The parameter passed here should be a base64encoded representation of the certificate pfx file. +### -LdapSettingPfxCertificateInputFile +Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. +The parameter passed here should be a base64encoded representation of the certificate pfx file.) ```yaml Type: System.String @@ -293,6 +311,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Location +Resource location + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: $ReplicaSet[0].Location +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the domain service. @@ -327,7 +360,7 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins Parameter Sets: (All) Aliases: @@ -342,7 +375,7 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins Parameter Sets: (All) Aliases: @@ -514,7 +547,7 @@ FORESTTRUST : List of settings for Resource Forest - `[FriendlyName ]`: Friendly Name - `[RemoteDnsIP ]`: Remote Dns ips - `[TrustDirection ]`: Trust Direction - - `[TrustPassword ]`: Trust Password + - `[TrustPassword ]`: Trust Password - `[TrustedDomainFqdn ]`: Trusted Domain FQDN REPLICASET : List of ReplicaSets diff --git a/src/ADDomainServices/help/New-AzADDomainServiceForestTrust.md b/src/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md similarity index 78% rename from src/ADDomainServices/help/New-AzADDomainServiceForestTrust.md rename to src/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md index 44d734092ae7..b5f50d1eb905 100644 --- a/src/ADDomainServices/help/New-AzADDomainServiceForestTrust.md +++ b/src/ADDomainServices/help/New-AzADDomainServiceForestTrustObject.md @@ -1,30 +1,30 @@ --- external help file: Module Name: Az.ADDomainServices -online version: https://docs.microsoft.com/powershell/module/az.ADDomainServices/new-AzADDomainServiceForestTrust +online version: https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceForestTrustObject schema: 2.0.0 --- -# New-AzADDomainServiceForestTrust +# New-AzADDomainServiceForestTrustObject ## SYNOPSIS -Create a in-memory object for ForestTrust +Create an in-memory object for ForestTrust. ## SYNTAX ``` -New-AzADDomainServiceForestTrust [-FriendlyName ] [-RemoteDnsIP ] [-TrustDirection ] - [-TrustedDomainFqdn ] [-TrustPassword ] [] +New-AzADDomainServiceForestTrustObject [-FriendlyName ] [-RemoteDnsIP ] + [-TrustDirection ] [-TrustedDomainFqdn ] [-TrustPassword ] [] ``` ## DESCRIPTION -Create a in-memory object for ForestTrust +Create an in-memory object for ForestTrust. ## EXAMPLES ### Example 1: Create ServiceForestTrust for ADDomain ```powershell -New-AzADDomainServiceForestTrust -FriendlyName FriendlyNameTest +New-AzADDomainServiceForestTrustObject -FriendlyName FriendlyNameTest ``` ```output @@ -33,7 +33,8 @@ FriendlyName RemoteDnsIP TrustDirection TrustPassword TrustedDomainFqdn FriendlyNameTest ``` -Create ServiceForestTrust for ADDomain +Create an in-memory object for ForestTrust. +This object can be used to create or update a domain service. ## PARAMETERS diff --git a/src/ADDomainServices/help/New-AzADDomainServiceReplicaSet.md b/src/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md similarity index 70% rename from src/ADDomainServices/help/New-AzADDomainServiceReplicaSet.md rename to src/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md index f7fce3f0b089..05cca970513f 100644 --- a/src/ADDomainServices/help/New-AzADDomainServiceReplicaSet.md +++ b/src/ADDomainServices/help/New-AzADDomainServiceReplicaSetObject.md @@ -1,38 +1,39 @@ --- external help file: Module Name: Az.ADDomainServices -online version: https://docs.microsoft.com/powershell/module/az.ADDomainServices/new-AzADDomainServiceReplicaSet +online version: https://docs.microsoft.com/powershell/module/az.ADDomainService/new-AzADDomainServiceReplicaSetObject schema: 2.0.0 --- -# New-AzADDomainServiceReplicaSet +# New-AzADDomainServiceReplicaSetObject ## SYNOPSIS -Create a in-memory object for ReplicaSet +Create an in-memory object for ReplicaSet. ## SYNTAX ``` -New-AzADDomainServiceReplicaSet [-Location ] [-SubnetId ] [] +New-AzADDomainServiceReplicaSetObject [-Location ] [-SubnetId ] [] ``` ## DESCRIPTION -Create a in-memory object for ReplicaSet +Create an in-memory object for ReplicaSet. ## EXAMPLES ### Example 1: Create ReplicaSet for AdDomain ```powershell -New-AzADDomainServiceReplicaSet -Location eastus -SubnetId /subscriptions/**********-****-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/Microsoft.Network/virtualNetworks/yourinttest/subnets/default +New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vm/subnets/test-subnets ``` ```output DomainControllerIPAddress ExternalAccessIPAddress HealthLastEvaluated Location ServiceStatus SubnetId ------------------------- ----------------------- ------------------- -------- ------------- -------- - eastus /subscriptions/********-****-****-****-**********/resourceGroups/youriADDomain-rg-test/providers/M… + westus /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resource… ``` -Create ReplicaSet for AdDomain +Create an in-memory object for ReplicaSet. +This object can be used to create or update a domain service. ## PARAMETERS diff --git a/src/ADDomainServices/help/Update-AzADDomainService.md b/src/ADDomainServices/help/Update-AzADDomainService.md index 7fec5cd6eb33..ae3424a5afb3 100644 --- a/src/ADDomainServices/help/Update-AzADDomainService.md +++ b/src/ADDomainServices/help/Update-AzADDomainService.md @@ -16,28 +16,35 @@ The update call only supports the properties listed in the PATCH body. ### UpdateExpanded (Default) ``` Update-AzADDomainService -Name -ResourceGroupName [-SubscriptionId ] - [-DomainConfigurationType ] [-DomainSecuritySettingNtlmV1 ] - [-DomainSecuritySettingSyncKerberosPassword ] [-DomainSecuritySettingSyncNtlmPassword ] - [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] - [-FilteredSync ] [-ForestTrust ] [-LdapSettingExternalAccess ] - [-LdapSettingLdaps ] [-LdapSettingPfxCertificate ] - [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] - [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DomainConfigurationType ] [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] + [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] + [-Etag ] [-FilteredSync ] [-ForestTrust ] + [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] + [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] + [-Location ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] + [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzADDomainService -InputObject [-DomainConfigurationType ] - [-DomainSecuritySettingNtlmV1 ] [-DomainSecuritySettingSyncKerberosPassword ] - [-DomainSecuritySettingSyncNtlmPassword ] [-DomainSecuritySettingSyncOnPremPassword ] - [-DomainSecuritySettingTlsV1 ] [-FilteredSync ] [-ForestTrust ] - [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] [-LdapSettingPfxCertificate ] - [-LdapSettingPfxCertificatePassword ] [-NotificationSettingAdditionalRecipient ] - [-NotificationSettingNotifyDcAdmin ] [-NotificationSettingNotifyGlobalAdmin ] - [-ReplicaSet ] [-ResourceForest ] [-Sku ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DomainName ] [-DomainSecuritySettingNtlmV1 ] + [-DomainSecuritySettingSyncKerberosPassword ] + [-DomainSecuritySettingSyncNtlmPassword ] + [-DomainSecuritySettingSyncOnPremPassword ] [-DomainSecuritySettingTlsV1 ] + [-Etag ] [-FilteredSync ] [-ForestTrust ] + [-LdapSettingExternalAccess ] [-LdapSettingLdaps ] + [-LdapSettingPfxCertificateInputFile ] [-LdapSettingPfxCertificatePassword ] + [-Location ] [-NotificationSettingAdditionalRecipient ] + [-NotificationSettingNotifyDcAdmin ] + [-NotificationSettingNotifyGlobalAdmin ] [-ReplicaSet ] + [-ResourceForest ] [-Sku ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -120,11 +127,26 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -DomainName +The name of the Azure domain that the user would like to deploy Domain Services to. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DomainSecuritySettingNtlmV1 A flag to determine whether or not NtlmV1 is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1 Parameter Sets: (All) Aliases: @@ -139,7 +161,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords Parameter Sets: (All) Aliases: @@ -154,7 +176,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords Parameter Sets: (All) Aliases: @@ -169,7 +191,7 @@ Accept wildcard characters: False A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords Parameter Sets: (All) Aliases: @@ -183,6 +205,21 @@ Accept wildcard characters: False ### -DomainSecuritySettingTlsV1 A flag to determine whether or not TlsV1 is enabled or disabled. +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Etag +Resource etag + ```yaml Type: System.String Parameter Sets: (All) @@ -199,7 +236,7 @@ Accept wildcard characters: False Enabled or Disabled flag to turn on Group-based filtered sync ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync Parameter Sets: (All) Aliases: @@ -246,7 +283,7 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess Parameter Sets: (All) Aliases: @@ -261,7 +298,7 @@ Accept wildcard characters: False A flag to determine whether or not Secure LDAP is enabled or disabled. ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps Parameter Sets: (All) Aliases: @@ -272,9 +309,9 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -LdapSettingPfxCertificate -The certificate required to configure Secure LDAP. -The parameter passed here should be a base64encoded representation of the certificate pfx file. +### -LdapSettingPfxCertificateInputFile +Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. +The parameter passed here should be a base64encoded representation of the certificate pfx file.) ```yaml Type: System.String @@ -303,6 +340,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Location +Resource location + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the domain service. @@ -337,7 +389,7 @@ Accept wildcard characters: False Should domain controller admins be notified ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins Parameter Sets: (All) Aliases: @@ -352,7 +404,7 @@ Accept wildcard characters: False Should global admins be notified ```yaml -Type: System.String +Type: Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins Parameter Sets: (All) Aliases: @@ -526,7 +578,7 @@ FORESTTRUST : List of settings for Resource Forest - `[FriendlyName ]`: Friendly Name - `[RemoteDnsIP ]`: Remote Dns ips - `[TrustDirection ]`: Trust Direction - - `[TrustPassword ]`: Trust Password + - `[TrustPassword ]`: Trust Password - `[TrustedDomainFqdn ]`: Trusted Domain FQDN INPUTOBJECT : Identity Parameter diff --git a/src/ADDomainServices/how-to.md b/src/ADDomainServices/how-to.md index 4de19ab104ea..37e587593869 100644 --- a/src/ADDomainServices/how-to.md +++ b/src/ADDomainServices/how-to.md @@ -2,19 +2,19 @@ This document describes how to develop for `Az.ADDomainServices`. ## Building `Az.ADDomainServices` -To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [readme.md](exports/readme.md) in the `exports` folder. +To build, run the `build-module.ps1` at the root of the module directory. This will generate the proxy script cmdlets that are the cmdlets being exported by this module. After the build completes, the proxy script cmdlets will be output to the `exports` folder. To read more about the proxy script cmdlets, look at the [README.md](exports/README.md) in the `exports` folder. ## Creating custom cmdlets -To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [readme.md](custom/readme.md) in the `custom` folder. +To add cmdlets that were not generated by the REST specification, use the `custom` folder. This folder allows you to add handwritten `.ps1` and `.cs` files. Currently, we support using `.ps1` scripts as new cmdlets or as additional low-level variants (via `ParameterSet`), and `.cs` files as low-level (variants) cmdlets that the exported script cmdlets call. We do not support exporting any `.cs` (dll) cmdlets directly. To read more about custom cmdlets, look at the [README.md](custom/README.md) in the `custom` folder. ## Generating documentation -To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [readme.md](examples/readme.md) in the `examples` folder. To read more about documentation, look at the [readme.md](docs/readme.md) in the `docs` folder. +To generate documentation, the process is now integrated into the `build-module.ps1` script. If you don't want to run this process as part of `build-module.ps1`, you can provide the `-NoDocs` switch. If you want to run documentation generation after the build process, you may still run the `generate-help.ps1` script. Overall, the process will look at the documentation comments in the generated and custom cmdlets and types, and create `.md` files into the `docs` folder. Additionally, this pulls in any examples from the `examples` folder and adds them to the generated help markdown documents. To read more about examples, look at the [README.md](examples/README.md) in the `examples` folder. To read more about documentation, look at the [README.md](docs/README.md) in the `docs` folder. ## Testing `Az.ADDomainServices` -To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [readme.md](examples/readme.md) in the `examples` folder. +To test the cmdlets, we use [Pester](https://github.com/pester/Pester). Tests scripts (`.ps1`) should be added to the `test` folder. To execute the Pester tests, run the `test-module.ps1` script. This will run all tests in `playback` mode within the `test` folder. To read more about testing cmdlets, look at the [README.md](examples/README.md) in the `examples` folder. ## Packing `Az.ADDomainServices` -To pack `Az.ADDomainServices` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/en-us/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. +To pack `Az.ADDomainServices` for distribution, run the `pack-module.ps1` script. This will take the contents of multiple directories and certain root-folder files to create a `.nupkg`. The structure of the `.nupkg` is created so it can be loaded part of a [PSRepository](https://docs.microsoft.com/powershell/module/powershellget/register-psrepository). Additionally, this package is in a format for distribution to the [PSGallery](https://www.powershellgallery.com/). For signing an Azure module, please contact the [Azure PowerShell](https://github.com/Azure/azure-powershell) team. ## Module Script Details There are multiple scripts created for performing different actions for developing `Az.ADDomainServices`. diff --git a/src/ADDomainServices/internal/Get-AzADDomainServiceOperation.ps1 b/src/ADDomainServices/internal/Get-AzADDomainServiceOperation.ps1 index 39c0504872ea..57e16166772f 100644 --- a/src/ADDomainServices/internal/Get-AzADDomainServiceOperation.ps1 +++ b/src/ADDomainServices/internal/Get-AzADDomainServiceOperation.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -19,18 +20,14 @@ Lists all the available Domain Services operations. .Description Lists all the available Domain Services operations. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/get-azaddomainserviceoperation +https://docs.microsoft.com/powershell/module/az.addomainservices/get-azaddomainserviceoperation #> function Get-AzADDomainServiceOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity])] @@ -91,14 +88,17 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.ADDomainServices.private\Get-AzADDomainServiceOperation_List'; } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -107,15 +107,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/ADDomainServices/internal/New-AzADDomainService.ps1 b/src/ADDomainServices/internal/New-AzADDomainService.ps1 index 67fe807ef13f..4a708b992e9f 100644 --- a/src/ADDomainServices/internal/New-AzADDomainService.ps1 +++ b/src/ADDomainServices/internal/New-AzADDomainService.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -21,12 +22,16 @@ If the specific service already exists, then any patchable properties will be up The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Example -PS C:\> $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +.Example +# Variables +$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ +$certificateBytes = get-content "certificate.pfx" -AsByteStream +$base64String = [System.Convert]::ToBase64String($certificateBytes) +$ldaps_pfx_pass = "MyStrongPassword" -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService @@ -39,14 +44,14 @@ FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN REPLICASET : List of ReplicaSets [Location ]: Virtual network location [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> function New-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -75,6 +80,7 @@ param( ${SubscriptionId}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type @@ -135,6 +141,7 @@ param( ${FilteredSync}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] # List of settings for Resource Forest @@ -158,23 +165,25 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [System.Security.SecureString] # The password to decrypt the provided Secure LDAP certificate pfx file. ${LdapSettingPfxCertificatePassword}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] [System.String] # Resource location ${Location}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients @@ -195,6 +204,7 @@ param( ${NotificationSettingNotifyGlobalAdmin}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] # List of ReplicaSets @@ -208,6 +218,7 @@ param( ${ResourceForest}, [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -287,17 +298,23 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ CreateExpanded = 'Az.ADDomainServices.private\New-AzADDomainService_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters['Location'] = $ReplicaSet[0].Location + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -306,15 +323,18 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/ADDomainServices/internal/ProxyCmdletDefinitions.ps1 b/src/ADDomainServices/internal/ProxyCmdletDefinitions.ps1 index 7ff93cf7412f..3f22aa8bc264 100644 --- a/src/ADDomainServices/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ADDomainServices/internal/ProxyCmdletDefinitions.ps1 @@ -1,7 +1,6 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -11,6 +10,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- <# @@ -19,18 +20,14 @@ Lists all the available Domain Services operations. .Description Lists all the available Domain Services operations. .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Example -PS C:\> {{ Add code here }} - -{{ Add output here }} +{{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/get-azaddomainserviceoperation +https://docs.microsoft.com/powershell/module/az.addomainservices/get-azaddomainserviceoperation #> function Get-AzADDomainServiceOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IOperationEntity])] @@ -91,14 +88,17 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ List = 'Az.ADDomainServices.private\Get-AzADDomainServiceOperation_List'; } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -107,32 +107,21 @@ process { try { $steppablePipeline.Process($_) } catch { + throw } -} +} end { try { $steppablePipeline.End() + } catch { + throw } +} } -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- <# .Synopsis @@ -142,12 +131,16 @@ If the specific service already exists, then any patchable properties will be up The Create Domain Service operation creates a new domain service with the specified parameters. If the specific service already exists, then any patchable properties will be updated and any immutable properties will remain unchanged. .Example -PS C:\> $replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default -New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -debug +$replicaSet = New-AzADDomainServiceReplicaSetObject -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/default +New-AzADDomainService -Name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet +.Example +# Variables +$replicaSet = New-AzADDomainServiceReplicaSet -Location westus -SubnetId /subscriptions/********-****-****-****-**********/resourceGroups/yishitest/providers/Microsoft.Network/virtualNetworks/aadds-vnet/subnets/default\ +$certificateBytes = get-content "certificate.pfx" -AsByteStream +$base64String = [System.Convert]::ToBase64String($certificateBytes) +$ldaps_pfx_pass = "MyStrongPassword" -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise +New-AzADDomainService -name youriADdomain -ResourceGroupName youriAddomain -DomainName youriAddomain.com -ReplicaSet $replicaSet -LdapSettingLdaps Enabled -LdapSettingPfxCertificate $base64String -LdapSettingPfxCertificatePassword $($ldaps_pfx_pass | ConvertTo-SecureString -Force -AsPlainText) .Outputs Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService @@ -160,14 +153,14 @@ FORESTTRUST : List of settings for Resource Forest [FriendlyName ]: Friendly Name [RemoteDnsIP ]: Remote Dns ips [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password + [TrustPassword ]: Trust Password [TrustedDomainFqdn ]: Trusted Domain FQDN REPLICASET : List of ReplicaSets [Location ]: Virtual network location [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. .Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/new-azaddomainservice +https://docs.microsoft.com/powershell/module/az.addomainservices/new-azaddomainservice #> function New-AzADDomainService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] @@ -196,6 +189,7 @@ param( ${SubscriptionId}, [Parameter()] + [ArgumentCompleter({'FullySynced', 'ResourceTrusting'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Domain Configuration Type @@ -256,6 +250,7 @@ param( ${FilteredSync}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] # List of settings for Resource Forest @@ -279,23 +274,25 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, + # Input File for LdapSettingPfxCertificate (The certificate required to configure Secure LDAP. + # The parameter passed here should be a base64encoded representation of the certificate pfx file.) + ${LdapSettingPfxCertificateInputFile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] + [System.Security.SecureString] # The password to decrypt the provided Secure LDAP certificate pfx file. ${LdapSettingPfxCertificatePassword}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Name='Location Default', Description='Gets the Location from the first element in ReplicaSets.', Script='$ReplicaSet[0].Location')] [System.String] # Resource location ${Location}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String[]] # The list of additional recipients @@ -316,6 +313,7 @@ param( ${NotificationSettingNotifyGlobalAdmin}, [Parameter()] + [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] # List of ReplicaSets @@ -329,6 +327,7 @@ param( ${ResourceForest}, [Parameter()] + [ArgumentCompleter({'Standard', 'Enterprise', 'Premium'})] [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] [System.String] # Sku Type @@ -408,17 +407,23 @@ begin { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName + $mapping = @{ CreateExpanded = 'Az.ADDomainServices.private\New-AzADDomainService_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } + if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('Location')) { + $PSBoundParameters['Location'] = $ReplicaSet[0].Location + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { + throw } } @@ -427,359 +432,18 @@ process { try { $steppablePipeline.Process($_) } catch { - throw - } -} -end { - try { - $steppablePipeline.End() - } catch { throw } -} -} - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Description -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Example -PS C:\> $ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise -.Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -$ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FORESTTRUST : List of settings for Resource Forest - [FriendlyName ]: Friendly Name - [RemoteDnsIP ]: Remote Dns ips - [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password - [TrustedDomainFqdn ]: Trusted Domain FQDN - -INPUTOBJECT : Identity Parameter - [DomainServiceName ]: The name of the domain service. - [Id ]: Resource identity path - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -REPLICASET : List of ReplicaSets - [Location ]: Virtual network location - [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. -.Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/update-azaddomainservice -#> -function Update-AzADDomainService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DomainServiceName')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the domain service. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Domain Configuration Type - ${DomainConfigurationType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the Azure domain that the user would like to deploy Domain Services to. - ${DomainName}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] - # A flag to determine whether or not NtlmV1 is enabled or disabled. - ${DomainSecuritySettingNtlmV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] - # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. - ${DomainSecuritySettingSyncKerberosPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] - # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. - ${DomainSecuritySettingSyncNtlmPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] - # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. - ${DomainSecuritySettingSyncOnPremPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] - # A flag to determine whether or not TlsV1 is enabled or disabled. - ${DomainSecuritySettingTlsV1}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource etag - ${Etag}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] - # Enabled or Disabled flag to turn on Group-based filtered sync - ${FilteredSync}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] - # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. - ${LdapSettingExternalAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] - # A flag to determine whether or not Secure LDAP is enabled or disabled. - ${LdapSettingLdaps}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The password to decrypt the provided Secure LDAP certificate pfx file. - ${LdapSettingPfxCertificatePassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource location - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String[]] - # The list of additional recipients - ${NotificationSettingAdditionalRecipient}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] - # Should domain controller admins be notified - ${NotificationSettingNotifyDcAdmin}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] - # Should global admins be notified - ${NotificationSettingNotifyGlobalAdmin}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource Forest - ${ResourceForest}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Sku Type - ${Sku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - UpdateExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } } - end { try { $steppablePipeline.End() + } catch { + throw } -} +} } diff --git a/src/ADDomainServices/internal/README.md b/src/ADDomainServices/internal/README.md index 694cf026371f..a2c253df733c 100644 --- a/src/ADDomainServices/internal/README.md +++ b/src/ADDomainServices/internal/README.md @@ -1,5 +1,5 @@ # Internal -This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. +This directory contains a module to handle *internal only* cmdlets. Cmdlets that you **hide** in configuration are created here. For more information on hiding, see [cmdlet hiding](https://github.com/Azure/autorest.powershell/blob/main/docs/directives.md#cmdlet-hiding-exportation-suppression). The cmdlets in this directory are generated at **build-time**. Do not put any custom code, files, cmdlets, etc. into this directory. Please use `..\custom` for all custom implementation. ## Info - Modifiable: no @@ -8,7 +8,7 @@ This directory contains a module to handle *internal only* cmdlets. Cmdlets that - Packaged: yes ## Details -The `Az.ADDomainServices.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ADDomainServices`. Instead, this sub-module is imported by the `..\custom\Az.ADDomainServices.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ADDomainServices.internal\Get-Example` would call an internal cmdlet named `Get-Example`. +The `Az.ADDomainServices.internal.psm1` file is generated to this folder. This module file handles the hidden cmdlets. These cmdlets will not be exported by `Az.ADDomainServices`. Instead, this sub-module is imported by the `..\custom\Az.ADDomainServices.custom.psm1` module, allowing you to use hidden cmdlets in your custom, exposed cmdlets. To call these cmdlets in your custom scripts, simply use [module-qualified calls](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_command_precedence?view=powershell-6#qualified-names). For example, `Az.ADDomainServices.internal\Get-Example` would call an internal cmdlet named `Get-Example`. ## Purpose -This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.ADDomainServices`. \ No newline at end of file +This allows you to include REST specifications for services that you *do not wish to expose from your module*, but simply want to call within custom cmdlets. For example, if you want to make a custom cmdlet that uses `Storage` services, you could include a simplified `Storage` REST specification that has only the operations you need. When you run the generator and build this module, note the generated `Storage` cmdlets. Then, in your readme configuration, use [cmdlet hiding](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md#cmdlet-hiding-exportation-suppression) on the `Storage` cmdlets and they will *only be exposed to the custom cmdlets* you want to write, and not be exported as part of `Az.ADDomainServices`. diff --git a/src/ADDomainServices/internal/Update-AzADDomainService.ps1 b/src/ADDomainServices/internal/Update-AzADDomainService.ps1 deleted file mode 100644 index 7ec81a2d9f74..000000000000 --- a/src/ADDomainServices/internal/Update-AzADDomainService.ps1 +++ /dev/null @@ -1,344 +0,0 @@ - -# ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# http://www.apache.org/licenses/LICENSE-2.0 -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# ---------------------------------------------------------------------------------- - -<# -.Synopsis -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Description -The Update Domain Service operation can be used to update the existing deployment. -The update call only supports the properties listed in the PATCH body. -.Example -PS C:\> $ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise -.Example -PS C:\> $getAzAddomain = Get-AzADDomainService -Name youriADdomain -ResourceGroupName youriADdomain -$ADDomainSetting = New-AzADDomainServiceDomainSecuritySettingObject -TlsV1 Disabled -Update-AzADDomainService -InputObject $getAzAddomain -DomainSecuritySetting $ADDomainSetting - -Name Domain Name Location Sku ----- ----------- -------- --- -youriADdomain youriAddomain.com westus Enterprise - -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService -.Notes -COMPLEX PARAMETER PROPERTIES - -To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. - -FORESTTRUST : List of settings for Resource Forest - [FriendlyName ]: Friendly Name - [RemoteDnsIP ]: Remote Dns ips - [TrustDirection ]: Trust Direction - [TrustPassword ]: Trust Password - [TrustedDomainFqdn ]: Trusted Domain FQDN - -INPUTOBJECT : Identity Parameter - [DomainServiceName ]: The name of the domain service. - [Id ]: Resource identity path - [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. - [SubscriptionId ]: Gets subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. - -REPLICASET : List of ReplicaSets - [Location ]: Virtual network location - [SubnetId ]: The name of the virtual network that Domain Services will be deployed on. The id of the subnet that Domain Services will be deployed on. /virtualNetwork/vnetName/subnets/subnetName. -.Link -https://docs.microsoft.com/en-us/powershell/module/az.addomainservices/update-azaddomainservice -#> -function Update-AzADDomainService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IDomainService])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] -param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Alias('DomainServiceName')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the domain service. - ${Name}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [System.String] - # The name of the resource group within the user's subscription. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] - [System.String] - # Gets subscription credentials which uniquely identify the Microsoft Azure subscription. - # The subscription ID forms part of the URI for every service call. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.IAdDomainServicesIdentity] - # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - ${InputObject}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Domain Configuration Type - ${DomainConfigurationType}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The name of the Azure domain that the user would like to deploy Domain Services to. - ${DomainName}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NtlmV1] - # A flag to determine whether or not NtlmV1 is enabled or disabled. - ${DomainSecuritySettingNtlmV1}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncKerberosPasswords] - # A flag to determine whether or not SyncKerberosPasswords is enabled or disabled. - ${DomainSecuritySettingSyncKerberosPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncNtlmPasswords] - # A flag to determine whether or not SyncNtlmPasswords is enabled or disabled. - ${DomainSecuritySettingSyncNtlmPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.SyncOnPremPasswords] - # A flag to determine whether or not SyncOnPremPasswords is enabled or disabled. - ${DomainSecuritySettingSyncOnPremPassword}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.TlsV1] - # A flag to determine whether or not TlsV1 is enabled or disabled. - ${DomainSecuritySettingTlsV1}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource etag - ${Etag}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.FilteredSync] - # Enabled or Disabled flag to turn on Group-based filtered sync - ${FilteredSync}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IForestTrust[]] - # List of settings for Resource Forest - # To construct, see NOTES section for FORESTTRUST properties and create a hash table. - ${ForestTrust}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.ExternalAccess] - # A flag to determine whether or not Secure LDAP access over the internet is enabled or disabled. - ${LdapSettingExternalAccess}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.Ldaps] - # A flag to determine whether or not Secure LDAP is enabled or disabled. - ${LdapSettingLdaps}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The certificate required to configure Secure LDAP. - # The parameter passed here should be a base64encoded representation of the certificate pfx file. - ${LdapSettingPfxCertificate}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # The password to decrypt the provided Secure LDAP certificate pfx file. - ${LdapSettingPfxCertificatePassword}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource location - ${Location}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String[]] - # The list of additional recipients - ${NotificationSettingAdditionalRecipient}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyDcAdmins] - # Should domain controller admins be notified - ${NotificationSettingNotifyDcAdmin}, - - [Parameter()] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins])] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Support.NotifyGlobalAdmins] - # Should global admins be notified - ${NotificationSettingNotifyGlobalAdmin}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IReplicaSet[]] - # List of ReplicaSets - # To construct, see NOTES section for REPLICASET properties and create a hash table. - ${ReplicaSet}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Resource Forest - ${ResourceForest}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [System.String] - # Sku Type - ${Sku}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Models.Api202001.IResourceTags]))] - [System.Collections.Hashtable] - # Resource tags - ${Tag}, - - [Parameter()] - [Alias('AzureRMContext', 'AzureCredential')] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Azure')] - [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. - ${DefaultProfile}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command as a job - ${AsJob}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be appended to the front of the pipeline - ${HttpPipelineAppend}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Runtime.SendAsyncStep[]] - # SendAsync Pipeline Steps to be prepended to the front of the pipeline - ${HttpPipelinePrepend}, - - [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, - - [Parameter(DontShow)] - [ValidateNotNull()] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.PSCredential] - # Credentials for a proxy server to use for the remote call - ${ProxyCredential}, - - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.ADDomainServices.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} -) - -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName - $mapping = @{ - UpdateExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.ADDomainServices.private\Update-AzADDomainService_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id - } - $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) - $scriptCmd = {& $wrappedCmd @PSBoundParameters} - $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) - $steppablePipeline.Begin($PSCmdlet) - } catch { - throw - } -} - -process { - try { - $steppablePipeline.Process($_) - } catch { - throw - } -} - -end { - try { - $steppablePipeline.End() - } catch { - throw - } -} -} diff --git a/src/ADDomainServices/pack-module.ps1 b/src/ADDomainServices/pack-module.ps1 index c22fad33d87b..2f30ca3fffa0 100644 --- a/src/ADDomainServices/pack-module.ps1 +++ b/src/ADDomainServices/pack-module.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- Write-Host -ForegroundColor Green 'Packing module...' dotnet pack $PSScriptRoot --no-build /nologo diff --git a/src/ADDomainServices/run-module.ps1 b/src/ADDomainServices/run-module.ps1 index 827932d3e06c..7d0a54fe4111 100644 --- a/src/ADDomainServices/run-module.ps1 +++ b/src/ADDomainServices/run-module.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- param([switch]$Isolated, [switch]$Code) $ErrorActionPreference = 'Stop' @@ -24,6 +25,8 @@ if(-not $Isolated) { $isAzure = $true if($isAzure) { . (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts + # Load the latest version of Az.Accounts installed + Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version } $localModulesPath = Join-Path $PSScriptRoot 'generated\modules' diff --git a/src/ADDomainServices/test-module.ps1 b/src/ADDomainServices/test-module.ps1 index 45025d89c5f0..1bb9167f8dd9 100644 --- a/src/ADDomainServices/test-module.ps1 +++ b/src/ADDomainServices/test-module.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,30 +9,45 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- -param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback) +param([switch]$Isolated, [switch]$Live, [switch]$Record, [switch]$Playback, [switch]$RegenerateSupportModule, [switch]$UsePreviousConfigForRecord, [string[]]$TestName) $ErrorActionPreference = 'Stop' -if(-not $Isolated) { +if(-not $Isolated) +{ Write-Host -ForegroundColor Green 'Creating isolated process...' + if ($PSBoundParameters.ContainsKey("TestName")) { + $PSBoundParameters["TestName"] = $PSBoundParameters["TestName"] -join "," + } $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated return } +# This is a workaround, since for string array parameter, pwsh -File will only take the first element +if ($PSBoundParameters.ContainsKey("TestName") -and ($TestName.count -eq 1) -and ($TestName[0].Contains(','))) { + $TestName = $TestName[0].Split(",") +} + $ProgressPreference = 'SilentlyContinue' $baseName = $PSScriptRoot.BaseName $requireResourceModule = (($baseName -ne "Resources") -and ($Record.IsPresent -or $Live.IsPresent)) -. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule +. (Join-Path $PSScriptRoot 'check-dependencies.ps1') -Isolated -Accounts:$false -Pester -Resources:$requireResourceModule -RegenerateSupportModule:$RegenerateSupportModule . ("$PSScriptRoot\test\utils.ps1") -if ($requireResourceModule) { +if ($requireResourceModule) +{ + # Load the latest Az.Accounts installed + Import-Module -Name Az.Accounts -RequiredVersion (Get-Module -Name Az.Accounts -ListAvailable | Sort-Object -Property Version -Descending)[0].Version $resourceModulePSD = Get-Item -Path (Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psd1') Import-Module -Name $resourceModulePSD.FullName } $localModulesPath = Join-Path $PSScriptRoot 'generated\modules' -if(Test-Path -Path $localModulesPath) { +if(Test-Path -Path $localModulesPath) +{ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath" } @@ -45,22 +59,34 @@ Import-Module -Name Pester Import-Module -Name $modulePath $TestMode = 'playback' -if($Live) { +$ExcludeTag = @("LiveOnly") +if($Live) +{ $TestMode = 'live' + $ExcludeTag = @() } -if($Record) { +if($Record) +{ $TestMode = 'record' } -try { - if ($TestMode -ne 'playback') { +try +{ + if ($TestMode -ne 'playback') + { setupEnv } $testFolder = Join-Path $PSScriptRoot 'test' - Invoke-Pester -Script @{ Path = $testFolder } -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") -} -Finally + if ($null -ne $TestName) + { + Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + } else + { + Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + } +} Finally { - if ($TestMode -ne 'playback') { + if ($TestMode -ne 'playback') + { cleanupEnv } } diff --git a/src/ADDomainServices/test/New-AzADDomainService.Tests.ps1 b/src/ADDomainServices/test/New-AzADDomainService.Tests.ps1 index aa8cd10be048..54e74a93ee06 100644 --- a/src/ADDomainServices/test/New-AzADDomainService.Tests.ps1 +++ b/src/ADDomainServices/test/New-AzADDomainService.Tests.ps1 @@ -13,8 +13,8 @@ while(-not $mockingPath) { Describe 'New-AzADDomainService' { It 'CreateExpanded' { - $ReplicaSet = New-AzADDomainServiceReplicaSet -Location $env.Location -SubnetId $env.SubnetId - $NewAdDomain = New-AzADDomainService -name $env.ADdomainName -ResourceGroupName $env.ResourceGroupName -DomainName $env.ADDomainNameCom -ReplicaSet $ReplicaSet + $ReplicaSet = New-AzADDomainServiceReplicaSetObject -Location $env.Location -SubnetId $env.SubnetId + $NewAdDomain = New-AzADDomainService -Name $env.ADdomainName -ResourceGroupName $env.ResourceGroupName -DomainName $env.ADDomainNameCom -ReplicaSet $ReplicaSet $NewAdDomain.name | Should -Be $env.ADdomainName } } diff --git a/src/ADDomainServices/test/New-AzADDomainServiceForestTrust.Tests.ps1 b/src/ADDomainServices/test/New-AzADDomainServiceForestTrust.Tests.ps1 deleted file mode 100644 index 254a068fc347..000000000000 --- a/src/ADDomainServices/test/New-AzADDomainServiceForestTrust.Tests.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' -if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' -} -. ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzADDomainServiceForestTrust.Recording.json' -$currentPath = $PSScriptRoot -while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent -} -. ($mockingPath | Select-Object -First 1).FullName - -Describe 'New-AzADDomainServiceForestTrust' { - It '__AllParameterSets' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ADDomainServices/test/New-AzADDomainServiceForestTrustObject.Tests.ps1 b/src/ADDomainServices/test/New-AzADDomainServiceForestTrustObject.Tests.ps1 new file mode 100644 index 000000000000..c724b77f2f6d --- /dev/null +++ b/src/ADDomainServices/test/New-AzADDomainServiceForestTrustObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzADDomainServiceForestTrustObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzADDomainServiceForestTrustObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzADDomainServiceForestTrustObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ADDomainServices/test/New-AzADDomainServiceReplicaSet.Tests.ps1 b/src/ADDomainServices/test/New-AzADDomainServiceReplicaSet.Tests.ps1 deleted file mode 100644 index df743ac16374..000000000000 --- a/src/ADDomainServices/test/New-AzADDomainServiceReplicaSet.Tests.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' -if (-Not (Test-Path -Path $loadEnvPath)) { - $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' -} -. ($loadEnvPath) -$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzADDomainServiceReplicaSet.Recording.json' -$currentPath = $PSScriptRoot -while(-not $mockingPath) { - $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File - $currentPath = Split-Path -Path $currentPath -Parent -} -. ($mockingPath | Select-Object -First 1).FullName - -Describe 'New-AzADDomainServiceReplicaSet' { - It '__AllParameterSets' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } -} diff --git a/src/ADDomainServices/test/New-AzADDomainServiceReplicaSetObject.Tests.ps1 b/src/ADDomainServices/test/New-AzADDomainServiceReplicaSetObject.Tests.ps1 new file mode 100644 index 000000000000..286abb8c8652 --- /dev/null +++ b/src/ADDomainServices/test/New-AzADDomainServiceReplicaSetObject.Tests.ps1 @@ -0,0 +1,21 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzADDomainServiceReplicaSetObject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzADDomainServiceReplicaSetObject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzADDomainServiceReplicaSetObject' { + It '__AllParameterSets' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/ADDomainServices/test/Remove-AzADDomainService.Tests.ps1 b/src/ADDomainServices/test/Remove-AzADDomainService.Tests.ps1 index f768a9d1f8a8..62f5119bdb6d 100644 --- a/src/ADDomainServices/test/Remove-AzADDomainService.Tests.ps1 +++ b/src/ADDomainServices/test/Remove-AzADDomainService.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Remove-AzADDomainService' { } It 'DeleteViaIdentity' { - $ReplicaSet = New-AzADDomainServiceReplicaSet -Location $env.Location -SubnetId $env.SubnetId + $ReplicaSet = New-AzADDomainServiceReplicaSetObject -Location $env.Location -SubnetId $env.SubnetId $NewAdDomain = New-AzADDomainService -name $env.ADdomainName -ResourceGroupName $env.ResourceGroupName -DomainName $env.ADDomainNameCom -ReplicaSet $ReplicaSet # Start-Sleep -s 120 $GetADDomainExample = Get-AzADDomainService -ResourceGroupName $env.ResourceGroupName -Name $env.ADdomainName diff --git a/src/ADDomainServices/test/loadEnv.ps1 b/src/ADDomainServices/test/loadEnv.ps1 index c4ebf2e8310c..5f079e89615e 100644 --- a/src/ADDomainServices/test/loadEnv.ps1 +++ b/src/ADDomainServices/test/loadEnv.ps1 @@ -1,6 +1,5 @@ # ---------------------------------------------------------------------------------- -# -# Copyright Microsoft Corporation +# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -10,6 +9,8 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. # ---------------------------------------------------------------------------------- $envFile = 'env.json' if ($TestMode -eq 'live') { From 212fad33519347eb5928ec9f3d7bf6fd1e34a00b Mon Sep 17 00:00:00 2001 From: Beisi Zhou Date: Wed, 1 Jun 2022 15:07:13 +0800 Subject: [PATCH 2/3] Update Changelog.md --- src/ADDomainServices/Changelog.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ADDomainServices/Changelog.md b/src/ADDomainServices/Changelog.md index d3b5550bb35f..7a0bff7a12bb 100644 --- a/src/ADDomainServices/Changelog.md +++ b/src/ADDomainServices/Changelog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Changed the input method of certificate from base64 string to file path +* Renamed `New-AzADDomainServiceForestTrust` to `New-AzADDomainServiceForestTrustObject`, and `New-AzADDomainServiceReplicaSet` to `New-AzADDomainServiceReplicaSetObject` to align with naming convention ## Version 0.1.0 * First preview release for module Az.ADDomainServices From 8f6bcd3aeaa1b0b1da5003a5d8f61fbe274f5a3d Mon Sep 17 00:00:00 2001 From: Beisi Zhou Date: Wed, 1 Jun 2022 15:27:10 +0800 Subject: [PATCH 3/3] Update SignatureIssues.csv --- .../Exceptions/Az.ADDomainServices/SignatureIssues.csv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/StaticAnalysis/Exceptions/Az.ADDomainServices/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.ADDomainServices/SignatureIssues.csv index 6f76f67b9307..e037f0b46dd1 100644 --- a/tools/StaticAnalysis/Exceptions/Az.ADDomainServices/SignatureIssues.csv +++ b/tools/StaticAnalysis/Exceptions/Az.ADDomainServices/SignatureIssues.csv @@ -3,8 +3,6 @@ "Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8100","New-AzADDomainService Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8410","Parameter LdapSettingLdaps of cmdlet New-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.ADDomainServices","New-AzADDomainService","New-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet New-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." -"Az.ADDomainServices","New-AzADDomainServiceForestTrust","New-AzADDomainServiceForestTrust","1","8100","New-AzADDomainServiceForestTrust Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" -"Az.ADDomainServices","New-AzADDomainServiceReplicaSet","New-AzADDomainServiceReplicaSet","1","8100","New-AzADDomainServiceReplicaSet Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Az.ADDomainServices","Remove-AzADDomainService","Remove-AzADDomainService","1","8100","Remove-AzADDomainService Does not support ShouldProcess but the cmdlet verb Remove indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" "Az.ADDomainServices","Remove-AzADDomainService","Remove-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Remove-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8100","Update-AzADDomainService Does not support ShouldProcess but the cmdlet verb Update indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" @@ -12,3 +10,5 @@ "Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Update-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8410","Parameter LdapSettingLdaps of cmdlet Update-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." "Az.ADDomainServices","Update-AzADDomainService","Update-AzADDomainService","1","8410","Parameter ProxyUseDefaultCredentials of cmdlet Update-AzADDomainService does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name." +"Az.ADDomainServices","New-AzADDomainServiceForestTrustObject","New-AzADDomainServiceForestTrustObject","1","8100","New-AzADDomainServiceForestTrustObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue" +"Az.ADDomainServices","New-AzADDomainServiceReplicaSetObject","New-AzADDomainServiceReplicaSetObject","1","8100","New-AzADDomainServiceReplicaSetObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"