예제 #1
0
        public PSDataBoxEdgeDeviceExtendedInfo(DataBoxEdgeDeviceExtendedInfo dataBoxEdgeDeviceExtendedInfo)
        {
            this.DataBoxEdgeDeviceExtendedInfo = dataBoxEdgeDeviceExtendedInfo ??
                                                 throw new ArgumentNullException("dataBoxEdgeDeviceExtendedInfo");
            this.Id = DataBoxEdgeDeviceExtendedInfo.Id;
            var resourceIdentifier = new DataBoxEdgeResourceIdentifier(dataBoxEdgeDeviceExtendedInfo.Id);

            this.ResourceGroupName = resourceIdentifier.ResourceGroupName;
            this.DeviceName        = resourceIdentifier.DeviceName;
            this.Name          = resourceIdentifier.DeviceName;
            this.EncryptionKey = DataBoxEdgeDeviceExtendedInfo.EncryptionKey;
            this.ResourceKey   = DataBoxEdgeDeviceExtendedInfo.ResourceKey;
        }
        public PSStackEdgeDeviceExtendedInfo(StackEdgeDeviceExtendedInfo stackEdgeDeviceExtendedInfo)
        {
            this.StackEdgeDeviceExtendedInfo = stackEdgeDeviceExtendedInfo ??
                                               throw new ArgumentNullException("stackEdgeDeviceExtendedInfo");
            this.Id = StackEdgeDeviceExtendedInfo.Id;
            var resourceIdentifier = new StackEdgeResourceIdentifier(stackEdgeDeviceExtendedInfo.Id);

            this.ResourceGroupName = resourceIdentifier.ResourceGroupName;
            this.DeviceName        = resourceIdentifier.DeviceName;
            this.Name          = resourceIdentifier.DeviceName;
            this.EncryptionKey = StackEdgeDeviceExtendedInfo.EncryptionKey;
            this.ResourceKey   = StackEdgeDeviceExtendedInfo.ResourceKey;
        }
예제 #3
0
 public PSDataBoxEdgeDeviceExtendedInfo()
 {
     DataBoxEdgeDeviceExtendedInfo = new DataBoxEdgeDeviceExtendedInfo();
 }
 public PSStackEdgeDeviceExtendedInfo()
 {
     StackEdgeDeviceExtendedInfo = new StackEdgeDeviceExtendedInfo();
 }