Ejemplo n.º 1
0
 public ItemContext(ServiceClientModel.ProtectedItem protectedItem,
                    string containerName, ContainerType containerType)
     : base(containerType, protectedItem.BackupManagementType)
 {
     WorkloadType  = ConversionUtils.GetPsWorkloadType(protectedItem.WorkloadType);
     ContainerName = containerName;
 }
Ejemplo n.º 2
0
 public ItemBase(ServiceClientModel.ProtectedItemResource protectedItemResource,
                 string containerName, ContainerType containerType)
     : base((ServiceClientModel.ProtectedItem)protectedItemResource.Properties, containerName, containerType)
 {
     ServiceClientModel.ProtectedItem protectedItem = (ServiceClientModel.ProtectedItem)protectedItemResource.Properties;
     Name = protectedItemResource.Name;
     Id   = protectedItemResource.Id;
     LatestRecoveryPoint = protectedItem.LastRecoveryPoint;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ProtectedItemResource class.
 /// </summary>
 /// <param name="id">Resource Id represents the complete path to the
 /// resource.</param>
 /// <param name="name">Resource name associated with the
 /// resource.</param>
 /// <param name="type">Resource type represents the complete path of
 /// the form Namespace/ResourceType/ResourceType/...</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="eTag">Optional ETag.</param>
 /// <param name="properties">ProtectedItemResource properties</param>
 public ProtectedItemResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string eTag = default(string), ProtectedItem properties = default(ProtectedItem))
     : base(id, name, type, location, tags, eTag)
 {
     Properties = properties;
     CustomInit();
 }