@@ -158,15 +158,15 @@ def load_command_table(self, _):
158158 )
159159
160160 resource_deployment_sdk = CliCommandType (
161- operations_tmpl = 'azure.mgmt.resource.resources .operations#DeploymentsOperations.{}' ,
161+ operations_tmpl = 'azure.mgmt.resource.deployments .operations#DeploymentsOperations.{}' ,
162162 client_factory = cf_deployments ,
163- resource_type = ResourceType .MGMT_RESOURCE_RESOURCES
163+ resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS
164164 )
165165
166166 resource_deployment_operation_sdk = CliCommandType (
167- operations_tmpl = 'azure.mgmt.resource.resources .operations#DeploymentOperationsOperations.{}' ,
167+ operations_tmpl = 'azure.mgmt.resource.deployments .operations#DeploymentOperationsOperations.{}' ,
168168 client_factory = cf_deployment_operations ,
169- resource_type = ResourceType .MGMT_RESOURCE_RESOURCES
169+ resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS
170170 )
171171
172172 resource_policy_definitions_sdk = CliCommandType (
@@ -333,24 +333,23 @@ def load_command_table(self, _):
333333 g .command ('remove-value' , 'delete_value' )
334334
335335 # az group deployment
336- with self .command_group ('group deployment' , resource_deployment_sdk , deprecate_info = self .deprecate (redirect = 'deployment group' , hide = True )) as g :
336+ with self .command_group ('group deployment' , resource_deployment_sdk , resource_type = ResourceType . MGMT_RESOURCE_DEPLOYMENTS , deprecate_info = self .deprecate (redirect = 'deployment group' , hide = True )) as g :
337337 g .custom_command ('create' , 'deploy_arm_template' , supports_no_wait = True , validator = process_deployment_create_namespace ,
338338 table_transformer = transform_deployment , exception_handler = handle_template_based_exception )
339- g .command ('list' , 'list_by_resource_group' , table_transformer = transform_deployments_list , min_api = '2017-05-10' )
340- g .command ('list' , 'list' , table_transformer = transform_deployments_list , max_api = '2016-09-01' )
339+ g .command ('list' , 'list_by_resource_group' , table_transformer = transform_deployments_list )
341340 g .show_command ('show' , 'get' , table_transformer = transform_deployment )
342341 g .command ('delete' , 'begin_delete' , supports_no_wait = True )
343342 g .custom_command ('validate' , 'validate_arm_template' , table_transformer = deployment_validate_table_format , exception_handler = handle_template_based_exception )
344343 g .custom_command ('export' , 'export_deployment_as_template' )
345344 g .wait_command ('wait' )
346345 g .command ('cancel' , 'cancel' )
347346
348- with self .command_group ('group deployment operation' , resource_deployment_operation_sdk , deprecate_info = self .deprecate (redirect = 'deployment operation group' , hide = True )) as g :
347+ with self .command_group ('group deployment operation' , resource_deployment_operation_sdk , resource_type = ResourceType . MGMT_RESOURCE_DEPLOYMENTS , deprecate_info = self .deprecate (redirect = 'deployment operation group' , hide = True )) as g :
349348 g .command ('list' , 'list' )
350349 g .custom_show_command ('show' , 'get_deployment_operations' , client_factory = cf_deployment_operations )
351350
352351 # az deployment
353- with self .command_group ('deployment' , resource_deployment_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
352+ with self .command_group ('deployment' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
354353 g .custom_command ('list' , 'list_deployments_at_subscription_scope' , table_transformer = transform_deployments_list , deprecate_info = g .deprecate (redirect = 'deployment sub list' , hide = True ))
355354 g .custom_show_command ('show' , 'get_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub show' , hide = True ))
356355 g .custom_command ('delete' , 'delete_deployment_at_subscription_scope' , supports_no_wait = True , deprecate_info = g .deprecate (redirect = 'deployment sub delete' , hide = True ))
@@ -363,14 +362,14 @@ def load_command_table(self, _):
363362 g .custom_wait_command ('wait' , 'get_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub wait' , hide = True ))
364363 g .custom_command ('cancel' , 'cancel_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub cancel' , hide = True ))
365364
366- with self .command_group ('deployment operation' , resource_deployment_operation_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
365+ with self .command_group ('deployment operation' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
367366 g .custom_command ('list' , 'list_deployment_operations_at_subscription_scope' ,
368367 deprecate_info = self .deprecate (redirect = 'deployment operation sub list' , hide = True ))
369368 g .custom_show_command ('show' , 'get_deployment_operations_at_subscription_scope' , client_factory = cf_deployment_operations ,
370369 deprecate_info = self .deprecate (redirect = 'deployment operation sub show' , hide = True ))
371370
372371 # az deployment sub
373- with self .command_group ('deployment sub' , resource_deployment_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
372+ with self .command_group ('deployment sub' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
374373 g .custom_command ('list' , 'list_deployments_at_subscription_scope' , table_transformer = transform_deployments_list )
375374 g .custom_show_command ('show' , 'get_deployment_at_subscription_scope' , table_transformer = transform_deployment )
376375 g .custom_command ('delete' , 'delete_deployment_at_subscription_scope' , supports_no_wait = True )
@@ -379,12 +378,12 @@ def load_command_table(self, _):
379378 g .custom_command ('create' , 'deploy_arm_template_at_subscription_scope' , supports_no_wait = True , validator = process_deployment_create_namespace ,
380379 table_transformer = transform_deployment , exception_handler = handle_template_based_exception )
381380 g .custom_command ('what-if' , 'what_if_deploy_arm_template_at_subscription_scope' , validator = process_deployment_create_namespace ,
382- exception_handler = handle_template_based_exception , min_api = '2019-07-01' )
381+ exception_handler = handle_template_based_exception )
383382 g .custom_command ('export' , 'export_template_at_subscription_scope' )
384383 g .custom_wait_command ('wait' , 'get_deployment_at_subscription_scope' )
385384 g .custom_command ('cancel' , 'cancel_deployment_at_subscription_scope' )
386385
387- with self .command_group ('deployment operation sub' , resource_deployment_operation_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
386+ with self .command_group ('deployment operation sub' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
388387 g .custom_command ('list' , 'list_deployment_operations_at_subscription_scope' )
389388 g .custom_show_command ('show' , 'get_deployment_operations_at_subscription_scope' , client_factory = cf_deployment_operations )
390389
@@ -394,7 +393,7 @@ def load_command_table(self, _):
394393 g .custom_command ('show-log' , 'get_deployment_script_logs' )
395394 g .custom_command ('delete' , 'delete_deployment_script' , confirmation = True )
396395
397- with self .command_group ('ts' , resource_templatespecs_sdk , resource_type = ResourceType .MGMT_RESOURCE_TEMPLATESPECS , min_api = '2019-06-01-preview' ) as g :
396+ with self .command_group ('ts' , resource_templatespecs_sdk , resource_type = ResourceType .MGMT_RESOURCE_TEMPLATESPECS ) as g :
398397 g .custom_command ('create' , 'create_template_spec' , validator = process_ts_create_or_update_namespace )
399398 g .custom_command ('update' , 'update_template_spec' , validator = process_ts_create_or_update_namespace , confirmation = True )
400399 g .custom_command ('export' , 'export_template_spec' , validator = _validate_template_spec_out )
@@ -441,7 +440,7 @@ def load_command_table(self, _):
441440 exception_handler = handle_template_based_exception )
442441
443442 # az deployment group
444- with self .command_group ('deployment group' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
443+ with self .command_group ('deployment group' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
445444 g .custom_command ('list' , 'list_deployments_at_resource_group' , table_transformer = transform_deployments_list )
446445 g .custom_show_command ('show' , 'get_deployment_at_resource_group' , table_transformer = transform_deployment )
447446 g .custom_command ('delete' , 'delete_deployment_at_resource_group' , supports_no_wait = True )
@@ -450,17 +449,17 @@ def load_command_table(self, _):
450449 g .custom_command ('create' , 'deploy_arm_template_at_resource_group' , supports_no_wait = True , validator = process_deployment_create_namespace ,
451450 table_transformer = transform_deployment , exception_handler = handle_template_based_exception )
452451 g .custom_command ('what-if' , 'what_if_deploy_arm_template_at_resource_group' , validator = process_deployment_create_namespace ,
453- exception_handler = handle_template_based_exception , min_api = '2019-07-01' )
452+ exception_handler = handle_template_based_exception )
454453 g .custom_command ('export' , 'export_template_at_resource_group' )
455454 g .custom_wait_command ('wait' , 'get_deployment_at_resource_group' )
456455 g .custom_command ('cancel' , 'cancel_deployment_at_resource_group' )
457456
458- with self .command_group ('deployment operation group' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
457+ with self .command_group ('deployment operation group' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
459458 g .custom_command ('list' , 'list_deployment_operations_at_resource_group' )
460459 g .custom_show_command ('show' , 'get_deployment_operations_at_resource_group' , client_factory = cf_deployment_operations )
461460
462461 # az deployment mg
463- with self .command_group ('deployment mg' , resource_deployment_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
462+ with self .command_group ('deployment mg' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
464463 g .custom_command ('list' , 'list_deployments_at_management_group' , table_transformer = transform_deployments_list )
465464 g .custom_show_command ('show' , 'get_deployment_at_management_group' , table_transformer = transform_deployment )
466465 g .custom_command ('delete' , 'delete_deployment_at_management_group' , supports_no_wait = True )
@@ -469,17 +468,17 @@ def load_command_table(self, _):
469468 g .custom_command ('create' , 'deploy_arm_template_at_management_group' , supports_no_wait = True , validator = process_deployment_create_namespace ,
470469 table_transformer = transform_deployment , exception_handler = handle_template_based_exception )
471470 g .custom_command ('what-if' , 'what_if_deploy_arm_template_at_management_group' , validator = process_deployment_create_namespace ,
472- exception_handler = handle_template_based_exception , min_api = '2019-10-01' )
471+ exception_handler = handle_template_based_exception )
473472 g .custom_command ('export' , 'export_template_at_management_group' )
474473 g .custom_wait_command ('wait' , 'get_deployment_at_management_group' )
475474 g .custom_command ('cancel' , 'cancel_deployment_at_management_group' )
476475
477- with self .command_group ('deployment operation mg' , resource_deployment_operation_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
476+ with self .command_group ('deployment operation mg' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
478477 g .custom_command ('list' , 'list_deployment_operations_at_management_group' )
479478 g .custom_show_command ('show' , 'get_deployment_operations_at_management_group' , client_factory = cf_deployment_operations )
480479
481480 # az deployment tenant
482- with self .command_group ('deployment tenant' , resource_deployment_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
481+ with self .command_group ('deployment tenant' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
483482 g .custom_command ('list' , 'list_deployments_at_tenant_scope' , table_transformer = transform_deployments_list )
484483 g .custom_show_command ('show' , 'get_deployment_at_tenant_scope' , table_transformer = transform_deployment )
485484 g .custom_command ('delete' , 'delete_deployment_at_tenant_scope' , supports_no_wait = True )
@@ -488,12 +487,12 @@ def load_command_table(self, _):
488487 g .custom_command ('create' , 'deploy_arm_template_at_tenant_scope' , supports_no_wait = True , validator = process_deployment_create_namespace ,
489488 table_transformer = transform_deployment , exception_handler = handle_template_based_exception )
490489 g .custom_command ('what-if' , 'what_if_deploy_arm_template_at_tenant_scope' , validator = process_deployment_create_namespace ,
491- exception_handler = handle_template_based_exception , min_api = '2019-10-01' )
490+ exception_handler = handle_template_based_exception )
492491 g .custom_command ('export' , 'export_template_at_tenant_scope' )
493492 g .custom_wait_command ('wait' , 'get_deployment_at_tenant_scope' )
494493 g .custom_command ('cancel' , 'cancel_deployment_at_tenant_scope' )
495494
496- with self .command_group ('deployment operation tenant' , resource_deployment_operation_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
495+ with self .command_group ('deployment operation tenant' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
497496 g .custom_command ('list' , 'list_deployment_operations_at_tenant_scope' )
498497 g .custom_show_command ('show' , 'get_deployment_operations_at_tenant_scope' , client_factory = cf_deployment_operations )
499498
0 commit comments