@@ -278,7 +278,7 @@ def delete_third_party_resource_with_http_info(self, body, **kwargs):
278
278
_request_timeout = params .get ('_request_timeout' ),
279
279
collection_formats = collection_formats )
280
280
281
- def get_third_party_resource (self , namespace , name , fqdn , version , resource , ** kwargs ):
281
+ def get_third_party_resource (self , name , namespace , fqdn , version , resource , ** kwargs ):
282
282
"""
283
283
Gets a specific Resource
284
284
Returns a specific Resource in a namespace
@@ -288,12 +288,12 @@ def get_third_party_resource(self, namespace, name, fqdn, version, resource, **k
288
288
>>> def callback_function(response):
289
289
>>> pprint(response)
290
290
>>>
291
- >>> thread = api.get_third_party_resource(namespace, name , fqdn, version, resource, callback=callback_function)
291
+ >>> thread = api.get_third_party_resource(name, namespace , fqdn, version, resource, callback=callback_function)
292
292
293
293
:param callback function: The callback function
294
294
for asynchronous request. (optional)
295
- :param str namespace: The Resource's namespace (required)
296
295
:param str name: The Resource's name (required)
296
+ :param str namespace: The Resource's namespace (required)
297
297
:param str fqdn: The Third party Resource fqdn (required)
298
298
:param str version: The Third party Resource version (required)
299
299
:param str resource: The Resource type (required)
@@ -303,12 +303,12 @@ def get_third_party_resource(self, namespace, name, fqdn, version, resource, **k
303
303
"""
304
304
kwargs ['_return_http_data_only' ] = True
305
305
if kwargs .get ('callback' ):
306
- return self .get_third_party_resource_with_http_info (namespace , name , fqdn , version , resource , ** kwargs )
306
+ return self .get_third_party_resource_with_http_info (name , namespace , fqdn , version , resource , ** kwargs )
307
307
else :
308
- (data ) = self .get_third_party_resource_with_http_info (namespace , name , fqdn , version , resource , ** kwargs )
308
+ (data ) = self .get_third_party_resource_with_http_info (name , namespace , fqdn , version , resource , ** kwargs )
309
309
return data
310
310
311
- def get_third_party_resource_with_http_info (self , namespace , name , fqdn , version , resource , ** kwargs ):
311
+ def get_third_party_resource_with_http_info (self , name , namespace , fqdn , version , resource , ** kwargs ):
312
312
"""
313
313
Gets a specific Resource
314
314
Returns a specific Resource in a namespace
@@ -318,12 +318,12 @@ def get_third_party_resource_with_http_info(self, namespace, name, fqdn, version
318
318
>>> def callback_function(response):
319
319
>>> pprint(response)
320
320
>>>
321
- >>> thread = api.get_third_party_resource_with_http_info(namespace, name , fqdn, version, resource, callback=callback_function)
321
+ >>> thread = api.get_third_party_resource_with_http_info(name, namespace , fqdn, version, resource, callback=callback_function)
322
322
323
323
:param callback function: The callback function
324
324
for asynchronous request. (optional)
325
- :param str namespace: The Resource's namespace (required)
326
325
:param str name: The Resource's name (required)
326
+ :param str namespace: The Resource's namespace (required)
327
327
:param str fqdn: The Third party Resource fqdn (required)
328
328
:param str version: The Third party Resource version (required)
329
329
:param str resource: The Resource type (required)
@@ -332,7 +332,7 @@ def get_third_party_resource_with_http_info(self, namespace, name, fqdn, version
332
332
returns the request thread.
333
333
"""
334
334
335
- all_params = ['namespace ' , 'name ' , 'fqdn' , 'version' , 'resource' ]
335
+ all_params = ['name ' , 'namespace ' , 'fqdn' , 'version' , 'resource' ]
336
336
all_params .append ('callback' )
337
337
all_params .append ('_return_http_data_only' )
338
338
all_params .append ('_preload_content' )
@@ -347,12 +347,12 @@ def get_third_party_resource_with_http_info(self, namespace, name, fqdn, version
347
347
)
348
348
params [key ] = val
349
349
del params ['kwargs' ]
350
- # verify the required parameter 'namespace' is set
351
- if ('namespace' not in params ) or (params ['namespace' ] is None ):
352
- raise ValueError ("Missing the required parameter `namespace` when calling `get_third_party_resource`" )
353
350
# verify the required parameter 'name' is set
354
351
if ('name' not in params ) or (params ['name' ] is None ):
355
352
raise ValueError ("Missing the required parameter `name` when calling `get_third_party_resource`" )
353
+ # verify the required parameter 'namespace' is set
354
+ if ('namespace' not in params ) or (params ['namespace' ] is None ):
355
+ raise ValueError ("Missing the required parameter `namespace` when calling `get_third_party_resource`" )
356
356
# verify the required parameter 'fqdn' is set
357
357
if ('fqdn' not in params ) or (params ['fqdn' ] is None ):
358
358
raise ValueError ("Missing the required parameter `fqdn` when calling `get_third_party_resource`" )
@@ -368,10 +368,10 @@ def get_third_party_resource_with_http_info(self, namespace, name, fqdn, version
368
368
369
369
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}' .replace ('{format}' , 'json' )
370
370
path_params = {}
371
- if 'namespace' in params :
372
- path_params ['namespace' ] = params ['namespace' ]
373
371
if 'name' in params :
374
372
path_params ['name' ] = params ['name' ]
373
+ if 'namespace' in params :
374
+ path_params ['namespace' ] = params ['namespace' ]
375
375
if 'fqdn' in params :
376
376
path_params ['fqdn' ] = params ['fqdn' ]
377
377
if 'version' in params :
@@ -522,7 +522,7 @@ def list_third_party_resource_with_http_info(self, fqdn, version, resource, **kw
522
522
_request_timeout = params .get ('_request_timeout' ),
523
523
collection_formats = collection_formats )
524
524
525
- def update_third_party_resource (self , namespace , name , fqdn , version , resource , body , ** kwargs ):
525
+ def update_third_party_resource (self , name , namespace , fqdn , version , resource , body , ** kwargs ):
526
526
"""
527
527
Update a Resource
528
528
Update the specified third party resource of the type specified
@@ -532,12 +532,12 @@ def update_third_party_resource(self, namespace, name, fqdn, version, resource,
532
532
>>> def callback_function(response):
533
533
>>> pprint(response)
534
534
>>>
535
- >>> thread = api.update_third_party_resource(namespace, name , fqdn, version, resource, body, callback=callback_function)
535
+ >>> thread = api.update_third_party_resource(name, namespace , fqdn, version, resource, body, callback=callback_function)
536
536
537
537
:param callback function: The callback function
538
538
for asynchronous request. (optional)
539
- :param str namespace: The Resource's namespace (required)
540
539
:param str name: The Resource's name (required)
540
+ :param str namespace: The Resource's namespace (required)
541
541
:param str fqdn: The Third party Resource fqdn (required)
542
542
:param str version: The Third party Resource version (required)
543
543
:param str resource: The Resource type (required)
@@ -548,12 +548,12 @@ def update_third_party_resource(self, namespace, name, fqdn, version, resource,
548
548
"""
549
549
kwargs ['_return_http_data_only' ] = True
550
550
if kwargs .get ('callback' ):
551
- return self .update_third_party_resource_with_http_info (namespace , name , fqdn , version , resource , body , ** kwargs )
551
+ return self .update_third_party_resource_with_http_info (name , namespace , fqdn , version , resource , body , ** kwargs )
552
552
else :
553
- (data ) = self .update_third_party_resource_with_http_info (namespace , name , fqdn , version , resource , body , ** kwargs )
553
+ (data ) = self .update_third_party_resource_with_http_info (name , namespace , fqdn , version , resource , body , ** kwargs )
554
554
return data
555
555
556
- def update_third_party_resource_with_http_info (self , namespace , name , fqdn , version , resource , body , ** kwargs ):
556
+ def update_third_party_resource_with_http_info (self , name , namespace , fqdn , version , resource , body , ** kwargs ):
557
557
"""
558
558
Update a Resource
559
559
Update the specified third party resource of the type specified
@@ -563,12 +563,12 @@ def update_third_party_resource_with_http_info(self, namespace, name, fqdn, vers
563
563
>>> def callback_function(response):
564
564
>>> pprint(response)
565
565
>>>
566
- >>> thread = api.update_third_party_resource_with_http_info(namespace, name , fqdn, version, resource, body, callback=callback_function)
566
+ >>> thread = api.update_third_party_resource_with_http_info(name, namespace , fqdn, version, resource, body, callback=callback_function)
567
567
568
568
:param callback function: The callback function
569
569
for asynchronous request. (optional)
570
- :param str namespace: The Resource's namespace (required)
571
570
:param str name: The Resource's name (required)
571
+ :param str namespace: The Resource's namespace (required)
572
572
:param str fqdn: The Third party Resource fqdn (required)
573
573
:param str version: The Third party Resource version (required)
574
574
:param str resource: The Resource type (required)
@@ -578,7 +578,7 @@ def update_third_party_resource_with_http_info(self, namespace, name, fqdn, vers
578
578
returns the request thread.
579
579
"""
580
580
581
- all_params = ['namespace ' , 'name ' , 'fqdn' , 'version' , 'resource' , 'body' ]
581
+ all_params = ['name ' , 'namespace ' , 'fqdn' , 'version' , 'resource' , 'body' ]
582
582
all_params .append ('callback' )
583
583
all_params .append ('_return_http_data_only' )
584
584
all_params .append ('_preload_content' )
@@ -593,12 +593,12 @@ def update_third_party_resource_with_http_info(self, namespace, name, fqdn, vers
593
593
)
594
594
params [key ] = val
595
595
del params ['kwargs' ]
596
- # verify the required parameter 'namespace' is set
597
- if ('namespace' not in params ) or (params ['namespace' ] is None ):
598
- raise ValueError ("Missing the required parameter `namespace` when calling `update_third_party_resource`" )
599
596
# verify the required parameter 'name' is set
600
597
if ('name' not in params ) or (params ['name' ] is None ):
601
598
raise ValueError ("Missing the required parameter `name` when calling `update_third_party_resource`" )
599
+ # verify the required parameter 'namespace' is set
600
+ if ('namespace' not in params ) or (params ['namespace' ] is None ):
601
+ raise ValueError ("Missing the required parameter `namespace` when calling `update_third_party_resource`" )
602
602
# verify the required parameter 'fqdn' is set
603
603
if ('fqdn' not in params ) or (params ['fqdn' ] is None ):
604
604
raise ValueError ("Missing the required parameter `fqdn` when calling `update_third_party_resource`" )
@@ -617,10 +617,10 @@ def update_third_party_resource_with_http_info(self, namespace, name, fqdn, vers
617
617
618
618
resource_path = '/apis/{fqdn}/{version}/namespaces/{namespace}/{resource}/{name}' .replace ('{format}' , 'json' )
619
619
path_params = {}
620
- if 'namespace' in params :
621
- path_params ['namespace' ] = params ['namespace' ]
622
620
if 'name' in params :
623
621
path_params ['name' ] = params ['name' ]
622
+ if 'namespace' in params :
623
+ path_params ['namespace' ] = params ['namespace' ]
624
624
if 'fqdn' in params :
625
625
path_params ['fqdn' ] = params ['fqdn' ]
626
626
if 'version' in params :
0 commit comments