-
Notifications
You must be signed in to change notification settings - Fork 0
{PrivateDNS} Fix linter error #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,17 +12,17 @@ | |
| def load_command_table(self, _): | ||
|
|
||
| network_privatedns_zone_sdk = CliCommandType( | ||
| operations_tmpl='azure.mgmt.privatedns.operations.private_zones_operations#PrivateZonesOperations.{}', | ||
| operations_tmpl='azure.mgmt.privatedns.operations#PrivateZonesOperations.{}', | ||
| client_factory=cf_privatedns_mgmt_zones | ||
| ) | ||
|
|
||
| network_privatedns_virtual_network_link_sdk = CliCommandType( | ||
| operations_tmpl='azure.mgmt.privatedns.operations.virtual_network_links_operations#VirtualNetworkLinksOperations.{}', | ||
| operations_tmpl='azure.mgmt.privatedns.operations#VirtualNetworkLinksOperations.{}', | ||
| client_factory=cf_privatedns_mgmt_virtual_network_links | ||
| ) | ||
|
|
||
| network_privatedns_record_set_sdk = CliCommandType( | ||
| operations_tmpl='azure.mgmt.privatedns.operations.record_sets_operations#RecordSetsOperations.{}', | ||
| operations_tmpl='azure.mgmt.privatedns.operations#RecordSetsOperations.{}', | ||
| client_factory=cf_privatedns_mgmt_record_sets | ||
| ) | ||
|
|
||
|
|
@@ -38,15 +38,15 @@ def load_command_table(self, _): | |
| g.custom_command('import', 'import_zone') | ||
| g.custom_command('export', 'export_zone') | ||
| g.custom_command('create', 'create_privatedns_zone', client_factory=cf_privatedns_mgmt_zones, supports_no_wait=True) | ||
| g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_privatedns_zone', supports_no_wait=True) | ||
| g.generic_update_command('update', setter_name='begin_update', custom_func_name='update_privatedns_zone', supports_no_wait=True) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use |
||
| g.wait_command('wait') | ||
|
|
||
| with self.command_group('network private-dns link vnet', network_privatedns_virtual_network_link_sdk) as g: | ||
| g.command('delete', 'begin_delete', confirmation=True, supports_no_wait=True) | ||
| g.show_command('show', 'get', table_transformer=transform_privatedns_link_table_output) | ||
| g.command('list', 'list', table_transformer=transform_privatedns_link_table_output) | ||
| g.custom_command('create', 'create_privatedns_link', client_factory=cf_privatedns_mgmt_virtual_network_links, supports_no_wait=True) | ||
| g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_privatedns_link', setter_type=network_privatedns_custom, supports_no_wait=True) | ||
| g.generic_update_command('update', setter_name='update_privatedns_link', setter_type=network_privatedns_custom, supports_no_wait=True) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No |
||
| g.wait_command('wait') | ||
|
|
||
| with self.command_group('network private-dns record-set') as g: | ||
|
|
@@ -56,22 +56,22 @@ def load_command_table(self, _): | |
| for record in supported_records: | ||
| with self.command_group('network private-dns record-set {}'.format(record), network_privatedns_record_set_sdk) as g: | ||
| g.show_command('show', 'get', transform=transform_privatedns_record_set_output, table_transformer=transform_privatedns_record_set_table_output) | ||
| g.command('delete', 'begin_delete', confirmation=True) | ||
| g.command('delete', 'delete', confirmation=True) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should not add Remove other unnecessary |
||
| g.custom_command('list', 'list_privatedns_record_set', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output, table_transformer=transform_privatedns_record_set_table_output) | ||
| g.custom_command('create', 'create_privatedns_record_set', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.custom_command('add-record', 'add_privatedns_{}_record'.format(record), client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.custom_command('remove-record', 'remove_privatedns_{}_record'.format(record), client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_privatedns_record_set', transform=transform_privatedns_record_set_output) | ||
| g.generic_update_command('update', setter_name='update', custom_func_name='update_privatedns_record_set', transform=transform_privatedns_record_set_output) | ||
|
|
||
| with self.command_group('network private-dns record-set soa', network_privatedns_record_set_sdk) as g: | ||
| g.show_command('show', 'get', transform=transform_privatedns_record_set_output, table_transformer=transform_privatedns_record_set_table_output) | ||
| g.custom_command('update', 'update_privatedns_soa_record', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
|
|
||
| with self.command_group('network private-dns record-set cname', network_privatedns_record_set_sdk) as g: | ||
| g.show_command('show', 'get', transform=transform_privatedns_record_set_output, table_transformer=transform_privatedns_record_set_table_output) | ||
| g.command('delete', 'begin_delete', confirmation=True) | ||
| g.command('delete', 'delete', confirmation=True) | ||
| g.custom_command('list', 'list_privatedns_record_set', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output, table_transformer=transform_privatedns_record_set_table_output) | ||
| g.custom_command('create', 'create_privatedns_record_set', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.custom_command('set-record', 'add_privatedns_cname_record', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.custom_command('remove-record', 'remove_privatedns_cname_record', client_factory=cf_privatedns_mgmt_record_sets, transform=transform_privatedns_record_set_output) | ||
| g.generic_update_command('update', setter_name='begin_create_or_update', custom_func_name='update_privatedns_record_set', transform=transform_privatedns_record_set_output) | ||
| g.generic_update_command('update', setter_name='update', custom_func_name='update_privatedns_record_set', transform=transform_privatedns_record_set_output) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the file name is changed from
private_zones_operationsto_private_zones_operations, so remove this unnecessary subitem in module path. You can find the name in SDK source code.