1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
1
8
export type DefinitionsDeployment = {
2
9
mode ?: string ;
3
10
replicas ?: number ;
@@ -22,7 +29,17 @@ export type DefinitionsDeployment = {
22
29
placement ?: {
23
30
constraints ?: string [ ] ;
24
31
} ;
25
- } & ( {
32
+ } & Deployment ;
33
+ export type Labels =
34
+ | {
35
+ /**
36
+ * This interface was referenced by `undefined`'s JSON-Schema definition
37
+ * via the `patternProperty` ".+".
38
+ */
39
+ [ k : string ] : string ;
40
+ }
41
+ | string [ ] ;
42
+ export type Deployment = {
26
43
mode ?: string ;
27
44
replicas ?: number ;
28
45
labels ?: Labels ;
@@ -46,16 +63,7 @@ export type DefinitionsDeployment = {
46
63
placement ?: {
47
64
constraints ?: string [ ] ;
48
65
} ;
49
- } | null ) ;
50
- export type Labels =
51
- | {
52
- /**
53
- * This interface was referenced by `undefined`'s JSON-Schema definition
54
- * via the `patternProperty` ".+".
55
- */
56
- [ k : string ] : string ;
57
- }
58
- | string [ ] ;
66
+ } | null ;
59
67
export type ListOrDict =
60
68
| {
61
69
/**
@@ -73,6 +81,7 @@ export type StringOrList = string | ListOfStrings;
73
81
*/
74
82
export type DefinitionsNetwork = {
75
83
driver ?: string ;
84
+ name ?: string ;
76
85
driver_opts ?: {
77
86
/**
78
87
* This interface was referenced by `undefined`'s JSON-Schema definition
@@ -93,8 +102,10 @@ export type DefinitionsNetwork = {
93
102
} ;
94
103
internal ?: boolean ;
95
104
labels ?: Labels ;
96
- } & ( {
105
+ } & Network ;
106
+ export type Network = {
97
107
driver ?: string ;
108
+ name ?: string ;
98
109
driver_opts ?: {
99
110
/**
100
111
* This interface was referenced by `undefined`'s JSON-Schema definition
@@ -115,7 +126,7 @@ export type DefinitionsNetwork = {
115
126
} ;
116
127
internal ?: boolean ;
117
128
labels ?: Labels ;
118
- } | null ) ;
129
+ } | null ;
119
130
/**
120
131
* This interface was referenced by `PropertiesVolumes`'s JSON-Schema definition
121
132
* via the `patternProperty` "^[a-zA-Z0-9._-]+$".
@@ -135,7 +146,8 @@ export type DefinitionsVolume = {
135
146
name ?: string ;
136
147
} ;
137
148
labels ?: Labels ;
138
- } & ( {
149
+ } & Volume ;
150
+ export type Volume = {
139
151
driver ?: string ;
140
152
driver_opts ?: {
141
153
/**
@@ -150,7 +162,7 @@ export type DefinitionsVolume = {
150
162
name ?: string ;
151
163
} ;
152
164
labels ?: Labels ;
153
- } | null ) ;
165
+ } | null ;
154
166
155
167
export interface ConfigSchemaV30Json {
156
168
version : string ;
0 commit comments