Skip to content

Commit 7acada0

Browse files
committed
added copyright message
1 parent 228b8ed commit 7acada0

File tree

7 files changed

+23
-42
lines changed

7 files changed

+23
-42
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupDSCmdletBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2828
{
2929
public abstract class AzureBackupDSCmdletBase : AzureBackupCmdletBase
3030
{
31-
// ToDO:
32-
// Correct Help message and other attributes related to paameters
3331
[Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackUpItem, ValueFromPipeline = true)]
3432
[ValidateNotNullOrEmpty]
3533
public AzureBackupItem item { get; set; }

src/ResourceManager/AzureBackup/Commands.AzureBackup/AzureBackupItemCmdletBase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2828
{
2929
public abstract class AzureBackupItemCmdletBase : AzureBackupCmdletBase
3030
{
31-
// ToDO:
32-
// Correct Help message and other attributes related to paameters
3331
[Parameter(Position = 0, Mandatory = true, HelpMessage = AzureBackupCmdletHelpMessage.AzureBackupItem, ValueFromPipeline = true)]
3432
[ValidateNotNullOrEmpty]
3533
public AzureBackupContainerContextObject item { get; set; }

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/DataSource/Disable-AzureBackupProtection .cs

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
using Microsoft.Azure.Management.BackupServices;
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Microsoft.Azure.Management.BackupServices;
216
using Microsoft.Azure.Management.BackupServices.Models;
317
using System;
418
using System.Collections.Generic;
@@ -11,13 +25,9 @@
1125
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets.DataSource
1226
{
1327
// ToDo:
14-
// Correct the Commandlet
15-
// Correct the OperationResponse
1628
// Get Tracking API from Piyush and Get JobResponse
17-
// Get JobResponse Object from Aditya
18-
1929
/// <summary>
20-
/// Enable Azure Backup protection
30+
/// Disable Azure Backup protection
2131
/// </summary>
2232
[Cmdlet(VerbsLifecycle.Disable, "AzureBackupProtection"), OutputType(typeof(OperationResponse))]
2333
public class DisableAzureBackupProtection : AzureBackupDSCmdletBase
@@ -46,7 +56,6 @@ public override void ExecuteCmdlet()
4656
Comments = this.Comments,
4757
};
4858

49-
WriteVerbose("RemoveProtectionOption = " + input.RemoveProtectionOption);
5059
var disbaleAzureBackupProtection = AzureBackupClient.DataSource.DisableProtectionAsync(GetCustomRequestHeaders(), item.ContainerUniqueName, item.Type, item.DataSourceId, input, CmdletCancellationToken).Result;
5160

5261
WriteVerbose("Received policy response");
@@ -57,8 +66,6 @@ public override void ExecuteCmdlet()
5766

5867
public void WriteAzureBackupProtectionPolicy(OperationResponse sourceOperationResponse)
5968
{
60-
// this needs to be uncommented once we have proper constructor
61-
//this.WriteObject(new AzureBackupRecoveryPoint(ResourceGroupName, ResourceName, sourceOperationResponse));
6269
}
6370

6471
public void WriteAzureBackupProtectionPolicy(IEnumerable<OperationResponse> sourceOperationResponseList)
@@ -67,22 +74,10 @@ public void WriteAzureBackupProtectionPolicy(IEnumerable<OperationResponse> sour
6774

6875
foreach (var sourceOperationResponse in sourceOperationResponseList)
6976
{
70-
// this needs to be uncommented once we have proper constructor
7177
targetList.Add(sourceOperationResponse);
7278
}
7379

7480
this.WriteObject(targetList, true);
7581
}
76-
public enum removeProtectionOption
77-
{
78-
[EnumMember]
79-
Invalid = 0,
80-
81-
[EnumMember]
82-
RetainBackupData,
83-
84-
[EnumMember]
85-
DeleteBackupData,
86-
}
8782
}
8883
}

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/DataSource/Enable-AzureBackupProtection .cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2626
{
2727
// ToDo:
28-
// Correct the Commandlet
29-
// Correct the OperationResponse
3028
// Get Tracking API from Piyush and Get JobResponse
31-
// Get JobResponse Object from Aditya
3229

3330
/// <summary>
3431
/// Enable Azure Backup protection
@@ -74,16 +71,14 @@ public override void ExecuteCmdlet()
7471

7572
var enableAzureBackupProtection = AzureBackupClient.DataSource.EnableProtectionAsync(GetCustomRequestHeaders(), input, CmdletCancellationToken).Result;
7673

77-
WriteVerbose("Received policy response");
74+
WriteVerbose("Received response");
7875
WriteVerbose("Converting response");
7976
WriteAzureBackupProtectionPolicy(enableAzureBackupProtection);
8077
});
8178
}
8279

8380
public void WriteAzureBackupProtectionPolicy(OperationResponse sourceOperationResponse)
8481
{
85-
// this needs to be uncommented once we have proper constructor
86-
//this.WriteObject(new AzureBackupRecoveryPoint(ResourceGroupName, ResourceName, sourceOperationResponse));
8782
}
8883

8984
public void WriteAzureBackupProtectionPolicy(IEnumerable<OperationResponse> sourceOperationResponseList)
@@ -92,7 +87,6 @@ public void WriteAzureBackupProtectionPolicy(IEnumerable<OperationResponse> sour
9287

9388
foreach (var sourceOperationResponse in sourceOperationResponseList)
9489
{
95-
// this needs to be uncommented once we have proper constructor
9690
targetList.Add(sourceOperationResponse);
9791
}
9892

@@ -117,15 +111,8 @@ public enum ContainerType
117111
}
118112
public enum DataSourceType
119113
{
120-
[EnumMember]
121-
Invalid = 0,
122-
123114
[EnumMember]
124115
VM
125-
126-
// TODO: fix GetJobTypes() in PortalMetadataInternalEP.cs
127-
// [EnumMember]
128-
// AzureStorageAccount
129116
}
130117
}
131118
}

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/DataSource/GetAzureBackupItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2626
{
2727
/// <summary>
28-
/// Get list of containers
28+
/// Get list of azure backup items
2929
/// </summary>
3030
[Cmdlet(VerbsCommon.Get, "AzureBackupItem"), OutputType(typeof(AzureBackupItem), typeof(List<AzureBackupItem>))]
3131
public class GetAzureBackupItem : AzureBackupContainerCmdletBase

src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
2323
{
2424
/// <summary>
25-
/// Represents Azure Backup Container
25+
/// Represents Azure Backup Item
2626
/// </summary>
2727
public class AzureBackupItem : AzureBackupItemContextObject
2828
{

src/ServiceManagement/StorSimple/Commands.StorSimple/Commands.StorSimple.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@
8888
</Reference>
8989
<Reference Include="System" />
9090
<Reference Include="System.Core" />
91-
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
91+
<Reference Include="System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
92+
<SpecificVersion>False</SpecificVersion>
93+
<HintPath>C:\Users\idcdlslb\Desktop\System.Management.Automation.dll</HintPath>
94+
</Reference>
9295
<Reference Include="System.Net" />
9396
<Reference Include="System.Net.Http" />
9497
<Reference Include="System.Net.Http.Extensions, Version=2.2.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)