//--------------------------------------------------------------------------------------------------------------------- /// <summary> /// Initializes a new instance of the <see cref="Terradue.Cloud.XmlRpcVMTemplate"/> class. /// </summary> /// <param name="context">Context.</param> /// <param name="template">Template.</param> public OneVMTemplate (IfyContext context, VMTEMPLATE template, CloudProvider provider) : base (context) { this.RemoteId = template.ID; this.Name = template.NAME; this.Provider = provider; this.OneTemplate = template; }
//--------------------------------------------------------------------------------------------------------------------- /// <summary>Queries the cloud provider to get the vm template corresponding to the Id.</summary> public VirtualMachineTemplate GetTemplate(string remoteId) { VMTEMPLATE temp = this.XmlRpc.TemplateGetInfo(Int32.Parse(remoteId)); return(new OneVMTemplate(context, temp, this)); }