Skip to content

Commit f9292b3

Browse files
authored
[FrontDoor] onboard Track2 SDK (Azure#3267)
1 parent f8b4a81 commit f9292b3

File tree

67 files changed

+20833
-10571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+20833
-10571
lines changed

src/front-door/HISTORY.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
1.0.14
7+
++++++
8+
* Migrate to Track2 SDK.
9+
10+
1.0.13
11+
++++++
12+
* 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.
13+
14+
1.0.12
15+
++++++
16+
* Add az network front-door check-name-availability command: Check the availability of a Front Door resource name.

src/front-door/azext_front_door/_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def load_arguments(self, _):
9292
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.')
9393

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

9797
with self.argument_context('network front-door check-name-availability') as c:
9898
c.argument('name', help='The resource name to be validated.')

src/front-door/azext_front_door/commands.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def load_command_table(self, _):
7070
with self.command_group('network front-door', frontdoor_sdk) as g:
7171
g.show_command('show')
7272
g.custom_command('create', 'create_front_door', supports_no_wait=True)
73-
g.command('delete', 'delete', supports_no_wait=True)
73+
g.command('delete', 'begin_delete', supports_no_wait=True)
7474
g.custom_command('list', 'list_front_doors')
75-
g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters')
76-
g.command('check-custom-domain', 'validate_custom_domain')
75+
g.generic_update_command('update', custom_func_name='update_front_door', setter_arg_name='front_door_parameters', setter_name="begin_create_or_update")
76+
g.custom_command('check-custom-domain', 'validate_custom_domain', client_factory=cf_frontdoor)
7777
g.custom_command('check-name-availability', 'check_front_door_name_availability', client_factory=cf_front_door_name_availability)
7878
g.wait_command('wait')
7979

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

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

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

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

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

@@ -147,10 +149,10 @@ def load_command_table(self, _):
147149
# region WafPolicy
148150
with self.command_group('network front-door waf-policy', waf_policy_sdk) as g:
149151
g.custom_command('create', 'create_waf_policy')
150-
g.command('delete', 'delete')
152+
g.command('delete', 'begin_delete')
151153
g.command('list', 'list')
152154
g.show_command('show')
153-
g.generic_update_command('update', custom_func_name='update_waf_policy')
155+
g.generic_update_command('update', custom_func_name='update_waf_policy', setter_name="begin_create_or_update")
154156

155157
with self.command_group('network front-door waf-policy managed-rules', waf_policy_sdk) as g:
156158
g.custom_command('add', 'add_azure_managed_rule_set')
@@ -188,7 +190,7 @@ def load_command_table(self, _):
188190
with self.command_group('network front-door rules-engine', rules_engine_sdk) as g:
189191
g.show_command('show', 'get')
190192
g.command('list', 'list_by_front_door')
191-
g.command('delete', 'delete')
193+
g.command('delete', 'begin_delete')
192194

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

0 commit comments

Comments
 (0)