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