@@ -20,10 +20,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
20
20
* @var string[]
21
21
*/
22
22
protected static $ modelTypes = [
23
- 'imageType ' => '\Algolia\AlgoliaSearch\Model\Ingestion\DockerImageType ' ,
24
- 'registry ' => '\Algolia\AlgoliaSearch\Model\Ingestion\DockerRegistry ' ,
25
23
'image ' => 'string ' ,
26
- 'version ' => 'string ' ,
27
24
'configuration ' => 'object ' ,
28
25
];
29
26
@@ -33,10 +30,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
33
30
* @var string[]
34
31
*/
35
32
protected static $ modelFormats = [
36
- 'imageType ' => null ,
37
- 'registry ' => null ,
38
33
'image ' => null ,
39
- 'version ' => null ,
40
34
'configuration ' => null ,
41
35
];
42
36
@@ -47,10 +41,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
47
41
* @var string[]
48
42
*/
49
43
protected static $ attributeMap = [
50
- 'imageType ' => 'imageType ' ,
51
- 'registry ' => 'registry ' ,
52
44
'image ' => 'image ' ,
53
- 'version ' => 'version ' ,
54
45
'configuration ' => 'configuration ' ,
55
46
];
56
47
@@ -60,10 +51,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
60
51
* @var string[]
61
52
*/
62
53
protected static $ setters = [
63
- 'imageType ' => 'setImageType ' ,
64
- 'registry ' => 'setRegistry ' ,
65
54
'image ' => 'setImage ' ,
66
- 'version ' => 'setVersion ' ,
67
55
'configuration ' => 'setConfiguration ' ,
68
56
];
69
57
@@ -73,10 +61,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
73
61
* @var string[]
74
62
*/
75
63
protected static $ getters = [
76
- 'imageType ' => 'getImageType ' ,
77
- 'registry ' => 'getRegistry ' ,
78
64
'image ' => 'getImage ' ,
79
- 'version ' => 'getVersion ' ,
80
65
'configuration ' => 'getConfiguration ' ,
81
66
];
82
67
@@ -94,18 +79,9 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
94
79
*/
95
80
public function __construct (?array $ data = null )
96
81
{
97
- if (isset ($ data ['imageType ' ])) {
98
- $ this ->container ['imageType ' ] = $ data ['imageType ' ];
99
- }
100
- if (isset ($ data ['registry ' ])) {
101
- $ this ->container ['registry ' ] = $ data ['registry ' ];
102
- }
103
82
if (isset ($ data ['image ' ])) {
104
83
$ this ->container ['image ' ] = $ data ['image ' ];
105
84
}
106
- if (isset ($ data ['version ' ])) {
107
- $ this ->container ['version ' ] = $ data ['version ' ];
108
- }
109
85
if (isset ($ data ['configuration ' ])) {
110
86
$ this ->container ['configuration ' ] = $ data ['configuration ' ];
111
87
}
@@ -171,12 +147,6 @@ public function listInvalidProperties()
171
147
{
172
148
$ invalidProperties = [];
173
149
174
- if (!isset ($ this ->container ['imageType ' ]) || null === $ this ->container ['imageType ' ]) {
175
- $ invalidProperties [] = "'imageType' can't be null " ;
176
- }
177
- if (!isset ($ this ->container ['registry ' ]) || null === $ this ->container ['registry ' ]) {
178
- $ invalidProperties [] = "'registry' can't be null " ;
179
- }
180
150
if (!isset ($ this ->container ['image ' ]) || null === $ this ->container ['image ' ]) {
181
151
$ invalidProperties [] = "'image' can't be null " ;
182
152
}
@@ -198,54 +168,6 @@ public function valid()
198
168
return 0 === count ($ this ->listInvalidProperties ());
199
169
}
200
170
201
- /**
202
- * Gets imageType.
203
- *
204
- * @return DockerImageType
205
- */
206
- public function getImageType ()
207
- {
208
- return $ this ->container ['imageType ' ] ?? null ;
209
- }
210
-
211
- /**
212
- * Sets imageType.
213
- *
214
- * @param DockerImageType $imageType imageType
215
- *
216
- * @return self
217
- */
218
- public function setImageType ($ imageType )
219
- {
220
- $ this ->container ['imageType ' ] = $ imageType ;
221
-
222
- return $ this ;
223
- }
224
-
225
- /**
226
- * Gets registry.
227
- *
228
- * @return DockerRegistry
229
- */
230
- public function getRegistry ()
231
- {
232
- return $ this ->container ['registry ' ] ?? null ;
233
- }
234
-
235
- /**
236
- * Sets registry.
237
- *
238
- * @param DockerRegistry $registry registry
239
- *
240
- * @return self
241
- */
242
- public function setRegistry ($ registry )
243
- {
244
- $ this ->container ['registry ' ] = $ registry ;
245
-
246
- return $ this ;
247
- }
248
-
249
171
/**
250
172
* Gets image.
251
173
*
@@ -259,7 +181,7 @@ public function getImage()
259
181
/**
260
182
* Sets image.
261
183
*
262
- * @param string $image docker image name
184
+ * @param string $image shortname of the image, as returned by the referential
263
185
*
264
186
* @return self
265
187
*/
@@ -270,30 +192,6 @@ public function setImage($image)
270
192
return $ this ;
271
193
}
272
194
273
- /**
274
- * Gets version.
275
- *
276
- * @return null|string
277
- */
278
- public function getVersion ()
279
- {
280
- return $ this ->container ['version ' ] ?? null ;
281
- }
282
-
283
- /**
284
- * Sets version.
285
- *
286
- * @param null|string $version docker image version
287
- *
288
- * @return self
289
- */
290
- public function setVersion ($ version )
291
- {
292
- $ this ->container ['version ' ] = $ version ;
293
-
294
- return $ this ;
295
- }
296
-
297
195
/**
298
196
* Gets configuration.
299
197
*
0 commit comments