Skip to content

Commit

Permalink
chore: Rename AccessMode to VolumeAccessMode
Browse files Browse the repository at this point in the history
  • Loading branch information
HofmeisterAn committed Nov 4, 2024
1 parent d2b2c1e commit 56326b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Docker.DotNet/Models/ClusterVolumeSpec.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
3 changes: 2 additions & 1 deletion tools/specgen/specgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 56326b5

Please sign in to comment.