static public DynamicRestRequest <ImageRlt> ReqCreateImage2(this RestClient client, string containerId, string repository, string tag, string author, string comment, ContainerArg containerArg) { return(client.ReqCreateImage(containerId, repository, tag, author, comment, containerArg).Clone <ImageRlt>()); }
static public DynamicRestRequest <ContainerRlt> ReqCreateContainer2(this RestClient client, string name, ContainerArg arg) { return(client.ReqCreateContainer(name, arg).Clone <ContainerRlt>()); }
/// <summary> /// Create a new image from a container's changes /// </summary> /// <param name="client"></param> /// <param name="containerId"></param> /// <param name="repository"></param> /// <param name="tag"></param> /// <param name="author"></param> /// <param name="comment"></param> /// <param name="containerArg"></param> /// <returns></returns> static public DynamicRestRequest <JObject> ReqCreateImage(this RestClient client, string containerId, string repository, string tag, string author, string comment, ContainerArg containerArg) { dynamic request = TakeRequest <JObject>("PostAction", null, "commit"); request.Parameter.container = containerId; request.Parameter.repo = repository; request.Parameter.tag = tag; request.Parameter.author = author; request.Parameter.comment = comment; request.JsonBody = containerArg; return(request); }
static public DynamicRestRequest <JObject> ReqCreateContainer(this RestClient client, string name, ContainerArg arg) { dynamic request = TakeRequest <JObject>("CreateContainer"); request.Parameter.name = name; request.JsonBody = arg; return(request); }