Skip to content

Commit cdaac8f

Browse files
yanqiongchenTheOnlyWei
authored andcommitted
Revert "Merge pull request #141 from yanqiongchen/backup-admin-update"
This reverts commit a0a7823.
1 parent 5a14e29 commit cdaac8f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1469
-4561
lines changed

src/Azs.Backup.Admin/custom/Clear-AzsBackupConfiguration.ps1

Lines changed: 0 additions & 135 deletions
This file was deleted.

src/Azs.Backup.Admin/custom/Get-AzsBackup.ps1

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
2-
# ----------------------------------------------------------------------------------
3-
#
4-
# Copyright Microsoft Corporation
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
# ----------------------------------------------------------------------------------
15-
161
<#
172
.Synopsis
183
Returns a backup from a location based on name.
@@ -23,10 +8,9 @@ To view examples, please use the -Online parameter with Get-Help or navigate to:
238
.Inputs
249
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.IBackupAdminIdentity
2510
.Outputs
26-
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackup
11+
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IBackup
2712
.Notes
2813
COMPLEX PARAMETER PROPERTIES
29-
3014
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
3115
3216
INPUTOBJECT <IBackupAdminIdentity>: Identity Parameter
@@ -39,7 +23,7 @@ INPUTOBJECT <IBackupAdminIdentity>: Identity Parameter
3923
https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/get-azsbackup
4024
#>
4125
function Get-AzsBackup {
42-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IBackup])]
26+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IBackup])]
4327
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
4428
param(
4529
[Parameter(ParameterSetName='Get')]

src/Azs.Backup.Admin/custom/Restore-AzsBackup.ps1

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,18 @@
1-
2-
# ----------------------------------------------------------------------------------
3-
#
4-
# Copyright Microsoft Corporation
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
# ----------------------------------------------------------------------------------
15-
161
<#
172
.Synopsis
183
Restore a backup.
194
.Description
205
Restore a backup.
216
.Example
22-
PS C:\> {{ Add code here }}
23-
24-
{{ Add output here }}
25-
.Example
26-
PS C:\> {{ Add code here }}
27-
28-
{{ Add output here }}
29-
7+
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.backup.admin/restore-azsbackup
308
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IRestoreOptions
9+
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IRestoreOptions
3210
.Inputs
3311
Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.IBackupAdminIdentity
3412
.Outputs
3513
System.Boolean
3614
.Notes
3715
COMPLEX PARAMETER PROPERTIES
38-
3916
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
4017
4118
INPUTOBJECT <IBackupAdminIdentity>: Identity Parameter
@@ -56,6 +33,13 @@ function Restore-AzsBackup {
5633
[OutputType([System.Boolean])]
5734
[CmdletBinding(DefaultParameterSetName='RestoreExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
5835
param(
36+
[Parameter(ParameterSetName='Restore', Mandatory)]
37+
[Parameter(ParameterSetName='RestoreExpanded', Mandatory)]
38+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
39+
[System.String]
40+
# Name of the backup.
41+
${Name},
42+
5943
[Parameter(ParameterSetName='Restore')]
6044
[Parameter(ParameterSetName='RestoreExpanded')]
6145
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
@@ -64,13 +48,6 @@ param(
6448
# Name of the backup location.
6549
${Location},
6650

67-
[Parameter(ParameterSetName='Restore', Mandatory)]
68-
[Parameter(ParameterSetName='RestoreExpanded', Mandatory)]
69-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
70-
[System.String]
71-
# Name of the backup.
72-
${Name},
73-
7451
[Parameter(ParameterSetName='Restore')]
7552
[Parameter(ParameterSetName='RestoreExpanded')]
7653
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Path')]
@@ -99,7 +76,7 @@ param(
9976
[Parameter(ParameterSetName='Restore', Mandatory)]
10077
[Parameter(ParameterSetName='RestoreViaIdentity', Mandatory)]
10178
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Category('Body')]
102-
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20210901.IRestoreOptions]
79+
[Microsoft.Azure.PowerShell.Cmdlets.BackupAdmin.Models.Api20180901.IRestoreOptions]
10380
# Properties for restore options.
10481
# To construct, see NOTES section for RESTOREOPTION properties and create a hash table.
10582
${RestoreOption},

0 commit comments

Comments
 (0)