@@ -78,6 +78,8 @@ def __init__(
7878 profile : KnownProfiles = KnownProfiles .default ,
7979 ** kwargs : Any
8080 ):
81+ if api_version :
82+ kwargs .setdefault ('api_version' , api_version )
8183 self ._config = ContainerRegistryManagementClientConfiguration (credential , subscription_id , ** kwargs )
8284 self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
8385 super (ContainerRegistryManagementClient , self ).__init__ (
@@ -176,7 +178,7 @@ def agent_pools(self):
176178 else :
177179 raise ValueError ("API version {} does not have operation group 'agent_pools'" .format (api_version ))
178180 self ._config .api_version = api_version
179- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
181+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
180182
181183 @property
182184 def build_steps (self ):
@@ -190,7 +192,7 @@ def build_steps(self):
190192 else :
191193 raise ValueError ("API version {} does not have operation group 'build_steps'" .format (api_version ))
192194 self ._config .api_version = api_version
193- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
195+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
194196
195197 @property
196198 def build_tasks (self ):
@@ -204,7 +206,7 @@ def build_tasks(self):
204206 else :
205207 raise ValueError ("API version {} does not have operation group 'build_tasks'" .format (api_version ))
206208 self ._config .api_version = api_version
207- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
209+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
208210
209211 @property
210212 def builds (self ):
@@ -218,7 +220,7 @@ def builds(self):
218220 else :
219221 raise ValueError ("API version {} does not have operation group 'builds'" .format (api_version ))
220222 self ._config .api_version = api_version
221- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
223+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
222224
223225 @property
224226 def cache_rules (self ):
@@ -232,7 +234,7 @@ def cache_rules(self):
232234 else :
233235 raise ValueError ("API version {} does not have operation group 'cache_rules'" .format (api_version ))
234236 self ._config .api_version = api_version
235- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
237+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
236238
237239 @property
238240 def connected_registries (self ):
@@ -261,7 +263,7 @@ def connected_registries(self):
261263 else :
262264 raise ValueError ("API version {} does not have operation group 'connected_registries'" .format (api_version ))
263265 self ._config .api_version = api_version
264- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
266+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
265267
266268 @property
267269 def credential_sets (self ):
@@ -275,7 +277,7 @@ def credential_sets(self):
275277 else :
276278 raise ValueError ("API version {} does not have operation group 'credential_sets'" .format (api_version ))
277279 self ._config .api_version = api_version
278- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
280+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
279281
280282 @property
281283 def export_pipelines (self ):
@@ -307,7 +309,7 @@ def export_pipelines(self):
307309 else :
308310 raise ValueError ("API version {} does not have operation group 'export_pipelines'" .format (api_version ))
309311 self ._config .api_version = api_version
310- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
312+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
311313
312314 @property
313315 def import_pipelines (self ):
@@ -339,7 +341,7 @@ def import_pipelines(self):
339341 else :
340342 raise ValueError ("API version {} does not have operation group 'import_pipelines'" .format (api_version ))
341343 self ._config .api_version = api_version
342- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
344+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
343345
344346 @property
345347 def operations (self ):
@@ -386,7 +388,7 @@ def operations(self):
386388 else :
387389 raise ValueError ("API version {} does not have operation group 'operations'" .format (api_version ))
388390 self ._config .api_version = api_version
389- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
391+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
390392
391393 @property
392394 def pipeline_runs (self ):
@@ -418,7 +420,7 @@ def pipeline_runs(self):
418420 else :
419421 raise ValueError ("API version {} does not have operation group 'pipeline_runs'" .format (api_version ))
420422 self ._config .api_version = api_version
421- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
423+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
422424
423425 @property
424426 def private_endpoint_connections (self ):
@@ -456,7 +458,7 @@ def private_endpoint_connections(self):
456458 else :
457459 raise ValueError ("API version {} does not have operation group 'private_endpoint_connections'" .format (api_version ))
458460 self ._config .api_version = api_version
459- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
461+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
460462
461463 @property
462464 def registries (self ):
@@ -518,7 +520,7 @@ def registries(self):
518520 else :
519521 raise ValueError ("API version {} does not have operation group 'registries'" .format (api_version ))
520522 self ._config .api_version = api_version
521- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
523+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
522524
523525 @property
524526 def replications (self ):
@@ -562,7 +564,7 @@ def replications(self):
562564 else :
563565 raise ValueError ("API version {} does not have operation group 'replications'" .format (api_version ))
564566 self ._config .api_version = api_version
565- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
567+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
566568
567569 @property
568570 def runs (self ):
@@ -582,7 +584,7 @@ def runs(self):
582584 else :
583585 raise ValueError ("API version {} does not have operation group 'runs'" .format (api_version ))
584586 self ._config .api_version = api_version
585- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
587+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
586588
587589 @property
588590 def scope_maps (self ):
@@ -617,7 +619,7 @@ def scope_maps(self):
617619 else :
618620 raise ValueError ("API version {} does not have operation group 'scope_maps'" .format (api_version ))
619621 self ._config .api_version = api_version
620- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
622+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
621623
622624 @property
623625 def task_runs (self ):
@@ -631,7 +633,7 @@ def task_runs(self):
631633 else :
632634 raise ValueError ("API version {} does not have operation group 'task_runs'" .format (api_version ))
633635 self ._config .api_version = api_version
634- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
636+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
635637
636638 @property
637639 def tasks (self ):
@@ -651,7 +653,7 @@ def tasks(self):
651653 else :
652654 raise ValueError ("API version {} does not have operation group 'tasks'" .format (api_version ))
653655 self ._config .api_version = api_version
654- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
656+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
655657
656658 @property
657659 def tokens (self ):
@@ -686,7 +688,7 @@ def tokens(self):
686688 else :
687689 raise ValueError ("API version {} does not have operation group 'tokens'" .format (api_version ))
688690 self ._config .api_version = api_version
689- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
691+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
690692
691693 @property
692694 def webhooks (self ):
@@ -730,7 +732,7 @@ def webhooks(self):
730732 else :
731733 raise ValueError ("API version {} does not have operation group 'webhooks'" .format (api_version ))
732734 self ._config .api_version = api_version
733- return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )))
735+ return OperationClass (self ._client , self ._config , Serializer (self ._models_dict (api_version )), Deserializer (self ._models_dict (api_version )), api_version )
734736
735737 def close (self ):
736738 self ._client .close ()
0 commit comments