This commit is contained in:
Burt Bielicki 2016-05-02 08:17:49 -07:00
Родитель b1261e0a50
Коммит e383dc3d1f
4 изменённых файлов: 11 добавлений и 18 удалений

Просмотреть файл

@ -164,13 +164,6 @@ build_operation("vm",
],
command_table, PARAMETER_ALIASES)
vm_param_aliases = {
'_artifacts_location': {
'name': '--artifacts_location',
'help': argparse.SUPPRESS,
}
}
build_operation('vm',
'vm',
lambda _: get_mgmt_service_client(VMClient, VMClientConfig),
@ -179,5 +172,4 @@ build_operation('vm',
LongRunningOperation(L('Creating virtual machine'), L('Virtual machine created')),
'create')
],
command_table,
vm_param_aliases)
command_table)

Просмотреть файл

@ -8,6 +8,7 @@
from .deployment_vm import DeploymentVM
from .template_link import TemplateLink
from .deployment_parameter_artifacts_location import DeploymentParameterArtifactsLocation
from .parameters_link import ParametersLink
from .provider_resource_type import ProviderResourceType
from .provider import Provider
@ -22,6 +23,7 @@ from .vm_creation_client_enums import (
__all__ = [
'DeploymentVM',
'TemplateLink',
'DeploymentParameterArtifactsLocation',
'ParametersLink',
'ProviderResourceType',
'Provider',

Просмотреть файл

@ -6,6 +6,7 @@
# regenerated.
# --------------------------------------------------------------------------
from .deployment_parameter_artifacts_location import DeploymentParameterArtifactsLocation
from msrest.serialization import Model
@ -41,9 +42,9 @@ class DeploymentVM(Model):
:type storage_account_type: str
:param os_disk_uri: URI for a custom VHD image.
:type os_disk_uri: str
:ivar _artifacts_location: Container URI of of the template. Default
value: "https://azuresdkci.blob.core.windows.net/templatehost/CreateVM" .
:vartype _artifacts_location: str
:ivar _artifacts_location:
:vartype _artifacts_location:
:class:`DeploymentParameterArtifactsLocation <mynamespace.models.DeploymentParameterArtifactsLocation>`
:param name: The VM resource name.
:type name: str
:param virtual_network_type: Whether to use an existing VNet or create a
@ -108,7 +109,7 @@ class DeploymentVM(Model):
_validation = {
'uri': {'required': True, 'constant': True},
'_artifacts_location': {'required': True, 'constant': True},
'_artifacts_location': {'constant': True},
'name': {'required': True},
'admin_password': {'required': True},
'admin_username': {'required': True},
@ -125,7 +126,7 @@ class DeploymentVM(Model):
'dns_name_for_public_ip': {'key': 'properties.parameters.dnsNameForPublicIP.value', 'type': 'str'},
'storage_account_type': {'key': 'properties.parameters.storageAccountType.value', 'type': 'str'},
'os_disk_uri': {'key': 'properties.parameters.osDiskUri.value', 'type': 'str'},
'_artifacts_location': {'key': 'properties.parameters._artifactsLocation.value', 'type': 'str'},
'_artifacts_location': {'key': 'properties.parameters._artifactsLocation', 'type': 'DeploymentParameterArtifactsLocation'},
'name': {'key': 'properties.parameters.name.value', 'type': 'str'},
'virtual_network_type': {'key': 'properties.parameters.virtualNetworkType.value', 'type': 'str'},
'admin_password': {'key': 'properties.parameters.adminPassword.value', 'type': 'str'},
@ -156,7 +157,7 @@ class DeploymentVM(Model):
uri = "https://azuresdkci.blob.core.windows.net/templatehost/CreateVM/azuredeploy.json"
_artifacts_location = "https://azuresdkci.blob.core.windows.net/templatehost/CreateVM"
_artifacts_location = DeploymentParameterArtifactsLocation()
mode = "Incremental"

Просмотреть файл

@ -198,8 +198,7 @@
},
"_artifactsLocation": {
"type": "object",
"$ref": "#/definitions/DeploymentParameter__artifactsLocation",
"x-ms-client-flatten": true
"$ref": "#/definitions/DeploymentParameter__artifactsLocation"
},
"name": {
"type": "object",
@ -401,7 +400,6 @@
"value": {
"type": "string",
"description": "Container URI of of the template.",
"x-ms-client-name": "_artifactsLocation",
"enum": [
"https://azuresdkci.blob.core.windows.net/templatehost/CreateVM"
]