diff --git a/src/PostgreSql/Az.PostgreSql.format.ps1xml b/src/PostgreSql/Az.PostgreSql.format.ps1xml
index 51fe05d536e1..2516a6fa6abb 100644
--- a/src/PostgreSql/Az.PostgreSql.format.ps1xml
+++ b/src/PostgreSql/Az.PostgreSql.format.ps1xml
@@ -1065,9 +1065,6 @@
-
-
-
@@ -1105,9 +1102,6 @@
AdministratorLogin
-
- AdministratorLoginPassword
-
@@ -1400,9 +1394,6 @@
-
-
-
@@ -1422,9 +1413,6 @@
-
- AdministratorLoginPassword
-
MinimalTlsVersion
@@ -2345,9 +2333,6 @@
-
-
-
@@ -2394,9 +2379,6 @@
AdministratorLogin
-
- AdministratorLoginPassword
-
AvailabilityZone
@@ -2470,9 +2452,6 @@
-
-
-
@@ -2480,9 +2459,6 @@
-
- AdministratorLoginPassword
-
HaEnabled
diff --git a/src/PostgreSql/Az.PostgreSql.psd1 b/src/PostgreSql/Az.PostgreSql.psd1
index 687cebed6732..a9715105d7b1 100644
--- a/src/PostgreSql/Az.PostgreSql.psd1
+++ b/src/PostgreSql/Az.PostgreSql.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
-# Generated on: 2/5/2021
+# Generated on: 2/23/2021
#
@{
@@ -12,7 +12,7 @@
RootModule = './Az.PostgreSql.psm1'
# Version number of this module.
-ModuleVersion = '0.4.0'
+ModuleVersion = '0.1.0'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
@@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
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 = ''
+# ClrVersion = ''
# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''
@@ -54,7 +54,7 @@ DotNetFrameworkVersion = '4.7.2'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.5'; })
# Assemblies that must be loaded prior to importing this module
-RequiredAssemblies = 'bin\Az.PostgreSql.private.dll'
+RequiredAssemblies = './bin/Az.PostgreSql.private.dll'
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
# ScriptsToProcess = @()
@@ -63,7 +63,7 @@ RequiredAssemblies = 'bin\Az.PostgreSql.private.dll'
# TypesToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
-FormatsToProcess = 'Az.PostgreSql.format.ps1xml'
+FormatsToProcess = './Az.PostgreSql.format.ps1xml'
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()
@@ -135,7 +135,7 @@ PrivateData = @{
# IconUri = ''
# ReleaseNotes of this module
- ReleaseNotes = '* Added cmdlet ''Test-AzPostgreSqlFlexibleServerConnect'''
+ # ReleaseNotes = ''
# Prerelease string of this module
# Prerelease = ''
diff --git a/src/PostgreSql/ChangeLog.md b/src/PostgreSql/ChangeLog.md
index 4aa03a25ff2b..b335abef3f8e 100644
--- a/src/PostgreSql/ChangeLog.md
+++ b/src/PostgreSql/ChangeLog.md
@@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
+* Added maintenance windows parameter to Update-AzPostgreSqlFlexibleServer cmdlet
+* Added zone parameter to server New/Restore-PostgresSqlFlexibleServer cmdlet.
## Version 0.4.0
* Added cmdlet `Test-AzPostgreSqlFlexibleServerConnect`
diff --git a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1
index 34cc06cab661..0db92209ecf9 100644
--- a/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/custom/New-AzPostgreSqlFlexibleServer.ps1
@@ -23,6 +23,7 @@ $DELEGATION_SERVICE_NAME = "Microsoft.DBforPostgreSQL/flexibleServers"
$DEFAULT_VNET_PREFIX = '10.0.0.0/16'
$DEFAULT_SUBNET_PREFIX = '10.0.0.0/24'
$AZURE_ARMNAME = '^[^<>%&:\\?/]{1,260}$'
+$SERVICE_ENDPOINT = "Microsoft.Storage"
function New-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -46,6 +47,11 @@ function New-AzPostgreSqlFlexibleServer {
[System.String]
${SubscriptionId},
+ [Parameter(HelpMessage = 'Availability zone into which to provision the resource.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ ${Zone},
+
[Parameter(HelpMessage = 'The location the resource resides in.')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
@@ -188,6 +194,11 @@ function New-AzPostgreSqlFlexibleServer {
$PSBoundParameters.Location = 'eastus'
}
+ if ($PSBoundParameters.ContainsKey('Zone')) {
+ $PSBoundParameters.AvailabilityZone = $PSBoundParameters.Zone
+ $null = $PSBoundParameters.Remove('Zone')
+ }
+
if (!$PSBoundParameters.ContainsKey('AdministratorLoginPassword')) {
$Password = Get-GeneratePassword
$PSBoundParameters.AdministratorLoginPassword = $Password | ConvertTo-SecureString -AsPlainText -Force
@@ -471,7 +482,7 @@ function CreateAndDelegateSubnet($Parameters) {
if (!$SubnetFlag) {
$Delegation = New-AzDelegation -Name $DELEGATION_SERVICE_NAME -ServiceName $DELEGATION_SERVICE_NAME
- Add-AzVirtualNetworkSubnetConfig -Name $Parameters.SubnetName -VirtualNetwork $Vnet -AddressPrefix $Parameters.SubnetPrefix -Delegation $Delegation | Set-AzVirtualNetwork
+ Add-AzVirtualNetworkSubnetConfig -Name $Parameters.SubnetName -VirtualNetwork $Vnet -AddressPrefix $Parameters.SubnetPrefix -Delegation $Delegation -ServiceEndpoint $SERVICE_ENDPOINT | Set-AzVirtualNetwork
}
else { # check if existing subnet is delegated
$Delegations = Get-AzDelegation -Subnet $Subnet
@@ -516,6 +527,7 @@ function CreateFirewallRule($FirewallRuleParameters) {
}
elseif ($StartIP -eq $EndIP) {
$Msg = 'Configuring server firewall rule to accept connections from ' + $StartIP
+ $RuleName = "FirewallIPAddress_" + $Date
}
else {
$Msg = 'Configuring server firewall rule to accept connections from {0} to {1}' -f $StartIP, $EndIp
diff --git a/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1
index 459c3ecd4737..5d9bdc9ca1bb 100644
--- a/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1
+++ b/src/PostgreSql/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1
@@ -46,6 +46,11 @@ function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore {
[System.DateTime]
${RestorePointInTime},
+ [Parameter(HelpMessage = 'Availability zone into which to provision the resource.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ ${Zone},
+
[Parameter(Mandatory, HelpMessage = 'The location the resource resides in.')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
@@ -119,6 +124,10 @@ function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore {
$PSBoundParameters.PointInTimeUTC = $PSBoundParameters["RestorePointInTime"]
$null = $PSBoundParameters.Remove('RestorePointInTime')
+ if ($PSBoundParameters.ContainsKey('Zone')) {
+ $PSBoundParameters.AvailabilityZone = $PSBoundParameters.Zone
+ $null = $PSBoundParameters.Remove('Zone')
+ }
Az.PostgreSql.internal\New-AzPostgreSqlFlexibleServer @PSBoundParameters
} catch {
diff --git a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1
index 4a234ab9fe31..a8f8fe97203b 100644
--- a/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/custom/Update-AzPostgreSqlFlexibleServer.ps1
@@ -61,12 +61,12 @@ function Update-AzPostgreSqlFlexibleServer {
[System.String]
${ReplicationRole},
- [Parameter(HelpMessage='The name of the sku, typically, tier + family + cores, e.g. B_Gen4_1, GP_Gen5_8.')]
+ [Parameter(HelpMessage='The name of the sku, e.g. Burstable_B1ms, Standard_D2ds_v4')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
${Sku},
- [Parameter(HelpMessage='The tier of the particular SKU, e.g. Basic.')]
+ [Parameter(HelpMessage='The tier of the particular SKU. Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable.')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier]
@@ -76,6 +76,7 @@ function Update-AzPostgreSqlFlexibleServer {
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum]
+ [Validateset('Enabled', 'Disabled')]
# Enable HA or not for a server.
${HaEnabled},
@@ -83,6 +84,7 @@ function Update-AzPostgreSqlFlexibleServer {
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum]
+ [Validateset('Enabled', 'Disabled')]
${SslEnforcement},
[Parameter(HelpMessage='Backup retention days for the server. Day count is between 7 and 35.')]
@@ -90,6 +92,11 @@ function Update-AzPostgreSqlFlexibleServer {
[System.Int32]
${BackupRetentionDay},
+ [Parameter(HelpMessage='Period of time (UTC) designated for maintenance. Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC. To set back to default pass in "Disabled"')]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ ${MaintenanceWindow},
+
[Parameter(HelpMessage='Enable Storage Auto Grow.')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])]
[Validateset('Enabled', 'Disabled')]
@@ -186,7 +193,39 @@ function Update-AzPostgreSqlFlexibleServer {
$null = $PSBoundParameters.Remove('StorageAutogrow')
}
-
+ if ($PSBoundParameters.ContainsKey('MaintenanceWindow')) {
+
+ $PSBoundParameters.MaintenanceWindowDayOfWeek = $null
+ $PSBoundParameters.MaintenanceWindowStartHour = $null
+ $PSBoundParameters.MaintenanceWindowStartMinute = $null
+
+ if ($PSBoundParameters.MaintenanceWindow.ToLower() -eq "disabled"){
+ $PSBoundParameters.MaintenanceWindowDayOfWeek = 0
+ $PSBoundParameters.MaintenanceWindowStartHour = 0
+ $PSBoundParameters.MaintenanceWindowStartMinute = 0
+ $PSBoundParameters.MaintenanceWindowCustomWindow = "Disabled"
+ }
+ else {
+ $ParsedWindow = $PSBoundParameters.MaintenanceWindow -split ":"
+ $DaytoNumber = @{Mon = 1; Tue = 2; Wed = 3; Thur = 4; Fri = 5; Sat = 6; Sun = 0}
+
+ if ($ParsedWindow.Length -ge 1){
+ $PSBoundParameters.MaintenanceWindowDayOfWeek = $DaytoNumber[$ParsedWindow[0]]
+ }
+
+ if ($ParsedWindow.Length -ge 2){
+ $PSBoundParameters.MaintenanceWindowStartHour = $ParsedWindow[1]
+ }
+
+ if ($ParsedWindow.Length -ge 3){
+ $PSBoundParameters.MaintenanceWindowStartMinute = $ParsedWindow[2]
+ }
+
+ $PSBoundParameters.MaintenanceWindowCustomWindow = "Enabled"
+ }
+
+ $null = $PSBoundParameters.Remove('MaintenanceWindow')
+ }
Az.PostgreSql.internal\Update-AzPostgreSqlFlexibleServer @PSBoundParameters
} catch {
diff --git a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md
index 9f263fed862a..797668da777f 100644
--- a/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md
+++ b/src/PostgreSql/examples/New-AzPostgreSqlFlexibleServer.md
@@ -5,7 +5,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Checking the existence of the resource group PowershellPostgreSqlTest ...
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -21,8 +21,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer
Creating resource group group00000000...
Creating new vnet VNETserver00000000 in resource group group00000000
-Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group group00000000...
+Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group group00000000...
Your server postgresql-test is using sku Standard_D2s_v3 (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -46,8 +46,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT
Resource group PowershellPostgreSqlTest exists ? : True
You have supplied a vnet Id/name. Verifying its existence...
Creating new vnet vnetname in resource group PowershellPostgreSqlTest
-Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group PowershellPostgreSqlTest...
+Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group PowershellPostgreSqlTest...
Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -64,8 +64,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Resource group PowershellPostgreSqlTest exists ? : True
Creating new vnet postgresql-vnet in resource group PowershellPostgreSqlTest
-Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -81,7 +81,7 @@ This cmdlet creates PostgreSql flexible server with vnet name, subnet name, vnet
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255
@@ -97,7 +97,7 @@ This cmdlet creates PostgreSql flexible server open to all IP addresses.
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess 10.10.10.10-10.10.10.12
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12
diff --git a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md
index 5e4e96388284..c9ab6b89108d 100644
--- a/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md
+++ b/src/PostgreSql/examples/Update-AzPostgreSqlFlexibleServerConfiguration.md
@@ -11,7 +11,7 @@ This cmdlet updates specified PostgreSql configuration by name.
### Example 1: Updatae specified PostgreSql configuration by identity
```powershell
-PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
+PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
Name Value DefaultValue Source AllowedValues DataType
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1
index 17c0473c7657..0edbe09ade6c 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlConfiguration.ps1
@@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconfiguration
#>
function Get-AzPostgreSqlConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1
index 8413f6382e5c..6f49f6374dbe 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlConnectionString.ps1
@@ -63,7 +63,7 @@ INPUTOBJECT : The server for the connection string
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconnectionstring
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconnectionstring
#>
function Get-AzPostgreSqlConnectionString {
[OutputType([System.String])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1
index e8c5487a8447..197f97feee8a 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFirewallRule.ps1
@@ -59,7 +59,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlfirewallrule
#>
function Get-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1
index 3ca5ed5c9456..cc2ccc9aafdf 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServer.ps1
@@ -66,7 +66,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserver
#>
function Get-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1
index 4d0699cebad3..7006a1e5c7bc 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConfiguration.ps1
@@ -54,7 +54,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration
#>
function Get-AzPostgreSqlFlexibleServerConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1
index 8d5199c5fd63..ca92d311fd4d 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerConnectionString.ps1
@@ -41,7 +41,7 @@ INPUTOBJECT : The server for the connection string
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
[AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- [AdministratorLoginPassword ]: The administrator login password (required for server creation).
+ [AdministratorLoginPassword ]: The administrator login password (required for server creation).
[AvailabilityZone ]: availability Zone information of the server.
[CreateMode ]: The mode to create a new PostgreSQL server.
[DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id.
@@ -62,7 +62,7 @@ INPUTOBJECT : The server for the connection string
[StorageProfileStorageMb ]: Max storage allowed for a server.
[Version ]: PostgreSQL Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring
#>
function Get-AzPostgreSqlFlexibleServerConnectionString {
[OutputType([System.String])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1
index 20685c3ec794..39114f7363af 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerFirewallRule.ps1
@@ -60,7 +60,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule
#>
function Get-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1
index 160fb68e72b2..d2f66a981eb2 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1
@@ -43,7 +43,7 @@ Standard_E64s_v3 MemoryOptimized 6912 64
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability
#>
function Get-AzPostgreSqlFlexibleServerLocationBasedCapability {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1
index eeb0a0c6a3c5..b5ececf08752 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlReplica.ps1
@@ -28,7 +28,7 @@ postgresqltestserverreplica eastus pwsh 9.6 5120
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlreplica
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlreplica
#>
function Get-AzPostgreSqlReplica {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1
index 14ca10501306..db45a6d6637d 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlServer.ps1
@@ -65,7 +65,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserver
#>
function Get-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1
index e56b14022716..abb814fbc6a7 100644
--- a/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1
+++ b/src/PostgreSql/exports/Get-AzPostgreSqlVirtualNetworkRule.ps1
@@ -59,7 +59,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule
#>
function Get-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1
index e723b3f72e03..e9a6789982c3 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlFirewallRule.ps1
@@ -40,7 +40,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule
#>
function New-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1
index 86fdd288210f..6c558676ce75 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServer.ps1
@@ -24,7 +24,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Checking the existence of the resource group PowershellPostgreSqlTest ...
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -36,8 +36,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer
Creating resource group group00000000...
Creating new vnet VNETserver00000000 in resource group group00000000
-Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group group00000000...
+Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group group00000000...
Your server postgresql-test is using sku Standard_D2s_v3 (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -55,8 +55,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT
Resource group PowershellPostgreSqlTest exists ? : True
You have supplied a vnet Id/name. Verifying its existence...
Creating new vnet vnetname in resource group PowershellPostgreSqlTest
-Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group PowershellPostgreSqlTest...
+Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group PowershellPostgreSqlTest...
Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -69,8 +69,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Resource group PowershellPostgreSqlTest exists ? : True
Creating new vnet postgresql-vnet in resource group PowershellPostgreSqlTest
-Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -82,7 +82,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255
@@ -94,7 +94,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess 10.10.10.10-10.10.10.12
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12
@@ -107,7 +107,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver
#>
function New-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -133,6 +133,12 @@ param(
# The subscription ID that identifies an Azure subscription.
${SubscriptionId},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Availability zone into which to provision the resource.
+ ${Zone},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1
index de75771ccf07..f6ae484636ae 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlFlexibleServerFirewallRule.ps1
@@ -40,7 +40,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule
#>
function New-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1
index 86984688ed69..57ff513c209d 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlReplica.ps1
@@ -68,7 +68,7 @@ MASTER : The source server object to create replica from.
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlreplica
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlreplica
#>
function New-AzPostgreSqlReplica {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1
index 1dfcba3aec63..21c8a07f20d3 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlServer.ps1
@@ -28,7 +28,7 @@ postgresqltestserver eastus pwsh 9.6 5120
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver
#>
function New-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1
index e49ea4473d75..b657236bd6b9 100644
--- a/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1
+++ b/src/PostgreSql/exports/New-AzPostgreSqlVirtualNetworkRule.ps1
@@ -29,7 +29,7 @@ vnet Microsoft.DBforPostgreSQL/servers/virtualNetworkRules
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule
#>
function New-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
diff --git a/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1 b/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1
index 5a5b0ca0666c..4a4934a06727 100644
--- a/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1
+++ b/src/PostgreSql/exports/ProxyCmdletDefinitions.ps1
@@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconfiguration
#>
function Get-AzPostgreSqlConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])]
@@ -254,7 +254,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlfirewallrule
#>
function Get-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -441,7 +441,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconfiguration
#>
function Get-AzPostgreSqlFlexibleServerConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])]
@@ -634,7 +634,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverfirewallrule
#>
function Get-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -833,7 +833,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserver
#>
function Get-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -989,7 +989,7 @@ postgresqltestserverreplica eastus pwsh 9.6 5120
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlreplica
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlreplica
#>
function Get-AzPostgreSqlReplica {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
@@ -1168,7 +1168,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlserver
#>
function Get-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
@@ -1355,7 +1355,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlvirtualnetworkrule
#>
function Get-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
@@ -1523,7 +1523,7 @@ vnet Microsoft.DBforPostgreSQL/servers/virtualNetworkRules
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlvirtualnetworkrule
#>
function New-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
@@ -1721,7 +1721,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule
#>
function Remove-AzPostgreSqlFirewallRule {
[OutputType([System.Boolean])]
@@ -1915,7 +1915,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule
#>
function Remove-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([System.Boolean])]
@@ -2109,7 +2109,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver
#>
function Remove-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
@@ -2297,7 +2297,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserver
#>
function Remove-AzPostgreSqlServer {
[OutputType([System.Boolean])]
@@ -2485,7 +2485,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule
#>
function Remove-AzPostgreSqlVirtualNetworkRule {
[OutputType([System.Boolean])]
@@ -2677,7 +2677,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver
#>
function Restart-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
@@ -2865,7 +2865,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlserver
#>
function Restart-AzPostgreSqlServer {
[OutputType([System.Boolean])]
@@ -3051,7 +3051,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/start-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/start-azpostgresqlflexibleserver
#>
function Start-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
@@ -3237,7 +3237,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver
#>
function Stop-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
@@ -3433,7 +3433,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule
#>
function Update-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
@@ -3655,7 +3655,7 @@ INPUTOBJECT : The server for the connection string
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlconnectionstring
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlconnectionstring
#>
function Get-AzPostgreSqlConnectionString {
[OutputType([System.String])]
@@ -3819,7 +3819,7 @@ INPUTOBJECT : The server for the connection string
[Tag ]: Resource tags.
[(Any) ]: This indicates any property can be added to this object.
[AdministratorLogin ]: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
- [AdministratorLoginPassword ]: The administrator login password (required for server creation).
+ [AdministratorLoginPassword ]: The administrator login password (required for server creation).
[AvailabilityZone ]: availability Zone information of the server.
[CreateMode ]: The mode to create a new PostgreSQL server.
[DelegatedSubnetArgumentSubnetArmResourceId ]: delegated subnet arm resource id.
@@ -3840,7 +3840,7 @@ INPUTOBJECT : The server for the connection string
[StorageProfileStorageMb ]: Max storage allowed for a server.
[Version ]: PostgreSQL Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverconnectionstring
#>
function Get-AzPostgreSqlFlexibleServerConnectionString {
[OutputType([System.String])]
@@ -4011,7 +4011,7 @@ Standard_E64s_v3 MemoryOptimized 6912 64
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability
+https://docs.microsoft.com/powershell/module/az.postgresql/get-azpostgresqlflexibleserverlocationbasedcapability
#>
function Get-AzPostgreSqlFlexibleServerLocationBasedCapability {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ICapabilityProperties])]
@@ -4158,7 +4158,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlfirewallrule
#>
function New-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -4344,7 +4344,7 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Checking the existence of the resource group PowershellPostgreSqlTest ...
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -4356,8 +4356,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer
Creating resource group group00000000...
Creating new vnet VNETserver00000000 in resource group group00000000
-Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group group00000000...
+Creating new subnet Subnetserver00000000 in resource group group00000000 and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group group00000000...
Your server postgresql-test is using sku Standard_D2s_v3 (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Name Location AdministratorLogin Version StorageProfileStorageMb SkuName SkuTier
@@ -4375,8 +4375,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -ResourceGroupName PowershellPostgreSqlT
Resource group PowershellPostgreSqlTest exists ? : True
You have supplied a vnet Id/name. Verifying its existence...
Creating new vnet vnetname in resource group PowershellPostgreSqlTest
-Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server server00000000 in group PowershellPostgreSqlTest...
+Creating new subnet Subnetserver00000000 in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server server00000000 in group PowershellPostgreSqlTest...
Your server server00000000 is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -4389,8 +4389,8 @@ PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName
Resource group PowershellPostgreSqlTest exists ? : True
Creating new vnet postgresql-vnet in resource group PowershellPostgreSqlTest
-Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforMySQL/flexibleServers
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating new subnet postgresql-subnet in resource group PowershellPostgreSqlTest and delegating it to Microsoft.DBforPostgreSQL/flexibleServers
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
@@ -4402,7 +4402,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess All
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 0.0.0.0 to 255.255.255.255
@@ -4414,7 +4414,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
PS C:\> New-AzPostgreSqlFlexibleServer -Name postgresql-test -ResourceGroupName PowershellPostgreSqlTest -PublicAccess 10.10.10.10-10.10.10.12
Resource group PowershellPostgreSqlTest exists ? : True
-Creating MySQL server postgresql-test in group PowershellPostgreSqlTest...
+Creating PostgreSQL server postgresql-test in group PowershellPostgreSqlTest...
Your server postgresql-test is using sku Standard_B1ms (Paid Tier). Please refer to https://aka.ms/postgresql-pricing for pricing details
Creating database flexibleserverdb...
Configuring server firewall rule to accept connections from 10.10.10.10 to 10.10.10.12
@@ -4427,7 +4427,7 @@ postgresql-test eastus postgresqltest 12 131072 Stand
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserver
#>
function New-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -4453,6 +4453,12 @@ param(
# The subscription ID that identifies an Azure subscription.
${SubscriptionId},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Availability zone into which to provision the resource.
+ ${Zone},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
@@ -4695,7 +4701,7 @@ AllowAll_2020-08-11_18-19-27 0.0.0.0 255.255.255.255
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlflexibleserverfirewallrule
#>
function New-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -4927,7 +4933,7 @@ MASTER : The source server object to create replica from.
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlreplica
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlreplica
#>
function New-AzPostgreSqlReplica {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
@@ -5097,7 +5103,7 @@ postgresqltestserver eastus pwsh 9.6 5120
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/new-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/new-azpostgresqlserver
#>
function New-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
@@ -5331,7 +5337,7 @@ pg-restore eastus postgresql_test 12 131072 Standard_
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver
#>
function Restore-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -5375,6 +5381,12 @@ param(
# The location the resource resides in.
${Location},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Availability zone into which to provision the resource.
+ ${Zone},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -5543,7 +5555,7 @@ INPUTOBJECT : The source server object to restore from.
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlserver
#>
function Restore-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
@@ -5774,7 +5786,7 @@ INPUTOBJECT : The server to connect.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect
+https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect
#>
function Test-AzPostgreSqlFlexibleServerConnect {
[OutputType([System.String])]
@@ -5969,7 +5981,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration
#>
function Update-AzPostgreSqlConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])]
@@ -6182,7 +6194,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule
#>
function Update-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -6410,7 +6422,7 @@ INPUTOBJECT : Identity Parameter.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver
#>
function Update-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -6459,16 +6471,17 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
- # The name of the sku, typically, tier + family + cores, e.g.
- # B_Gen4_1, GP_Gen5_8.
+ # The name of the sku, e.g.
+ # Burstable_B1ms, Standard_D2ds_v4
${Sku},
[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier]
- # The tier of the particular SKU, e.g.
- # Basic.
+ # The tier of the particular SKU.
+ # Accepted values: Burstable, GeneralPurpose, Memory Optimized.
+ # Default: Burstable.
${SkuTier},
[Parameter()]
@@ -6492,6 +6505,14 @@ param(
# Day count is between 7 and 35.
${BackupRetentionDay},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Period of time (UTC) designated for maintenance.
+ # Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC.
+ # To set back to default pass in "Disabled"
+ ${MaintenanceWindow},
+
[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
@@ -6640,7 +6661,7 @@ Name Value DefaultValue Source AllowedValues DataType
---- ------ ------------ ------- ------------- ---------
work_mem 8192 4096 system-default 4096-2097151 Integer
.Example
-PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
+PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
Name Value DefaultValue Source AllowedValues DataType
@@ -6668,7 +6689,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration
#>
function Update-AzPostgreSqlFlexibleServerConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])]
@@ -6874,7 +6895,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule
#>
function Update-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
@@ -7102,7 +7123,7 @@ INPUTOBJECT : Identity Parameter.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver
#>
function Update-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1
index 07397f07e09b..58f84b9945e1 100644
--- a/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1
+++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFirewallRule.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlfirewallrule
#>
function Remove-AzPostgreSqlFirewallRule {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1
index cbca4e2787b0..61a8fd691ca0 100644
--- a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServer.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserver
#>
function Remove-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1
index 6ed7eb5a565d..a5bc7e0e8eda 100644
--- a/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1
+++ b/src/PostgreSql/exports/Remove-AzPostgreSqlFlexibleServerFirewallRule.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlflexibleserverfirewallrule
#>
function Remove-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1
index 1b04193186dd..03c508bec571 100644
--- a/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/Remove-AzPostgreSqlServer.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlserver
#>
function Remove-AzPostgreSqlServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1
index c92843ec84c4..48ae3435928b 100644
--- a/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1
+++ b/src/PostgreSql/exports/Remove-AzPostgreSqlVirtualNetworkRule.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/remove-azpostgresqlvirtualnetworkrule
#>
function Remove-AzPostgreSqlVirtualNetworkRule {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1
index e8cdb6d9473d..8def6508092c 100644
--- a/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Restart-AzPostgreSqlFlexibleServer.ps1
@@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver
#>
function Restart-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1
index 412ce304537a..3525c6f810a6 100644
--- a/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/Restart-AzPostgreSqlServer.ps1
@@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restart-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlserver
#>
function Restart-AzPostgreSqlServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1
index 74a578f858b4..9f587f3e92b4 100644
--- a/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Restore-AzPostgreSqlFlexibleServer.ps1
@@ -29,7 +29,7 @@ pg-restore eastus postgresql_test 12 131072 Standard_
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlflexibleserver
#>
function Restore-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -73,6 +73,12 @@ param(
# The location the resource resides in.
${Location},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Availability zone into which to provision the resource.
+ ${Zone},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
diff --git a/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1
index 4967f60480dc..8165e124c75a 100644
--- a/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/Restore-AzPostgreSqlServer.ps1
@@ -68,7 +68,7 @@ INPUTOBJECT : The source server object to restore from.
[UserVisibleState ]: A state of a server that is visible to user.
[Version ]: Server version.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/restore-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/restore-azpostgresqlserver
#>
function Restore-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1
index fddabbf1c855..bed6c3b26958 100644
--- a/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Start-AzPostgreSqlFlexibleServer.ps1
@@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/start-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/start-azpostgresqlflexibleserver
#>
function Start-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1
index 9312bec01a50..3ada21127628 100644
--- a/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Stop-AzPostgreSqlFlexibleServer.ps1
@@ -45,7 +45,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/stop-azpostgresqlflexibleserver
#>
function Stop-AzPostgreSqlFlexibleServer {
[OutputType([System.Boolean])]
diff --git a/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1 b/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1
index 163411378b81..3b2df71a87e9 100644
--- a/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1
+++ b/src/PostgreSql/exports/Test-AzPostgreSqlFlexibleServerConnect.ps1
@@ -64,7 +64,7 @@ INPUTOBJECT : The server to connect.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect
+https://docs.microsoft.com/powershell/module/az.postgresql/test-azpostgresqlflexibleserverconnect
#>
function Test-AzPostgreSqlFlexibleServerConnect {
[OutputType([System.String])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1
index 3e75e74d33e9..28ae95348bd1 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlConfiguration.ps1
@@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlconfiguration
#>
function Update-AzPostgreSqlConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1
index 8e489ca5abe1..daf4cb6a8429 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlFirewallRule.ps1
@@ -60,7 +60,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlfirewallrule
#>
function Update-AzPostgreSqlFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1
index b57044249e6b..f11eb39bc1a3 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServer.ps1
@@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserver
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserver
#>
function Update-AzPostgreSqlFlexibleServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGenerated])]
@@ -105,16 +105,17 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
- # The name of the sku, typically, tier + family + cores, e.g.
- # B_Gen4_1, GP_Gen5_8.
+ # The name of the sku, e.g.
+ # Burstable_B1ms, Standard_D2ds_v4
${Sku},
[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier]
- # The tier of the particular SKU, e.g.
- # Basic.
+ # The tier of the particular SKU.
+ # Accepted values: Burstable, GeneralPurpose, Memory Optimized.
+ # Default: Burstable.
${SkuTier},
[Parameter()]
@@ -138,6 +139,14 @@ param(
# Day count is between 7 and 35.
${BackupRetentionDay},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
+ [System.String]
+ # Period of time (UTC) designated for maintenance.
+ # Examples: "Sun:23:30" to schedule on Sunday, 11:30pm UTC.
+ # To set back to default pass in "Disabled"
+ ${MaintenanceWindow},
+
[Parameter()]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1
index a95030b8c4be..0da815bc0be1 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerConfiguration.ps1
@@ -27,7 +27,7 @@ Name Value DefaultValue Source AllowedValues DataType
---- ------ ------------ ------- ------------- ---------
work_mem 8192 4096 system-default 4096-2097151 Integer
.Example
-PS C:\> $ID = "/subscriptions//resourceGroups/PowershellMySqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
+PS C:\> $ID = "/subscriptions//resourceGroups/PowershellPostgreSqlTest/providers/Microsoft.DBForPostgreSql/flexibleServers/postgresql-test/configurations/work_mem"
PS C:\> Get-AzPostgreSqlFlexibleServerConfiguration -Name work_mem -ResourceGroupName PowershellPostgreSqlTest -ServerName postgresql-test -Value 8192
Name Value DefaultValue Source AllowedValues DataType
@@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverconfiguration
#>
function Update-AzPostgreSqlFlexibleServerConfiguration {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IConfigurationAutoGenerated])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1
index ba076c0eafba..2971a64ba3ec 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1
@@ -53,7 +53,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverfirewallrule
#>
function Update-AzPostgreSqlFlexibleServerFirewallRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1
index c933f84a5cda..5cbdf77e2fd3 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlServer.ps1
@@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter.
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlserver
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlserver
#>
function Update-AzPostgreSqlServer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])]
diff --git a/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1 b/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1
index 72843409d367..698a07d4a027 100644
--- a/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1
+++ b/src/PostgreSql/exports/Update-AzPostgreSqlVirtualNetworkRule.ps1
@@ -55,7 +55,7 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The ID of the target subscription.
[VirtualNetworkRuleName ]: The name of the virtual network rule.
.Link
-https://docs.microsoft.com/en-us/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule
+https://docs.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlvirtualnetworkrule
#>
function Update-AzPostgreSqlVirtualNetworkRule {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule])]
diff --git a/src/PostgreSql/generate-info.json b/src/PostgreSql/generate-info.json
index d952e25f0dd8..272e895ce829 100644
--- a/src/PostgreSql/generate-info.json
+++ b/src/PostgreSql/generate-info.json
@@ -1,8 +1,8 @@
{
- "autorest_powershell": "3.0.414",
- "swagger_commit": "760bb42651abfa9659018d6f0168e923d4adddb2",
- "node": "v10.16.0",
- "autorest_core": "3.0.6365",
- "autorest_modelerfour": "4.15.414",
- "autorest": "3.0.6187"
+ "autorest": "`-- (empty)",
+ "node": "v14.15.5",
+ "autorest_powershell": "3.0.423",
+ "swagger_commit": "1c6693669b5fc74957e1d1cbc0ff245e58870333",
+ "autorest_core": "3.0.6375",
+ "autorest_modelerfour": "4.15.414"
}
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs
index 7a5c8588fc32..952d2b06edb6 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/Server.PowerShell.cs
@@ -102,21 +102,21 @@ internal Server(global::System.Collections.IDictionary content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
@@ -154,21 +154,21 @@ internal Server(global::System.Management.Automation.PSObject content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.IResourceInternal)this).Type, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).AdministratorLogin, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).ByokEnforcement, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("UserVisibleState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).UserVisibleState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate = (global::System.DateTime?) content.GetValueForProperty("EarliestRestoreDate",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerInternal)this).EarliestRestoreDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/Server.cs b/src/PostgreSql/generated/api/Models/Api20171201/Server.cs
index d3dfd1e553a7..fc546fff8b0f 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/Server.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/Server.cs
@@ -80,7 +80,7 @@ public partial class Server :
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.FormatTable(Index = 1)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value ; }
/// The master server id of a replica server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
@@ -224,7 +224,7 @@ public partial class Server :
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs
index 52b85647548f..747e1628f4d0 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerForCreate.PowerShell.cs
@@ -99,21 +99,21 @@ internal ServerForCreate(global::System.Collections.IDictionary content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom);
@@ -140,21 +140,21 @@ internal ServerForCreate(global::System.Management.Automation.PSObject content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreateTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreateTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption?) content.GetValueForProperty("InfrastructureEncryption",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).InfrastructureEncryption, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom);
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs
index af70803f7340..2f14073df84b 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.PowerShell.cs
@@ -97,7 +97,7 @@ internal ServerPropertiesForDefaultCreate(global::System.Collections.IDictionary
}
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom);
@@ -127,7 +127,7 @@ internal ServerPropertiesForDefaultCreate(global::System.Management.Automation.P
}
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForDefaultCreateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow?) content.GetValueForProperty("StorageProfileStorageAutogrow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileStorageAutogrow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup?) content.GetValueForProperty("StorageProfileGeoRedundantBackup",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)this).StorageProfileGeoRedundantBackup, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup.CreateFrom);
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs
index 5251c0af7041..9dc5a29e68fa 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.cs
@@ -25,58 +25,58 @@ public partial class ServerPropertiesForDefaultCreate :
public string AdministratorLogin { get => this._administratorLogin; set => this._administratorLogin = value; }
/// Backing field for property.
- private string _administratorLoginPassword;
+ private System.Security.SecureString _administratorLoginPassword;
/// The password of the administrator login.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)]
- public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
+ public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
/// The mode to create a new server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; }
/// Status showing whether the server enabled infrastructure encryption.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); }
/// Enforce a minimal Tls version for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); }
///
/// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled'
/// or 'Disabled'
///
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); }
/// Enable ssl enforcement or not when connect to server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); }
/// Storage profile of a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; }
/// Backup retention days for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; }
+ public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); }
/// Enable Geo-redundant or not for server backup.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); }
/// Enable Storage Auto Grow.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); }
/// Max storage allowed for a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; }
+ public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); }
/// Server version.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); }
/// Creates an new instance.
public ServerPropertiesForDefaultCreate()
@@ -118,8 +118,8 @@ public partial interface IServerPropertiesForDefaultCreate :
ReadOnly = false,
Description = @"The password of the administrator login.",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
}
/// The properties used to create a new server.
@@ -132,7 +132,7 @@ internal partial interface IServerPropertiesForDefaultCreateInternal :
///
string AdministratorLogin { get; set; }
/// The password of the administrator login.
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
}
}
\ No newline at end of file
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs
index e5db0d874905..e5c6218b5ac8 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForDefaultCreate.json.cs
@@ -72,7 +72,7 @@ internal ServerPropertiesForDefaultCreate(Microsoft.Azure.PowerShell.Cmdlets.Pos
}
__serverPropertiesForCreate = new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForCreate(json);
{_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;}
- {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;}
+ {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;}
AfterFromJson(json);
}
@@ -97,7 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso
}
__serverPropertiesForCreate?.ToJson(container, serializationMode);
AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add );
- AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add );
+ AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add );
AfterToJson(ref container);
return container;
}
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs
index 8be727c51ec8..4d173ac42b5a 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForGeoRestore.cs
@@ -18,22 +18,22 @@ public partial class ServerPropertiesForGeoRestore :
/// The mode to create a new server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; }
/// Status showing whether the server enabled infrastructure encryption.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); }
/// Enforce a minimal Tls version for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); }
///
/// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled'
/// or 'Disabled'
///
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); }
/// Backing field for property.
private string _sourceServerId;
@@ -44,31 +44,31 @@ public partial class ServerPropertiesForGeoRestore :
/// Enable ssl enforcement or not when connect to server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); }
/// Storage profile of a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; }
/// Backup retention days for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; }
+ public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); }
/// Enable Geo-redundant or not for server backup.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); }
/// Enable Storage Auto Grow.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); }
/// Max storage allowed for a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; }
+ public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); }
/// Server version.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); }
/// Creates an new instance.
public ServerPropertiesForGeoRestore()
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs
index b413cd51529e..5f114e116bee 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForReplica.cs
@@ -16,22 +16,22 @@ public partial class ServerPropertiesForReplica :
/// The mode to create a new server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; }
/// Status showing whether the server enabled infrastructure encryption.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); }
/// Enforce a minimal Tls version for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); }
///
/// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled'
/// or 'Disabled'
///
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); }
/// Backing field for property.
private string _sourceServerId;
@@ -42,31 +42,31 @@ public partial class ServerPropertiesForReplica :
/// Enable ssl enforcement or not when connect to server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); }
/// Storage profile of a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; }
/// Backup retention days for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; }
+ public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); }
/// Enable Geo-redundant or not for server backup.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); }
/// Enable Storage Auto Grow.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); }
/// Max storage allowed for a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; }
+ public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); }
/// Server version.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); }
/// Creates an new instance.
public ServerPropertiesForReplica()
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs
index e9b22823838c..503bcdd1b43e 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerPropertiesForRestore.cs
@@ -16,22 +16,22 @@ public partial class ServerPropertiesForRestore :
/// The mode to create a new server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode CreateMode { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).CreateMode = value ; }
/// Status showing whether the server enabled infrastructure encryption.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption? InfrastructureEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).InfrastructureEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.InfrastructureEncryption)""); }
/// Enforce a minimal Tls version for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).MinimalTlsVersion = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum)""); }
///
/// Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled'
/// or 'Disabled'
///
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum? PublicNetworkAccess { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).PublicNetworkAccess = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum)""); }
/// Backing field for property.
private global::System.DateTime _restorePointInTime;
@@ -51,31 +51,31 @@ public partial class ServerPropertiesForRestore :
/// Enable ssl enforcement or not when connect to server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum? SslEnforcement { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).SslEnforcement = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum)""); }
/// Storage profile of a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile StorageProfile { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfile = value ?? null /* model class */; }
/// Backup retention days for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value; }
+ public int? StorageProfileBackupRetentionDay { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileBackupRetentionDay = value ?? default(int); }
/// Enable Geo-redundant or not for server backup.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup? StorageProfileGeoRedundantBackup { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileGeoRedundantBackup = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup)""); }
/// Enable Storage Auto Grow.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow? StorageProfileStorageAutogrow { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageAutogrow = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow)""); }
/// Max storage allowed for a server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value; }
+ public int? StorageProfileStorageMb { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).StorageProfileStorageMb = value ?? default(int); }
/// Server version.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion? Version { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreateInternal)__serverPropertiesForCreate).Version = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion)""); }
/// Creates an new instance.
public ServerPropertiesForRestore()
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs
index 8b9ef9d5d7aa..c0868a1e1639 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.PowerShell.cs
@@ -98,16 +98,16 @@ internal ServerUpdateParameters(global::System.Collections.IDictionary content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.SkuTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
@@ -138,16 +138,16 @@ internal ServerUpdateParameters(global::System.Management.Automation.PSObject co
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.SkuTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersPropertiesTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerUpdateParametersTagsTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier?) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize = (string) content.GetValueForProperty("SkuSize",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuSize, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuFamily, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.IdentityType.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity = (int?) content.GetValueForProperty("SkuCapacity",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SkuCapacity, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs
index 22a895cc37ce..eaee45324e17 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParameters.cs
@@ -10,7 +10,7 @@ public partial class ServerUpdateParameters :
/// The password of the administrator login.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
- public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword = value ?? null; }
+ public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)Property).AdministratorLoginPassword = value ?? null; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IResourceIdentity _identity;
@@ -150,8 +150,8 @@ public partial interface IServerUpdateParameters :
ReadOnly = false,
Description = @"The password of the administrator login.",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// The Azure Active Directory principal id.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -311,7 +311,7 @@ internal partial interface IServerUpdateParametersInternal
{
/// The password of the administrator login.
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// The Azure Active Directory identity of the server.
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IResourceIdentity Identity { get; set; }
/// The Azure Active Directory principal id.
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs
index 54d6f803ba22..7532c17255f2 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.PowerShell.cs
@@ -97,7 +97,7 @@ internal ServerUpdateParametersProperties(global::System.Collections.IDictionary
}
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
@@ -125,7 +125,7 @@ internal ServerUpdateParametersProperties(global::System.Management.Automation.P
}
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfileTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum?) content.GetValueForProperty("SslEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).SslEnforcement, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum?) content.GetValueForProperty("MinimalTlsVersion",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal)this).MinimalTlsVersion, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum.CreateFrom);
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs
index 9acb4dee30bc..531e22d13c0f 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.cs
@@ -9,11 +9,11 @@ public partial class ServerUpdateParametersProperties :
{
/// Backing field for property.
- private string _administratorLoginPassword;
+ private System.Security.SecureString _administratorLoginPassword;
/// The password of the administrator login.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)]
- public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
+ public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
/// Internal Acessors for StorageProfile
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IStorageProfile Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersPropertiesInternal.StorageProfile { get => (this._storageProfile = this._storageProfile ?? new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfile()); set { {_storageProfile = value;} } }
@@ -95,8 +95,8 @@ public partial interface IServerUpdateParametersProperties :
ReadOnly = false,
Description = @"The password of the administrator login.",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// Enforce a minimal Tls version for the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -179,7 +179,7 @@ internal partial interface IServerUpdateParametersPropertiesInternal
{
/// The password of the administrator login.
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// Enforce a minimal Tls version for the server.
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum? MinimalTlsVersion { get; set; }
///
diff --git a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs
index 1f741d8b3644..bdc9a9e156ea 100644
--- a/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs
+++ b/src/PostgreSql/generated/api/Models/Api20171201/ServerUpdateParametersProperties.json.cs
@@ -71,7 +71,7 @@ internal ServerUpdateParametersProperties(Microsoft.Azure.PowerShell.Cmdlets.Pos
return;
}
{_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.StorageProfile.FromJson(__jsonStorageProfile) : StorageProfile;}
- {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;}
+ {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;}
{_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;}
{_sslEnforcement = If( json?.PropertyT("sslEnforcement"), out var __jsonSslEnforcement) ? (string)__jsonSslEnforcement : (string)SslEnforcement;}
{_minimalTlsVersion = If( json?.PropertyT("minimalTlsVersion"), out var __jsonMinimalTlsVersion) ? (string)__jsonMinimalTlsVersion : (string)MinimalTlsVersion;}
@@ -100,7 +100,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso
return container;
}
AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add );
- AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add );
+ AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add );
AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add );
AddIf( null != (((object)this._sslEnforcement)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._sslEnforcement.ToString()) : null, "sslEnforcement" ,container.Add );
AddIf( null != (((object)this._minimalTlsVersion)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._minimalTlsVersion.ToString()) : null, "minimalTlsVersion" ,container.Add );
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs
index d3030c9c9f5d..f44002bfa292 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.PowerShell.cs
@@ -105,28 +105,28 @@ internal ServerAutoGenerated(global::System.Collections.IDictionary content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc = (global::System.DateTime?) content.GetValueForProperty("PointInTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
@@ -161,28 +161,28 @@ internal ServerAutoGenerated(global::System.Management.Automation.PSObject conte
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.TrackedResourceTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityPrincipalId, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityTenantId, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode?) content.GetValueForProperty("CreateMode",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).CreateMode, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName = (string) content.GetValueForProperty("FullyQualifiedDomainName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).FullyQualifiedDomainName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).DisplayName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType?) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ResourceIdentityType.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState?) content.GetValueForProperty("PublicNetworkAccess",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PublicNetworkAccess, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerPublicNetworkAccessState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).SourceServerName, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc = (global::System.DateTime?) content.GetValueForProperty("PointInTimeUtc",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PointInTimeUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone = (string) content.GetValueForProperty("AvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).AvailabilityZone, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone = (string) content.GetValueForProperty("StandbyAvailabilityZone",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StandbyAvailabilityZone, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement = (string) content.GetValueForProperty("ByokEnforcement",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).ByokEnforcement, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesTags) content.GetValueForProperty("PropertiesTag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).PropertiesTag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerAutoGeneratedInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs
index 851cd37576a3..ca5ead53f1ec 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerAutoGenerated.cs
@@ -25,7 +25,7 @@ public partial class ServerAutoGenerated :
/// The administrator login password (required for server creation).
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat]
- public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword = value ?? null; }
+ public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)Property).AdministratorLoginPassword = value ?? null; }
/// availability Zone information of the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
@@ -102,7 +102,7 @@ public partial class ServerAutoGenerated :
/// The geo-location where the resource lives
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.FormatTable(Index = 1)]
- public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value; }
+ public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Location = value ; }
/// indicates whether custom window is enabled or disabled
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
@@ -251,7 +251,7 @@ public partial class ServerAutoGenerated :
/// Resource tags.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inherited)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.DoNotFormat]
- public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value; }
+ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api10.ITrackedResourceInternal)__trackedResource).Tag = value ?? null /* model class */; }
///
/// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
@@ -305,8 +305,8 @@ public partial interface IServerAutoGenerated :
ReadOnly = false,
Description = @"The administrator login password (required for server creation).",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// availability Zone information of the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -531,7 +531,7 @@ internal partial interface IServerAutoGeneratedInternal :
///
string AdministratorLogin { get; set; }
/// The administrator login password (required for server creation).
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// availability Zone information of the server.
string AvailabilityZone { get; set; }
///
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs
index af8dec7d7608..4bfb3ac3b67a 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.PowerShell.cs
@@ -99,12 +99,12 @@ internal ServerForUpdate(global::System.Collections.IDictionary content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerForUpdateTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
@@ -132,12 +132,12 @@ internal ServerForUpdate(global::System.Management.Automation.PSObject content)
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Location, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerForUpdateTagsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName = (string) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuName, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier) content.GetValueForProperty("SkuTier",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).SkuTier, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier.CreateFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb = (int?) content.GetValueForProperty("StorageProfileStorageMb",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).StorageProfileStorageMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour = (int?) content.GetValueForProperty("MaintenanceWindowStartHour",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerForUpdateInternal)this).MaintenanceWindowStartHour, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs
index 6894ee22f7f9..312b4634d84e 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerForUpdate.cs
@@ -10,7 +10,7 @@ public partial class ServerForUpdate :
/// The password of the administrator login.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
- public string AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword = value ?? null; }
+ public System.Security.SecureString AdministratorLoginPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)Property).AdministratorLoginPassword = value ?? null; }
/// stand by count value can be either enabled or disabled
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Inlined)]
@@ -104,8 +104,8 @@ public partial interface IServerForUpdate :
ReadOnly = false,
Description = @"The password of the administrator login.",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// stand by count value can be either enabled or disabled
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -201,7 +201,7 @@ internal partial interface IServerForUpdateInternal
{
/// The password of the administrator login.
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// stand by count value can be either enabled or disabled
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? HaEnabled { get; set; }
/// The location the resource resides in.
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs
index 5eb6e6924ce1..44359dee51bd 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.PowerShell.cs
@@ -100,7 +100,7 @@ internal ServerPropertiesAutoGenerated(global::System.Collections.IDictionary co
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom);
@@ -143,7 +143,7 @@ internal ServerPropertiesAutoGenerated(global::System.Management.Automation.PSOb
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesDelegatedSubnetArguments) content.GetValueForProperty("DelegatedSubnetArgument",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).DelegatedSubnetArgument, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArgumentsTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin = (string) content.GetValueForProperty("AdministratorLogin",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLogin, global::System.Convert.ToString);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion?) content.GetValueForProperty("Version",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).Version, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState?) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).State, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerState.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState?) content.GetValueForProperty("HaState",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesAutoGeneratedInternal)this).HaState, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerHaState.CreateFrom);
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs
index 87d72c667297..9781d87095a3 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.cs
@@ -19,11 +19,11 @@ public partial class ServerPropertiesAutoGenerated :
public string AdministratorLogin { get => this._administratorLogin; set => this._administratorLogin = value; }
/// Backing field for property.
- private string _administratorLoginPassword;
+ private System.Security.SecureString _administratorLoginPassword;
/// The administrator login password (required for server creation).
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)]
- public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
+ public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
/// Backing field for property.
private string _availabilityZone;
@@ -229,8 +229,8 @@ public partial interface IServerPropertiesAutoGenerated :
ReadOnly = false,
Description = @"The administrator login password (required for server creation).",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// availability Zone information of the server.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -415,7 +415,7 @@ internal partial interface IServerPropertiesAutoGeneratedInternal
///
string AdministratorLogin { get; set; }
/// The administrator login password (required for server creation).
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// availability Zone information of the server.
string AvailabilityZone { get; set; }
///
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs
index d9bd8fe1a1ae..aef8577c57a3 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesAutoGenerated.json.cs
@@ -74,7 +74,7 @@ internal ServerPropertiesAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.Postgr
{_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;}
{_delegatedSubnetArgument = If( json?.PropertyT("delegatedSubnetArguments"), out var __jsonDelegatedSubnetArguments) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.ServerPropertiesDelegatedSubnetArguments.FromJson(__jsonDelegatedSubnetArguments) : DelegatedSubnetArgument;}
{_administratorLogin = If( json?.PropertyT("administratorLogin"), out var __jsonAdministratorLogin) ? (string)__jsonAdministratorLogin : (string)AdministratorLogin;}
- {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;}
+ {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;}
{_version = If( json?.PropertyT("version"), out var __jsonVersion) ? (string)__jsonVersion : (string)Version;}
{_state = If( json?.PropertyT("state"), out var __jsonState) ? (string)__jsonState : (string)State;}
{_haState = If( json?.PropertyT("haState"), out var __jsonHaState) ? (string)__jsonHaState : (string)HaState;}
@@ -115,7 +115,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso
AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add );
AddIf( null != this._delegatedSubnetArgument ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._delegatedSubnetArgument.ToJson(null,serializationMode) : null, "delegatedSubnetArguments" ,container.Add );
AddIf( null != (((object)this._administratorLogin)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLogin.ToString()) : null, "administratorLogin" ,container.Add );
- AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add );
+ AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add );
AddIf( null != (((object)this._version)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._version.ToString()) : null, "version" ,container.Add );
if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.SerializationMode.IncludeReadOnly))
{
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs
index 41a55880190a..c265739d1cf4 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.PowerShell.cs
@@ -97,7 +97,7 @@ internal ServerPropertiesForUpdate(global::System.Collections.IDictionary conten
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
@@ -124,7 +124,7 @@ internal ServerPropertiesForUpdate(global::System.Management.Automation.PSObject
// actually deserialize
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IStorageProfileAutoGenerated) content.GetValueForProperty("StorageProfile",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfile, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGeneratedTypeConverter.ConvertFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IMaintenanceWindow) content.GetValueForProperty("MaintenanceWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindow, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindowTypeConverter.ConvertFrom);
- ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (string) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, global::System.Convert.ToString);
+ ((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword = (System.Security.SecureString) content.GetValueForProperty("AdministratorLoginPassword",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).AdministratorLoginPassword, (object ss) => (System.Security.SecureString)ss);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled = (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum?) content.GetValueForProperty("HaEnabled",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).HaEnabled, Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum.CreateFrom);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow = (string) content.GetValueForProperty("MaintenanceWindowCustomWindow",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).MaintenanceWindowCustomWindow, global::System.Convert.ToString);
((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay = (int?) content.GetValueForProperty("StorageProfileBackupRetentionDay",((Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.IServerPropertiesForUpdateInternal)this).StorageProfileBackupRetentionDay, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int)));
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs
index 9b1ad98ae1bc..68ba16824ced 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.cs
@@ -8,11 +8,11 @@ public partial class ServerPropertiesForUpdate :
{
/// Backing field for property.
- private string _administratorLoginPassword;
+ private System.Security.SecureString _administratorLoginPassword;
/// The password of the administrator login.
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Origin(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PropertyOrigin.Owned)]
- public string AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
+ public System.Security.SecureString AdministratorLoginPassword { get => this._administratorLoginPassword; set => this._administratorLoginPassword = value; }
/// Backing field for property.
private Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? _haEnabled;
@@ -80,8 +80,8 @@ public partial interface IServerPropertiesForUpdate :
ReadOnly = false,
Description = @"The password of the administrator login.",
SerializedName = @"administratorLoginPassword",
- PossibleTypes = new [] { typeof(string) })]
- string AdministratorLoginPassword { get; set; }
+ PossibleTypes = new [] { typeof(System.Security.SecureString) })]
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// stand by count value can be either enabled or disabled
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(
Required = false,
@@ -144,7 +144,7 @@ internal partial interface IServerPropertiesForUpdateInternal
{
/// The password of the administrator login.
- string AdministratorLoginPassword { get; set; }
+ System.Security.SecureString AdministratorLoginPassword { get; set; }
/// stand by count value can be either enabled or disabled
Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HaEnabledEnum? HaEnabled { get; set; }
/// Maintenance window of a server.
diff --git a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs
index 3d8c9b6dd5aa..8c72dc01ab95 100644
--- a/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs
+++ b/src/PostgreSql/generated/api/Models/Api20200214Preview/ServerPropertiesForUpdate.json.cs
@@ -71,7 +71,7 @@ internal ServerPropertiesForUpdate(Microsoft.Azure.PowerShell.Cmdlets.PostgreSql
}
{_storageProfile = If( json?.PropertyT("storageProfile"), out var __jsonStorageProfile) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.StorageProfileAutoGenerated.FromJson(__jsonStorageProfile) : StorageProfile;}
{_maintenanceWindow = If( json?.PropertyT("maintenanceWindow"), out var __jsonMaintenanceWindow) ? Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20200214Preview.MaintenanceWindow.FromJson(__jsonMaintenanceWindow) : MaintenanceWindow;}
- {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? (string)__jsonAdministratorLoginPassword : (string)AdministratorLoginPassword;}
+ {_administratorLoginPassword = If( json?.PropertyT("administratorLoginPassword"), out var __jsonAdministratorLoginPassword) ? new System.Net.NetworkCredential("",(string)__jsonAdministratorLoginPassword).SecurePassword : AdministratorLoginPassword;}
{_haEnabled = If( json?.PropertyT("haEnabled"), out var __jsonHaEnabled) ? (string)__jsonHaEnabled : (string)HaEnabled;}
AfterFromJson(json);
}
@@ -97,7 +97,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode ToJso
}
AddIf( null != this._storageProfile ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._storageProfile.ToJson(null,serializationMode) : null, "storageProfile" ,container.Add );
AddIf( null != this._maintenanceWindow ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) this._maintenanceWindow.ToJson(null,serializationMode) : null, "maintenanceWindow" ,container.Add );
- AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._administratorLoginPassword.ToString()) : null, "administratorLoginPassword" ,container.Add );
+ AddIf( null != (((object)this._administratorLoginPassword)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(System.Runtime.InteropServices.Marshal.PtrToStringBSTR(System.Runtime.InteropServices.Marshal.SecureStringToBSTR(this._administratorLoginPassword))) : null, "administratorLoginPassword" ,container.Add );
AddIf( null != (((object)this._haEnabled)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Json.JsonString(this._haEnabled.ToString()) : null, "haEnabled" ,container.Add );
AfterToJson(ref container);
return container;
diff --git a/src/PostgreSql/generated/api/PostgreSql.cs b/src/PostgreSql/generated/api/PostgreSql.cs
index 72f254a567d5..c4777f33b893 100644
--- a/src/PostgreSql/generated/api/PostgreSql.cs
+++ b/src/PostgreSql/generated/api/PostgreSql.cs
@@ -2442,7 +2442,7 @@ public partial class PostgreSql
+ global::System.Uri.EscapeDataString(subscriptionId)
+ "/resourceGroups/"
+ global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ global::System.Uri.EscapeDataString(serverName)
+ "/configurations/"
+ global::System.Uri.EscapeDataString(configurationName)
@@ -2481,10 +2481,10 @@ public partial class PostgreSql
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'");
}
// replace URI parameters with values from identity
@@ -2498,7 +2498,7 @@ public partial class PostgreSql
+ subscriptionId
+ "/resourceGroups/"
+ resourceGroupName
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ serverName
+ "/configurations/"
+ configurationName
@@ -2619,7 +2619,7 @@ public partial class PostgreSql
+ global::System.Uri.EscapeDataString(subscriptionId)
+ "/resourceGroups/"
+ global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ global::System.Uri.EscapeDataString(serverName)
+ "/configurations"
+ "?"
@@ -2657,10 +2657,10 @@ public partial class PostgreSql
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations$").Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations'");
}
// replace URI parameters with values from identity
@@ -2673,7 +2673,7 @@ public partial class PostgreSql
+ subscriptionId
+ "/resourceGroups/"
+ resourceGroupName
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ serverName
+ "/configurations"
+ "?"
@@ -2795,7 +2795,7 @@ public partial class PostgreSql
+ global::System.Uri.EscapeDataString(subscriptionId)
+ "/resourceGroups/"
+ global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ global::System.Uri.EscapeDataString(serverName)
+ "/configurations/"
+ global::System.Uri.EscapeDataString(configurationName)
@@ -2839,10 +2839,10 @@ public partial class PostgreSql
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?[^/]+)/configurations/(?[^/]+)$").Match(viaIdentity);
if (!_match.Success)
{
- throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForPostgreSql/flexibleServers/{serverName}/configurations/{configurationName}'");
+ throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/configurations/{configurationName}'");
}
// replace URI parameters with values from identity
@@ -2856,7 +2856,7 @@ public partial class PostgreSql
+ subscriptionId
+ "/resourceGroups/"
+ resourceGroupName
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ serverName
+ "/configurations/"
+ configurationName
@@ -3084,7 +3084,7 @@ public partial class PostgreSql
+ global::System.Uri.EscapeDataString(subscriptionId)
+ "/resourceGroups/"
+ global::System.Uri.EscapeDataString(resourceGroupName)
- + "/providers/Microsoft.DBForPostgreSql/flexibleServers/"
+ + "/providers/Microsoft.DBforPostgreSQL/flexibleServers/"
+ global::System.Uri.EscapeDataString(serverName)
+ "/firewallRules/"
+ global::System.Uri.EscapeDataString(firewallRuleName)
@@ -3128,10 +3128,10 @@ public partial class PostgreSql
{
// verify that Identity format is an exact match for uri
- var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBForPostgreSql/flexibleServers/(?[^/]+)/firewallRules/(?[^/]+)$").Match(viaIdentity);
+ var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.DBforPostgreSQL/flexibleServers/(?