Example #1
0
        /// <summary>サーバにインタフェースを1つ増設し、それを取得します。
        ///
        /// <returns>増設されたインタフェース</returns>
        /// </summary>
        public Iface AddIface()
        {
            Model_Iface model = new Model_Iface(this._Client);
            Iface       res   = model.Create();

            res.ServerId = this._Id();
            return(res.Save());
        }
Example #2
0
 /// <summary>
 ///
 /// <param name="client" />
 /// </summary>
 internal API(Client client)
 {
     this._Client            = client;
     this._Product           = new Product(client);
     this._Facility          = new Facility(client);
     this._Icon              = new Model_Icon(client);
     this._Server            = new Model_Server(client);
     this._Disk              = new Model_Disk(client);
     this._Appliance         = new Model_Appliance(client);
     this._Archive           = new Model_Archive(client);
     this._IsoImage          = new Model_IsoImage(client);
     this._Iface             = new Model_Iface(client);
     this._Swytch            = new Model_Swytch(client);
     this._Router            = new Model_Router(client);
     this._Bridge            = new Model_Bridge(client);
     this._Ipv6Net           = new Model_Ipv6Net(client);
     this._Script            = new Model_Script(client);
     this._CommonServiceItem = new Model_CommonServiceItem(client);
     this._License           = new Model_License(client);
 }