autorest.az icon indicating copy to clipboard operation
autorest.az copied to clipboard

Will we remove custom function for GET, and DELETE, possibly LIST?

Open RodgeFu opened this issue 4 years ago • 1 comments

from: Jiashuo Li:

A quick question for AutoRest team. Will we remove custom function for GET, and DELETE, possibly LIST? The customization doesn't seem to be necessary.

RodgeFu avatar Mar 13 '20 04:03 RodgeFu

An exmaple: https://github.com/Azure/azure-cli/blob/117c7df07b0fd77d4897fcf7a797573be1c6ccab/src/azure-cli/azure/cli/command_modules/servicebus/commands.py#L117-L122

    with self.command_group('servicebus topic subscription rule', sb_rule_util, client_factory=rules_mgmt_client_factory) as g:
        g.custom_command('create', 'cli_rules_create')
        g.show_command('show', 'get')
        g.command('list', 'list_by_subscriptions')
        g.command('delete', 'delete')
        g.generic_update_command('update', custom_func_name='cli_rules_update')

jiasli avatar Mar 13 '20 04:03 jiasli