Skip to content

Commit 5c8065b

Browse files
[skip ci] Archive Schedule (#27800)
1 parent 0859c26 commit 5c8065b

File tree

6 files changed

+85
-36
lines changed

6 files changed

+85
-36
lines changed

generated/PostgreSql/PostgreSql.Autorest/Az.PostgreSql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<PropertyGroup>
33
<PsModuleName>PostgreSql</PsModuleName>
44
<PsRootModuleName>PostgreSql</PsRootModuleName>
5+
<PsModuleFolder>PostgreSql.Autorest</PsModuleFolder>
56
</PropertyGroup>
67

78
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
89
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
9-
1010
</Project>
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
// ----------------------------------------------------------------------------------
2-
//
3-
// Copyright Microsoft Corporation
4-
// Licensed under the Apache License, Version 2.0 (the "License");
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
53
// you may not use this file except in compliance with the License.
64
// You may obtain a copy of the License at
75
// http://www.apache.org/licenses/LICENSE-2.0
86
// Unless required by applicable law or agreed to in writing, software
9-
// distributed under the License is distributed on an "AS IS" BASIS,
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
108
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
// See the License for the specific language governing permissions and
1210
// limitations under the License.
13-
// ----------------------------------------------------------------------------------
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
1413

1514
using System;
1615
using System.Reflection;
16+
using System.Runtime.CompilerServices;
1717
using System.Runtime.InteropServices;
1818

19-
[assembly: AssemblyTitle("Microsoft Azure Powershell - PostgreSql")]
20-
[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
21-
[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
22-
[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
23-
24-
[assembly: ComVisible(false)]
25-
[assembly: CLSCompliant(false)]
26-
[assembly: Guid("6c7aaf86-3138-4d41-aa71-66f13fdf019b")]
27-
[assembly: AssemblyVersion("1.2.0")]
28-
[assembly: AssemblyFileVersion("1.2.0")]
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - PostgreSql")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/PostgreSql/PostgreSql.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6742,9 +6742,9 @@ end {
67426742

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

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

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

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

6799-
[Parameter()]
6799+
[Parameter(ParameterSetName='GeoRestore', Mandatory)]
6800+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
6801+
[System.Management.Automation.SwitchParameter]
6802+
# Use Geo mode to restore
6803+
${UseGeoRestore},
6804+
6805+
[Parameter(ParameterSetName='GeoRestore')]
6806+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
6807+
[System.String]
6808+
# The name of the sku, typically, tier + family + cores, e.g., B_Gen4_1, GP_Gen5_8.
6809+
${Sku},
6810+
6811+
[Parameter(ParameterSetName='GeoRestore')]
6812+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
6813+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))]
6814+
[System.Collections.Hashtable]
6815+
# Application-specific metadata in the form of key-value pairs.
6816+
${Tag},
6817+
6818+
[Parameter(ParameterSetName='PointInTimeRestore')]
68006819
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
68016820
[System.String]
68026821
# Availability zone into which to provision the resource.
68036822
${Zone},
68046823

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

6813-
[Parameter()]
6832+
[Parameter(ParameterSetName='PointInTimeRestore')]
68146833
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
68156834
[System.String]
68166835
# The id of an existing private dns zone.
@@ -6901,9 +6920,10 @@ begin {
69016920
}
69026921

69036922
$mapping = @{
6923+
GeoRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_GeoRestore';
69046924
PointInTimeRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore';
69056925
}
6906-
if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
6926+
if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
69076927
$testPlayback = $false
69086928
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
69096929
if ($testPlayback) {

generated/PostgreSql/PostgreSql.Autorest/exports/Restore-AzPostgreSqlFlexibleServer.ps1

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

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

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

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

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

73-
[Parameter()]
73+
[Parameter(ParameterSetName='GeoRestore', Mandatory)]
74+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
75+
[System.Management.Automation.SwitchParameter]
76+
# Use Geo mode to restore
77+
${UseGeoRestore},
78+
79+
[Parameter(ParameterSetName='GeoRestore')]
80+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
81+
[System.String]
82+
# The name of the sku, typically, tier + family + cores, e.g., B_Gen4_1, GP_Gen5_8.
83+
${Sku},
84+
85+
[Parameter(ParameterSetName='GeoRestore')]
86+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
87+
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Models.Api20171201.IServerForCreateTags]))]
88+
[System.Collections.Hashtable]
89+
# Application-specific metadata in the form of key-value pairs.
90+
${Tag},
91+
92+
[Parameter(ParameterSetName='PointInTimeRestore')]
7493
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
7594
[System.String]
7695
# Availability zone into which to provision the resource.
7796
${Zone},
7897

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

87-
[Parameter()]
106+
[Parameter(ParameterSetName='PointInTimeRestore')]
88107
[Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Category('Body')]
89108
[System.String]
90109
# The id of an existing private dns zone.
@@ -175,9 +194,10 @@ begin {
175194
}
176195

177196
$mapping = @{
197+
GeoRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_GeoRestore';
178198
PointInTimeRestore = 'Az.PostgreSql.custom\Restore-AzPostgreSqlFlexibleServer_PointInTimeRestore';
179199
}
180-
if (('PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
200+
if (('GeoRestore', 'PointInTimeRestore') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
181201
$testPlayback = $false
182202
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.PostgreSql.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
183203
if ($testPlayback) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "4c0ec4db-1f6f-432c-91e4-6c48fa388d57"
2+
"generate_Id": "f0b983f7-1a63-4b8a-b719-bcd0e1c97929"
33
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Resources
2+
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.
3+
4+
## Info
5+
- Modifiable: yes
6+
- Generated: no
7+
- Committed: yes
8+
- Packaged: no
9+
10+
## Purpose
11+
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.

0 commit comments

Comments
 (0)