Skip to content

[skip ci] Archive Schedule #27800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<PropertyGroup>
<PsModuleName>PostgreSql</PsModuleName>
<PsRootModuleName>PostgreSql</PsRootModuleName>
<PsModuleFolder>PostgreSql.Autorest</PsModuleFolder>
</PropertyGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
30 changes: 14 additions & 16 deletions generated/PostgreSql/PostgreSql.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Microsoft Azure Powershell - PostgreSql")]
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]

[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("6c7aaf86-3138-4d41-aa71-66f13fdf019b")]
[assembly: AssemblyVersion("1.2.0")]
[assembly: AssemblyFileVersion("1.2.0")]
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[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.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -6742,9 +6742,9 @@ end {

<#
.Synopsis
Restore a server from an existing backup
Restore a PostgreSQL flexible server using Geo-restore
.Description
Restore a server from an existing backup
Restore a PostgreSQL flexible server using Geo-restore
.Example
$restorePointInTime = (Get-Date).AddMinutes(-10)
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -RestorePointInTime $restorePointInTime
Expand All @@ -6768,19 +6768,19 @@ param(
[Alias('ServerName')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the server.
# The name of the server to restore.
${Name},

[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.
# The name of the resource group that contains the resource.
${ResourceGroupName},

[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the source server.
# The name of the source server to restore from.
${SourceServerName},

[Parameter()]
Expand All @@ -6796,21 +6796,40 @@ param(
# The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00.
${RestorePointInTime},

[Parameter()]
[Parameter(ParameterSetName='GeoRestore', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Use Geo mode to restore
${UseGeoRestore},

[Parameter(ParameterSetName='GeoRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The name of the sku, typically, tier + family + cores, e.g., B_Gen4_1, GP_Gen5_8.
${Sku},

[Parameter(ParameterSetName='GeoRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))]
[System.Collections.Hashtable]
# Application-specific metadata in the form of key-value pairs.
${Tag},

[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# Availability zone into which to provision the resource.
${Zone},

[Parameter()]
[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The id of an existing Subnet the private access server will created to.
# Please note that the subnet will be delegated to Microsoft.DBforPostgreSQL/flexibleServers.
# After delegation, this subnet cannot be used for any other type of Azure resources.
${Subnet},

[Parameter()]
[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The id of an existing private dns zone.
Expand Down Expand Up @@ -6901,9 +6920,10 @@ begin {
}

$mapping = @{
GeoRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_GeoRestore';
PointInTimeRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore';
}
if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
Restore a server from an existing backup
Restore a PostgreSQL flexible server using Geo-restore
.Description
Restore a server from an existing backup
Restore a PostgreSQL flexible server using Geo-restore
.Example
$restorePointInTime = (Get-Date).AddMinutes(-10)
Restore-AzPostgreSqlFlexibleServer -Name pg-restore -ResourceGroupName PowershellPostgreSqlTest -SourceServerName postgresql-test -RestorePointInTime $restorePointInTime
Expand All @@ -42,19 +42,19 @@ param(
[Alias('ServerName')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the server.
# The name of the server to restore.
${Name},

[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the resource group that contains the resource, You can obtain this value from the Azure Resource Manager API or the portal.
# The name of the resource group that contains the resource.
${ResourceGroupName},

[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Path')]
[System.String]
# The name of the source server.
# The name of the source server to restore from.
${SourceServerName},

[Parameter()]
Expand All @@ -70,21 +70,40 @@ param(
# The point in time to restore from (ISO8601 format), e.g., 2017-04-26T02:10:00+08:00.
${RestorePointInTime},

[Parameter()]
[Parameter(ParameterSetName='GeoRestore', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.Management.Automation.SwitchParameter]
# Use Geo mode to restore
${UseGeoRestore},

[Parameter(ParameterSetName='GeoRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The name of the sku, typically, tier + family + cores, e.g., B_Gen4_1, GP_Gen5_8.
${Sku},

[Parameter(ParameterSetName='GeoRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))]
[System.Collections.Hashtable]
# Application-specific metadata in the form of key-value pairs.
${Tag},

[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# Availability zone into which to provision the resource.
${Zone},

[Parameter()]
[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The id of an existing Subnet the private access server will created to.
# Please note that the subnet will be delegated to Microsoft.DBforPostgreSQL/flexibleServers.
# After delegation, this subnet cannot be used for any other type of Azure resources.
${Subnet},

[Parameter()]
[Parameter(ParameterSetName='PointInTimeRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
[System.String]
# The id of an existing private dns zone.
Expand Down Expand Up @@ -175,9 +194,10 @@ begin {
}

$mapping = @{
GeoRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_GeoRestore';
PointInTimeRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore';
}
if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "4c0ec4db-1f6f-432c-91e4-6c48fa388d57"
"generate_Id": "f0b983f7-1a63-4b8a-b719-bcd0e1c97929"
}
11 changes: 11 additions & 0 deletions generated/PostgreSql/PostgreSql.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Resources
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.

## Info
- Modifiable: yes
- Generated: no
- Committed: yes
- Packaged: no

## Purpose
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.