Example #1
0
        public Response<string> apply(string session, string opaque_ref, string host_ref)
        {
            Proxy_Host_patch host_patch = new Proxy_Host_patch();
            host_patch.applied = true;
            host_patch.host = host_ref;
            host_patch.name_label = "fake-patch";
            host_patch.name_description = "";
            host_patch.pool_patch = opaque_ref;
            host_patch.size = "0";
            host_patch.timestamp_applied = DateTime.Now;
            host_patch.uuid = Guid.NewGuid().ToString();
            host_patch.version = "1.0";

            new fakeHost_Patch(proxy).create(session, host_patch);
            proxy.SendModObject("pool_patch", opaque_ref);
            proxy.SendModObject("host", host_ref);
            return new Response<string>("");
        }
Example #2
0
 public Response<string> create(string session, Proxy_Host_patch patch)
 {
     return createObj("host_patch", patch);
 }