From 1279e1429ef40f764b66c7a0c1c782c4aa68fc75 Mon Sep 17 00:00:00 2001 From: xiaogang Date: Fri, 4 Sep 2020 17:46:03 +0800 Subject: [PATCH 1/3] Fix https://github.com/Azure/azure-powershell/issues/12707 --- src/Az.autorest.props | 2 + src/Blockchain/Az.Blockchain.psd1 | 160 +++++++++++++++--- src/Blockchain/ChangeLog.md | 1 + src/Blockchain/check-dependencies.ps1 | 8 +- .../custom/New-AzBlockchainMember.ps1 | 4 +- .../New-AzBlockchainTransactionNode.ps1 | 2 +- .../custom/Update-AzBlockchainMember.ps1 | 4 +- .../Update-AzBlockchainTransactionNode.ps1 | 2 +- .../exports/Get-AzBlockchainMember.ps1 | 2 +- .../Get-AzBlockchainTransactionNode.ps1 | 2 +- .../exports/New-AzBlockchainMemberApiKey.ps1 | 2 +- .../New-AzBlockchainTransactionNodeApiKey.ps1 | 2 +- .../exports/ProxyCmdletDefinitions.ps1 | 16 +- .../exports/Remove-AzBlockchainMember.ps1 | 2 +- .../Remove-AzBlockchainTransactionNode.ps1 | 2 +- .../exports/Update-AzBlockchainMember.ps1 | 2 +- .../Update-AzBlockchainTransactionNode.ps1 | 2 +- src/Blockchain/generated/api/Blockchain.cs | 1 + .../BlockchainMember.PowerShell.cs | 44 ++--- .../BlockchainMemberCollection.PowerShell.cs | 4 +- .../BlockchainMemberCollection.json.cs | 4 +- .../BlockchainMemberProperties.PowerShell.cs | 32 ++-- .../BlockchainMemberProperties.json.cs | 52 +++--- ...kchainMemberPropertiesUpdate.PowerShell.cs | 4 +- .../BlockchainMemberUpdate.PowerShell.cs | 4 +- .../ConsortiumMember.PowerShell.cs | 12 +- .../ConsortiumMember.json.cs | 12 +- .../ConsortiumMemberCollection.PowerShell.cs | 4 +- .../ConsortiumMemberCollection.json.cs | 4 +- .../FirewallRule.PowerShell.cs | 4 +- .../Api20180601Preview/FirewallRule.json.cs | 4 +- .../NameAvailability.PowerShell.cs | 4 +- .../NameAvailability.json.cs | 4 +- .../OperationResult.PowerShell.cs | 4 +- .../OperationResult.json.cs | 4 +- .../Api20180601Preview/Resource.PowerShell.cs | 4 +- .../Api20180601Preview/Resource.json.cs | 8 +- .../ResourceProviderOperation.PowerShell.cs | 12 +- .../ResourceProviderOperation.json.cs | 4 +- ...eProviderOperationCollection.PowerShell.cs | 4 +- ...esourceProviderOperationCollection.json.cs | 4 +- ...urceProviderOperationDisplay.PowerShell.cs | 8 +- .../ResourceProviderOperationDisplay.json.cs | 8 +- .../SkuSetting.PowerShell.cs | 4 +- .../Api20180601Preview/SkuSetting.json.cs | 4 +- .../TrackedResource.PowerShell.cs | 4 +- .../TransactionNode.PowerShell.cs | 16 +- .../TransactionNodeCollection.PowerShell.cs | 4 +- .../TransactionNodeCollection.json.cs | 4 +- .../TransactionNodeProperties.PowerShell.cs | 12 +- .../TransactionNodeProperties.json.cs | 30 ++-- ...nsactionNodePropertiesUpdate.PowerShell.cs | 4 +- .../TransactionNodePropertiesUpdate.json.cs | 4 +- .../TransactionNodeUpdate.PowerShell.cs | 4 +- .../Models/BlockchainIdentity.PowerShell.cs | 16 +- .../api/Models/BlockchainIdentity.cs | 8 +- .../api/Models/BlockchainIdentity.json.cs | 16 +- ...kchainMemberProvisioningState.Completer.cs | 2 +- ...inMemberProvisioningState.TypeConverter.cs | 2 +- .../BlockchainMemberProvisioningState.cs | 1 + .../Support/BlockchainProtocol.Completer.cs | 2 +- .../BlockchainProtocol.TypeConverter.cs | 2 +- .../api/Support/BlockchainProtocol.cs | 1 + .../NameAvailabilityReason.Completer.cs | 2 +- .../NameAvailabilityReason.TypeConverter.cs | 2 +- .../api/Support/NameAvailabilityReason.cs | 1 + .../NodeProvisioningState.Completer.cs | 2 +- .../NodeProvisioningState.TypeConverter.cs | 2 +- .../api/Support/NodeProvisioningState.cs | 1 + .../cmdlets/GetAzBlockchainConsortium_List.cs | 2 +- .../GetAzBlockchainMemberApiKey_List.cs | 2 +- ...AzBlockchainMemberConsortiumMember_List.cs | 2 +- .../cmdlets/GetAzBlockchainMember_Get.cs | 2 +- .../GetAzBlockchainMember_GetViaIdentity.cs | 2 +- .../cmdlets/GetAzBlockchainMember_List.cs | 2 +- .../cmdlets/GetAzBlockchainMember_List1.cs | 2 +- .../cmdlets/GetAzBlockchainOperation_List.cs | 2 +- .../cmdlets/GetAzBlockchainSku_List.cs | 2 +- ...tAzBlockchainTransactionNodeApiKey_List.cs | 2 +- .../GetAzBlockchainTransactionNode_Get.cs | 2 +- ...lockchainTransactionNode_GetViaIdentity.cs | 2 +- .../GetAzBlockchainTransactionNode_List.cs | 2 +- ...ockchainMemberApiKey_RegenerateExpanded.cs | 2 +- ...berApiKey_RegenerateViaIdentityExpanded.cs | 2 +- .../NewAzBlockchainMember_CreateExpanded.cs | 2 +- ...ransactionNodeApiKey_RegenerateExpanded.cs | 2 +- ...odeApiKey_RegenerateViaIdentityExpanded.cs | 2 +- ...lockchainTransactionNode_CreateExpanded.cs | 2 +- .../RemoveAzBlockchainMember_Delete.cs | 2 +- ...oveAzBlockchainMember_DeleteViaIdentity.cs | 2 +- ...emoveAzBlockchainTransactionNode_Delete.cs | 2 +- ...kchainTransactionNode_DeleteViaIdentity.cs | 2 +- ...nLocationNameAvailability_CheckExpanded.cs | 2 +- ...UpdateAzBlockchainMember_UpdateExpanded.cs | 2 +- ...ckchainMember_UpdateViaIdentityExpanded.cs | 2 +- ...lockchainTransactionNode_UpdateExpanded.cs | 2 +- ...ansactionNode_UpdateViaIdentityExpanded.cs | 2 +- src/Blockchain/help/Get-AzBlockchainMember.md | 2 +- .../help/Get-AzBlockchainTransactionNode.md | 2 +- .../help/New-AzBlockchainMemberApiKey.md | 2 +- .../New-AzBlockchainTransactionNodeApiKey.md | 2 +- .../help/Remove-AzBlockchainMember.md | 2 +- .../Remove-AzBlockchainTransactionNode.md | 2 +- .../help/Update-AzBlockchainMember.md | 2 +- .../Update-AzBlockchainTransactionNode.md | 2 +- .../internal/ProxyCmdletDefinitions.ps1 | 4 +- .../internal/Update-AzBlockchainMember.ps1 | 2 +- .../Update-AzBlockchainTransactionNode.ps1 | 2 +- .../utils/Unprotect-SecureString.ps1 | 16 ++ 109 files changed, 428 insertions(+), 286 deletions(-) create mode 100644 src/Blockchain/utils/Unprotect-SecureString.ps1 diff --git a/src/Az.autorest.props b/src/Az.autorest.props index 3373d864a8e9..fc82c4923de7 100644 --- a/src/Az.autorest.props +++ b/src/Az.autorest.props @@ -57,6 +57,7 @@ + @@ -72,6 +73,7 @@ + \ No newline at end of file diff --git a/src/Blockchain/Az.Blockchain.psd1 b/src/Blockchain/Az.Blockchain.psd1 index 2dffce006f0c..5e3db92ba9cd 100644 --- a/src/Blockchain/Az.Blockchain.psd1 +++ b/src/Blockchain/Az.Blockchain.psd1 @@ -1,25 +1,141 @@ +# +# Module manifest for module 'Az.Blockchain' +# +# Generated by: Microsoft Corporation +# +# Generated on: 2020/9/4 +# + @{ - GUID = 'ae1a09bf-916c-480c-a1bb-bace1453a91e' - RootModule = './Az.Blockchain.psm1' - ModuleVersion = '0.1.0' - CompatiblePSEditions = 'Core', 'Desktop' - Author = 'Microsoft Corporation' - CompanyName = 'Microsoft Corporation' - Copyright = 'Microsoft Corporation. All rights reserved.' - Description = 'Microsoft Azure PowerShell: Blockchain cmdlets' - PowerShellVersion = '5.1' - DotNetFrameworkVersion = '4.7.2' - RequiredAssemblies = './bin/Az.Blockchain.private.dll' - RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.9.3'; }) - FormatsToProcess = './Az.Blockchain.format.ps1xml' - FunctionsToExport = 'Get-AzBlockchainConsortium', 'Get-AzBlockchainMember', 'Get-AzBlockchainMemberApiKey', 'Get-AzBlockchainMemberConsortiumMember', 'Get-AzBlockchainSku', 'Get-AzBlockchainTransactionNode', 'Get-AzBlockchainTransactionNodeApiKey', 'New-AzBlockchainMember', 'New-AzBlockchainMemberApiKey', 'New-AzBlockchainTransactionNode', 'New-AzBlockchainTransactionNodeApiKey', 'Remove-AzBlockchainMember', 'Remove-AzBlockchainTransactionNode', 'Test-AzBlockchainLocationNameAvailability', 'Update-AzBlockchainMember', 'Update-AzBlockchainTransactionNode' - AliasesToExport = '*' - PrivateData = @{ + +# Script module or binary module file associated with this manifest. +RootModule = './Az.Blockchain.psm1' + +# Version number of this module. +ModuleVersion = '0.1.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = 'ae1a09bf-916c-480c-a1bb-bace1453a91e' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell: Blockchain cmdlets' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# CLRVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.9.3'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = './bin/Az.Blockchain.private.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +FormatsToProcess = './Az.Blockchain.format.ps1xml' + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +# NestedModules = @() + +# 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-AzBlockchainConsortium', 'Get-AzBlockchainMember', + 'Get-AzBlockchainMemberApiKey', + 'Get-AzBlockchainMemberConsortiumMember', 'Get-AzBlockchainSku', + 'Get-AzBlockchainTransactionNode', + 'Get-AzBlockchainTransactionNodeApiKey', 'New-AzBlockchainMember', + 'New-AzBlockchainMemberApiKey', 'New-AzBlockchainTransactionNode', + 'New-AzBlockchainTransactionNodeApiKey', + 'Remove-AzBlockchainMember', 'Remove-AzBlockchainTransactionNode', + 'Test-AzBlockchainLocationNameAvailability', + 'Update-AzBlockchainMember', 'Update-AzBlockchainTransactionNode' + +# 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. +CmdletsToExport = @() + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases 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 aliases to export. +AliasesToExport = '*' + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + PSData = @{ - Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Blockchain' - LicenseUri = 'https://aka.ms/azps-license' - ProjectUri = 'https://github.com/Azure/azure-powershell' - ReleaseNotes = '' - } - } + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','PSModule','Blockchain' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + # ReleaseNotes = '' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update/save + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + } + diff --git a/src/Blockchain/ChangeLog.md b/src/Blockchain/ChangeLog.md index b76ecb79cf4a..1e910e4fa9ca 100644 --- a/src/Blockchain/ChangeLog.md +++ b/src/Blockchain/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Fixed issue https://github.com/Azure/azure-powershell/issues/12707 ## Version 0.1.0 * the first preview release diff --git a/src/Blockchain/check-dependencies.ps1 b/src/Blockchain/check-dependencies.ps1 index 5cd7ab5c808f..23ee92268fde 100644 --- a/src/Blockchain/check-dependencies.ps1 +++ b/src/Blockchain/check-dependencies.ps1 @@ -21,13 +21,15 @@ if(-not $Isolated) { return } -function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum) { +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)) { $null = New-Item -ItemType Directory -Force -Path $path Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..." - if($versionMinimum) { + if ($requiredVersion) { + Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path + }elseif($versionMinimum) { Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path } else { Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path @@ -45,7 +47,7 @@ if(Test-Path -Path $localModulesPath) { } DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '1.7.4' -DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -versionMinimum '' +DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1' $tools = Join-Path $PSScriptRoot 'tools' $resourceDir = Join-Path $tools 'Resources' diff --git a/src/Blockchain/custom/New-AzBlockchainMember.ps1 b/src/Blockchain/custom/New-AzBlockchainMember.ps1 index 5845275741ec..0d4b5f739e46 100644 --- a/src/Blockchain/custom/New-AzBlockchainMember.ps1 +++ b/src/Blockchain/custom/New-AzBlockchainMember.ps1 @@ -184,12 +184,12 @@ param( process { try { if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['Password'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] $null = $PSBoundParameters.Remove('Password') $PSBoundParameters.Add('Password', $psTxt) } if ($PSBoundParameters.ContainsKey('ConsortiumManagementAccountPassword')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['ConsortiumManagementAccountPassword'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['ConsortiumManagementAccountPassword'] $null = $PSBoundParameters.Remove('ConsortiumManagementAccountPassword') $PSBoundParameters.Add('ConsortiumManagementAccountPassword', $psTxt) } diff --git a/src/Blockchain/custom/New-AzBlockchainTransactionNode.ps1 b/src/Blockchain/custom/New-AzBlockchainTransactionNode.ps1 index b0fef07d39d5..e8ba50cebedb 100644 --- a/src/Blockchain/custom/New-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/custom/New-AzBlockchainTransactionNode.ps1 @@ -135,7 +135,7 @@ param( process { try { if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['Password'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] $PSBoundParameters.Remove('Password') $PSBoundParameters.Add('Password', $psTxt) } diff --git a/src/Blockchain/custom/Update-AzBlockchainMember.ps1 b/src/Blockchain/custom/Update-AzBlockchainMember.ps1 index 63d29ab41e69..58a1e491ec58 100644 --- a/src/Blockchain/custom/Update-AzBlockchainMember.ps1 +++ b/src/Blockchain/custom/Update-AzBlockchainMember.ps1 @@ -141,12 +141,12 @@ param( process { try { if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['Password'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] $PSBoundParameters.Remove('Password') $PSBoundParameters.Add('Password', $psTxt) } if ($PSBoundParameters.ContainsKey('ConsortiumManagementAccountPassword')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['ConsortiumManagementAccountPassword'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['ConsortiumManagementAccountPassword'] $PSBoundParameters.Remove('ConsortiumManagementAccountPassword') $PSBoundParameters.Add('ConsortiumManagementAccountPassword', $psTxt) } diff --git a/src/Blockchain/custom/Update-AzBlockchainTransactionNode.ps1 b/src/Blockchain/custom/Update-AzBlockchainTransactionNode.ps1 index 50dcb18f7493..4520f593ff71 100644 --- a/src/Blockchain/custom/Update-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/custom/Update-AzBlockchainTransactionNode.ps1 @@ -133,7 +133,7 @@ param( process { try { if ($PSBoundParameters.ContainsKey('Password')) { - $psTxt = [System.Runtime.InteropServices.marshal]::PtrToStringAuto([System.Runtime.InteropServices.marshal]::SecureStringToBSTR($PSBoundParameters['Password'])) + $psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password'] $PSBoundParameters.Remove('Password') $PSBoundParameters.Add('Password', $psTxt) } diff --git a/src/Blockchain/exports/Get-AzBlockchainMember.ps1 b/src/Blockchain/exports/Get-AzBlockchainMember.ps1 index 82b280ab3f7a..662e3b5508f4 100644 --- a/src/Blockchain/exports/Get-AzBlockchainMember.ps1 +++ b/src/Blockchain/exports/Get-AzBlockchainMember.ps1 @@ -60,7 +60,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/Get-AzBlockchainTransactionNode.ps1 b/src/Blockchain/exports/Get-AzBlockchainTransactionNode.ps1 index 03774800eb87..5f7d998c2588 100644 --- a/src/Blockchain/exports/Get-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/exports/Get-AzBlockchainTransactionNode.ps1 @@ -50,7 +50,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/New-AzBlockchainMemberApiKey.ps1 b/src/Blockchain/exports/New-AzBlockchainMemberApiKey.ps1 index 6c8b1542b363..ba595e09d094 100644 --- a/src/Blockchain/exports/New-AzBlockchainMemberApiKey.ps1 +++ b/src/Blockchain/exports/New-AzBlockchainMemberApiKey.ps1 @@ -48,7 +48,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/New-AzBlockchainTransactionNodeApiKey.ps1 b/src/Blockchain/exports/New-AzBlockchainTransactionNodeApiKey.ps1 index 207b1c109153..3e0f513d1871 100644 --- a/src/Blockchain/exports/New-AzBlockchainTransactionNodeApiKey.ps1 +++ b/src/Blockchain/exports/New-AzBlockchainTransactionNodeApiKey.ps1 @@ -48,7 +48,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/ProxyCmdletDefinitions.ps1 b/src/Blockchain/exports/ProxyCmdletDefinitions.ps1 index 0d0a5f9c7d35..7a965277f25e 100644 --- a/src/Blockchain/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Blockchain/exports/ProxyCmdletDefinitions.ps1 @@ -480,7 +480,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -942,7 +942,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -1130,7 +1130,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -1319,7 +1319,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -1504,7 +1504,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -1689,7 +1689,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -2481,7 +2481,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -2688,7 +2688,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/Remove-AzBlockchainMember.ps1 b/src/Blockchain/exports/Remove-AzBlockchainMember.ps1 index 47f06611c814..dc501392efc5 100644 --- a/src/Blockchain/exports/Remove-AzBlockchainMember.ps1 +++ b/src/Blockchain/exports/Remove-AzBlockchainMember.ps1 @@ -38,7 +38,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/Remove-AzBlockchainTransactionNode.ps1 b/src/Blockchain/exports/Remove-AzBlockchainTransactionNode.ps1 index 2994c8f19642..6f428cd59a3e 100644 --- a/src/Blockchain/exports/Remove-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/exports/Remove-AzBlockchainTransactionNode.ps1 @@ -37,7 +37,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/Update-AzBlockchainMember.ps1 b/src/Blockchain/exports/Update-AzBlockchainMember.ps1 index c3e00c474cdb..259df115fe1b 100644 --- a/src/Blockchain/exports/Update-AzBlockchainMember.ps1 +++ b/src/Blockchain/exports/Update-AzBlockchainMember.ps1 @@ -51,7 +51,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/exports/Update-AzBlockchainTransactionNode.ps1 b/src/Blockchain/exports/Update-AzBlockchainTransactionNode.ps1 index 4c6069f5a942..b7996b7a6487 100644 --- a/src/Blockchain/exports/Update-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/exports/Update-AzBlockchainTransactionNode.ps1 @@ -51,7 +51,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/generated/api/Blockchain.cs b/src/Blockchain/generated/api/Blockchain.cs index 573c37a508d5..60a698fd3ea5 100644 --- a/src/Blockchain/generated/api/Blockchain.cs +++ b/src/Blockchain/generated/api/Blockchain.cs @@ -9,6 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain /// /// Low-level API implementation for the Blockchain service. + /// REST API for Azure Blockchain Service /// public partial class Blockchain { diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMember.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMember.PowerShell.cs index 80567e76a101..e84e18e85a88 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMember.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMember.PowerShell.cs @@ -65,27 +65,27 @@ internal BlockchainMember(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuTier, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodesSku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberNodesSku) content.GetValueForProperty("ValidatorNodesSku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodesSku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodeSkuCapacity = (int?) content.GetValueForProperty("ValidatorNodeSkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodeSkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -106,27 +106,27 @@ internal BlockchainMember(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberPropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TrackedResourceTagsTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuTier = (string) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuTier, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).SkuName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Consortium, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumRole, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).RootContractAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodesSku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberNodesSku) content.GetValueForProperty("ValidatorNodesSku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodesSku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSkuTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodeSkuCapacity = (int?) content.GetValueForProperty("ValidatorNodeSkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberInternal)this).ValidatorNodeSkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.PowerShell.cs index ee3acdd0527e..e76daa515b91 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.PowerShell.cs @@ -63,8 +63,8 @@ internal BlockchainMemberCollection(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -82,8 +82,8 @@ internal BlockchainMemberCollection(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.json.cs index 0e89159f53b0..4425d7b87a6f 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberCollection.json.cs @@ -60,8 +60,8 @@ internal BlockchainMemberCollection(Microsoft.Azure.PowerShell.Cmdlets.Blockchai { return; } - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMember.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -96,7 +96,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); if (null != this._value) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -106,6 +105,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("value",__w); } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.PowerShell.cs index 2beeca91e2b5..fd0400334fcb 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.PowerShell.cs @@ -62,19 +62,19 @@ internal BlockchainMemberProperties(global::System.Collections.IDictionary conte } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodesSku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberNodesSku) content.GetValueForProperty("ValidatorNodesSku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodesSku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Consortium, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).RootContractAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodeSkuCapacity = (int?) content.GetValueForProperty("ValidatorNodeSkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodeSkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializeDictionary(content); } @@ -94,19 +94,19 @@ internal BlockchainMemberProperties(global::System.Management.Automation.PSObjec } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodesSku = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberNodesSku) content.GetValueForProperty("ValidatorNodesSku",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodesSku, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Consortium = (string) content.GetValueForProperty("Consortium",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Consortium, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountAddress = (string) content.GetValueForProperty("ConsortiumManagementAccountAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumRole = (string) content.GetValueForProperty("ConsortiumRole",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumRole, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Password, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningState.CreateFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName = (string) content.GetValueForProperty("ConsortiumMemberDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ConsortiumMemberDisplayName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).RootContractAddress = (string) content.GetValueForProperty("RootContractAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).RootContractAddress, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).UserName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol?) content.GetValueForProperty("Protocol",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).Protocol, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocol.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).PublicKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodeSkuCapacity = (int?) content.GetValueForProperty("ValidatorNodeSkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesInternal)this).ValidatorNodeSkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.json.cs index 130d4ea588fe..5fd7965d7450 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberProperties.json.cs @@ -59,19 +59,19 @@ internal BlockchainMemberProperties(Microsoft.Azure.PowerShell.Cmdlets.Blockchai return; } {_validatorNodesSku = If( json?.PropertyT("validatorNodesSku"), out var __jsonValidatorNodesSku) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberNodesSku.FromJson(__jsonValidatorNodesSku) : ValidatorNodesSku;} + {_protocol = If( json?.PropertyT("protocol"), out var __jsonProtocol) ? (string)__jsonProtocol : (string)Protocol;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_dns = If( json?.PropertyT("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns;} + {_userName = If( json?.PropertyT("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName;} + {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password;} {_consortium = If( json?.PropertyT("consortium"), out var __jsonConsortium) ? (string)__jsonConsortium : (string)Consortium;} {_consortiumManagementAccountAddress = If( json?.PropertyT("consortiumManagementAccountAddress"), out var __jsonConsortiumManagementAccountAddress) ? (string)__jsonConsortiumManagementAccountAddress : (string)ConsortiumManagementAccountAddress;} {_consortiumManagementAccountPassword = If( json?.PropertyT("consortiumManagementAccountPassword"), out var __jsonConsortiumManagementAccountPassword) ? (string)__jsonConsortiumManagementAccountPassword : (string)ConsortiumManagementAccountPassword;} - {_consortiumMemberDisplayName = If( json?.PropertyT("consortiumMemberDisplayName"), out var __jsonConsortiumMemberDisplayName) ? (string)__jsonConsortiumMemberDisplayName : (string)ConsortiumMemberDisplayName;} {_consortiumRole = If( json?.PropertyT("consortiumRole"), out var __jsonConsortiumRole) ? (string)__jsonConsortiumRole : (string)ConsortiumRole;} - {_dns = If( json?.PropertyT("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns;} - {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} - {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_publicKey = If( json?.PropertyT("publicKey"), out var __jsonPublicKey) ? (string)__jsonPublicKey : (string)PublicKey;} + {_consortiumMemberDisplayName = If( json?.PropertyT("consortiumMemberDisplayName"), out var __jsonConsortiumMemberDisplayName) ? (string)__jsonConsortiumMemberDisplayName : (string)ConsortiumMemberDisplayName;} {_rootContractAddress = If( json?.PropertyT("rootContractAddress"), out var __jsonRootContractAddress) ? (string)__jsonRootContractAddress : (string)RootContractAddress;} - {_userName = If( json?.PropertyT("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName;} - {_protocol = If( json?.PropertyT("protocol"), out var __jsonProtocol) ? (string)__jsonProtocol : (string)Protocol;} + {_publicKey = If( json?.PropertyT("publicKey"), out var __jsonPublicKey) ? (string)__jsonPublicKey : (string)PublicKey;} + {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} AfterFromJson(json); } @@ -107,45 +107,45 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso return container; } AddIf( null != this._validatorNodesSku ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) this._validatorNodesSku.ToJson(null,serializationMode) : null, "validatorNodesSku" ,container.Add ); - AddIf( null != (((object)this._consortium)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortium.ToString()) : null, "consortium" ,container.Add ); + AddIf( null != (((object)this._protocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._protocol.ToString()) : null, "protocol" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._consortiumManagementAccountAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumManagementAccountAddress.ToString()) : null, "consortiumManagementAccountAddress" ,container.Add ); + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } - AddIf( null != (((object)this._consortiumManagementAccountPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumManagementAccountPassword.ToString()) : null, "consortiumManagementAccountPassword" ,container.Add ); - AddIf( null != (((object)this._consortiumMemberDisplayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumMemberDisplayName.ToString()) : null, "consortiumMemberDisplayName" ,container.Add ); - AddIf( null != (((object)this._consortiumRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumRole.ToString()) : null, "consortiumRole" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != (((object)this._dns)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._dns.ToString()) : null, "dns" ,container.Add ); } - if (null != this._firewallRule) + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); - foreach( var __x in this._firewallRule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("firewallRules",__w); + AddIf( null != (((object)this._userName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._userName.ToString()) : null, "userName" ,container.Add ); } AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); + AddIf( null != (((object)this._consortium)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortium.ToString()) : null, "consortium" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + AddIf( null != (((object)this._consortiumManagementAccountAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumManagementAccountAddress.ToString()) : null, "consortiumManagementAccountAddress" ,container.Add ); } + AddIf( null != (((object)this._consortiumManagementAccountPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumManagementAccountPassword.ToString()) : null, "consortiumManagementAccountPassword" ,container.Add ); + AddIf( null != (((object)this._consortiumRole)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumRole.ToString()) : null, "consortiumRole" ,container.Add ); + AddIf( null != (((object)this._consortiumMemberDisplayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._consortiumMemberDisplayName.ToString()) : null, "consortiumMemberDisplayName" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._publicKey)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._publicKey.ToString()) : null, "publicKey" ,container.Add ); + AddIf( null != (((object)this._rootContractAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._rootContractAddress.ToString()) : null, "rootContractAddress" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._rootContractAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._rootContractAddress.ToString()) : null, "rootContractAddress" ,container.Add ); + AddIf( null != (((object)this._publicKey)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._publicKey.ToString()) : null, "publicKey" ,container.Add ); } - if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) + if (null != this._firewallRule) { - AddIf( null != (((object)this._userName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._userName.ToString()) : null, "userName" ,container.Add ); + var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); + foreach( var __x in this._firewallRule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("firewallRules",__w); } - AddIf( null != (((object)this._protocol)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._protocol.ToString()) : null, "protocol" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberPropertiesUpdate.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberPropertiesUpdate.PowerShell.cs index 58cef75ebfa4..75921fe3f338 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberPropertiesUpdate.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberPropertiesUpdate.PowerShell.cs @@ -62,8 +62,8 @@ internal BlockchainMemberPropertiesUpdate(global::System.Collections.IDictionary } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdateInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdateInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -82,8 +82,8 @@ internal BlockchainMemberPropertiesUpdate(global::System.Management.Automation.P } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdateInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdateInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberUpdate.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberUpdate.PowerShell.cs index e55637b468bb..9cd397ae30ae 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberUpdate.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/BlockchainMemberUpdate.PowerShell.cs @@ -65,8 +65,8 @@ internal BlockchainMemberUpdate(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberPropertiesUpdateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberUpdateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -87,8 +87,8 @@ internal BlockchainMemberUpdate(global::System.Management.Automation.PSObject co // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberPropertiesUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberPropertiesUpdateTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.BlockchainMemberUpdateTagsTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).ConsortiumManagementAccountPassword = (string) content.GetValueForProperty("ConsortiumManagementAccountPassword",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMemberUpdateInternal)this).ConsortiumManagementAccountPassword, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.PowerShell.cs index 8118a8be8253..0ceb5718341b 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.PowerShell.cs @@ -62,12 +62,12 @@ internal ConsortiumMember(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified = (global::System.DateTime?) content.GetValueForProperty("DateModified",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate = (global::System.DateTime?) content.GetValueForProperty("JoinDate",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Role, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate = (global::System.DateTime?) content.GetValueForProperty("JoinDate",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified = (global::System.DateTime?) content.GetValueForProperty("DateModified",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializeDictionary(content); } @@ -86,12 +86,12 @@ internal ConsortiumMember(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified = (global::System.DateTime?) content.GetValueForProperty("DateModified",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DisplayName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate = (global::System.DateTime?) content.GetValueForProperty("JoinDate",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Role = (string) content.GetValueForProperty("Role",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Role, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).Status, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate = (global::System.DateTime?) content.GetValueForProperty("JoinDate",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).JoinDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified = (global::System.DateTime?) content.GetValueForProperty("DateModified",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberInternal)this).DateModified, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.json.cs index 1d498aec5785..513bdfe7f719 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMember.json.cs @@ -59,12 +59,12 @@ internal ConsortiumMember(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime. return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_dateModified = If( json?.PropertyT("dateModified"), out var __jsonDateModified) ? global::System.DateTime.TryParse((string)__jsonDateModified, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonDateModifiedValue) ? __jsonDateModifiedValue : DateModified : DateModified;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} - {_joinDate = If( json?.PropertyT("joinDate"), out var __jsonJoinDate) ? global::System.DateTime.TryParse((string)__jsonJoinDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonJoinDateValue) ? __jsonJoinDateValue : JoinDate : JoinDate;} + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} {_role = If( json?.PropertyT("role"), out var __jsonRole) ? (string)__jsonRole : (string)Role;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_joinDate = If( json?.PropertyT("joinDate"), out var __jsonJoinDate) ? global::System.DateTime.TryParse((string)__jsonJoinDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonJoinDateValue) ? __jsonJoinDateValue : JoinDate : JoinDate;} + {_dateModified = If( json?.PropertyT("dateModified"), out var __jsonDateModified) ? global::System.DateTime.TryParse((string)__jsonDateModified, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonDateModifiedValue) ? __jsonDateModifiedValue : DateModified : DateModified;} AfterFromJson(json); } @@ -100,12 +100,12 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != this._dateModified ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._dateModified?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "dateModified" ,container.Add ); AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); - AddIf( null != this._joinDate ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._joinDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "joinDate" ,container.Add ); + AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); AddIf( null != (((object)this._role)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._role.ToString()) : null, "role" ,container.Add ); AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); - AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != this._joinDate ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._joinDate?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "joinDate" ,container.Add ); + AddIf( null != this._dateModified ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._dateModified?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "dateModified" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.PowerShell.cs index 6af57915c166..1450f6bc8bb6 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.PowerShell.cs @@ -61,8 +61,8 @@ internal ConsortiumMemberCollection(global::System.Collections.IDictionary conte return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMember[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ConsortiumMemberTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -80,8 +80,8 @@ internal ConsortiumMemberCollection(global::System.Management.Automation.PSObjec return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMember[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ConsortiumMemberTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMemberCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.json.cs index 91861a53b2d7..4e8036827f36 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ConsortiumMemberCollection.json.cs @@ -58,8 +58,8 @@ internal ConsortiumMemberCollection(Microsoft.Azure.PowerShell.Cmdlets.Blockchai { return; } - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMember) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ConsortiumMember.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -94,7 +94,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); if (null != this._value) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -104,6 +103,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("value",__w); } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.PowerShell.cs index 0d2866757b32..8fdbef1c10eb 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.PowerShell.cs @@ -87,9 +87,9 @@ internal FirewallRule(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).RuleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -107,9 +107,9 @@ internal FirewallRule(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).RuleName = (string) content.GetValueForProperty("RuleName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).RuleName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).StartIPAddress = (string) content.GetValueForProperty("StartIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).StartIPAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress = (string) content.GetValueForProperty("EndIPAddress",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRuleInternal)this).EndIPAddress, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.json.cs index 7ef7ace00178..57679ae149fc 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/FirewallRule.json.cs @@ -58,9 +58,9 @@ internal FirewallRule(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json { return; } - {_endIPAddress = If( json?.PropertyT("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress;} {_ruleName = If( json?.PropertyT("ruleName"), out var __jsonRuleName) ? (string)__jsonRuleName : (string)RuleName;} {_startIPAddress = If( json?.PropertyT("startIpAddress"), out var __jsonStartIPAddress) ? (string)__jsonStartIPAddress : (string)StartIPAddress;} + {_endIPAddress = If( json?.PropertyT("endIpAddress"), out var __jsonEndIPAddress) ? (string)__jsonEndIPAddress : (string)EndIPAddress;} AfterFromJson(json); } @@ -95,9 +95,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._endIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._endIPAddress.ToString()) : null, "endIpAddress" ,container.Add ); AddIf( null != (((object)this._ruleName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._ruleName.ToString()) : null, "ruleName" ,container.Add ); AddIf( null != (((object)this._startIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._startIPAddress.ToString()) : null, "startIpAddress" ,container.Add ); + AddIf( null != (((object)this._endIPAddress)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._endIPAddress.ToString()) : null, "endIpAddress" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.PowerShell.cs index a65985838f00..aabb7af3addc 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.PowerShell.cs @@ -96,8 +96,8 @@ internal NameAvailability(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Reason = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NameAvailabilityReason?) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Reason, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NameAvailabilityReason.CreateFrom); AfterDeserializeDictionary(content); } @@ -116,8 +116,8 @@ internal NameAvailability(global::System.Management.Automation.PSObject content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).NameAvailable = (bool?) content.GetValueForProperty("NameAvailable",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).NameAvailable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Message, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Reason = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NameAvailabilityReason?) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailabilityInternal)this).Reason, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NameAvailabilityReason.CreateFrom); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.json.cs index bbbd15448d59..2967f78c4376 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/NameAvailability.json.cs @@ -72,8 +72,8 @@ internal NameAvailability(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime. { return; } - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_nameAvailable = If( json?.PropertyT("nameAvailable"), out var __jsonNameAvailable) ? (bool?)__jsonNameAvailable : NameAvailable;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_reason = If( json?.PropertyT("reason"), out var __jsonReason) ? (string)__jsonReason : (string)Reason;} AfterFromJson(json); } @@ -97,8 +97,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); AddIf( null != this._nameAvailable ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonBoolean((bool)this._nameAvailable) : null, "nameAvailable" ,container.Add ); + AddIf( null != (((object)this._message)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._message.ToString()) : null, "message" ,container.Add ); AddIf( null != (((object)this._reason)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._reason.ToString()) : null, "reason" ,container.Add ); AfterToJson(ref container); return container; diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.PowerShell.cs index 78d30a3116af..d829e104d478 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.PowerShell.cs @@ -97,8 +97,8 @@ internal OperationResult(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializeDictionary(content); } @@ -117,8 +117,8 @@ internal OperationResult(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).Name, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime = (global::System.DateTime?) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IOperationResultInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.json.cs index 2ea176deb1ec..0e439884f0ee 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/OperationResult.json.cs @@ -73,8 +73,8 @@ internal OperationResult(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.J return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_endTime = If( json?.PropertyT("endTime"), out var __jsonEndTime) ? global::System.DateTime.TryParse((string)__jsonEndTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonEndTimeValue) ? __jsonEndTimeValue : EndTime : EndTime;} AfterFromJson(json); } @@ -98,8 +98,8 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); - AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + AddIf( null != this._endTime ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._endTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "endTime" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.PowerShell.cs index 3d0aeead2354..b8b370b05f71 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.PowerShell.cs @@ -94,9 +94,9 @@ internal Resource(global::System.Collections.IDictionary content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -114,9 +114,9 @@ internal Resource(global::System.Management.Automation.PSObject content) return; } // actually deserialize + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.json.cs index c6d79939feba..34304328df16 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/Resource.json.cs @@ -70,9 +70,9 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.Jso { return; } + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -97,15 +97,15 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); + AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); + AddIf( null != (((object)this._type)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._type.ToString()) : null, "type" ,container.Add ); } AfterToJson(ref container); return container; diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.PowerShell.cs index a39d6a42caf8..93c5a7a595e8 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.PowerShell.cs @@ -97,13 +97,13 @@ internal ResourceProviderOperation(global::System.Collections.IDictionary conten } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayProvider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -122,13 +122,13 @@ internal ResourceProviderOperation(global::System.Management.Automation.PSObject } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).Origin, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayProvider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationInternal)this).DisplayDescription, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.json.cs index c5e72e017a0d..57235fd6cf76 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperation.json.cs @@ -71,9 +71,9 @@ internal ResourceProviderOperation(Microsoft.Azure.PowerShell.Cmdlets.Blockchain return; } {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperationDisplay.FromJson(__jsonDisplay) : Display;} + {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} - {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} AfterFromJson(json); } @@ -97,9 +97,9 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso return container; } AddIf( null != this._display ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) this._display.ToJson(null,serializationMode) : null, "display" ,container.Add ); + AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != this._isDataAction ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonBoolean((bool)this._isDataAction) : null, "isDataAction" ,container.Add ); - AddIf( null != (((object)this._origin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._origin.ToString()) : null, "origin" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.PowerShell.cs index 430f03558d82..68b436de8e41 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.PowerShell.cs @@ -98,8 +98,8 @@ internal ResourceProviderOperationCollection(global::System.Collections.IDiction return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -117,8 +117,8 @@ internal ResourceProviderOperationCollection(global::System.Management.Automatio return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.json.cs index b08ba5c12e02..97e24f6c8b38 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationCollection.json.cs @@ -72,8 +72,8 @@ internal ResourceProviderOperationCollection(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperation) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ResourceProviderOperation.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } @@ -97,7 +97,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); if (null != this._value) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -107,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("value",__w); } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.PowerShell.cs index 8a2fed6e99fe..6ad2bdf3c664 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.PowerShell.cs @@ -98,10 +98,10 @@ internal ResourceProviderOperationDisplay(global::System.Collections.IDictionary return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Provider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -119,10 +119,10 @@ internal ResourceProviderOperationDisplay(global::System.Management.Automation.P return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Provider, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceProviderOperationDisplayInternal)this).Description, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.json.cs index db98858273a2..1d766a2465e6 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/ResourceProviderOperationDisplay.json.cs @@ -72,10 +72,10 @@ internal ResourceProviderOperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.Blo { return; } - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;} {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;} + {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} AfterFromJson(json); } @@ -98,10 +98,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); - AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); AddIf( null != (((object)this._provider)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._provider.ToString()) : null, "provider" ,container.Add ); AddIf( null != (((object)this._resource)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._resource.ToString()) : null, "resource" ,container.Add ); + AddIf( null != (((object)this._operation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._operation.ToString()) : null, "operation" ,container.Add ); + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.PowerShell.cs index 32c2ae789d3c..92095db5dd22 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.PowerShell.cs @@ -95,9 +95,9 @@ internal SkuSetting(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).RequiredFeature = (string[]) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).RequiredFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -116,9 +116,9 @@ internal SkuSetting(global::System.Management.Automation.PSObject content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Location = (string[]) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Location, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).RequiredFeature = (string[]) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).RequiredFeature, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier = (string) content.GetValueForProperty("Tier",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ISkuSettingInternal)this).Tier, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.json.cs index 067eb934dc77..3e3c5d5f7e74 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/SkuSetting.json.cs @@ -71,9 +71,9 @@ internal SkuSetting(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.J return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} {_location = If( json?.PropertyT("locations"), out var __jsonLocations) ? If( __jsonLocations as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Location;} {_requiredFeature = If( json?.PropertyT("requiredFeatures"), out var __jsonRequiredFeatures) ? If( __jsonRequiredFeatures as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : RequiredFeature;} - {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} AfterFromJson(json); } @@ -97,6 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso return container; } AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); + AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); if (null != this._location) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -115,7 +116,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("requiredFeatures",__r); } - AddIf( null != (((object)this._tier)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._tier.ToString()) : null, "tier" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TrackedResource.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TrackedResource.PowerShell.cs index 01d3e952fb16..c53f0b05a5c0 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TrackedResource.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TrackedResource.PowerShell.cs @@ -101,9 +101,9 @@ internal TrackedResource(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -123,9 +123,9 @@ internal TrackedResource(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Location, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TrackedResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNode.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNode.PowerShell.cs index 15a0e7feb561..8811b8bd16a6 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNode.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNode.PowerShell.cs @@ -103,15 +103,15 @@ internal TransactionNode(global::System.Collections.IDictionary content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodePropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).PublicKey, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -131,15 +131,15 @@ internal TransactionNode(global::System.Management.Automation.PSObject content) // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodePropertiesTypeConverter.ConvertFrom); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Name, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Type, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).PublicKey, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.PowerShell.cs index 02c31b73ae5b..f90118578864 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.PowerShell.cs @@ -103,8 +103,8 @@ internal TransactionNodeCollection(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -122,8 +122,8 @@ internal TransactionNodeCollection(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodeTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeCollectionInternal)this).NextLink, global::System.Convert.ToString); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.json.cs index 049d3c91095d..6bb2cca0ddef 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeCollection.json.cs @@ -79,7 +79,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); if (null != this._value) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -89,6 +88,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("value",__w); } + AddIf( null != (((object)this._nextLink)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._nextLink.ToString()) : null, "nextLink" ,container.Add ); AfterToJson(ref container); return container; } @@ -105,8 +105,8 @@ internal TransactionNodeCollection(Microsoft.Azure.PowerShell.Cmdlets.Blockchain { return; } - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNode.FromJson(__u) )) ))() : null : Value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.PowerShell.cs index fec1ebb2abd4..1b7ec7996a0e 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.PowerShell.cs @@ -101,12 +101,12 @@ internal TransactionNodeProperties(global::System.Collections.IDictionary conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).PublicKey, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -124,12 +124,12 @@ internal TransactionNodeProperties(global::System.Management.Automation.PSObject return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns = (string) content.GetValueForProperty("Dns",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Dns, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).PublicKey = (string) content.GetValueForProperty("PublicKey",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).PublicKey, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.json.cs index 70224d1d945f..ead7069f92d7 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeProperties.json.cs @@ -79,21 +79,11 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._dns)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._dns.ToString()) : null, "dns" ,container.Add ); - } - if (null != this._firewallRule) - { - var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); - foreach( var __x in this._firewallRule ) - { - AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); - } - container.Add("firewallRules",__w); + AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); } - AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { - AddIf( null != (((object)this._provisioningState)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._provisioningState.ToString()) : null, "provisioningState" ,container.Add ); + AddIf( null != (((object)this._dns)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._dns.ToString()) : null, "dns" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.SerializationMode.IncludeReadOnly)) { @@ -103,6 +93,16 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { AddIf( null != (((object)this._userName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._userName.ToString()) : null, "userName" ,container.Add ); } + AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); + if (null != this._firewallRule) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); + foreach( var __x in this._firewallRule ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("firewallRules",__w); + } AfterToJson(ref container); return container; } @@ -119,12 +119,12 @@ internal TransactionNodeProperties(Microsoft.Azure.PowerShell.Cmdlets.Blockchain { return; } - {_dns = If( json?.PropertyT("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns;} - {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} - {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_dns = If( json?.PropertyT("dns"), out var __jsonDns) ? (string)__jsonDns : (string)Dns;} {_publicKey = If( json?.PropertyT("publicKey"), out var __jsonPublicKey) ? (string)__jsonPublicKey : (string)PublicKey;} {_userName = If( json?.PropertyT("userName"), out var __jsonUserName) ? (string)__jsonUserName : (string)UserName;} + {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password;} + {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} AfterFromJson(json); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.PowerShell.cs index a1b14f4b1b74..75879f94cb3d 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.PowerShell.cs @@ -103,8 +103,8 @@ internal TransactionNodePropertiesUpdate(global::System.Collections.IDictionary return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -122,8 +122,8 @@ internal TransactionNodePropertiesUpdate(global::System.Management.Automation.PS return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.json.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.json.cs index af3d4171d010..4eb3cc6e28df 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.json.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodePropertiesUpdate.json.cs @@ -79,6 +79,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } + AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); if (null != this._firewallRule) { var __w = new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.XNodeArray(); @@ -88,7 +89,6 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso } container.Add("firewallRules",__w); } - AddIf( null != (((object)this._password)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._password.ToString()) : null, "password" ,container.Add ); AfterToJson(ref container); return container; } @@ -105,8 +105,8 @@ internal TransactionNodePropertiesUpdate(Microsoft.Azure.PowerShell.Cmdlets.Bloc { return; } - {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} {_password = If( json?.PropertyT("password"), out var __jsonPassword) ? (string)__jsonPassword : (string)Password;} + {_firewallRule = If( json?.PropertyT("firewallRules"), out var __jsonFirewallRules) ? If( __jsonFirewallRules as Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule) (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRule.FromJson(__u) )) ))() : null : FirewallRule;} AfterFromJson(json); } } diff --git a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeUpdate.PowerShell.cs b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeUpdate.PowerShell.cs index aec5fa837f43..b18dfdf672ab 100644 --- a/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeUpdate.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/Api20180601Preview/TransactionNodeUpdate.PowerShell.cs @@ -104,8 +104,8 @@ internal TransactionNodeUpdate(global::System.Collections.IDictionary content) } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodePropertiesUpdateTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializeDictionary(content); } @@ -124,8 +124,8 @@ internal TransactionNodeUpdate(global::System.Management.Automation.PSObject con } // actually deserialize ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodePropertiesUpdate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.TransactionNodePropertiesUpdateTypeConverter.ConvertFrom); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule = (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IFirewallRule[]) content.GetValueForProperty("FirewallRule",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNodeUpdateInternal)this).FirewallRule, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.FirewallRuleTypeConverter.ConvertFrom)); AfterDeserializePSObject(content); } } diff --git a/src/Blockchain/generated/api/Models/BlockchainIdentity.PowerShell.cs b/src/Blockchain/generated/api/Models/BlockchainIdentity.PowerShell.cs index 9e98423a5f68..7d3d8cb90008 100644 --- a/src/Blockchain/generated/api/Models/BlockchainIdentity.PowerShell.cs +++ b/src/Blockchain/generated/api/Models/BlockchainIdentity.PowerShell.cs @@ -65,13 +65,13 @@ internal BlockchainIdentity(global::System.Collections.IDictionary content) return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).BlockchainMemberName = (string) content.GetValueForProperty("BlockchainMemberName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).BlockchainMemberName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).TransactionNodeName = (string) content.GetValueForProperty("TransactionNodeName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).TransactionNodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializeDictionary(content); } @@ -89,13 +89,13 @@ internal BlockchainIdentity(global::System.Management.Automation.PSObject conten return; } // actually deserialize - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).BlockchainMemberName = (string) content.GetValueForProperty("BlockchainMemberName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).BlockchainMemberName, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location, global::System.Convert.ToString); - ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).SubscriptionId = (string) content.GetValueForProperty("SubscriptionId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).SubscriptionId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName = (string) content.GetValueForProperty("ResourceGroupName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).ResourceGroupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId = (string) content.GetValueForProperty("OperationId",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).OperationId, global::System.Convert.ToString); ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).TransactionNodeName = (string) content.GetValueForProperty("TransactionNodeName",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).TransactionNodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.IBlockchainIdentityInternal)this).Id, global::System.Convert.ToString); AfterDeserializePSObject(content); } diff --git a/src/Blockchain/generated/api/Models/BlockchainIdentity.cs b/src/Blockchain/generated/api/Models/BlockchainIdentity.cs index 4faa1288dc16..c747808632fb 100644 --- a/src/Blockchain/generated/api/Models/BlockchainIdentity.cs +++ b/src/Blockchain/generated/api/Models/BlockchainIdentity.cs @@ -29,7 +29,7 @@ public partial class BlockchainIdentity : /// Backing field for property. private string _location; - /// Location Name. + /// Location name. [Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Origin(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } @@ -92,11 +92,11 @@ public partial interface IBlockchainIdentity : SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string Id { get; set; } - /// Location Name. + /// Location name. [Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Info( Required = false, ReadOnly = false, - Description = @"Location Name.", + Description = @"Location name.", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } @@ -147,7 +147,7 @@ internal partial interface IBlockchainIdentityInternal string BlockchainMemberName { get; set; } /// Resource identity path string Id { get; set; } - /// Location Name. + /// Location name. string Location { get; set; } /// Operation Id. string OperationId { get; set; } diff --git a/src/Blockchain/generated/api/Models/BlockchainIdentity.json.cs b/src/Blockchain/generated/api/Models/BlockchainIdentity.json.cs index 7032f22fedbf..5c21a8081a99 100644 --- a/src/Blockchain/generated/api/Models/BlockchainIdentity.json.cs +++ b/src/Blockchain/generated/api/Models/BlockchainIdentity.json.cs @@ -62,13 +62,13 @@ internal BlockchainIdentity(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtim { return; } - {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} {_blockchainMemberName = If( json?.PropertyT("blockchainMemberName"), out var __jsonBlockchainMemberName) ? (string)__jsonBlockchainMemberName : (string)BlockchainMemberName;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_operationId = If( json?.PropertyT("operationId"), out var __jsonOperationId) ? (string)__jsonOperationId : (string)OperationId;} {_transactionNodeName = If( json?.PropertyT("transactionNodeName"), out var __jsonTransactionNodeName) ? (string)__jsonTransactionNodeName : (string)TransactionNodeName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} AfterFromJson(json); } @@ -103,13 +103,13 @@ public Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode ToJso { return container; } - AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); AddIf( null != (((object)this._blockchainMemberName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._blockchainMemberName.ToString()) : null, "blockchainMemberName" ,container.Add ); - AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); - AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); - AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); AddIf( null != (((object)this._subscriptionId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._subscriptionId.ToString()) : null, "subscriptionId" ,container.Add ); + AddIf( null != (((object)this._resourceGroupName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._resourceGroupName.ToString()) : null, "resourceGroupName" ,container.Add ); + AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != (((object)this._operationId)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._operationId.ToString()) : null, "operationId" ,container.Add ); AddIf( null != (((object)this._transactionNodeName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._transactionNodeName.ToString()) : null, "transactionNodeName" ,container.Add ); + AddIf( null != (((object)this._id)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Runtime.Json.JsonString(this._id.ToString()) : null, "id" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.Completer.cs b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.Completer.cs index c93f93dbe0a7..bc9b29f27bba 100644 --- a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.Completer.cs +++ b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// Argument completer implementation for BlockchainMemberProvisioningState. + /// Gets or sets the blockchain member provision state. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainMemberProvisioningStateTypeConverter))] public partial struct BlockchainMemberProvisioningState : System.Management.Automation.IArgumentCompleter diff --git a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.TypeConverter.cs b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.TypeConverter.cs index 8b9058baaca8..39c0dd95f269 100644 --- a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.TypeConverter.cs +++ b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// TypeConverter implementation for BlockchainMemberProvisioningState. + /// Gets or sets the blockchain member provision state. public partial class BlockchainMemberProvisioningStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.cs b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.cs index ac5f927f69a6..0f737240ce4b 100644 --- a/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.cs +++ b/src/Blockchain/generated/api/Support/BlockchainMemberProvisioningState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { + /// Gets or sets the blockchain member provision state. public partial struct BlockchainMemberProvisioningState : System.IEquatable { diff --git a/src/Blockchain/generated/api/Support/BlockchainProtocol.Completer.cs b/src/Blockchain/generated/api/Support/BlockchainProtocol.Completer.cs index bc7757d35ca4..5328e1a42517 100644 --- a/src/Blockchain/generated/api/Support/BlockchainProtocol.Completer.cs +++ b/src/Blockchain/generated/api/Support/BlockchainProtocol.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// Argument completer implementation for BlockchainProtocol. + /// Gets or sets the blockchain protocol. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.BlockchainProtocolTypeConverter))] public partial struct BlockchainProtocol : System.Management.Automation.IArgumentCompleter diff --git a/src/Blockchain/generated/api/Support/BlockchainProtocol.TypeConverter.cs b/src/Blockchain/generated/api/Support/BlockchainProtocol.TypeConverter.cs index 1a1d47940058..cceb534c24e6 100644 --- a/src/Blockchain/generated/api/Support/BlockchainProtocol.TypeConverter.cs +++ b/src/Blockchain/generated/api/Support/BlockchainProtocol.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// TypeConverter implementation for BlockchainProtocol. + /// Gets or sets the blockchain protocol. public partial class BlockchainProtocolTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/Blockchain/generated/api/Support/BlockchainProtocol.cs b/src/Blockchain/generated/api/Support/BlockchainProtocol.cs index 5beaee1c1a1b..1f49e419aa50 100644 --- a/src/Blockchain/generated/api/Support/BlockchainProtocol.cs +++ b/src/Blockchain/generated/api/Support/BlockchainProtocol.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { + /// Gets or sets the blockchain protocol. public partial struct BlockchainProtocol : System.IEquatable { diff --git a/src/Blockchain/generated/api/Support/NameAvailabilityReason.Completer.cs b/src/Blockchain/generated/api/Support/NameAvailabilityReason.Completer.cs index af9e17fc4f14..0a21baa8fec4 100644 --- a/src/Blockchain/generated/api/Support/NameAvailabilityReason.Completer.cs +++ b/src/Blockchain/generated/api/Support/NameAvailabilityReason.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// Argument completer implementation for NameAvailabilityReason. + /// Gets or sets the name availability reason. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NameAvailabilityReasonTypeConverter))] public partial struct NameAvailabilityReason : System.Management.Automation.IArgumentCompleter diff --git a/src/Blockchain/generated/api/Support/NameAvailabilityReason.TypeConverter.cs b/src/Blockchain/generated/api/Support/NameAvailabilityReason.TypeConverter.cs index 6d809191322d..50bae2968e1e 100644 --- a/src/Blockchain/generated/api/Support/NameAvailabilityReason.TypeConverter.cs +++ b/src/Blockchain/generated/api/Support/NameAvailabilityReason.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// TypeConverter implementation for NameAvailabilityReason. + /// Gets or sets the name availability reason. public partial class NameAvailabilityReasonTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/Blockchain/generated/api/Support/NameAvailabilityReason.cs b/src/Blockchain/generated/api/Support/NameAvailabilityReason.cs index a9a2ac91323b..9d7151c523e7 100644 --- a/src/Blockchain/generated/api/Support/NameAvailabilityReason.cs +++ b/src/Blockchain/generated/api/Support/NameAvailabilityReason.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { + /// Gets or sets the name availability reason. public partial struct NameAvailabilityReason : System.IEquatable { diff --git a/src/Blockchain/generated/api/Support/NodeProvisioningState.Completer.cs b/src/Blockchain/generated/api/Support/NodeProvisioningState.Completer.cs index 59b52b9af1c0..2d819c8ca3df 100644 --- a/src/Blockchain/generated/api/Support/NodeProvisioningState.Completer.cs +++ b/src/Blockchain/generated/api/Support/NodeProvisioningState.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// Argument completer implementation for NodeProvisioningState. + /// Gets or sets the blockchain member provision state. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support.NodeProvisioningStateTypeConverter))] public partial struct NodeProvisioningState : System.Management.Automation.IArgumentCompleter diff --git a/src/Blockchain/generated/api/Support/NodeProvisioningState.TypeConverter.cs b/src/Blockchain/generated/api/Support/NodeProvisioningState.TypeConverter.cs index 34843d8be9aa..59e417751fee 100644 --- a/src/Blockchain/generated/api/Support/NodeProvisioningState.TypeConverter.cs +++ b/src/Blockchain/generated/api/Support/NodeProvisioningState.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { - /// TypeConverter implementation for NodeProvisioningState. + /// Gets or sets the blockchain member provision state. public partial class NodeProvisioningStateTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/src/Blockchain/generated/api/Support/NodeProvisioningState.cs b/src/Blockchain/generated/api/Support/NodeProvisioningState.cs index f05019dcf44d..17859facd5ab 100644 --- a/src/Blockchain/generated/api/Support/NodeProvisioningState.cs +++ b/src/Blockchain/generated/api/Support/NodeProvisioningState.cs @@ -6,6 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Support { + /// Gets or sets the blockchain member provision state. public partial struct NodeProvisioningState : System.IEquatable { diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainConsortium_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainConsortium_List.cs index f52ab75e9cb1..2a8087503a4e 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainConsortium_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainConsortium_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the available consortiums for a subscription. /// - /// [OpenAPI] Locations_ListConsortiums=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/locations/{location}/listConsortiums" + /// [OpenAPI] ListConsortiums=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/locations/{location}/listConsortiums" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainConsortium_List", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortium))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberApiKey_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberApiKey_List.cs index 2669d488a1ab..301ccfce444e 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberApiKey_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberApiKey_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the API keys for a blockchain member. /// - /// [OpenAPI] BlockchainMembers_ListApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/listApiKeys" + /// [OpenAPI] ListApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/listApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMemberApiKey_List", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberConsortiumMember_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberConsortiumMember_List.cs index b61896db922b..5916957b1ea2 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberConsortiumMember_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMemberConsortiumMember_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the consortium members for a blockchain member. /// - /// [OpenAPI] BlockchainMembers_ListConsortiumMembers=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/consortiumMembers" + /// [OpenAPI] ListConsortiumMembers=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/consortiumMembers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMemberConsortiumMember_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IConsortiumMember))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_Get.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_Get.cs index 1a6eb4dd4dfa..b76c108b64ad 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_Get.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Get details about a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMember_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_GetViaIdentity.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_GetViaIdentity.cs index f097feaff504..15414533d367 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_GetViaIdentity.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Get details about a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMember_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List.cs index 360e61e88944..0e8eca1bd98b 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the blockchain members for a resource group. /// - /// [OpenAPI] BlockchainMembers_List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMember_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List1.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List1.cs index a3aadf7de6a8..97d00221728f 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List1.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainMember_List1.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the blockchain members for a subscription. /// - /// [OpenAPI] BlockchainMembers_ListAll=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/blockchainMembers" + /// [OpenAPI] ListAll=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/blockchainMembers" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainMember_List1")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IBlockchainMember))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainOperation_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainOperation_List.cs index fd98e3a474bd..48643ad324fe 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainOperation_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainOperation_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the available operations of Microsoft.Blockchain resource provider. /// - /// [OpenAPI] Operations_List=>GET:"/providers/Microsoft.Blockchain/operations" + /// [OpenAPI] List=>GET:"/providers/Microsoft.Blockchain/operations" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainOperation_List")] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainSku_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainSku_List.cs index 32ba093777ea..204d7dfe660d 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainSku_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainSku_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the Skus of the resource type. /// - /// [OpenAPI] Skus_List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/skus" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/skus" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainSku_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IResourceTypeSku))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNodeApiKey_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNodeApiKey_List.cs index 18092a0acd65..97f838c2740c 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNodeApiKey_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNodeApiKey_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// List the API keys for the transaction node. /// - /// [OpenAPI] TransactionNodes_ListApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/listApiKeys" + /// [OpenAPI] ListApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/listApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainTransactionNodeApiKey_List", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_Get.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_Get.cs index 84a04153f283..4ff9eeba229b 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_Get.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_Get.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Get the details of the transaction node. /// - /// [OpenAPI] TransactionNodes_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainTransactionNode_Get")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_GetViaIdentity.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_GetViaIdentity.cs index 67a067068323..2c57712f63bf 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_GetViaIdentity.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_GetViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Get the details of the transaction node. /// - /// [OpenAPI] TransactionNodes_Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainTransactionNode_GetViaIdentity")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode))] diff --git a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_List.cs b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_List.cs index b6dd542170bf..b87812e143ca 100644 --- a/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_List.cs +++ b/src/Blockchain/generated/cmdlets/GetAzBlockchainTransactionNode_List.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Lists the transaction nodes for a blockchain member. /// - /// [OpenAPI] TransactionNodes_List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes" + /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzBlockchainTransactionNode_List")] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.ITransactionNode))] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateExpanded.cs index b745fa2db13b..3e0a4b6345da 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Regenerate the API keys for a blockchain member. /// - /// [OpenAPI] BlockchainMembers_RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/regenerateApiKeys" + /// [OpenAPI] RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/regenerateApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainMemberApiKey_RegenerateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateViaIdentityExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateViaIdentityExpanded.cs index 0eff45f441a2..71d2603bec55 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateViaIdentityExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainMemberApiKey_RegenerateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Regenerate the API keys for a blockchain member. /// - /// [OpenAPI] BlockchainMembers_RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/regenerateApiKeys" + /// [OpenAPI] RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/regenerateApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainMemberApiKey_RegenerateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainMember_CreateExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainMember_CreateExpanded.cs index cc332329d651..7d4d039a91b6 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainMember_CreateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainMember_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Create a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainMember_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateExpanded.cs index 929c4cb22391..9abb7964c9dd 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Regenerate the API keys for the blockchain member. /// - /// [OpenAPI] TransactionNodes_RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/regenerateApiKeys" + /// [OpenAPI] RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/regenerateApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainTransactionNodeApiKey_RegenerateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateViaIdentityExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateViaIdentityExpanded.cs index c1673eb6a110..56e23e570ec4 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateViaIdentityExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNodeApiKey_RegenerateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Regenerate the API keys for the blockchain member. /// - /// [OpenAPI] TransactionNodes_RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/regenerateApiKeys" + /// [OpenAPI] RegenerateApiKeys=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}/regenerateApiKeys" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainTransactionNodeApiKey_RegenerateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.IApiKey))] diff --git a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNode_CreateExpanded.cs b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNode_CreateExpanded.cs index 3284d784a0dd..848dd9b09752 100644 --- a/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNode_CreateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/NewAzBlockchainTransactionNode_CreateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Create or update the transaction node. /// - /// [OpenAPI] TransactionNodes_Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzBlockchainTransactionNode_CreateExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_Delete.cs b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_Delete.cs index 8dc7609c7611..3700c31f16a1 100644 --- a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_Delete.cs +++ b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Delete a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzBlockchainMember_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_DeleteViaIdentity.cs b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_DeleteViaIdentity.cs index 4c1ebbf70d4d..44bd28ea1a1e 100644 --- a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_DeleteViaIdentity.cs +++ b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainMember_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Delete a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzBlockchainMember_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_Delete.cs b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_Delete.cs index 35cf177f7ecd..1c1adacf6e3d 100644 --- a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_Delete.cs +++ b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_Delete.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Delete the transaction node. /// - /// [OpenAPI] TransactionNodes_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzBlockchainTransactionNode_Delete", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_DeleteViaIdentity.cs b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_DeleteViaIdentity.cs index 86785eda5812..b4ff936cb757 100644 --- a/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_DeleteViaIdentity.cs +++ b/src/Blockchain/generated/cmdlets/RemoveAzBlockchainTransactionNode_DeleteViaIdentity.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Delete the transaction node. /// - /// [OpenAPI] TransactionNodes_Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzBlockchainTransactionNode_DeleteViaIdentity", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] diff --git a/src/Blockchain/generated/cmdlets/TestAzBlockchainLocationNameAvailability_CheckExpanded.cs b/src/Blockchain/generated/cmdlets/TestAzBlockchainLocationNameAvailability_CheckExpanded.cs index 614be8513e43..ccf61cbee535 100644 --- a/src/Blockchain/generated/cmdlets/TestAzBlockchainLocationNameAvailability_CheckExpanded.cs +++ b/src/Blockchain/generated/cmdlets/TestAzBlockchainLocationNameAvailability_CheckExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// To check whether a resource name is available. /// - /// [OpenAPI] Locations_CheckNameAvailability=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/locations/{location}/checkNameAvailability" + /// [OpenAPI] CheckNameAvailability=>POST:"/subscriptions/{subscriptionId}/providers/Microsoft.Blockchain/locations/{location}/checkNameAvailability" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsDiagnostic.Test, @"AzBlockchainLocationNameAvailability_CheckExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Models.Api20180601Preview.INameAvailability))] diff --git a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateExpanded.cs b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateExpanded.cs index 3b0df63debc2..e1c6d44781dd 100644 --- a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Update a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzBlockchainMember_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateViaIdentityExpanded.cs b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateViaIdentityExpanded.cs index 67595a9ddb52..356cc29bef31 100644 --- a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateViaIdentityExpanded.cs +++ b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainMember_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Update a blockchain member. /// - /// [OpenAPI] BlockchainMembers_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzBlockchainMember_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateExpanded.cs b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateExpanded.cs index 6835daad7e4a..8461b3b384b2 100644 --- a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateExpanded.cs +++ b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Update the transaction node. /// - /// [OpenAPI] TransactionNodes_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzBlockchainTransactionNode_UpdateExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateViaIdentityExpanded.cs b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateViaIdentityExpanded.cs index bfa7e68d8b72..539db495889d 100644 --- a/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateViaIdentityExpanded.cs +++ b/src/Blockchain/generated/cmdlets/UpdateAzBlockchainTransactionNode_UpdateViaIdentityExpanded.cs @@ -9,7 +9,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Blockchain.Cmdlets /// Update the transaction node. /// - /// [OpenAPI] TransactionNodes_Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" + /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Blockchain/blockchainMembers/{blockchainMemberName}/transactionNodes/{transactionNodeName}" /// [global::Microsoft.Azure.PowerShell.Cmdlets.Blockchain.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzBlockchainTransactionNode_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] diff --git a/src/Blockchain/help/Get-AzBlockchainMember.md b/src/Blockchain/help/Get-AzBlockchainMember.md index 149857fb4d9d..82b8650d55f8 100644 --- a/src/Blockchain/help/Get-AzBlockchainMember.md +++ b/src/Blockchain/help/Get-AzBlockchainMember.md @@ -191,7 +191,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/Get-AzBlockchainTransactionNode.md b/src/Blockchain/help/Get-AzBlockchainTransactionNode.md index 02754d61927a..30b7abbb35fc 100644 --- a/src/Blockchain/help/Get-AzBlockchainTransactionNode.md +++ b/src/Blockchain/help/Get-AzBlockchainTransactionNode.md @@ -187,7 +187,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/New-AzBlockchainMemberApiKey.md b/src/Blockchain/help/New-AzBlockchainMemberApiKey.md index c5994f769cae..cbd27ce2adca 100644 --- a/src/Blockchain/help/New-AzBlockchainMemberApiKey.md +++ b/src/Blockchain/help/New-AzBlockchainMemberApiKey.md @@ -221,7 +221,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/New-AzBlockchainTransactionNodeApiKey.md b/src/Blockchain/help/New-AzBlockchainTransactionNodeApiKey.md index ea6f709d1ab0..9f63a89cf34b 100644 --- a/src/Blockchain/help/New-AzBlockchainTransactionNodeApiKey.md +++ b/src/Blockchain/help/New-AzBlockchainTransactionNodeApiKey.md @@ -236,7 +236,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/Remove-AzBlockchainMember.md b/src/Blockchain/help/Remove-AzBlockchainMember.md index 2b92b137a584..a4ec8c154955 100644 --- a/src/Blockchain/help/Remove-AzBlockchainMember.md +++ b/src/Blockchain/help/Remove-AzBlockchainMember.md @@ -225,7 +225,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/Remove-AzBlockchainTransactionNode.md b/src/Blockchain/help/Remove-AzBlockchainTransactionNode.md index 6fe17e1154a2..e0c784300930 100644 --- a/src/Blockchain/help/Remove-AzBlockchainTransactionNode.md +++ b/src/Blockchain/help/Remove-AzBlockchainTransactionNode.md @@ -240,7 +240,7 @@ To create the parameters described below, construct a hash table containing the INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/Update-AzBlockchainMember.md b/src/Blockchain/help/Update-AzBlockchainMember.md index 412fa0bed850..b6be84b9c36e 100644 --- a/src/Blockchain/help/Update-AzBlockchainMember.md +++ b/src/Blockchain/help/Update-AzBlockchainMember.md @@ -258,7 +258,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/help/Update-AzBlockchainTransactionNode.md b/src/Blockchain/help/Update-AzBlockchainTransactionNode.md index 3b2094ec4c8c..4944d4017df4 100644 --- a/src/Blockchain/help/Update-AzBlockchainTransactionNode.md +++ b/src/Blockchain/help/Update-AzBlockchainTransactionNode.md @@ -240,7 +240,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter - `[BlockchainMemberName ]`: Blockchain member name. - `[Id ]`: Resource identity path - - `[Location ]`: Location Name. + - `[Location ]`: Location name. - `[OperationId ]`: Operation Id. - `[ResourceGroupName ]`: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. - `[SubscriptionId ]`: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/internal/ProxyCmdletDefinitions.ps1 b/src/Blockchain/internal/ProxyCmdletDefinitions.ps1 index 67fda322050e..814de7d5739f 100644 --- a/src/Blockchain/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Blockchain/internal/ProxyCmdletDefinitions.ps1 @@ -605,7 +605,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. @@ -812,7 +812,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/internal/Update-AzBlockchainMember.ps1 b/src/Blockchain/internal/Update-AzBlockchainMember.ps1 index 447574250ef3..256810662db9 100644 --- a/src/Blockchain/internal/Update-AzBlockchainMember.ps1 +++ b/src/Blockchain/internal/Update-AzBlockchainMember.ps1 @@ -51,7 +51,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/internal/Update-AzBlockchainTransactionNode.ps1 b/src/Blockchain/internal/Update-AzBlockchainTransactionNode.ps1 index 6a9853daf5a0..354071a5f289 100644 --- a/src/Blockchain/internal/Update-AzBlockchainTransactionNode.ps1 +++ b/src/Blockchain/internal/Update-AzBlockchainTransactionNode.ps1 @@ -51,7 +51,7 @@ FIREWALLRULE : Gets or sets the firewall rules. INPUTOBJECT : Identity Parameter [BlockchainMemberName ]: Blockchain member name. [Id ]: Resource identity path - [Location ]: Location Name. + [Location ]: Location name. [OperationId ]: Operation Id. [ResourceGroupName ]: The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. [SubscriptionId ]: Gets the subscription Id which uniquely identifies the Microsoft Azure subscription. The subscription ID is part of the URI for every service call. diff --git a/src/Blockchain/utils/Unprotect-SecureString.ps1 b/src/Blockchain/utils/Unprotect-SecureString.ps1 new file mode 100644 index 000000000000..cb05b51a6220 --- /dev/null +++ b/src/Blockchain/utils/Unprotect-SecureString.ps1 @@ -0,0 +1,16 @@ +#This script converts securestring to plaintext + +param( + [Parameter(Mandatory, ValueFromPipeline)] + [System.Security.SecureString] + ${SecureString} +) + +$ssPtr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($SecureString) +try { + $plaintext = [System.Runtime.InteropServices.Marshal]::PtrToStringBSTR($ssPtr) +} finally { + [System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ssPtr) +} + +return $plaintext \ No newline at end of file From c09a16c9d799e05592b12756d4cd086f72d0e9c3 Mon Sep 17 00:00:00 2001 From: Dingmeng Xue Date: Tue, 8 Sep 2020 16:43:31 +0800 Subject: [PATCH 2/3] Update ChangeLog.md --- src/Blockchain/ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blockchain/ChangeLog.md b/src/Blockchain/ChangeLog.md index 1e910e4fa9ca..b9bd768a78d2 100644 --- a/src/Blockchain/ChangeLog.md +++ b/src/Blockchain/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Fixed issue https://github.com/Azure/azure-powershell/issues/12707 +* Fixed issue that password parameter on `New-AzBlockchainMember` has issue on Linux [12707] ## Version 0.1.0 * the first preview release From 13c33060d016465d229fe63eef0883077b9c836b Mon Sep 17 00:00:00 2001 From: Dingmeng Xue Date: Tue, 8 Sep 2020 16:49:33 +0800 Subject: [PATCH 3/3] Update ChangeLog.md --- src/Blockchain/ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blockchain/ChangeLog.md b/src/Blockchain/ChangeLog.md index b9bd768a78d2..33f171086341 100644 --- a/src/Blockchain/ChangeLog.md +++ b/src/Blockchain/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Fixed issue that password parameter on `New-AzBlockchainMember` has issue on Linux [12707] +* Fixed SecureString parameters of `New-AzBlockchainMember` on Linux [12707] ## Version 0.1.0 * the first preview release