@@ -20,10 +20,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
2020 * @var string[]
2121 */
2222 protected static $ modelTypes = [
23- 'imageType ' => '\Algolia\AlgoliaSearch\Model\Ingestion\DockerImageType ' ,
24- 'registry ' => '\Algolia\AlgoliaSearch\Model\Ingestion\DockerRegistry ' ,
2523 'image ' => 'string ' ,
26- 'version ' => 'string ' ,
2724 'configuration ' => 'object ' ,
2825 ];
2926
@@ -33,10 +30,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
3330 * @var string[]
3431 */
3532 protected static $ modelFormats = [
36- 'imageType ' => null ,
37- 'registry ' => null ,
3833 'image ' => null ,
39- 'version ' => null ,
4034 'configuration ' => null ,
4135 ];
4236
@@ -47,10 +41,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
4741 * @var string[]
4842 */
4943 protected static $ attributeMap = [
50- 'imageType ' => 'imageType ' ,
51- 'registry ' => 'registry ' ,
5244 'image ' => 'image ' ,
53- 'version ' => 'version ' ,
5445 'configuration ' => 'configuration ' ,
5546 ];
5647
@@ -60,10 +51,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
6051 * @var string[]
6152 */
6253 protected static $ setters = [
63- 'imageType ' => 'setImageType ' ,
64- 'registry ' => 'setRegistry ' ,
6554 'image ' => 'setImage ' ,
66- 'version ' => 'setVersion ' ,
6755 'configuration ' => 'setConfiguration ' ,
6856 ];
6957
@@ -73,10 +61,7 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
7361 * @var string[]
7462 */
7563 protected static $ getters = [
76- 'imageType ' => 'getImageType ' ,
77- 'registry ' => 'getRegistry ' ,
7864 'image ' => 'getImage ' ,
79- 'version ' => 'getVersion ' ,
8065 'configuration ' => 'getConfiguration ' ,
8166 ];
8267
@@ -94,18 +79,9 @@ class SourceDocker extends AbstractModel implements ModelInterface, \ArrayAccess
9479 */
9580 public function __construct (?array $ data = null )
9681 {
97- if (isset ($ data ['imageType ' ])) {
98- $ this ->container ['imageType ' ] = $ data ['imageType ' ];
99- }
100- if (isset ($ data ['registry ' ])) {
101- $ this ->container ['registry ' ] = $ data ['registry ' ];
102- }
10382 if (isset ($ data ['image ' ])) {
10483 $ this ->container ['image ' ] = $ data ['image ' ];
10584 }
106- if (isset ($ data ['version ' ])) {
107- $ this ->container ['version ' ] = $ data ['version ' ];
108- }
10985 if (isset ($ data ['configuration ' ])) {
11086 $ this ->container ['configuration ' ] = $ data ['configuration ' ];
11187 }
@@ -171,12 +147,6 @@ public function listInvalidProperties()
171147 {
172148 $ invalidProperties = [];
173149
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- }
180150 if (!isset ($ this ->container ['image ' ]) || null === $ this ->container ['image ' ]) {
181151 $ invalidProperties [] = "'image' can't be null " ;
182152 }
@@ -198,54 +168,6 @@ public function valid()
198168 return 0 === count ($ this ->listInvalidProperties ());
199169 }
200170
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-
249171 /**
250172 * Gets image.
251173 *
@@ -259,7 +181,7 @@ public function getImage()
259181 /**
260182 * Sets image.
261183 *
262- * @param string $image docker image name
184+ * @param string $image shortname of the image, as returned by the referential
263185 *
264186 * @return self
265187 */
@@ -270,30 +192,6 @@ public function setImage($image)
270192 return $ this ;
271193 }
272194
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-
297195 /**
298196 * Gets configuration.
299197 *
0 commit comments