|
7 | 7 | from argcomplete.completers import FilesCompleter
|
8 | 8 |
|
9 | 9 | from knack.arguments import CLIArgumentType
|
10 |
| -from knack.deprecation import Deprecated |
11 | 10 |
|
12 | 11 | from azure.cli.core.profiles import ResourceType
|
13 | 12 | from azure.cli.core.commands.parameters import get_datetime_type
|
@@ -42,7 +41,6 @@ def load_arguments(self, _):
|
42 | 41 | DedicatedHostLicenseTypes = self.get_models('DedicatedHostLicenseTypes')
|
43 | 42 | OrchestrationServiceNames, OrchestrationServiceStateAction = self.get_models('OrchestrationServiceNames', 'OrchestrationServiceStateAction', operation_group='virtual_machine_scale_sets')
|
44 | 43 | RebootSetting, VMGuestPatchClassificationWindows, VMGuestPatchClassificationLinux = self.get_models('VMGuestPatchRebootSetting', 'VMGuestPatchClassificationWindows', 'VMGuestPatchClassificationLinux')
|
45 |
| - GallerySharingPermissionTypes = self.get_models('GallerySharingPermissionTypes', operation_group='shared_galleries') |
46 | 44 | ReplicationMode = self.get_models('ReplicationMode', operation_group='gallery_image_versions')
|
47 | 45 | DiskControllerTypes = self.get_models('DiskControllerTypes', operation_group='virtual_machines')
|
48 | 46 |
|
@@ -1255,18 +1253,6 @@ def load_arguments(self, _):
|
1255 | 1253 | c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], help='gallery image definition')
|
1256 | 1254 | c.argument('gallery_image_version', options_list=['--gallery-image-version', '-e'], help='gallery image version')
|
1257 | 1255 |
|
1258 |
| - with self.argument_context('sig show') as c: |
1259 |
| - c.argument('gallery_name', options_list=['--gallery-name', '-r'], id_part='name', help='gallery name') |
1260 |
| - c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], id_part='child_name_1', help='gallery image definition') |
1261 |
| - |
1262 |
| - with self.argument_context('sig show') as c: |
1263 |
| - c.argument('select', help='The select expression to apply on the operation.') |
1264 |
| - c.argument('sharing_groups', action='store_true', help='The expand query option to query shared gallery groups') |
1265 |
| - |
1266 |
| - with self.argument_context('sig list-shared') as c: |
1267 |
| - c.argument('location', arg_type=get_location_type(self.cli_ctx)) |
1268 |
| - c.argument('shared_to', shared_to_type) |
1269 |
| - |
1270 | 1256 | for scope in ['sig share add', 'sig share remove']:
|
1271 | 1257 | with self.argument_context(scope) as c:
|
1272 | 1258 | c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name')
|
@@ -1316,28 +1302,6 @@ def load_arguments(self, _):
|
1316 | 1302 | c.argument('marker', arg_type=marker_type)
|
1317 | 1303 | c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.')
|
1318 | 1304 |
|
1319 |
| - with self.argument_context('sig create') as c: |
1320 |
| - c.argument('description', help='the description of the gallery') |
1321 |
| - |
1322 |
| - with self.argument_context('sig update') as c: |
1323 |
| - c.ignore('gallery') |
1324 |
| - |
1325 |
| - for scope in ['sig create', 'sig update']: |
1326 |
| - with self.argument_context(scope) as c: |
1327 |
| - c.argument('permissions', arg_type=get_enum_type(GallerySharingPermissionTypes), |
1328 |
| - arg_group='Sharing Profile', |
1329 |
| - min_api='2020-09-30', |
1330 |
| - help='This property allows you to specify the permission of sharing gallery.') |
1331 |
| - c.argument('soft_delete', arg_type=get_three_state_flag(), min_api='2021-03-01', |
1332 |
| - deprecate_info=Deprecated(self.cli_ctx, hide=True, message_func=lambda x: "Argument '--soft-delete' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus"), |
1333 |
| - help='Enable soft-deletion for resources in this gallery, ' |
1334 |
| - 'allowing them to be recovered within retention time.') |
1335 |
| - c.argument('publisher_uri', help='Community gallery publisher uri.') |
1336 |
| - c.argument('publisher_contact', options_list=['--publisher-email'], |
1337 |
| - help='Community gallery publisher contact email.') |
1338 |
| - c.argument('eula', help='Community gallery publisher eula.') |
1339 |
| - c.argument('public_name_prefix', help='Community gallery public name prefix.') |
1340 |
| - |
1341 | 1305 | with self.argument_context('sig image-definition create') as c:
|
1342 | 1306 | c.argument('description', help='the description of the gallery image definition')
|
1343 | 1307 | with self.argument_context('sig image-definition update') as c:
|
|
0 commit comments