Open kairu-ms opened 3 years ago
Why do you need this feature?
Some resources are complicated. For example DataCollectionRuleResource
Is your feature request related to a problem? Please describe.
Currently Code Gen can generate commands in resource level:
with self.command_group('monitor data-collection rule', monitor_control_service_data_collection_rule, client_factory=cf_data_collection_rule) as g: g.custom_show_command('show', 'monitor_data_collection_rule_show') g.custom_command('delete', 'monitor_data_collection_rule_delete', confirmation=True) g.custom_command('list', 'data_collection_rules_list') g.custom_command('create', 'data_collection_rules_create') g.custom_command('update', 'data_collection_rules_update')
However we need to support generate commands for property level to operate complicated property of a resource:
with self.command_group('monitor data-collection rule data-flow', monitor_control_service_data_collection_rule, client_factory=cf_data_collection_rule) as g: g.custom_show_command( 'list', 'data_collection_rules_data_flows_list') g.custom_command( 'add', 'data_collection_rules_data_flows_add')
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Why do you need this feature?
Some resources are complicated. For example DataCollectionRuleResource
Is your feature request related to a problem? Please describe.
Currently Code Gen can generate commands in resource level:
However we need to support generate commands for property level to operate complicated property of a resource:
Describe the solution you'd like
Describe alternatives you've considered
Additional context