зеркало из https://github.com/microsoft/azure-cli.git
update comments and a param alias
This commit is contained in:
Родитель
e383dc3d1f
Коммит
25493af1b3
|
@ -164,6 +164,12 @@ build_operation("vm",
|
|||
],
|
||||
command_table, PARAMETER_ALIASES)
|
||||
|
||||
vm_param_aliases = {
|
||||
'name': {
|
||||
'name': '--name -n'
|
||||
}
|
||||
}
|
||||
|
||||
build_operation('vm',
|
||||
'vm',
|
||||
lambda _: get_mgmt_service_client(VMClient, VMClientConfig),
|
||||
|
@ -172,4 +178,5 @@ build_operation('vm',
|
|||
LongRunningOperation(L('Creating virtual machine'), L('Virtual machine created')),
|
||||
'create')
|
||||
],
|
||||
command_table)
|
||||
command_table,
|
||||
vm_param_aliases)
|
||||
|
|
|
@ -190,7 +190,7 @@
|
|||
"type": "string",
|
||||
"defaultValue": "Standard_A2",
|
||||
"metadata": {
|
||||
"description": "The VM Size that should be created."
|
||||
"description": "The VM Size that should be created (e.g. Standard_A2)"
|
||||
}
|
||||
},
|
||||
"sshKeyPath": {
|
||||
|
|
|
@ -79,7 +79,7 @@ class DeploymentVM(Model):
|
|||
:type storage_account_name: str
|
||||
:param storage_redundancy_type: The VM storage type.
|
||||
:type storage_redundancy_type: str
|
||||
:param size: The VM Size that should be created.
|
||||
:param size: The VM Size that should be created (e.g. Standard_A2)
|
||||
:type size: str
|
||||
:param public_ip_address_type: Use a public IP Address for the VM Nic.
|
||||
(new, existing or none).
|
||||
|
|
|
@ -97,7 +97,7 @@ class VMOperations(object):
|
|||
:type storage_account_name: str
|
||||
:param storage_redundancy_type: The VM storage type.
|
||||
:type storage_redundancy_type: str
|
||||
:param size: The VM Size that should be created.
|
||||
:param size: The VM Size that should be created (e.g. Standard_A2)
|
||||
:type size: str
|
||||
:param public_ip_address_type: Use a public IP Address for the VM
|
||||
Nic. (new, existing or none).
|
||||
|
|
|
@ -560,7 +560,7 @@
|
|||
"properties": {
|
||||
"value": {
|
||||
"type": "string",
|
||||
"description": "The VM Size that should be created.",
|
||||
"description": "The VM Size that should be created (e.g. Standard_A2)",
|
||||
"x-ms-client-name": "size"
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче