diff --git a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs index 06c000ab..38309c07 100644 --- a/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs +++ b/src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs @@ -10,7 +10,7 @@ public class ClusterVolumeSpec // (volume.ClusterVolumeSpec) public string Group { get; set; } [DataMember(Name = "AccessMode", EmitDefaultValue = false)] - public AccessMode AccessMode { get; set; } + public VolumeAccessMode AccessMode { get; set; } [DataMember(Name = "AccessibilityRequirements", EmitDefaultValue = false)] public TopologyRequirement AccessibilityRequirements { get; set; } diff --git a/src/Docker.DotNet/Models/AccessMode.Generated.cs b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs similarity index 90% rename from src/Docker.DotNet/Models/AccessMode.Generated.cs rename to src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs index bf5c6a6e..312d38d8 100644 --- a/src/Docker.DotNet/Models/AccessMode.Generated.cs +++ b/src/Docker.DotNet/Models/VolumeAccessMode.Generated.cs @@ -3,7 +3,7 @@ namespace Docker.DotNet.Models { [DataContract] - public class AccessMode // (volume.AccessMode) + public class VolumeAccessMode // (volume.AccessMode) { [DataMember(Name = "Scope", EmitDefaultValue = false)] public string Scope { get; set; } diff --git a/tools/specgen/specgen.go b/tools/specgen/specgen.go index 54f9be3e..65c8085a 100644 --- a/tools/specgen/specgen.go +++ b/tools/specgen/specgen.go @@ -71,9 +71,10 @@ var typesToDisambiguate = map[string]*CSModelType{ }, }, }, + typeToKey(reflect.TypeOf(volume.AccessMode{})): {Name: "VolumeAccessMode"}, typeToKey(reflect.TypeOf(volume.Info{})): {Name: "VolumeInfo"}, - typeToKey(reflect.TypeOf(volume.Topology{})): {Name: "VolumeTopology"}, typeToKey(reflect.TypeOf(volume.Secret{})): {Name: "VolumeSecret"}, + typeToKey(reflect.TypeOf(volume.Topology{})): {Name: "VolumeTopology"}, typeToKey(reflect.TypeOf(network.Task{})): {Name: "NetworkTask"}, typeToKey(reflect.TypeOf(registry.AuthenticateOKBody{})): {Name: "AuthResponse"}, typeToKey(reflect.TypeOf(registry.SearchResult{})): {Name: "ImageSearchResponse"},