|
12 | 12 | resource_group_name_type, |
13 | 13 | get_three_state_flag) |
14 | 14 |
|
15 | | -from azure.mgmt.apimanagement.models import (SkuType, VirtualNetworkType, Protocol, ApiType, ProductState) |
| 15 | +from azure.mgmt.apimanagement.models import (SkuType, VirtualNetworkType, Protocol, ApiType, ProductState, PolicyContentFormat) |
16 | 16 | from azure.cli.command_modules.apim.actions import (TemplateParameter) |
17 | 17 |
|
18 | 18 |
|
@@ -44,13 +44,6 @@ class ExportFormat(Enum): |
44 | 44 | WsdlUrl = "WsdlUrl" |
45 | 45 |
|
46 | 46 |
|
47 | | -class PolicyImportFormat(Enum): |
48 | | - RawXml = "rawxml" |
49 | | - RawXmlLink = "rawxml-link" |
50 | | - Xml = "xml" |
51 | | - XmlLink = "xml-link" |
52 | | - |
53 | | - |
54 | 47 | def load_arguments(self, _): |
55 | 48 |
|
56 | 49 | # REUSABLE ARGUMENT DEFINITIONS |
@@ -325,7 +318,7 @@ def load_arguments(self, _): |
325 | 318 | c.argument('api_id', arg_type=api_id) |
326 | 319 | c.argument('operation_id', help='Operation identifier within an API. Must be unique in the current API Management service instance.') |
327 | 320 | c.argument('specification_path', help='Contents of the Policy as defined by the format.') |
328 | | - c.argument('policy_format', arg_type=get_enum_type(PolicyImportFormat), help='Format of the policy content.') |
| 321 | + c.argument('policy_format', arg_type=get_enum_type(PolicyContentFormat), help='Format of the policy content.') |
329 | 322 | c.argument('policy_id', help='Policy identifier within an API. Must be unique in the current API context.') |
330 | 323 |
|
331 | 324 | with self.argument_context('apim policy show') as c: |
|
0 commit comments