forked from dotnet/Docker.DotNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update to Docker v24.0.2 (dotnet#639)
* feat: Update to Docker v24.0.2 * chore: Generate nested swarm types with prefix * chore: Generate classes (types)
- Loading branch information
1 parent
4da1e18
commit 3441fb9
Showing
38 changed files
with
380 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class AccessMode // (volume.AccessMode) | ||
{ | ||
[DataMember(Name = "Scope", EmitDefaultValue = false)] | ||
public string Scope { get; set; } | ||
|
||
[DataMember(Name = "Sharing", EmitDefaultValue = false)] | ||
public string Sharing { get; set; } | ||
|
||
[DataMember(Name = "MountVolume", EmitDefaultValue = false)] | ||
public TypeMount MountVolume { get; set; } | ||
|
||
[DataMember(Name = "BlockVolume", EmitDefaultValue = false)] | ||
public TypeBlock BlockVolume { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class CapacityRange // (volume.CapacityRange) | ||
{ | ||
[DataMember(Name = "RequiredBytes", EmitDefaultValue = false)] | ||
public long RequiredBytes { get; set; } | ||
|
||
[DataMember(Name = "LimitBytes", EmitDefaultValue = false)] | ||
public long LimitBytes { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ClusterOptions // (mount.ClusterOptions) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ClusterVolume // (volume.ClusterVolume) | ||
{ | ||
public ClusterVolume() | ||
{ | ||
} | ||
|
||
public ClusterVolume(Meta Meta) | ||
{ | ||
if (Meta != null) | ||
{ | ||
this.Version = Meta.Version; | ||
this.CreatedAt = Meta.CreatedAt; | ||
this.UpdatedAt = Meta.UpdatedAt; | ||
} | ||
} | ||
|
||
[DataMember(Name = "ID", EmitDefaultValue = false)] | ||
public string ID { get; set; } | ||
|
||
[DataMember(Name = "Version", EmitDefaultValue = false)] | ||
public Version Version { get; set; } | ||
|
||
[DataMember(Name = "CreatedAt", EmitDefaultValue = false)] | ||
public DateTime CreatedAt { get; set; } | ||
|
||
[DataMember(Name = "UpdatedAt", EmitDefaultValue = false)] | ||
public DateTime UpdatedAt { get; set; } | ||
|
||
[DataMember(Name = "Spec", EmitDefaultValue = false)] | ||
public ClusterVolumeSpec Spec { get; set; } | ||
|
||
[DataMember(Name = "PublishStatus", EmitDefaultValue = false)] | ||
public IList<PublishStatus> PublishStatus { get; set; } | ||
|
||
[DataMember(Name = "Info", EmitDefaultValue = false)] | ||
public VolumeInfo Info { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class ClusterVolumeSpec // (volume.ClusterVolumeSpec) | ||
{ | ||
[DataMember(Name = "Group", EmitDefaultValue = false)] | ||
public string Group { get; set; } | ||
|
||
[DataMember(Name = "AccessMode", EmitDefaultValue = false)] | ||
public AccessMode AccessMode { get; set; } | ||
|
||
[DataMember(Name = "AccessibilityRequirements", EmitDefaultValue = false)] | ||
public TopologyRequirement AccessibilityRequirements { get; set; } | ||
|
||
[DataMember(Name = "CapacityRange", EmitDefaultValue = false)] | ||
public CapacityRange CapacityRange { get; set; } | ||
|
||
[DataMember(Name = "Secrets", EmitDefaultValue = false)] | ||
public IList<VolumeSecret> Secrets { get; set; } | ||
|
||
[DataMember(Name = "Availability", EmitDefaultValue = false)] | ||
public string Availability { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class NodeCSIInfo // (swarm.NodeCSIInfo) | ||
{ | ||
[DataMember(Name = "PluginName", EmitDefaultValue = false)] | ||
public string PluginName { get; set; } | ||
|
||
[DataMember(Name = "NodeID", EmitDefaultValue = false)] | ||
public string NodeID { get; set; } | ||
|
||
[DataMember(Name = "MaxVolumesPerNode", EmitDefaultValue = false)] | ||
public long MaxVolumesPerNode { get; set; } | ||
|
||
[DataMember(Name = "AccessibleTopology", EmitDefaultValue = false)] | ||
public Topology AccessibleTopology { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class PublishStatus // (volume.PublishStatus) | ||
{ | ||
[DataMember(Name = "NodeID", EmitDefaultValue = false)] | ||
public string NodeID { get; set; } | ||
|
||
[DataMember(Name = "State", EmitDefaultValue = false)] | ||
public string State { get; set; } | ||
|
||
[DataMember(Name = "PublishContext", EmitDefaultValue = false)] | ||
public IDictionary<string, string> PublishContext { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class Topology // (swarm.Topology) | ||
{ | ||
[DataMember(Name = "Segments", EmitDefaultValue = false)] | ||
public IDictionary<string, string> Segments { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class TopologyRequirement // (volume.TopologyRequirement) | ||
{ | ||
[DataMember(Name = "Requisite", EmitDefaultValue = false)] | ||
public IList<VolumeTopology> Requisite { get; set; } | ||
|
||
[DataMember(Name = "Preferred", EmitDefaultValue = false)] | ||
public IList<VolumeTopology> Preferred { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class TypeBlock // (volume.TypeBlock) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class TypeMount // (volume.TypeMount) | ||
{ | ||
[DataMember(Name = "FsType", EmitDefaultValue = false)] | ||
public string FsType { get; set; } | ||
|
||
[DataMember(Name = "MountFlags", EmitDefaultValue = false)] | ||
public IList<string> MountFlags { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Docker.DotNet.Models | ||
{ | ||
[DataContract] | ||
public class VolumeAttachment // (swarm.VolumeAttachment) | ||
{ | ||
[DataMember(Name = "ID", EmitDefaultValue = false)] | ||
public string ID { get; set; } | ||
|
||
[DataMember(Name = "Source", EmitDefaultValue = false)] | ||
public string Source { get; set; } | ||
|
||
[DataMember(Name = "Target", EmitDefaultValue = false)] | ||
public string Target { get; set; } | ||
} | ||
} |
Oops, something went wrong.