Skip to content

Commit 205d255

Browse files
authored
feat: Update specgen configuration to Docker Engine API 28.3.3 (#43)
1 parent 4a7daa0 commit 205d255

17 files changed

+165
-42
lines changed

src/Docker.DotNet/Models/CommitContainerChangesParameters.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public CommitContainerChangesParameters()
66
{
77
}
88

9-
public CommitContainerChangesParameters(Config Config)
9+
public CommitContainerChangesParameters(ContainerConfig Config)
1010
{
1111
if (Config != null)
1212
{

src/Docker.DotNet/Models/Config.Generated.cs renamed to src/Docker.DotNet/Models/ContainerConfig.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Docker.DotNet.Models
22
{
3-
public class Config // (container.Config)
3+
public class ContainerConfig // (container.Config)
44
{
55
[JsonPropertyName("Hostname")]
66
public string Hostname { get; set; }

src/Docker.DotNet/Models/ContainerExecCreateParameters.Generated.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public class ContainerExecCreateParameters // (main.ContainerExecCreateParameter
2323
[JsonPropertyName("AttachStdout")]
2424
public bool AttachStdout { get; set; }
2525

26-
[JsonPropertyName("Detach")]
27-
public bool Detach { get; set; }
28-
2926
[JsonPropertyName("DetachKeys")]
3027
public string DetachKeys { get; set; }
3128

@@ -37,5 +34,8 @@ public class ContainerExecCreateParameters // (main.ContainerExecCreateParameter
3734

3835
[JsonPropertyName("Cmd")]
3936
public IList<string> Cmd { get; set; }
37+
38+
[JsonPropertyName("Detach")]
39+
public bool Detach { get; set; }
4040
}
4141
}

src/Docker.DotNet/Models/ContainerInspectResponse.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public ContainerInspectResponse(ContainerJSONBase ContainerJSONBase)
105105
public IList<MountPoint> Mounts { get; set; }
106106

107107
[JsonPropertyName("Config")]
108-
public Config Config { get; set; }
108+
public ContainerConfig Config { get; set; }
109109

110110
[JsonPropertyName("NetworkSettings")]
111111
public NetworkSettings NetworkSettings { get; set; }

src/Docker.DotNet/Models/CreateContainerParameters.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public CreateContainerParameters()
66
{
77
}
88

9-
public CreateContainerParameters(Config Config)
9+
public CreateContainerParameters(ContainerConfig Config)
1010
{
1111
if (Config != null)
1212
{
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace Docker.DotNet.Models
2+
{
3+
public class DeviceInfo // (system.DeviceInfo)
4+
{
5+
[JsonPropertyName("Source")]
6+
public string Source { get; set; }
7+
8+
[JsonPropertyName("ID")]
9+
public string ID { get; set; }
10+
}
11+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
namespace Docker.DotNet.Models
2+
{
3+
public class DockerOCIImageConfig // (v1.DockerOCIImageConfig)
4+
{
5+
public DockerOCIImageConfig()
6+
{
7+
}
8+
9+
public DockerOCIImageConfig(ImageConfig ImageConfig, DockerOCIImageConfigExt DockerOCIImageConfigExt)
10+
{
11+
if (ImageConfig != null)
12+
{
13+
this.User = ImageConfig.User;
14+
this.ExposedPorts = ImageConfig.ExposedPorts;
15+
this.Env = ImageConfig.Env;
16+
this.Entrypoint = ImageConfig.Entrypoint;
17+
this.Cmd = ImageConfig.Cmd;
18+
this.Volumes = ImageConfig.Volumes;
19+
this.WorkingDir = ImageConfig.WorkingDir;
20+
this.Labels = ImageConfig.Labels;
21+
this.StopSignal = ImageConfig.StopSignal;
22+
}
23+
24+
if (DockerOCIImageConfigExt != null)
25+
{
26+
this.Healthcheck = DockerOCIImageConfigExt.Healthcheck;
27+
this.OnBuild = DockerOCIImageConfigExt.OnBuild;
28+
this.Shell = DockerOCIImageConfigExt.Shell;
29+
}
30+
}
31+
32+
[JsonPropertyName("User")]
33+
public string User { get; set; }
34+
35+
[JsonPropertyName("ExposedPorts")]
36+
public IDictionary<string, EmptyStruct> ExposedPorts { get; set; }
37+
38+
[JsonPropertyName("Env")]
39+
public IList<string> Env { get; set; }
40+
41+
[JsonPropertyName("Entrypoint")]
42+
public IList<string> Entrypoint { get; set; }
43+
44+
[JsonPropertyName("Cmd")]
45+
public IList<string> Cmd { get; set; }
46+
47+
[JsonPropertyName("Volumes")]
48+
public IDictionary<string, EmptyStruct> Volumes { get; set; }
49+
50+
[JsonPropertyName("WorkingDir")]
51+
public string WorkingDir { get; set; }
52+
53+
[JsonPropertyName("Labels")]
54+
public IDictionary<string, string> Labels { get; set; }
55+
56+
[JsonPropertyName("StopSignal")]
57+
public string StopSignal { get; set; }
58+
59+
[JsonPropertyName("Healthcheck")]
60+
public HealthcheckConfig Healthcheck { get; set; }
61+
62+
[JsonPropertyName("OnBuild")]
63+
public IList<string> OnBuild { get; set; }
64+
65+
[JsonPropertyName("Shell")]
66+
public IList<string> Shell { get; set; }
67+
}
68+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
namespace Docker.DotNet.Models
2+
{
3+
public class DockerOCIImageConfigExt // (v1.DockerOCIImageConfigExt)
4+
{
5+
[JsonPropertyName("Healthcheck")]
6+
public HealthcheckConfig Healthcheck { get; set; }
7+
8+
[JsonPropertyName("OnBuild")]
9+
public IList<string> OnBuild { get; set; }
10+
11+
[JsonPropertyName("Shell")]
12+
public IList<string> Shell { get; set; }
13+
}
14+
}

src/Docker.DotNet/Models/ImageBuildResponse.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace Docker.DotNet.Models
22
{
3-
public class ImageBuildResponse // (types.ImageBuildResponse)
3+
public class ImageBuildResponse // (build.ImageBuildResponse)
44
{
55
[JsonPropertyName("Body")]
66
public object Body { get; set; }
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
namespace Docker.DotNet.Models
2+
{
3+
public class ImageConfig // (v1.ImageConfig)
4+
{
5+
[JsonPropertyName("User")]
6+
public string User { get; set; }
7+
8+
[JsonPropertyName("ExposedPorts")]
9+
public IDictionary<string, EmptyStruct> ExposedPorts { get; set; }
10+
11+
[JsonPropertyName("Env")]
12+
public IList<string> Env { get; set; }
13+
14+
[JsonPropertyName("Entrypoint")]
15+
public IList<string> Entrypoint { get; set; }
16+
17+
[JsonPropertyName("Cmd")]
18+
public IList<string> Cmd { get; set; }
19+
20+
[JsonPropertyName("Volumes")]
21+
public IDictionary<string, EmptyStruct> Volumes { get; set; }
22+
23+
[JsonPropertyName("WorkingDir")]
24+
public string WorkingDir { get; set; }
25+
26+
[JsonPropertyName("Labels")]
27+
public IDictionary<string, string> Labels { get; set; }
28+
29+
[JsonPropertyName("StopSignal")]
30+
public string StopSignal { get; set; }
31+
}
32+
}

0 commit comments

Comments
 (0)