From 2bfd5ca49081970063cb880d54d6066453294072 Mon Sep 17 00:00:00 2001 From: dragonfly91 Date: Thu, 28 May 2015 16:56:28 +0530 Subject: [PATCH 1/2] Adding AzureBackupContainer model (initial draft). --- .../Models/AzureBackupContainer.cs | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs new file mode 100644 index 000000000000..9df507bef631 --- /dev/null +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs @@ -0,0 +1,42 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// 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, +// 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. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets +{ + /// + /// Represents Azure Backup Container + /// + public class AzureBackupContainer : AzureBackupVaultCmdletBase + { + public string ContainerType { get; set; } + + public string FriendlyName { get; set; } + + public string HealthStatus { get; set; } + + public string ParentContainerFriendlyName { get; set; } + + public string ParentContainerName { get; set; } + + public string Region { get; set; } + + public string RegistrationStatus { get; set; } + } +} From 028a9c438b96a9c03caffabad95aed72562f6f4d Mon Sep 17 00:00:00 2001 From: dragonfly91 Date: Thu, 28 May 2015 17:14:30 +0530 Subject: [PATCH 2/2] Added extra properties --- .../Commands.AzureBackup/Models/AzureBackupContainer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs index 9df507bef631..f6689e04d51c 100644 --- a/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs +++ b/src/ResourceManager/AzureBackup/Commands.AzureBackup/Models/AzureBackupContainer.cs @@ -31,6 +31,10 @@ public class AzureBackupContainer : AzureBackupVaultCmdletBase public string HealthStatus { get; set; } + public string InstanceId { get; set; } + + public string Name { get; set; } + public string ParentContainerFriendlyName { get; set; } public string ParentContainerName { get; set; }