コード例 #1
0
        public PSDataBoxEdgeNetworkSetting(NetworkSettings networkSettings)
        {
            if (networkSettings == null)
            {
                throw new ArgumentNullException(nameof(networkSettings));
            }

            this.NetworkSettings = networkSettings;
            this.Id = networkSettings.Id;
            var dataBoxEdgeResourceIdentifier = new DataBoxEdgeResourceIdentifier(networkSettings.Id);

            this.ResourceGroupName = dataBoxEdgeResourceIdentifier.ResourceGroupName;
            this.DeviceName        = dataBoxEdgeResourceIdentifier.DeviceName;
            this.Name            = dataBoxEdgeResourceIdentifier.Name;
            this.NetworkAdapters =
                networkSettings.NetworkAdapters.Select(t =>
                                                       new PSDataBoxEdgeNetworkAdapter(this.DeviceName, t)).ToList();
        }
コード例 #2
0
 public PSDataBoxEdgeNetworkSetting()
 {
     NetworkSettings = new NetworkSettings();
 }
コード例 #3
0
 public PSStackEdgeNetworkSetting()
 {
     NetworkSettings = new NetworkSettings();
 }