1- using System . Collections . Generic ;
2- using System . Threading . Tasks ;
3- using Docker . DotNet . Models ;
4- using System . Threading ;
5-
6- namespace Docker . DotNet
7- {
8- public interface IVolumeOperations
9- {
10- /// <summary>
11- /// List volumes
12- /// </summary>
13- /// <remarks>
14- /// 200 - No error.
15- /// 500 - Server error.
16- /// </remarks>
17- Task < VolumesListResponse > ListAsync ( CancellationToken cancellationToken = default ( CancellationToken ) ) ;
18-
19- /// <summary>
20- /// List volumes
21- /// </summary>
22- /// <remarks>
23- /// 200 - No error.
24- /// 500 - Server error.
25- /// </remarks>
26- Task < VolumesListResponse > ListAsync ( VolumesListParameters parameters , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
27-
28- /// <summary>
29- /// Create a volume.
30- /// </summary>
31- /// <remarks>
32- /// 201 - The volume was created successfully.
33- /// 500 - Server error.
34- /// </remarks>
35- /// <param name="parameters">Volume parameters to create.</param>
36- Task < VolumeResponse > CreateAsync ( VolumesCreateParameters parameters , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
37-
38- /// <summary>
39- /// Inspect a volume.
40- /// </summary>
41- /// <remarks>
42- /// 200 - No error.
43- /// 404 - No such volume.
44- /// 500 - Server error.
45- /// </remarks>
46- /// <param name="name">Volume name or ID.</param>
47- Task < VolumeResponse > InspectAsync ( string name , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
48-
49- /// <summary>
50- /// Remove a volume.
51- ///
52- /// Instruct the driver to remove the volume.
53- /// </summary>
54- /// <remarks>
55- /// 204 - The volume was removed.
56- /// 404 - No such volume or volume driver.
57- /// 409 - Volume is in use and cannot be removed.
58- /// 500 - Server error.
59- /// </remarks>
60- /// <param name="name">Volume name or ID.</param>
61- /// <param name="force">Force the removal of the volume.</param>
62- Task RemoveAsync ( string name , bool ? force = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
63-
64- /// <summary>
65- /// Delete unused volumes.
66- /// </summary>
67- /// <remarks>
68- /// HTTP POST /volumes/prune
69- ///
70- /// 200 - No error.
71- /// 500 - Server error.
72- /// </remarks>
73- Task < VolumesPruneResponse > PruneAsync ( VolumesPruneParameters parameters = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
74- }
1+ using System . Collections . Generic ;
2+ using System . Threading . Tasks ;
3+ using Docker . DotNet . Models ;
4+ using System . Threading ;
5+
6+ namespace Docker . DotNet
7+ {
8+ public interface IVolumeOperations
9+ {
10+ /// <summary>
11+ /// List volumes
12+ /// </summary>
13+ /// <remarks>
14+ /// 200 - No error.
15+ /// 500 - Server error.
16+ /// </remarks>
17+ Task < VolumesListResponse > ListAsync ( CancellationToken cancellationToken = default ( CancellationToken ) ) ;
18+
19+ /// <summary>
20+ /// List volumes
21+ /// </summary>
22+ /// <remarks>
23+ /// 200 - No error.
24+ /// 500 - Server error.
25+ /// </remarks>
26+ Task < VolumesListResponse > ListAsync ( VolumesListParameters parameters , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
27+
28+ /// <summary>
29+ /// Create a volume.
30+ /// </summary>
31+ /// <remarks>
32+ /// 201 - The volume was created successfully.
33+ /// 500 - Server error.
34+ /// </remarks>
35+ /// <param name="parameters">Volume parameters to create.</param>
36+ Task < VolumeResponse > CreateAsync ( VolumesCreateParameters parameters , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
37+
38+ /// <summary>
39+ /// Inspect a volume.
40+ /// </summary>
41+ /// <remarks>
42+ /// 200 - No error.
43+ /// 404 - No such volume.
44+ /// 500 - Server error.
45+ /// </remarks>
46+ /// <param name="name">Volume name or ID.</param>
47+ Task < VolumeResponse > InspectAsync ( string name , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
48+
49+ /// <summary>
50+ /// Remove a volume.
51+ ///
52+ /// Instruct the driver to remove the volume.
53+ /// </summary>
54+ /// <remarks>
55+ /// 204 - The volume was removed.
56+ /// 404 - No such volume or volume driver.
57+ /// 409 - Volume is in use and cannot be removed.
58+ /// 500 - Server error.
59+ /// </remarks>
60+ /// <param name="name">Volume name or ID.</param>
61+ /// <param name="force">Force the removal of the volume.</param>
62+ Task RemoveAsync ( string name , bool ? force = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
63+
64+ /// <summary>
65+ /// Delete unused volumes.
66+ /// </summary>
67+ /// <remarks>
68+ /// HTTP POST /volumes/prune
69+ ///
70+ /// 200 - No error.
71+ /// 500 - Server error.
72+ /// </remarks>
73+ Task < VolumesPruneResponse > PruneAsync ( VolumesPruneParameters parameters = null , CancellationToken cancellationToken = default ( CancellationToken ) ) ;
74+ }
7575}
0 commit comments