diff --git a/src/PostgreSql/PostgreSql.Autorest/Properties/AssemblyInfo.cs b/src/PostgreSql/PostgreSql.Autorest/Properties/AssemblyInfo.cs index 42630cf2a0df..9fd8b269e580 100644 --- a/src/PostgreSql/PostgreSql.Autorest/Properties/AssemblyInfo.cs +++ b/src/PostgreSql/PostgreSql.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,8 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - PostgreSql")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.3.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.3.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.4.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + diff --git a/src/PostgreSql/PostgreSql.Autorest/README.md b/src/PostgreSql/PostgreSql.Autorest/README.md index 5e0a2f559ce1..300dd9e099e9 100644 --- a/src/PostgreSql/PostgreSql.Autorest/README.md +++ b/src/PostgreSql/PostgreSql.Autorest/README.md @@ -55,10 +55,7 @@ input-file: module-version: 0.1.0 title: PostgreSQL subject-prefix: 'PostgreSQL' - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" +disable-transform-identity-type: true directive: - from: swagger-document @@ -229,12 +226,6 @@ directive: subject: Server set: parameter-description: Backup retention days for the server. Day count is between 7 and 35. - - from: source-file-csharp - where: $ - transform: $ = $.replace(/OperationOrigin System/, 'OperationOrigin System1'); - - from: source-file-csharp - where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate Property', 'public Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerPropertiesForCreate Property'); - from: source-file-csharp where: $ transform: $ = $.replace('public int StorageProfileBackupRetentionDay', '[System.Management.Automation.ValidateRangeAttribute(7,35)]\n public int StorageProfileBackupRetentionDay'); diff --git a/src/PostgreSql/PostgreSql.Autorest/UX/Microsoft.DBforPostgreSQL/flexibleServers.json b/src/PostgreSql/PostgreSql.Autorest/UX/Microsoft.DBforPostgreSQL/flexibleServers.json index 528958ab31c7..aa9679054947 100644 --- a/src/PostgreSql/PostgreSql.Autorest/UX/Microsoft.DBforPostgreSQL/flexibleServers.json +++ b/src/PostgreSql/PostgreSql.Autorest/UX/Microsoft.DBforPostgreSQL/flexibleServers.json @@ -81,44 +81,6 @@ } ] }, - { - "name": "Restart-AzPostgreSqlFlexibleServer", - "description": "Restarts a server.", - "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/restart", - "help": { - "learnMore": { - "url": "https://learn.microsoft.com/powershell/module/az.postgresql/restart-azpostgresqlflexibleserver" - }, - "parameterSets": [ - { - "parameters": [ - "-Name ", - "-ResourceGroupName ", - "[-SubscriptionId ]" - ] - } - ] - }, - "examples": [ - { - "description": "Restarts a server.", - "parameters": [ - { - "name": "-Name", - "value": "[Path.serverName]" - }, - { - "name": "-ResourceGroupName", - "value": "[Path.resourceGroupName]" - }, - { - "name": "-SubscriptionId", - "value": "[Path.subscriptionId]" - } - ] - } - ] - }, { "name": "Start-AzPostgreSqlFlexibleServer", "description": "Starts a server.", diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/FlexibleServer.cs b/src/PostgreSql/PostgreSql.Autorest/custom/FlexibleServer.cs index 578704812297..6c961ae94b35 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/FlexibleServer.cs +++ b/src/PostgreSql/PostgreSql.Autorest/custom/FlexibleServer.cs @@ -1,4 +1,4 @@ -namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601 +namespace Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models { using static Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Extensions; using System.Security; diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlConnectionString.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlConnectionString.ps1 index e7fb07ef596d..f2de71395811 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlConnectionString.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlConnectionString.ps1 @@ -36,7 +36,7 @@ function Get-AzPostgreSqlConnectionString { [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The server for the connection string')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer] ${InputObject}, [Parameter(Mandatory, HelpMessage = 'Client connection provider.')] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 index b792fab56d04..063b925d9d82 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerConnectionString.ps1 @@ -48,7 +48,7 @@ function Get-AzPostgreSqlFlexibleServerConnectionString { [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline, HelpMessage = 'The server for the connection string')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated] ${InputObject}, [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 index 4a9d307506b2..42139d8c780a 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.ps1 @@ -20,7 +20,7 @@ Get the available SKU information for the location #> function Get-AzPostgreSqlFlexibleServerLocationBasedCapability { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.ICapabilityProperties])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ICapabilityProperties])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFirewallRule.ps1 index 93f6f8b0ed6e..e57816071e6a 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFirewallRule.ps1 @@ -20,7 +20,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new firewall rule or updates an existing firewall rule. #> function New-AzPostgreSqlFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServer.ps1 index 6f36a0c00e2f..f06e553a4486 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServer.ps1 @@ -25,7 +25,7 @@ $DEFAULT_SUBNET_PREFIX = '10.0.0.0/24' $AZURE_ARMNAME = '^[^<>%&:\\?/]{1,260}$' function New-AzPostgreSqlFlexibleServer { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Creates a new server.')] param( @@ -97,14 +97,14 @@ function New-AzPostgreSqlFlexibleServer { [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerForCreateTags]))] [System.Collections.Hashtable] ${Tag}, [Parameter(HelpMessage = 'Server version.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("9.5", "9.6", "10", "10.0", "10.2", "11", "13", "12")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion] + [System.String] ${Version}, [Parameter(HelpMessage = 'The id of an existing private dns zone. You can use the @@ -289,17 +289,17 @@ function New-AzPostgreSqlFlexibleServer { if ($PSBoundParameters.ContainsKey('HaEnabled')){ if ($PSBoundParameters["HaEnabled"] -eq "Enabled"){ - $PSBoundParameters.HighAvailabilityMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HighAvailabilityMode]::ZoneRedundant + $PSBoundParameters.HighAvailabilityMode = 'ZoneRedundant' } else { - $PSBoundParameters.HighAvailabilityMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.HighAvailabilityMode]::Disabled + $PSBoundParameters.HighAvailabilityMode = 'Disabled' } $null = $PSBoundParameters.Remove('HaEnabled') } - $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::Default + $PSBoundParameters.CreateMode = 'Default' # Handling Vnet & Subnet $NetworkKeys = 'PublicAccess', 'Subnet', 'Vnet', 'SubnetPrefix', 'VnetPrefix', 'PrivateDnsZone' diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 index 087407bd0504..0cc3b20d7393 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -20,7 +20,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new firewall rule or updates an existing firewall rule. #> function New-AzPostgreSqlFlexibleServerFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlReplica.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlReplica.ps1 index 99bac188c309..5f63a582b4cb 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlReplica.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlReplica.ps1 @@ -14,7 +14,7 @@ # ---------------------------------------------------------------------------------- function New-AzPostgreSqlReplica { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Creates a new replica from an existing database.')] param( @@ -38,7 +38,7 @@ function New-AzPostgreSqlReplica { [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to create replica from.')] [Alias('InputObject')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer] ${Master}, [Parameter(HelpMessage = 'The location the resource resides in.')] @@ -109,9 +109,9 @@ function New-AzPostgreSqlReplica { process { try { - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreate]::new() - $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForReplica]::new() - $Parameter.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::Replica + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerForCreate]::new() + $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerPropertiesForReplica]::new() + $Parameter.CreateMode = 'Replica' $server = $PSBoundParameters['Master'] $Parameter.Property.SourceServerId = $server.Id diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlServer.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlServer.ps1 index ad6275d6b682..b4f4e311dad0 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/New-AzPostgreSqlServer.ps1 @@ -14,7 +14,7 @@ # ---------------------------------------------------------------------------------- function New-AzPostgreSqlServer { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Creates a new server.')] param( @@ -57,15 +57,15 @@ function New-AzPostgreSqlServer { ${Sku}, [Parameter(HelpMessage = 'Enable ssl enforcement or not when connect to server.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum] + [System.String] ${SslEnforcement}, [Parameter(HelpMessage = 'Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum] + [System.String] # Enforce a minimal Tls version for the server. ${MinimalTlsVersion}, @@ -75,16 +75,16 @@ function New-AzPostgreSqlServer { ${BackupRetentionDay}, [Parameter(HelpMessage = 'Enable Geo-redundant or not for server backup.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup] + [System.String] ${GeoRedundantBackup}, [Parameter(HelpMessage = 'Enable Storage Auto Grow.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Validateset('Enabled', 'Disabled')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow] + [System.String] ${StorageAutogrow}, [Parameter(HelpMessage = 'Max storage allowed for a server.')] @@ -94,14 +94,14 @@ function New-AzPostgreSqlServer { [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerForCreateTags]))] [System.Collections.Hashtable] ${Tag}, [Parameter(HelpMessage = 'Server version.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("9.5", "9.6", "10", "10.0", "10.2", "11", "13", "12")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion] + [System.String] ${Version}, [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] @@ -162,8 +162,8 @@ function New-AzPostgreSqlServer { process { try { - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreate]::new() - $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForDefaultCreate]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerForCreate]::new() + $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerPropertiesForDefaultCreate]::new() if ($PSBoundParameters.ContainsKey('Location')) { $Parameter.Location = $PSBoundParameters['Location'] @@ -181,7 +181,7 @@ function New-AzPostgreSqlServer { } else { - $Parameter.SslEnforcement = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum]::Enable + $Parameter.SslEnforcement = 'Enabled' } if ($PSBoundParameters.ContainsKey('MinimalTlsVersion')) { @@ -219,7 +219,7 @@ function New-AzPostgreSqlServer { $null = $PSBoundParameters.Remove('Version') } - $Parameter.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::Default + $Parameter.CreateMode = 'Default' $Parameter.Property.AdministratorLogin = $PSBoundParameters['AdministratorUserName'] $null = $PSBoundParameters.Remove('AdministratorUserName') diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_GeoRestore.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_GeoRestore.ps1 index 1ae3e59b4615..5960daa0acd5 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_GeoRestore.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_GeoRestore.ps1 @@ -13,7 +13,7 @@ # ---------------------------------------------------------------------------------- function Restore-AzPostgreSqlFlexibleServer_GeoRestore { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated])] [CmdletBinding(PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Restore a PostgreSQL flexible server using Geo-restore')] param( @@ -51,7 +51,7 @@ function Restore-AzPostgreSqlFlexibleServer_GeoRestore { [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes = ([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerForCreateTags]))] [System.Collections.Hashtable] ${Tag}, @@ -113,7 +113,7 @@ function Restore-AzPostgreSqlFlexibleServer_GeoRestore { process { try { - $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::GeoRestore + $PSBoundParameters.CreateMode = 'GeoRestore' $null = $PSBoundParameters.Remove('UseGeoRestore') $server = Get-AzPostgreSqlFlexibleServer -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.SourceServerName diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 index 23c4a5e3326c..c3d58f2ed6c0 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore.ps1 @@ -21,7 +21,7 @@ Restore a PostgreSQL flexible server from an existing backup #> $DELEGATION_SERVICE_NAME = "Microsoft.DBforPostgreSQL/flexibleServers" function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Restore a server from an existing backup')] param( @@ -125,7 +125,7 @@ function Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore { process { try { - $PSBoundParameters.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::PointInTimeRestore + $PSBoundParameters.CreateMode = 'PointInTimeRestore' $server = Get-AzPostgreSqlFlexibleServer -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.SourceServerName $null = $PSBoundParameters.Remove('SourceServerName') diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_GeoRestore.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_GeoRestore.ps1 index b12223a15f4a..ec13ebd95bb3 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_GeoRestore.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_GeoRestore.ps1 @@ -14,7 +14,7 @@ # ---------------------------------------------------------------------------------- function Restore-AzPostgreSqlServer_GeoRestore { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Restore a server from an existing backup')] param( @@ -37,7 +37,7 @@ function Restore-AzPostgreSqlServer_GeoRestore { [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to restore from.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer] ${InputObject}, [Parameter(HelpMessage = 'The location the resource resides in.')] @@ -52,7 +52,7 @@ function Restore-AzPostgreSqlServer_GeoRestore { [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerForCreateTags]))] [System.Collections.Hashtable] ${Tag}, @@ -119,10 +119,10 @@ function Restore-AzPostgreSqlServer_GeoRestore { process { try { - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreate]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerForCreate]::new() - $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForGeoRestore]::new() - $Parameter.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::GeoRestore + $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerPropertiesForGeoRestore]::new() + $Parameter.CreateMode = 'GeoRestore' $null = $PSBoundParameters.Remove('UseGeoRestore') $server = $PSBoundParameters['InputObject'] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_PointInTimeRestore.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_PointInTimeRestore.ps1 index 5f0e0e622abf..75688be81a42 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_PointInTimeRestore.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Restore-AzPostgreSqlServer_PointInTimeRestore.ps1 @@ -14,7 +14,7 @@ # ---------------------------------------------------------------------------------- function Restore-AzPostgreSqlServer_PointInTimeRestore { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Restore a server from an existing backup')] param( @@ -42,7 +42,7 @@ function Restore-AzPostgreSqlServer_PointInTimeRestore { [Parameter(Mandatory, ValueFromPipeline, HelpMessage = 'The source server object to restore from.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer] ${InputObject}, [Parameter(HelpMessage = 'The location the resource resides in.')] @@ -57,7 +57,7 @@ function Restore-AzPostgreSqlServer_PointInTimeRestore { [Parameter(HelpMessage = 'Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerForCreateTags]))] [System.Collections.Hashtable] ${Tag}, @@ -124,13 +124,13 @@ function Restore-AzPostgreSqlServer_PointInTimeRestore { process { try { - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerForCreate]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerForCreate]::new() - $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.ServerPropertiesForRestore]::new() + $Parameter.Property = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ServerPropertiesForRestore]::new() $Parameter.Property.RestorePointInTime = $PSBoundParameters['RestorePointInTime'] $null = $PSBoundParameters.Remove('RestorePointInTime') $null = $PSBoundParameters.Remove('UsePointInTimeRestore') - $Parameter.CreateMode = [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.CreateMode]::PointInTimeRestore + $Parameter.CreateMode = 'PointInTimeRestore' $server = $PSBoundParameters['InputObject'] $Parameter.Property.SourceServerId = $server.Id diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlConfiguration.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlConfiguration.ps1 index 73ebc4615705..53caf1587308 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlConfiguration.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlConfiguration.ps1 @@ -22,7 +22,7 @@ Updates a configuration of a server. Use Update-AzPostgreSqlServer instead if you want update AdministratorLoginPassword, sku, etc. #> function Update-AzPostgreSqlConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfiguration])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFirewallRule.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFirewallRule.ps1 index 4b6dcfb82a2d..2e45ba92568e 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFirewallRule.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFirewallRule.ps1 @@ -20,7 +20,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new firewall rule or updates an existing firewall rule. #> function Update-AzPostgreSqlFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServer.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServer.ps1 index 08b7acb311b7..b045b2eab744 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServer.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServer.ps1 @@ -25,7 +25,7 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve #> function Update-AzPostgreSqlFlexibleServer { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutogenerated])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutogenerated])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Description('Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. Use Update-AzPostgreSqlFlexibleServerConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count.')] param( @@ -62,9 +62,9 @@ function Update-AzPostgreSqlFlexibleServer { ${Sku}, [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.PSArgumentCompleterAttribute("Basic", "GeneralPurpose", "MemoryOptimized", "Burstable")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] + [System.String] ${SkuTier}, [Parameter(HelpMessage='Enable or disable high availability feature. Allowed values: Enabled, Disabled')] @@ -89,7 +89,7 @@ function Update-AzPostgreSqlFlexibleServer { [Parameter(HelpMessage='Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerUpdateParametersTags]))] [System.Collections.Hashtable] ${Tag}, diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 index e81667907c8b..a117121285e5 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerConfiguration.ps1 @@ -23,7 +23,7 @@ Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLo #> function Update-AzPostgreSqlFlexibleServerConfiguration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IConfigurationAutoGenerated])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfigurationAutoGenerated])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 index c78a72ef842b..eb492691eeef 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlFlexibleServerFirewallRule.ps1 @@ -20,7 +20,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new firewall rule or updates an existing firewall rule. #> function Update-AzPostgreSqlFlexibleServerFirewallRule { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] diff --git a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlServer.ps1 b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlServer.ps1 index fba60cbda6b1..46be9e9c7045 100644 --- a/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlServer.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/custom/Update-AzPostgreSqlServer.ps1 @@ -20,7 +20,7 @@ Updates an existing server. The request body can contain one to many of the prop Updates an existing server. The request body can contain one to many of the properties present in the normal server definition. Use Update-AzPostSqlConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. #> function Update-AzPostgreSqlServer { - [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer])] + [OutputType([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The name of the server.')] @@ -71,21 +71,21 @@ function Update-AzPostgreSqlServer { ${Sku}, [Parameter(HelpMessage='The tier of the particular SKU, e.g. Basic.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Basic", "GeneralPurpose", "MemoryOptimized", "Burstable")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier] + [System.String] ${SkuTier}, [Parameter(HelpMessage='Enable ssl enforcement or not when connect to server.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum] + [System.String] ${SslEnforcement}, [Parameter(HelpMessage = 'Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("TLS1_0", "TLS1_1", "TLS1_2", "TLSEnforcementDisabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum] + [System.String] # Enforce a minimal Tls version for the server. ${MinimalTlsVersion}, @@ -95,10 +95,10 @@ function Update-AzPostgreSqlServer { ${BackupRetentionDay}, [Parameter(HelpMessage='Enable Storage Auto Grow.')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Validateset('Enabled', 'Disabled')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow] + [System.String] ${StorageAutogrow}, [Parameter(HelpMessage='Max storage allowed for a server.')] @@ -108,14 +108,14 @@ function Update-AzPostgreSqlServer { [Parameter(HelpMessage='Application-specific metadata in the form of key-value pairs.')] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerUpdateParametersTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerUpdateParametersTags]))] [System.Collections.Hashtable] ${Tag}, [Parameter(HelpMessage='Enable or disable public network access')] - [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum])] + [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.PSArgumentCompleterAttribute("Enabled", "Disabled")] [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum] + [System.String] ${PublicNetworkAccess}, [Parameter(HelpMessage = 'The credentials, account, tenant, and subscription used for communication with Azure.')] diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Az.PostgreSql.md b/src/PostgreSql/PostgreSql.Autorest/docs/Az.PostgreSql.md index 6e775918ca6e..8f282a6f363b 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Az.PostgreSql.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Az.PostgreSql.md @@ -1,6 +1,6 @@ --- Module Name: Az.PostgreSql -Module Guid: b58e4c63-c46d-424a-9b42-50f1324245ab +Module Guid: 15fa9e47-2a84-49d3-a761-fa09e5eb4ffe Download Help Link: https://learn.microsoft.com/powershell/module/az.postgresql Help Version: 1.0.0.0 Locale: en-US @@ -54,7 +54,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new server. ### [New-AzPostgreSqlFlexibleServerDatabase](New-AzPostgreSqlFlexibleServerDatabase.md) -Creates a new database or updates an existing database. +Create a new database or create an existing database. ### [New-AzPostgreSqlFlexibleServerFirewallRule](New-AzPostgreSqlFlexibleServerFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. @@ -66,7 +66,7 @@ Creates a new replica from an existing database. Creates a new server. ### [New-AzPostgreSqlVirtualNetworkRule](New-AzPostgreSqlVirtualNetworkRule.md) -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ### [Remove-AzPostgreSqlFirewallRule](Remove-AzPostgreSqlFirewallRule.md) Deletes a server firewall rule. @@ -123,6 +123,9 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve Updates a configuration of a server. Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. +### [Update-AzPostgreSqlFlexibleServerDatabase](Update-AzPostgreSqlFlexibleServerDatabase.md) +Update a new database or update an existing database. + ### [Update-AzPostgreSqlFlexibleServerFirewallRule](Update-AzPostgreSqlFlexibleServerFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. @@ -132,5 +135,5 @@ The request body can contain one to many of the properties present in the normal Use Update-AzPostSqlConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. ### [Update-AzPostgreSqlVirtualNetworkRule](Update-AzPostgreSqlVirtualNetworkRule.md) -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConfiguration.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConfiguration.md index ed389ece3e20..c3ca5dda4b08 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConfiguration.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConfiguration.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlConfiguration -InputObject [-DefaultProfil [] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlConfiguration -Name -ServerInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets information about a configuration of server. @@ -91,7 +97,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -110,7 +115,7 @@ The name of the server configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityServer Aliases: ConfigurationName Required: True @@ -136,6 +141,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -175,7 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfiguration ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConnectionString.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConnectionString.md index 74dd738d663c..8f6f597c7565 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConnectionString.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlConnectionString.md @@ -85,10 +85,9 @@ Accept wildcard characters: False ### -InputObject The server for the connection string -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: GetViaIdentity Aliases: @@ -149,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFirewallRule.md index 12c15400a152..11e6eb162ce5 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFirewallRule.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlFirewallRule -InputObject [-DefaultProfile [] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlFirewallRule -Name -ServerInputObject + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets information about a server firewall rule. @@ -95,7 +101,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -114,7 +119,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityServer Aliases: FirewallRuleName Required: True @@ -140,6 +145,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -179,7 +199,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServer.md index f330c4b6cdef..bc5b39841c40 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServer.md @@ -117,7 +117,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -186,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md index d1a7cbc45ea1..d59cc0ce0d52 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConfiguration.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlFlexibleServerConfiguration -InputObject [ [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerConfiguration -FlexibleServerInputObject -Name + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets information about a configuration of server. @@ -89,9 +95,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -110,7 +130,7 @@ The name of the server configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityFlexibleServer Aliases: ConfigurationName Required: True @@ -175,7 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IConfigurationAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfigurationAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md index f172fb24a35c..f6d4245b13d6 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerConnectionString.md @@ -85,10 +85,9 @@ Accept wildcard characters: False ### -InputObject The server for the connection string -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated Parameter Sets: GetViaIdentity Aliases: @@ -149,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## OUTPUTS diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerDatabase.md index 6044cfbe01f4..db0d14acd640 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerDatabase.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlFlexibleServerDatabase -InputObject [-Defa [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerDatabase -FlexibleServerInputObject -Name + [-DefaultProfile ] [] +``` + ## DESCRIPTION Gets information about a database. @@ -95,9 +101,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -116,7 +136,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityFlexibleServer Aliases: DatabaseName Required: True @@ -181,7 +201,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IDatabaseAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md index 344d5b4147b4..080932b37f67 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerFirewallRule.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlFlexibleServerFirewallRule -InputObject [- [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerFirewallRule -FlexibleServerInputObject -Name + [-DefaultProfile ] [] +``` + ## DESCRIPTION List all the firewall rules in a given server. @@ -94,9 +100,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -115,7 +135,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityFlexibleServer Aliases: FirewallRuleName Required: True @@ -180,7 +200,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IFirewallRuleAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRuleAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md index 3d19e1f282d7..afe96101852a 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md @@ -119,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.ICapabilityProperties +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ICapabilityProperties ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlReplica.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlReplica.md index f49f155f2935..e3c773e25278 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlReplica.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlReplica.md @@ -106,7 +106,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlServer.md index fcb56aa8e92c..42ed8a933b27 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlServer.md @@ -112,7 +112,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -181,7 +180,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlVirtualNetworkRule.md index 1d63c43b3514..25ca08a8f041 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Get-AzPostgreSqlVirtualNetworkRule.md @@ -30,6 +30,12 @@ Get-AzPostgreSqlVirtualNetworkRule -InputObject [-DefaultP [] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + [-DefaultProfile ] [-PassThru] [] +``` + ## DESCRIPTION Gets a virtual network rule. @@ -95,7 +101,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -114,7 +119,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: Get, GetViaIdentityServer Aliases: VirtualNetworkRuleName Required: True @@ -155,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -194,7 +214,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFirewallRule.md index fef1496e02bd..fc65a82aa377 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFirewallRule.md @@ -286,7 +286,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServer.md index 58674075629d..f880a0e74303 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServer.md @@ -17,7 +17,7 @@ New-AzPostgreSqlFlexibleServer [-Name ] [-ResourceGroupName ] [- [-AdministratorLoginPassword ] [-AdministratorUserName ] [-BackupRetentionDay ] [-HaEnabled ] [-Location ] [-PrivateDnsZone ] [-PublicAccess ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Subnet ] [-SubnetPrefix ] - [-Tag ] [-Version ] [-Vnet ] [-VnetPrefix ] [-Zone ] + [-Tag ] [-Version ] [-Vnet ] [-VnetPrefix ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -490,7 +490,7 @@ Accept wildcard characters: False Server version. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion +Type: System.String Parameter Sets: (All) Aliases: @@ -587,7 +587,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerDatabase.md index b68ec8dd20ea..47cb1c0549e3 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerDatabase.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPostgreSqlFlexibleServerDatabase ## SYNOPSIS -Creates a new database or updates an existing database. +Create a new database or create an existing database. ## SYNTAX @@ -26,8 +26,15 @@ New-AzPostgreSqlFlexibleServerDatabase -InputObject [-Char [] ``` +### CreateViaIdentityFlexibleServerExpanded +``` +New-AzPostgreSqlFlexibleServerDatabase -FlexibleServerInputObject -Name + [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + ## DESCRIPTION -Creates a new database or updates an existing database. +Create a new database or create an existing database. ## EXAMPLES @@ -107,9 +114,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: CreateViaIdentityFlexibleServerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -128,7 +149,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaIdentityFlexibleServerExpanded Aliases: DatabaseName Required: True @@ -239,7 +260,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IDatabaseAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md index 4709cd7395f6..368bacef31b3 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlFlexibleServerFirewallRule.md @@ -288,7 +288,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlReplica.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlReplica.md index 29aa74f7252a..2ae1ac280395 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlReplica.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlReplica.md @@ -99,10 +99,9 @@ Accept wildcard characters: False ### -Master The source server object to create replica from. -To construct, see NOTES section for MASTER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: (All) Aliases: InputObject @@ -225,11 +224,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlServer.md index acabdaaabd29..244522918af4 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlServer.md @@ -15,10 +15,9 @@ Creates a new server. ``` New-AzPostgreSqlServer -Name -ResourceGroupName -AdministratorLoginPassword -AdministratorUserName -Location -Sku [-SubscriptionId ] - [-BackupRetentionDay ] [-GeoRedundantBackup ] - [-MinimalTlsVersion ] [-SslEnforcement ] - [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-Version ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-BackupRetentionDay ] [-GeoRedundantBackup ] [-MinimalTlsVersion ] + [-SslEnforcement ] [-StorageAutogrow ] [-StorageInMb ] [-Tag ] + [-Version ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -124,7 +123,7 @@ Accept wildcard characters: False Enable Geo-redundant or not for server backup. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup +Type: System.String Parameter Sets: (All) Aliases: @@ -155,7 +154,7 @@ Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -231,7 +230,7 @@ Accept wildcard characters: False Enable ssl enforcement or not when connect to server. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -246,7 +245,7 @@ Accept wildcard characters: False Enable Storage Auto Grow. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow +Type: System.String Parameter Sets: (All) Aliases: @@ -306,7 +305,7 @@ Accept wildcard characters: False Server version. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion +Type: System.String Parameter Sets: (All) Aliases: @@ -355,7 +354,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlVirtualNetworkRule.md index 74fba4d0ff8f..3cf065edae0b 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/New-AzPostgreSqlVirtualNetworkRule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPostgreSqlVirtualNetworkRule ## SYNOPSIS -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -S ``` ## DESCRIPTION -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ## EXAMPLES @@ -229,7 +229,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFirewallRule.md index 73fabee13be3..ca13622aa503 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFirewallRule.md @@ -25,6 +25,12 @@ Remove-AzPostgreSqlFirewallRule -InputObject [-DefaultProf [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityServer +``` +Remove-AzPostgreSqlFirewallRule -Name -ServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a server firewall rule. @@ -80,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +104,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityServer Aliases: FirewallRuleName Required: True @@ -155,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServer.md index 0e2080014878..b6f14d656a8a 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServer.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerDatabase.md index d4be64898143..e7c78fd4932b 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerDatabase.md @@ -25,6 +25,12 @@ Remove-AzPostgreSqlFlexibleServerDatabase -InputObject [-D [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityFlexibleServer +``` +Remove-AzPostgreSqlFlexibleServerDatabase -FlexibleServerInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a database. @@ -77,9 +83,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -98,7 +118,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityFlexibleServer Aliases: DatabaseName Required: True diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md index fe2c95098493..4c8038b6d082 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlFlexibleServerFirewallRule.md @@ -25,6 +25,12 @@ Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityFlexibleServer +``` +Remove-AzPostgreSqlFlexibleServerFirewallRule -FlexibleServerInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes a PostgreSQL server firewall rule. @@ -78,9 +84,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +119,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityFlexibleServer Aliases: FirewallRuleName Required: True diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlServer.md index c7ff5855b2e3..461a553dd14f 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlServer.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlVirtualNetworkRule.md index 661c835ce787..36a3fa5244e4 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Remove-AzPostgreSqlVirtualNetworkRule.md @@ -25,6 +25,12 @@ Remove-AzPostgreSqlVirtualNetworkRule -InputObject [-Defau [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityServer +``` +Remove-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Deletes the virtual network rule with the given name. @@ -80,7 +86,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +104,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityServer Aliases: VirtualNetworkRuleName Required: True @@ -155,6 +160,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlFlexibleServer.md index 8941174b18ae..d57e3b961647 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlFlexibleServer.md @@ -39,6 +39,20 @@ Restart-AzPostgreSqlFlexibleServer -InputObject [-Failover [] ``` +### RestartViaJsonFilePath +``` +Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### RestartViaJsonString +``` +Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Restarts a server. @@ -123,7 +137,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -137,12 +150,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the server. ```yaml Type: System.String -Parameter Sets: Restart, RestartExpanded +Parameter Sets: Restart, RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: ServerName Required: True @@ -169,10 +212,9 @@ Accept wildcard characters: False ### -Parameter Represents server restart parameters. -To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IRestartParameter +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IRestartParameter Parameter Sets: Restart, RestartViaIdentity Aliases: @@ -204,7 +246,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Restart, RestartExpanded +Parameter Sets: Restart, RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: Required: True @@ -234,7 +276,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: Restart, RestartExpanded +Parameter Sets: Restart, RestartExpanded, RestartViaJsonFilePath, RestartViaJsonString Aliases: Required: False @@ -280,10 +322,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IRestartParameter - ### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IRestartParameter + ## OUTPUTS ### System.Boolean diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlServer.md index fceaa0b1216e..9eddc978e9f3 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Restart-AzPostgreSqlServer.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlFlexibleServer.md index 25fea9f0ede8..bf1d3c7d39d6 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlFlexibleServer.md @@ -318,7 +318,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlServer.md index 323686c8b736..1b94f574a152 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Restore-AzPostgreSqlServer.md @@ -93,10 +93,9 @@ Accept wildcard characters: False ### -InputObject The source server object to restore from. -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: (All) Aliases: @@ -294,11 +293,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Start-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Start-AzPostgreSqlFlexibleServer.md index 04f56a33ed0c..57af998d4296 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Start-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Start-AzPostgreSqlFlexibleServer.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Stop-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Stop-AzPostgreSqlFlexibleServer.md index 89024e984c6c..bc5276087cd4 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Stop-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Stop-AzPostgreSqlFlexibleServer.md @@ -79,7 +79,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Test-AzPostgreSqlFlexibleServerConnect.md b/src/PostgreSql/PostgreSql.Autorest/docs/Test-AzPostgreSqlFlexibleServerConnect.md index 3efad11f9080..c2016d1e1051 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Test-AzPostgreSqlFlexibleServerConnect.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Test-AzPostgreSqlFlexibleServerConnect.md @@ -167,7 +167,6 @@ Accept wildcard characters: False ### -InputObject The server to connect. -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlConfiguration.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlConfiguration.md index 541da7ea9c44..e62f1ed6fd0a 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlConfiguration.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlConfiguration.md @@ -253,7 +253,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfiguration ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFirewallRule.md index 822bff2b8d82..61cd319ef557 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFirewallRule.md @@ -297,7 +297,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServer.md index 4ca77c681fe2..572471ff2fad 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServer.md @@ -18,7 +18,7 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve ``` Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] - [-MaintenanceWindow ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Tag ] + [-MaintenanceWindow ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -26,7 +26,7 @@ Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-S ``` Update-AzPostgreSqlFlexibleServer -InputObject [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-HaEnabled ] - [-MaintenanceWindow ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Tag ] + [-MaintenanceWindow ] [-Sku ] [-SkuTier ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -243,7 +243,7 @@ Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier +Type: System.String Parameter Sets: (All) Aliases: @@ -339,7 +339,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md index 8d0f5bd15cd7..4f94a9fdafc6 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IConfigurationAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfigurationAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..7f4d0759be0d --- /dev/null +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerDatabase.md @@ -0,0 +1,277 @@ +--- +external help file: +Module Name: Az.PostgreSql +online version: https://learn.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverdatabase +schema: 2.0.0 +--- + +# Update-AzPostgreSqlFlexibleServerDatabase + +## SYNOPSIS +Update a new database or update an existing database. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzPostgreSqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzPostgreSqlFlexibleServerDatabase -InputObject [-Charset ] + [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityFlexibleServerExpanded +``` +Update-AzPostgreSqlFlexibleServerDatabase -FlexibleServerInputObject -Name + [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Update a new database or update an existing database. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Charset +The charset of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Collation +The collation of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityFlexibleServerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityFlexibleServerExpanded +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated + +## NOTES + +## RELATED LINKS + diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md index ff8445201625..98533471dcf7 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlFlexibleServerFirewallRule.md @@ -283,7 +283,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlServer.md index 5a1dcc571140..307b31bb46b3 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlServer.md @@ -17,21 +17,20 @@ Use Update-AzPostSqlConfiguration instead if you want update server parameters s ### UpdateExpanded (Default) ``` Update-AzPostgreSqlServer -Name -ResourceGroupName [-SubscriptionId ] - [-AdministratorLoginPassword ] [-BackupRetentionDay ] - [-MinimalTlsVersion ] [-PublicNetworkAccess ] - [-ReplicationRole ] [-Sku ] [-SkuCapacity ] [-SkuFamily ] [-SkuTier ] - [-SslEnforcement ] [-StorageAutogrow ] [-StorageInMb ] - [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-AdministratorLoginPassword ] [-BackupRetentionDay ] [-MinimalTlsVersion ] + [-PublicNetworkAccess ] [-ReplicationRole ] [-Sku ] [-SkuCapacity ] + [-SkuFamily ] [-SkuTier ] [-SslEnforcement ] [-StorageAutogrow ] + [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzPostgreSqlServer -InputObject [-AdministratorLoginPassword ] - [-BackupRetentionDay ] [-MinimalTlsVersion ] - [-PublicNetworkAccess ] [-ReplicationRole ] [-Sku ] - [-SkuCapacity ] [-SkuFamily ] [-SkuTier ] [-SslEnforcement ] - [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-BackupRetentionDay ] [-MinimalTlsVersion ] [-PublicNetworkAccess ] + [-ReplicationRole ] [-Sku ] [-SkuCapacity ] [-SkuFamily ] [-SkuTier ] + [-SslEnforcement ] [-StorageAutogrow ] [-StorageInMb ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -151,7 +150,7 @@ Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -196,7 +195,7 @@ Accept wildcard characters: False Enable or disable public network access ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -289,7 +288,7 @@ The tier of the particular SKU, e.g. Basic. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier +Type: System.String Parameter Sets: (All) Aliases: @@ -304,7 +303,7 @@ Accept wildcard characters: False Enable ssl enforcement or not when connect to server. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -319,7 +318,7 @@ Accept wildcard characters: False Enable Storage Auto Grow. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow +Type: System.String Parameter Sets: (All) Aliases: @@ -415,7 +414,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlVirtualNetworkRule.md index a927b2167c4c..b8a4eba4f9cf 100644 --- a/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql.Autorest/docs/Update-AzPostgreSqlVirtualNetworkRule.md @@ -8,11 +8,18 @@ schema: 2.0.0 # Update-AzPostgreSqlVirtualNetworkRule ## SYNOPSIS -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. ## SYNTAX -### UpdateExpanded (Default) +### UpdateExpanded1 (Default) +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-IgnoreMissingVnetServiceEndpoint] [-SubnetId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UpdateExpanded ``` Update-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -ServerName -SubnetId [-SubscriptionId ] [-IgnoreMissingVnetServiceEndpoint] @@ -26,8 +33,29 @@ Update-AzPostgreSqlVirtualNetworkRule -InputObject -Subnet [-WhatIf] [] ``` +### UpdateViaIdentityExpanded1 +``` +Update-AzPostgreSqlVirtualNetworkRule -InputObject [-IgnoreMissingVnetServiceEndpoint] + [-SubnetId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityServerExpanded +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + -SubnetId [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityServerExpanded1 +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + [-IgnoreMissingVnetServiceEndpoint] [-SubnetId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. ## EXAMPLES @@ -110,11 +138,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity -Parameter Sets: UpdateViaIdentityExpanded +Parameter Sets: UpdateViaIdentityExpanded, UpdateViaIdentityExpanded1 Aliases: Required: True @@ -129,7 +156,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateExpanded1, UpdateViaIdentityServerExpanded, UpdateViaIdentityServerExpanded1 Aliases: VirtualNetworkRuleName Required: True @@ -175,7 +202,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateExpanded1 Aliases: Required: True @@ -185,12 +212,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityServerExpanded, UpdateViaIdentityServerExpanded1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateExpanded1 Aliases: Required: True @@ -220,7 +262,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateExpanded1 Aliases: Required: False @@ -270,7 +312,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES diff --git a/src/PostgreSql/PostgreSql.Autorest/examples/Update-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql.Autorest/examples/Update-AzPostgreSqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..0371f56c36d2 --- /dev/null +++ b/src/PostgreSql/PostgreSql.Autorest/examples/Update-AzPostgreSqlFlexibleServerDatabase.md @@ -0,0 +1,22 @@ +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + diff --git a/src/PostgreSql/PostgreSql.Autorest/generate-info.json b/src/PostgreSql/PostgreSql.Autorest/generate-info.json index 6d46f1369801..3e876c59de5f 100644 --- a/src/PostgreSql/PostgreSql.Autorest/generate-info.json +++ b/src/PostgreSql/PostgreSql.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "bfbf7319-ac2b-49dc-bb4f-1077a26134ae" + "generate_Id": "ba67f0f1-1467-48f3-ad2b-146a40b752c7" } diff --git a/src/PostgreSql/PostgreSql.Autorest/test/Update-AzPostgreSqlFlexibleServerDatabase.Tests.ps1 b/src/PostgreSql/PostgreSql.Autorest/test/Update-AzPostgreSqlFlexibleServerDatabase.Tests.ps1 new file mode 100644 index 000000000000..96a2bb4a8932 --- /dev/null +++ b/src/PostgreSql/PostgreSql.Autorest/test/Update-AzPostgreSqlFlexibleServerDatabase.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Update-AzPostgreSqlFlexibleServerDatabase')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Update-AzPostgreSqlFlexibleServerDatabase.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Update-AzPostgreSqlFlexibleServerDatabase' { + It 'UpdateExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityFlexibleServerExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'UpdateViaIdentityExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/PostgreSql/PostgreSql.Autorest/test/utils.ps1 b/src/PostgreSql/PostgreSql.Autorest/test/utils.ps1 index 793096db3d20..54c6ea89f80b 100644 --- a/src/PostgreSql/PostgreSql.Autorest/test/utils.ps1 +++ b/src/PostgreSql/PostgreSql.Autorest/test/utils.ps1 @@ -128,5 +128,5 @@ function cleanupEnv() { # Clean resources you create for testing # Removing resource group will clean all the resources created for testing. write-host "Clean resources you create for testing." - Remove-AzResourceGroup -Name $env.resourceGroup + # Remove-AzResourceGroup -Name $env.resourceGroup } diff --git a/src/PostgreSql/PostgreSql.sln b/src/PostgreSql/PostgreSql.sln index f9dbc49283a5..32e4b3ef3678 100644 --- a/src/PostgreSql/PostgreSql.sln +++ b/src/PostgreSql/PostgreSql.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PostgreSql", "PostgreSql\Po EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "PostgreSql.Autorest", "PostgreSql.Autorest", "{13094E6E-96F2-6DF6-64F8-503BB38C0FC8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PostgreSql", "..\..\generated\PostgreSql\PostgreSql.Autorest\Az.PostgreSql.csproj", "{0E9754EB-32F4-49B8-B063-312688BF7BB1}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.PostgreSql", "..\..\generated\PostgreSql\PostgreSql.Autorest\Az.PostgreSql.csproj", "{781F56F4-CEC6-457E-A424-498150359AAF}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {8B793448-8CB8-40DC-9269-356B1272E2BB}.Release|x64.Build.0 = Release|Any CPU {8B793448-8CB8-40DC-9269-356B1272E2BB}.Release|x86.ActiveCfg = Release|Any CPU {8B793448-8CB8-40DC-9269-356B1272E2BB}.Release|x86.Build.0 = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|x64.ActiveCfg = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|x64.Build.0 = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|x86.ActiveCfg = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Debug|x86.Build.0 = Debug|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|Any CPU.Build.0 = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|x64.ActiveCfg = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|x64.Build.0 = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|x86.ActiveCfg = Release|Any CPU - {0E9754EB-32F4-49B8-B063-312688BF7BB1}.Release|x86.Build.0 = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|x64.ActiveCfg = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|x64.Build.0 = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|x86.ActiveCfg = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Debug|x86.Build.0 = Debug|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|Any CPU.Build.0 = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|x64.ActiveCfg = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|x64.Build.0 = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|x86.ActiveCfg = Release|Any CPU + {781F56F4-CEC6-457E-A424-498150359AAF}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {5A8C3DAF-DF74-4B98-952B-14FFA02F8083} = {DDF03C15-34E0-4EF7-B432-7B4B8366B206} {A76B07F7-0B1C-4AB1-9466-1A687D8D0E92} = {DDF03C15-34E0-4EF7-B432-7B4B8366B206} {BB6BD8B7-F08E-4ED4-A7C5-B79CAB788176} = {DDF03C15-34E0-4EF7-B432-7B4B8366B206} - {0E9754EB-32F4-49B8-B063-312688BF7BB1} = {13094E6E-96F2-6DF6-64F8-503BB38C0FC8} + {781F56F4-CEC6-457E-A424-498150359AAF} = {13094E6E-96F2-6DF6-64F8-503BB38C0FC8} EndGlobalSection EndGlobal diff --git a/src/PostgreSql/PostgreSql/Az.PostgreSql.psd1 b/src/PostgreSql/PostgreSql/Az.PostgreSql.psd1 index 69995c5bc544..dd74b38d58f5 100644 --- a/src/PostgreSql/PostgreSql/Az.PostgreSql.psd1 +++ b/src/PostgreSql/PostgreSql/Az.PostgreSql.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2025 +# Generated on: 9/30/2025 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'PostgreSql.Autorest/bin/Az.PostgreSql.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'PostgreSql.Autorest/Az.PostgreSql.format.ps1xml' @@ -98,6 +98,7 @@ FunctionsToExport = 'Get-AzPostgreSqlConfiguration', 'Get-AzPostgreSqlConnection 'Update-AzPostgreSqlFirewallRule', 'Update-AzPostgreSqlFlexibleServer', 'Update-AzPostgreSqlFlexibleServerConfiguration', + 'Update-AzPostgreSqlFlexibleServerDatabase', 'Update-AzPostgreSqlFlexibleServerFirewallRule', 'Update-AzPostgreSqlServer', 'Update-AzPostgreSqlVirtualNetworkRule' @@ -126,7 +127,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','PostgreSql' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'PostgreSql' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -152,7 +153,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/PostgreSql/PostgreSql/help/Az.PostgreSql.md b/src/PostgreSql/PostgreSql/help/Az.PostgreSql.md index cfdfb18003d3..364c042d6e11 100644 --- a/src/PostgreSql/PostgreSql/help/Az.PostgreSql.md +++ b/src/PostgreSql/PostgreSql/help/Az.PostgreSql.md @@ -54,7 +54,7 @@ Creates a new firewall rule or updates an existing firewall rule. Creates a new server. ### [New-AzPostgreSqlFlexibleServerDatabase](New-AzPostgreSqlFlexibleServerDatabase.md) -Creates a new database or updates an existing database. +Create a new database or create an existing database. ### [New-AzPostgreSqlFlexibleServerFirewallRule](New-AzPostgreSqlFlexibleServerFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. @@ -66,7 +66,7 @@ Creates a new replica from an existing database. Creates a new server. ### [New-AzPostgreSqlVirtualNetworkRule](New-AzPostgreSqlVirtualNetworkRule.md) -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ### [Remove-AzPostgreSqlFirewallRule](Remove-AzPostgreSqlFirewallRule.md) Deletes a server firewall rule. @@ -123,6 +123,9 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve Updates a configuration of a server. Use Update-AzPostgreSqlFlexibleServer instead if you want update AdministratorLoginPassword, sku, etc. +### [Update-AzPostgreSqlFlexibleServerDatabase](Update-AzPostgreSqlFlexibleServerDatabase.md) +Update a new database or update an existing database. + ### [Update-AzPostgreSqlFlexibleServerFirewallRule](Update-AzPostgreSqlFlexibleServerFirewallRule.md) Creates a new firewall rule or updates an existing firewall rule. @@ -132,5 +135,5 @@ The request body can contain one to many of the properties present in the normal Use Update-AzPostSqlConfiguration instead if you want update server parameters such as wait_timeout or net_retry_count. ### [Update-AzPostgreSqlVirtualNetworkRule](Update-AzPostgreSqlVirtualNetworkRule.md) -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConfiguration.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConfiguration.md index 7961f0d3eef2..1a27b95a8657 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConfiguration.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConfiguration.md @@ -18,6 +18,12 @@ Get-AzPostgreSqlConfiguration -ResourceGroupName -ServerName [ [-DefaultProfile ] [] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlConfiguration -Name -ServerInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzPostgreSqlConfiguration -Name -ResourceGroupName -ServerName @@ -92,7 +98,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -111,7 +116,7 @@ The name of the server configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityServer, Get Aliases: ConfigurationName Required: True @@ -137,6 +142,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -176,7 +196,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfiguration ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConnectionString.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConnectionString.md index a49eaf96c899..91df74c43fb7 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConnectionString.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlConnectionString.md @@ -86,10 +86,9 @@ Accept wildcard characters: False ### -InputObject The server for the connection string -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: GetViaIdentity Aliases: @@ -150,7 +149,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFirewallRule.md index e302e3de4516..6fdce3b7369d 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFirewallRule.md @@ -18,6 +18,12 @@ Get-AzPostgreSqlFirewallRule -ResourceGroupName -ServerName [- [-DefaultProfile ] [] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlFirewallRule -Name -ServerInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzPostgreSqlFirewallRule -Name -ResourceGroupName -ServerName @@ -96,7 +102,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -115,7 +120,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityServer, Get Aliases: FirewallRuleName Required: True @@ -141,6 +146,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -180,7 +200,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServer.md index 23861035bf7d..9f008c7b9877 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServer.md @@ -117,7 +117,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -186,7 +185,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConfiguration.md index e73c09fa424e..38e597a4879c 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConfiguration.md @@ -19,6 +19,12 @@ Get-AzPostgreSqlFlexibleServerConfiguration -ResourceGroupName -ServerN [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerConfiguration -Name -FlexibleServerInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzPostgreSqlFlexibleServerConfiguration -Name -ResourceGroupName -ServerName @@ -91,9 +97,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -112,7 +132,7 @@ The name of the server configuration. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityFlexibleServer, Get Aliases: ConfigurationName Required: True @@ -177,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IConfigurationAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfigurationAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md index 2e642d55acdc..2f013e9a4c09 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerConnectionString.md @@ -86,10 +86,9 @@ Accept wildcard characters: False ### -InputObject The server for the connection string -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated Parameter Sets: GetViaIdentity Aliases: @@ -150,7 +149,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## OUTPUTS diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerDatabase.md index 2357df48fe61..0fb072326f83 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerDatabase.md @@ -19,6 +19,12 @@ Get-AzPostgreSqlFlexibleServerDatabase -ResourceGroupName -ServerName < [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerDatabase -Name -FlexibleServerInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzPostgreSqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName @@ -97,9 +103,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -118,7 +138,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityFlexibleServer, Get Aliases: DatabaseName Required: True @@ -183,7 +203,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IDatabaseAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerFirewallRule.md index c5f82597f0ff..4b2a01b2ca52 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerFirewallRule.md @@ -19,6 +19,12 @@ Get-AzPostgreSqlFlexibleServerFirewallRule -ResourceGroupName -ServerNa [] ``` +### GetViaIdentityFlexibleServer +``` +Get-AzPostgreSqlFlexibleServerFirewallRule -Name -FlexibleServerInputObject + [-DefaultProfile ] [] +``` + ### Get ``` Get-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName -ServerName @@ -96,9 +102,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -117,7 +137,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityFlexibleServer, Get Aliases: FirewallRuleName Required: True @@ -182,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IFirewallRuleAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRuleAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md index 4c5517644b51..a7baa4edffd5 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlFlexibleServerLocationBasedCapability.md @@ -119,7 +119,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.ICapabilityProperties +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.ICapabilityProperties ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlReplica.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlReplica.md index d214f84e5010..c48d44b37b85 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlReplica.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlReplica.md @@ -106,7 +106,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlServer.md index f74495c72204..a4a6bb7dd265 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlServer.md @@ -114,7 +114,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -183,7 +182,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlVirtualNetworkRule.md index b1bdd231fa7f..0bbe736bfd31 100644 --- a/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql/help/Get-AzPostgreSqlVirtualNetworkRule.md @@ -19,6 +19,12 @@ Get-AzPostgreSqlVirtualNetworkRule -ResourceGroupName -ServerName ] ``` +### GetViaIdentityServer +``` +Get-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + [-DefaultProfile ] [-PassThru] [] +``` + ### Get ``` Get-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -ServerName @@ -97,7 +103,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -116,7 +121,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: Get +Parameter Sets: GetViaIdentityServer, Get Aliases: VirtualNetworkRuleName Required: True @@ -157,6 +162,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: GetViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. @@ -196,7 +216,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFirewallRule.md index 45dfbe1bb08c..e08fa28ac94f 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFirewallRule.md @@ -286,7 +286,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md index ef6f02e0c528..7e2d93342ac7 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServer.md @@ -16,10 +16,10 @@ Creates a new server. New-AzPostgreSqlFlexibleServer [-Name ] [-ResourceGroupName ] [-SubscriptionId ] [-Zone ] [-Location ] [-AdministratorUserName ] [-AdministratorLoginPassword ] [-Sku ] [-SkuTier ] [-BackupRetentionDay ] - [-StorageInMb ] [-HaEnabled ] [-Tag ] [-Version ] - [-PrivateDnsZone ] [-SubnetPrefix ] [-Subnet ] [-VnetPrefix ] [-Vnet ] - [-PublicAccess ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-StorageInMb ] [-HaEnabled ] [-Tag ] [-Version ] [-PrivateDnsZone ] + [-SubnetPrefix ] [-Subnet ] [-VnetPrefix ] [-Vnet ] [-PublicAccess ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -489,7 +489,7 @@ Accept wildcard characters: False Server version. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion +Type: System.String Parameter Sets: (All) Aliases: @@ -586,7 +586,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerDatabase.md index 7529c94850ba..c4c3b9dfc87b 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerDatabase.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPostgreSqlFlexibleServerDatabase ## SYNOPSIS -Creates a new database or updates an existing database. +Create a new database or create an existing database. ## SYNTAX @@ -19,6 +19,13 @@ New-AzPostgreSqlFlexibleServerDatabase -Name -ResourceGroupName ] ``` +### CreateViaIdentityFlexibleServerExpanded +``` +New-AzPostgreSqlFlexibleServerDatabase -Name -FlexibleServerInputObject + [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + ### CreateViaIdentityExpanded ``` New-AzPostgreSqlFlexibleServerDatabase -InputObject [-Charset ] @@ -27,7 +34,7 @@ New-AzPostgreSqlFlexibleServerDatabase -InputObject [-Char ``` ## DESCRIPTION -Creates a new database or updates an existing database. +Create a new database or create an existing database. ## EXAMPLES @@ -107,9 +114,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: CreateViaIdentityFlexibleServerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -128,7 +149,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: CreateExpanded +Parameter Sets: CreateExpanded, CreateViaIdentityFlexibleServerExpanded Aliases: DatabaseName Required: True @@ -239,7 +260,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IDatabaseAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerFirewallRule.md index 2e1992808701..c5becc3f7d29 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlFlexibleServerFirewallRule.md @@ -288,7 +288,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlReplica.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlReplica.md index e7ee745f1d3c..858ad5247da9 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlReplica.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlReplica.md @@ -99,10 +99,9 @@ Accept wildcard characters: False ### -Master The source server object to create replica from. -To construct, see NOTES section for MASTER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: (All) Aliases: InputObject @@ -225,11 +224,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlServer.md index 5c9fdfd15de6..55bf05d9dece 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlServer.md @@ -15,10 +15,10 @@ Creates a new server. ``` New-AzPostgreSqlServer -Name -ResourceGroupName [-SubscriptionId ] -Location -AdministratorUserName -AdministratorLoginPassword -Sku - [-SslEnforcement ] [-MinimalTlsVersion ] - [-BackupRetentionDay ] [-GeoRedundantBackup ] [-StorageAutogrow ] - [-StorageInMb ] [-Tag ] [-Version ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-WhatIf] [-Confirm] [] + [-SslEnforcement ] [-MinimalTlsVersion ] [-BackupRetentionDay ] + [-GeoRedundantBackup ] [-StorageAutogrow ] [-StorageInMb ] [-Tag ] + [-Version ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -124,7 +124,7 @@ Accept wildcard characters: False Enable Geo-redundant or not for server backup. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.GeoRedundantBackup +Type: System.String Parameter Sets: (All) Aliases: @@ -155,7 +155,7 @@ Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -231,7 +231,7 @@ Accept wildcard characters: False Enable ssl enforcement or not when connect to server. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -246,7 +246,7 @@ Accept wildcard characters: False Enable Storage Auto Grow. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow +Type: System.String Parameter Sets: (All) Aliases: @@ -306,7 +306,7 @@ Accept wildcard characters: False Server version. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.ServerVersion +Type: System.String Parameter Sets: (All) Aliases: @@ -355,7 +355,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlVirtualNetworkRule.md index 4e61875f20c9..be4dfcf698c3 100644 --- a/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql/help/New-AzPostgreSqlVirtualNetworkRule.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzPostgreSqlVirtualNetworkRule ## SYNOPSIS -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ## SYNTAX @@ -19,7 +19,7 @@ New-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -S ``` ## DESCRIPTION -Creates or updates an existing virtual network rule. +Create an existing virtual network rule. ## EXAMPLES @@ -229,7 +229,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFirewallRule.md index a47239685f07..b1efb238a2c7 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFirewallRule.md @@ -19,6 +19,13 @@ Remove-AzPostgreSqlFirewallRule -Name -ResourceGroupName -Serv [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityServer +``` +Remove-AzPostgreSqlFirewallRule -Name -ServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### DeleteViaIdentity ``` Remove-AzPostgreSqlFirewallRule -InputObject [-DefaultProfile ] [-AsJob] @@ -80,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +105,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityServer Aliases: FirewallRuleName Required: True @@ -155,6 +161,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServer.md index 0ae09368c597..51f098226099 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServer.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerDatabase.md index 281a239b7af8..b1a60e5e0db9 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerDatabase.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerDatabase.md @@ -19,6 +19,13 @@ Remove-AzPostgreSqlFlexibleServerDatabase -Name -ResourceGroupName ] ``` +### DeleteViaIdentityFlexibleServer +``` +Remove-AzPostgreSqlFlexibleServerDatabase -Name -FlexibleServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### DeleteViaIdentity ``` Remove-AzPostgreSqlFlexibleServerDatabase -InputObject [-DefaultProfile ] @@ -77,9 +84,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -98,7 +119,7 @@ The name of the database. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityFlexibleServer Aliases: DatabaseName Required: True diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerFirewallRule.md index c2de402e465c..e9927ab01d4e 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlFlexibleServerFirewallRule.md @@ -19,6 +19,13 @@ Remove-AzPostgreSqlFlexibleServerFirewallRule -Name -ResourceGroupName [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityFlexibleServer +``` +Remove-AzPostgreSqlFlexibleServerFirewallRule -Name -FlexibleServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### DeleteViaIdentity ``` Remove-AzPostgreSqlFlexibleServerFirewallRule -InputObject [-DefaultProfile ] @@ -78,9 +85,23 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityFlexibleServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +120,7 @@ The name of the server firewall rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityFlexibleServer Aliases: FirewallRuleName Required: True diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlServer.md index 5e4c2a9177bf..9bb4294539f3 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlServer.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlVirtualNetworkRule.md index 15a022662564..12ebd07c1fb4 100644 --- a/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql/help/Remove-AzPostgreSqlVirtualNetworkRule.md @@ -19,6 +19,13 @@ Remove-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName [-WhatIf] [-Confirm] [] ``` +### DeleteViaIdentityServer +``` +Remove-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + ### DeleteViaIdentity ``` Remove-AzPostgreSqlVirtualNetworkRule -InputObject [-DefaultProfile ] [-AsJob] @@ -80,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -99,7 +105,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityServer Aliases: VirtualNetworkRuleName Required: True @@ -155,6 +161,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: DeleteViaIdentityServer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. diff --git a/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlFlexibleServer.md index 92759c43e7b4..21aae717f928 100644 --- a/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlFlexibleServer.md @@ -19,6 +19,20 @@ Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [- [-WhatIf] [-Confirm] [] ``` +### RestartViaJsonString +``` +Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### RestartViaJsonFilePath +``` +Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ### Restart ``` Restart-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] @@ -124,7 +138,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity @@ -138,12 +151,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Restart operation + +```yaml +Type: System.String +Parameter Sets: RestartViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the server. ```yaml Type: System.String -Parameter Sets: RestartExpanded, Restart +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath, Restart Aliases: ServerName Required: True @@ -170,10 +213,9 @@ Accept wildcard characters: False ### -Parameter Represents server restart parameters. -To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IRestartParameter +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IRestartParameter Parameter Sets: Restart, RestartViaIdentity Aliases: @@ -205,7 +247,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: RestartExpanded, Restart +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath, Restart Aliases: Required: True @@ -235,7 +277,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: RestartExpanded, Restart +Parameter Sets: RestartExpanded, RestartViaJsonString, RestartViaJsonFilePath, Restart Aliases: Required: False @@ -281,10 +323,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IRestartParameter - ### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IRestartParameter + ## OUTPUTS ### System.Boolean diff --git a/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlServer.md index 10623052586e..b405b3f6dcf3 100644 --- a/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/Restart-AzPostgreSqlServer.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md index 0a62796e8470..d78815479208 100644 --- a/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlFlexibleServer.md @@ -319,7 +319,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlServer.md index 668bca38d68d..cfb94db514c9 100644 --- a/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/Restore-AzPostgreSqlServer.md @@ -94,10 +94,9 @@ Accept wildcard characters: False ### -InputObject The source server object to restore from. -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer Parameter Sets: (All) Aliases: @@ -295,11 +294,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Start-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Start-AzPostgreSqlFlexibleServer.md index ab6e5e636896..49ecdb912640 100644 --- a/src/PostgreSql/PostgreSql/help/Start-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Start-AzPostgreSqlFlexibleServer.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Stop-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Stop-AzPostgreSqlFlexibleServer.md index 610c4f27b2c1..4055caf77799 100644 --- a/src/PostgreSql/PostgreSql/help/Stop-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Stop-AzPostgreSqlFlexibleServer.md @@ -80,7 +80,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Test-AzPostgreSqlFlexibleServerConnect.md b/src/PostgreSql/PostgreSql/help/Test-AzPostgreSqlFlexibleServerConnect.md index 7572b996a2b9..66c2889ae33b 100644 --- a/src/PostgreSql/PostgreSql/help/Test-AzPostgreSqlFlexibleServerConnect.md +++ b/src/PostgreSql/PostgreSql/help/Test-AzPostgreSqlFlexibleServerConnect.md @@ -169,7 +169,6 @@ Accept wildcard characters: False ### -InputObject The server to connect. -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlConfiguration.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlConfiguration.md index cfe0a291965c..8e7c9721ba5e 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlConfiguration.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlConfiguration.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IConfiguration +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfiguration ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFirewallRule.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFirewallRule.md index a76f70cad57c..7e955f0daf54 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFirewallRule.md @@ -298,7 +298,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md index 045935740180..3574a8fb8c65 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServer.md @@ -17,7 +17,7 @@ Use Update-AzPostSqlFlexibleServerConfiguration instead if you want update serve ### UpdateExpanded (Default) ``` Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-SubscriptionId ] - [-AdministratorLoginPassword ] [-Sku ] [-SkuTier ] [-HaEnabled ] + [-AdministratorLoginPassword ] [-Sku ] [-SkuTier ] [-HaEnabled ] [-BackupRetentionDay ] [-MaintenanceWindow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] @@ -26,7 +26,7 @@ Update-AzPostgreSqlFlexibleServer -Name -ResourceGroupName [-S ### UpdateViaIdentityExpanded ``` Update-AzPostgreSqlFlexibleServer -InputObject - [-AdministratorLoginPassword ] [-Sku ] [-SkuTier ] [-HaEnabled ] + [-AdministratorLoginPassword ] [-Sku ] [-SkuTier ] [-HaEnabled ] [-BackupRetentionDay ] [-MaintenanceWindow ] [-StorageInMb ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] @@ -245,7 +245,7 @@ Accepted values: Burstable, GeneralPurpose, Memory Optimized. Default: Burstable. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier +Type: System.String Parameter Sets: (All) Aliases: @@ -341,7 +341,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IServerAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServerAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md index 500f4c0ebb23..45b54b650d16 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerConfiguration.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20210601.IConfigurationAutoGenerated +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IConfigurationAutoGenerated ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerDatabase.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerDatabase.md new file mode 100644 index 000000000000..fe1776aef7ba --- /dev/null +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerDatabase.md @@ -0,0 +1,276 @@ +--- +external help file: Az.PostgreSql-help.xml +Module Name: Az.PostgreSql +online version: https://learn.microsoft.com/powershell/module/az.postgresql/update-azpostgresqlflexibleserverdatabase +schema: 2.0.0 +--- + +# Update-AzPostgreSqlFlexibleServerDatabase + +## SYNOPSIS +Update a new database or update an existing database. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzPostgreSqlFlexibleServerDatabase -Name -ResourceGroupName -ServerName + [-SubscriptionId ] [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityFlexibleServerExpanded +``` +Update-AzPostgreSqlFlexibleServerDatabase -Name -FlexibleServerInputObject + [-Charset ] [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzPostgreSqlFlexibleServerDatabase -InputObject [-Charset ] + [-Collation ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Update a new database or update an existing database. + +## EXAMPLES + +### Example 1: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +### Example 2: {{ Add title here }} +```powershell +{{ Add code here }} +``` + +```output +{{ Add output here (remove the output block if the example doesn't have an output) }} +``` + +{{ Add description here }} + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Charset +The charset of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Collation +The collation of the database. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -FlexibleServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityFlexibleServerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the database. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityFlexibleServerExpanded +Aliases: DatabaseName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServerName +The name of the server. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IDatabaseAutoGenerated + +## NOTES + +## RELATED LINKS diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerFirewallRule.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerFirewallRule.md index 4a7380fa7948..29c47c356e51 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerFirewallRule.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlFlexibleServerFirewallRule.md @@ -284,7 +284,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IFirewallRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IFirewallRule ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlServer.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlServer.md index c3a99b4a2f62..77e182425e41 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlServer.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlServer.md @@ -18,21 +18,20 @@ Use Update-AzPostSqlConfiguration instead if you want update server parameters s ``` Update-AzPostgreSqlServer -Name -ResourceGroupName [-SubscriptionId ] [-AdministratorLoginPassword ] [-ReplicationRole ] [-SkuCapacity ] - [-SkuFamily ] [-Sku ] [-SkuTier ] [-SslEnforcement ] - [-MinimalTlsVersion ] [-BackupRetentionDay ] - [-StorageAutogrow ] [-StorageInMb ] [-Tag ] - [-PublicNetworkAccess ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-SkuFamily ] [-Sku ] [-SkuTier ] [-SslEnforcement ] + [-MinimalTlsVersion ] [-BackupRetentionDay ] [-StorageAutogrow ] [-StorageInMb ] + [-Tag ] [-PublicNetworkAccess ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzPostgreSqlServer -InputObject [-AdministratorLoginPassword ] - [-ReplicationRole ] [-SkuCapacity ] [-SkuFamily ] [-Sku ] [-SkuTier ] - [-SslEnforcement ] [-MinimalTlsVersion ] - [-BackupRetentionDay ] [-StorageAutogrow ] [-StorageInMb ] [-Tag ] - [-PublicNetworkAccess ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-WhatIf] [-Confirm] [] + [-ReplicationRole ] [-SkuCapacity ] [-SkuFamily ] [-Sku ] [-SkuTier ] + [-SslEnforcement ] [-MinimalTlsVersion ] [-BackupRetentionDay ] + [-StorageAutogrow ] [-StorageInMb ] [-Tag ] [-PublicNetworkAccess ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -152,7 +151,7 @@ Set the minimal TLS version for connections to server when SSL is enabled. Default is TLSEnforcementDisabled.accepted values: TLS1_0, TLS1_1, TLS1_2, TLSEnforcementDisabled. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.MinimalTlsVersionEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -197,7 +196,7 @@ Accept wildcard characters: False Enable or disable public network access ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.PublicNetworkAccessEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -290,7 +289,7 @@ The tier of the particular SKU, e.g. Basic. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SkuTier +Type: System.String Parameter Sets: (All) Aliases: @@ -305,7 +304,7 @@ Accept wildcard characters: False Enable ssl enforcement or not when connect to server. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.SslEnforcementEnum +Type: System.String Parameter Sets: (All) Aliases: @@ -320,7 +319,7 @@ Accept wildcard characters: False Enable Storage Auto Grow. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Support.StorageAutogrow +Type: System.String Parameter Sets: (All) Aliases: @@ -416,7 +415,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServer +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IServer ## NOTES diff --git a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlVirtualNetworkRule.md b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlVirtualNetworkRule.md index 81650ab74004..c6c25a443590 100644 --- a/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlVirtualNetworkRule.md +++ b/src/PostgreSql/PostgreSql/help/Update-AzPostgreSqlVirtualNetworkRule.md @@ -8,17 +8,45 @@ schema: 2.0.0 # Update-AzPostgreSqlVirtualNetworkRule ## SYNOPSIS -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. ## SYNTAX -### UpdateExpanded (Default) +### UpdateExpanded1 (Default) ``` Update-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -ServerName [-SubscriptionId ] -SubnetId [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] ``` +### UpdateViaIdentityServerExpanded1 +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + -SubnetId [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityServerExpanded +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ServerInputObject + -SubnetId [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### UpdateExpanded +``` +Update-AzPostgreSqlVirtualNetworkRule -Name -ResourceGroupName -ServerName + [-SubscriptionId ] -SubnetId [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaIdentityExpanded1 +``` +Update-AzPostgreSqlVirtualNetworkRule -InputObject -SubnetId + [-IgnoreMissingVnetServiceEndpoint] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzPostgreSqlVirtualNetworkRule -InputObject -SubnetId @@ -27,7 +55,7 @@ Update-AzPostgreSqlVirtualNetworkRule -InputObject -Subnet ``` ## DESCRIPTION -Creates or updates an existing virtual network rule. +Update an existing virtual network rule. ## EXAMPLES @@ -110,11 +138,10 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity -Parameter Sets: UpdateViaIdentityExpanded +Parameter Sets: UpdateViaIdentityExpanded1, UpdateViaIdentityExpanded Aliases: Required: True @@ -129,7 +156,7 @@ The name of the virtual network rule. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded1, UpdateViaIdentityServerExpanded1, UpdateViaIdentityServerExpanded, UpdateExpanded Aliases: VirtualNetworkRuleName Required: True @@ -175,7 +202,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded1, UpdateExpanded Aliases: Required: True @@ -185,12 +212,27 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServerInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IPostgreSqlIdentity +Parameter Sets: UpdateViaIdentityServerExpanded1, UpdateViaIdentityServerExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -ServerName The name of the server. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded1, UpdateExpanded Aliases: Required: True @@ -220,7 +262,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded1, UpdateExpanded Aliases: Required: False @@ -270,7 +312,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IVirtualNetworkRule +### Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.IVirtualNetworkRule ## NOTES