|
17 | 17 | from azure.batch.models import ( |
18 | 18 | CachingType, |
19 | 19 | BatchNodeDeallocationOption, |
20 | | - BatchNodeCommunicationMode, |
21 | 20 | StorageAccountType) |
22 | 21 |
|
23 | 22 | from azure.cli.core.commands.parameters import ( |
|
39 | 38 | keyvault_id, |
40 | 39 | metadata_item_format, |
41 | 40 | resource_file_format, |
42 | | - resource_tag_format, |
43 | 41 | duration_format, |
44 | 42 | storage_account_id, |
45 | 43 | validate_client_parameters, |
@@ -222,9 +220,6 @@ def load_arguments(self, _): |
222 | 220 | 'configured on the Pool. If omitted, or if you specify an' |
223 | 221 | 'empty collection, any existing metadata is removed from the' |
224 | 222 | 'Pool.') |
225 | | - c.argument('target_node_communication_mode', options_list=['--target-communication'], arg_group='Pool', |
226 | | - help="The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged.", |
227 | | - arg_type=get_enum_type(BatchNodeCommunicationMode)) |
228 | 223 | c.argument('start_task_command_line', arg_group='Pool: Start Task', |
229 | 224 | help='The command line of the start task. The command line does not run under a shell, and therefore cannot take advantage of shell features such as environment variable expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux.') |
230 | 225 | c.argument('start_task_wait_for_success', action='store_true', arg_group='Pool: Start Task', |
@@ -382,10 +377,6 @@ def load_arguments(self, _): |
382 | 377 |
|
383 | 378 | with self.argument_context('batch pool create') as c: |
384 | 379 | c.argument('json_file', help='The file containing pool create properties parameter specification in JSON(formatted to match REST API request body). If this parameter is specified, all \'Pool Create Properties Parameter Arguments\' are ignored. See https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs=HTTP#request-body') |
385 | | - c.argument('resource_tags', arg_group='Pool', type=resource_tag_format, help="User is able to specify resource tags for the pool. Any resource created for the pool will then also be tagged by the same resource tags") |
386 | | - c.argument('target_node_communication_mode', options_list=['--target-communication'], |
387 | | - help="The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged.", |
388 | | - arg_type=get_enum_type(BatchNodeCommunicationMode)) |
389 | 380 | c.argument('enable_accelerated_networking', arg_type=get_three_state_flag(), options_list=['--accelerated-networking'], arg_group="Pool: Network Configuration", |
390 | 381 | help='Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual-network/accelerated-networking-overview. Set true to enable.') |
391 | 382 | c.argument('caching', |
@@ -433,11 +424,6 @@ def load_arguments(self, _): |
433 | 424 | c.argument('prioritize_unhealthy_instances', arg_type=get_three_state_flag()) |
434 | 425 | c.argument('rollback_failed_instances_on_policy_breach', arg_type=get_three_state_flag()) |
435 | 426 |
|
436 | | - with self.argument_context('batch pool set') as c: |
437 | | - c.argument('target_node_communication_mode', options_list=['--target-communication'], |
438 | | - help="The desired node communication mode for the pool. If this element is present, it replaces the existing targetNodeCommunicationMode configured on the Pool. If omitted, any existing metadata is left unchanged.", |
439 | | - arg_type=get_enum_type(BatchNodeCommunicationMode)) |
440 | | - |
441 | 427 | with self.argument_context('batch task create') as c: |
442 | 428 | c.argument('json_file', type=file_type, help='The file containing the task(s) to create in JSON(formatted to match REST API request body). When submitting multiple tasks, accepts either an array of tasks or a TaskAddCollectionParamater. If this parameter is specified, all other parameters are ignored.', validator=validate_json_file, completer=FilesCompleter()) |
443 | 429 | c.argument('application_package_references', nargs='+', help='The space-separated list of IDs specifying the application packages to be installed. Space-separated application IDs with optional version in \'id[#version]\' format.', type=batch_application_package_reference_format) |
|
0 commit comments