Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions azure-mgmt-compute/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

4.0.1 (2018-07-23)
++++++++++++++++++

**Bugfix**

- Fix incorrect import from azure.mgmt.compute.models

4.0.0 (2018-07-20)
++++++++++++++++++

Expand Down
4 changes: 2 additions & 2 deletions azure-mgmt-compute/azure/mgmt/compute/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import warnings

from .v2017_09_01.models import *
from .v2017_12_01.models import *
from .v2018_04_01.models import * # Note that this line is overriding some models of 2017-12-01. See link below for details.
from .v2018_04_01.models import *
from .v2018_06_01.models import * # Note that this line is overriding some models of 2018-04-01. See link below for details.

warnings.warn("Import models from this file is deprecated. See https://aka.ms/pysdkmodels",
DeprecationWarning)
2 changes: 1 addition & 1 deletion azure-mgmt-compute/azure/mgmt/compute/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "4.0.0"
VERSION = "4.0.1"
24 changes: 24 additions & 0 deletions azure-mgmt-compute/tests/test_mgmt_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,30 @@ def test_vm_sizes(self):
virtual_machine_sizes = list(self.compute_client.virtual_machine_sizes.list(location))
self.assertGreater(len(virtual_machine_sizes), 0)

def test_run_command(self):
# FIXME, test unfinished
run_commands_models = self.compute_client.virtual_machines.models

run_command_parameters = run_commands_models.RunCommandInput(
command_id="RunShellScript",
script=[
'echo $1 $2'
],
parameters=[
run_commands_models.RunCommandInputParameter(name="arg1", value="hello"),
run_commands_models.RunCommandInputParameter(name="arg2", value="world"),
]
)

run_command_parameters = {
'command_id': 'RunShellScript',
'script': [
'echo $arg1'
],
'parameters': [
{'name':"arg1", 'value':"hello world"}
]
}

#------------------------------------------------------------------------------
if __name__ == '__main__':
Expand Down