Skip to content

Commit

Permalink
[FrontDoor] onboard Track2 SDK (#3267)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bzhan authored Apr 15, 2021
1 parent f8b4a81 commit f9292b3
Show file tree
Hide file tree
Showing 67 changed files with 20,833 additions and 10,571 deletions.
16 changes: 16 additions & 0 deletions src/front-door/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. :changelog:
Release History
===============

1.0.14
++++++
* Migrate to Track2 SDK.

1.0.13
++++++
* az network front-door frontend-endpoint enable-https: allow secret-version to be optional to always use the 'Latest' version to support certificate auto-rotation.

1.0.12
++++++
* Add az network front-door check-name-availability command: Check the availability of a Front Door resource name.
2 changes: 1 addition & 1 deletion src/front-door/azext_front_door/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def load_arguments(self, _):
c.argument('route_type', arg_type=get_enum_type(RouteType), help='Route type to define how Front Door should handle requests for this route i.e. forward them to a backend or redirect the users to a different URL.')

with self.argument_context('network front-door purge-endpoint') as c:
c.argument('content_paths', nargs='+')
c.argument('content_paths', nargs='+', help="The path to the content to be purged. Can describe a file path or a wildcard directory.")

with self.argument_context('network front-door check-name-availability') as c:
c.argument('name', help='The resource name to be validated.')
Expand Down
16 changes: 9 additions & 7 deletions src/front-door/azext_front_door/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ def load_command_table(self, _):
with self.command_group('network front-door', frontdoor_sdk) as g:
g.show_command('show')
g.custom_command('create', 'create_front_door', supports_no_wait=True)
g.command('delete', 'delete', supports_no_wait=True)
g.command('delete', 'begin_delete', supports_no_wait=True)
g.custom_command('list', 'list_front_doors')
g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters')
g.command('check-custom-domain', 'validate_custom_domain')
g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters', setter_name="begin_create_or_update")
g.custom_command('check-custom-domain', 'validate_custom_domain', client_factory=cf_frontdoor)
g.custom_command('check-name-availability', 'check_front_door_name_availability', client_factory=cf_front_door_name_availability)
g.wait_command('wait')

with self.command_group('network front-door', fd_endpoint_sdk) as g:
g.command('purge-endpoint', 'purge_content')
g.custom_command('purge-endpoint', 'purge_endpoint', client_factory=cf_fd_endpoints)

property_map = {
'backend_pools': 'backend-pool',
Expand All @@ -99,6 +99,7 @@ def load_command_table(self, _):

with self.command_group('network front-door load-balancing', frontdoor_sdk) as g:
g.generic_update_command('update', custom_func_name='update_fd_load_balancing_settings',
setter_name="begin_create_or_update",
setter_arg_name='front_door_parameters',
child_collection_prop_name='load_balancing_settings')

Expand All @@ -119,6 +120,7 @@ def load_command_table(self, _):

with self.command_group('network front-door routing-rule', frontdoor_sdk) as g:
g.generic_update_command('update', custom_func_name='update_fd_routing_rule',
setter_name="begin_create_or_update",
setter_arg_name='front_door_parameters',
child_collection_prop_name='routing_rules')

Expand Down Expand Up @@ -147,10 +149,10 @@ def load_command_table(self, _):
# region WafPolicy
with self.command_group('network front-door waf-policy', waf_policy_sdk) as g:
g.custom_command('create', 'create_waf_policy')
g.command('delete', 'delete')
g.command('delete', 'begin_delete')
g.command('list', 'list')
g.show_command('show')
g.generic_update_command('update', custom_func_name='update_waf_policy')
g.generic_update_command('update', custom_func_name='update_waf_policy', setter_name="begin_create_or_update")

with self.command_group('network front-door waf-policy managed-rules', waf_policy_sdk) as g:
g.custom_command('add', 'add_azure_managed_rule_set')
Expand Down Expand Up @@ -188,7 +190,7 @@ def load_command_table(self, _):
with self.command_group('network front-door rules-engine', rules_engine_sdk) as g:
g.show_command('show', 'get')
g.command('list', 'list_by_front_door')
g.command('delete', 'delete')
g.command('delete', 'begin_delete')

with self.command_group('network front-door rules-engine rule', rules_engine_sdk) as g:
g.custom_command('create', 'create_rules_engine_rule')
Expand Down
Loading

0 comments on commit f9292b3

Please sign in to comment.