Skip to content
Merged
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 @@ -23,24 +23,51 @@ namespace Microsoft.Azure.Commands.AzureBackup.Cmdlets
/// <summary>
/// Represents Azure Backup Container
/// </summary>
public class AzureBackupContainer : AzureBackupVaultCmdletBase
public class AzureBackupContainer : AzureBackupVaultContextObject
{
/// <summary>
/// Type of the Azure Backup container
/// </summary>
public string ContainerType { get; set; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should think a way of letting user know the applicable values here.
Same for Status, HealthStatus.


/// <summary>
/// Friendly name for the Azure Backup container
/// </summary>
public string FriendlyName { get; set; }

/// <summary>
/// Status of health of the Azure Backup container
/// </summary>
public string HealthStatus { get; set; }

public string InstanceId { get; set; }
/// <summary>
/// Id of the Azure Backup Container
/// </summary>
public string ContainerId { get; set; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reasons, why ContainerId, and not InstanceId?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DataSource derives from Container object and it would also have a DataSourceId. This was achieved in BMS by using the Instance Id. But then, we would not be able to store the Container Id (if stored also as InstanceId) for this data source. That's why InstanceId was renamed to a more explicit name - ContainerId.


/// <summary>
/// Name of the Azure Backup container
/// </summary>
public string Name { get; set; }

/// <summary>
/// Friendly name of the parent container
/// </summary>
public string ParentContainerFriendlyName { get; set; }

/// <summary>
/// Name of the parent container
/// </summary>
public string ParentContainerName { get; set; }

/// <summary>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this specific to IdMgmt containers?

/// Region where this container is present
/// </summary>
public string Region { get; set; }

/// <summary>
/// Status of registration of the container
/// </summary>
public string RegistrationStatus { get; set; }
}
}