/// <summary> /// Create a new vmtemplate object. /// </summary> /// <param name="template_id">Initial value of the template_id property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="platform_id">Initial value of the platform_id property.</param> /// <param name="fullpath">Initial value of the fullpath property.</param> /// <param name="geosite_id">Initial value of the geosite_id property.</param> /// <param name="enabled">Initial value of the enabled property.</param> /// <param name="publishto">Initial value of the publishto property.</param> /// <param name="basename">Initial value of the basename property.</param> /// <param name="guestuser">Initial value of the guestuser property.</param> /// <param name="guestpw">Initial value of the guestpw property.</param> /// <param name="content_id">Initial value of the content_id property.</param> /// <param name="usage_id">Initial value of the usage_id property.</param> /// <param name="branch_id">Initial value of the branch_id property.</param> /// <param name="producttype_id">Initial value of the producttype_id property.</param> /// <param name="setuppackagetype">Initial value of the setuppackagetype property.</param> public static vmtemplate Createvmtemplate(global::System.Int64 template_id, global::System.String name, global::System.Int64 platform_id, global::System.String fullpath, global::System.Int32 geosite_id, global::System.Boolean enabled, global::System.String publishto, global::System.String basename, global::System.String guestuser, global::System.String guestpw, global::System.Int64 content_id, global::System.Int32 usage_id, global::System.Int64 branch_id, global::System.Int64 producttype_id, global::System.String setuppackagetype) { vmtemplate vmtemplate = new vmtemplate(); vmtemplate.template_id = template_id; vmtemplate.name = name; vmtemplate.platform_id = platform_id; vmtemplate.fullpath = fullpath; vmtemplate.geosite_id = geosite_id; vmtemplate.enabled = enabled; vmtemplate.publishto = publishto; vmtemplate.basename = basename; vmtemplate.guestuser = guestuser; vmtemplate.guestpw = guestpw; vmtemplate.content_id = content_id; vmtemplate.usage_id = usage_id; vmtemplate.branch_id = branch_id; vmtemplate.producttype_id = producttype_id; vmtemplate.setuppackagetype = setuppackagetype; return vmtemplate; }
/// <summary> /// Deprecated Method for adding a new object to the vmtemplates EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddTovmtemplates(vmtemplate vmtemplate) { base.AddObject("vmtemplates", vmtemplate); }