public ProtectableItemContext(ServiceClientModel.WorkloadProtectableItem protectableItem, string containerName, ContainerType containerType) : base(containerType, protectableItem.BackupManagementType) { WorkloadType = ConversionUtils.GetPsWorkloadType( protectableItem.WorkloadType.ToString()); ContainerName = containerName; }
public ProtectableItemBase(ServiceClientModel.WorkloadProtectableItemResource workloadProtectableItemResource, string containerName, ContainerType containerType) : base(workloadProtectableItemResource.Properties, containerName, containerType) { ServiceClientModel.WorkloadProtectableItem protectableItem = workloadProtectableItemResource.Properties; Name = workloadProtectableItemResource.Name; Id = workloadProtectableItemResource.Id; }
/// <summary> /// Initializes a new instance of the WorkloadProtectableItemResource /// 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">WorkloadProtectableItemResource /// properties</param> public WorkloadProtectableItemResource(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), WorkloadProtectableItem properties = default(WorkloadProtectableItem)) : base(id, name, type, location, tags, eTag) { Properties = properties; CustomInit(); }