@@ -160,13 +160,13 @@ def load_command_table(self, _):
160160 resource_deployment_sdk = CliCommandType (
161161 operations_tmpl = 'azure.mgmt.resource.resources.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 (
167167 operations_tmpl = 'azure.mgmt.resource.resources.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 (
@@ -350,7 +350,7 @@ def load_command_table(self, _):
350350 g .custom_show_command ('show' , 'get_deployment_operations' , client_factory = cf_deployment_operations )
351351
352352 # az deployment
353- with self .command_group ('deployment' , resource_deployment_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
353+ with self .command_group ('deployment' , resource_deployment_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
354354 g .custom_command ('list' , 'list_deployments_at_subscription_scope' , table_transformer = transform_deployments_list , deprecate_info = g .deprecate (redirect = 'deployment sub list' , hide = True ))
355355 g .custom_show_command ('show' , 'get_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub show' , hide = True ))
356356 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 +363,14 @@ def load_command_table(self, _):
363363 g .custom_wait_command ('wait' , 'get_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub wait' , hide = True ))
364364 g .custom_command ('cancel' , 'cancel_deployment_at_subscription_scope' , deprecate_info = g .deprecate (redirect = 'deployment sub cancel' , hide = True ))
365365
366- with self .command_group ('deployment operation' , resource_deployment_operation_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
366+ with self .command_group ('deployment operation' , resource_deployment_operation_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
367367 g .custom_command ('list' , 'list_deployment_operations_at_subscription_scope' ,
368368 deprecate_info = self .deprecate (redirect = 'deployment operation sub list' , hide = True ))
369369 g .custom_show_command ('show' , 'get_deployment_operations_at_subscription_scope' , client_factory = cf_deployment_operations ,
370370 deprecate_info = self .deprecate (redirect = 'deployment operation sub show' , hide = True ))
371371
372372 # 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 :
373+ with self .command_group ('deployment sub' , resource_deployment_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
374374 g .custom_command ('list' , 'list_deployments_at_subscription_scope' , table_transformer = transform_deployments_list )
375375 g .custom_show_command ('show' , 'get_deployment_at_subscription_scope' , table_transformer = transform_deployment )
376376 g .custom_command ('delete' , 'delete_deployment_at_subscription_scope' , supports_no_wait = True )
@@ -384,7 +384,7 @@ def load_command_table(self, _):
384384 g .custom_wait_command ('wait' , 'get_deployment_at_subscription_scope' )
385385 g .custom_command ('cancel' , 'cancel_deployment_at_subscription_scope' )
386386
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 :
387+ with self .command_group ('deployment operation sub' , resource_deployment_operation_sdk , min_api = '2018-05-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
388388 g .custom_command ('list' , 'list_deployment_operations_at_subscription_scope' )
389389 g .custom_show_command ('show' , 'get_deployment_operations_at_subscription_scope' , client_factory = cf_deployment_operations )
390390
@@ -441,7 +441,7 @@ def load_command_table(self, _):
441441 exception_handler = handle_template_based_exception )
442442
443443 # az deployment group
444- with self .command_group ('deployment group' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
444+ with self .command_group ('deployment group' , resource_deployment_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
445445 g .custom_command ('list' , 'list_deployments_at_resource_group' , table_transformer = transform_deployments_list )
446446 g .custom_show_command ('show' , 'get_deployment_at_resource_group' , table_transformer = transform_deployment )
447447 g .custom_command ('delete' , 'delete_deployment_at_resource_group' , supports_no_wait = True )
@@ -455,12 +455,12 @@ def load_command_table(self, _):
455455 g .custom_wait_command ('wait' , 'get_deployment_at_resource_group' )
456456 g .custom_command ('cancel' , 'cancel_deployment_at_resource_group' )
457457
458- with self .command_group ('deployment operation group' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_RESOURCES ) as g :
458+ with self .command_group ('deployment operation group' , resource_deployment_operation_sdk , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
459459 g .custom_command ('list' , 'list_deployment_operations_at_resource_group' )
460460 g .custom_show_command ('show' , 'get_deployment_operations_at_resource_group' , client_factory = cf_deployment_operations )
461461
462462 # 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 :
463+ with self .command_group ('deployment mg' , resource_deployment_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
464464 g .custom_command ('list' , 'list_deployments_at_management_group' , table_transformer = transform_deployments_list )
465465 g .custom_show_command ('show' , 'get_deployment_at_management_group' , table_transformer = transform_deployment )
466466 g .custom_command ('delete' , 'delete_deployment_at_management_group' , supports_no_wait = True )
@@ -474,12 +474,12 @@ def load_command_table(self, _):
474474 g .custom_wait_command ('wait' , 'get_deployment_at_management_group' )
475475 g .custom_command ('cancel' , 'cancel_deployment_at_management_group' )
476476
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 :
477+ with self .command_group ('deployment operation mg' , resource_deployment_operation_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
478478 g .custom_command ('list' , 'list_deployment_operations_at_management_group' )
479479 g .custom_show_command ('show' , 'get_deployment_operations_at_management_group' , client_factory = cf_deployment_operations )
480480
481481 # 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 :
482+ with self .command_group ('deployment tenant' , resource_deployment_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
483483 g .custom_command ('list' , 'list_deployments_at_tenant_scope' , table_transformer = transform_deployments_list )
484484 g .custom_show_command ('show' , 'get_deployment_at_tenant_scope' , table_transformer = transform_deployment )
485485 g .custom_command ('delete' , 'delete_deployment_at_tenant_scope' , supports_no_wait = True )
@@ -493,7 +493,7 @@ def load_command_table(self, _):
493493 g .custom_wait_command ('wait' , 'get_deployment_at_tenant_scope' )
494494 g .custom_command ('cancel' , 'cancel_deployment_at_tenant_scope' )
495495
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 :
496+ with self .command_group ('deployment operation tenant' , resource_deployment_operation_sdk , min_api = '2019-07-01' , resource_type = ResourceType .MGMT_RESOURCE_DEPLOYMENTS ) as g :
497497 g .custom_command ('list' , 'list_deployment_operations_at_tenant_scope' )
498498 g .custom_show_command ('show' , 'get_deployment_operations_at_tenant_scope' , client_factory = cf_deployment_operations )
499499
0 commit comments