Skip to content

Commit

Permalink
New compute structure (#1643)
Browse files Browse the repository at this point in the history
* New compute structure

* Re-record MSI example with 2017-12-01

* Re-record Compute main tests with 2017-12-01

* Fix test_create_vm_implicit_md test

* Fix test_create_image_from_blob tests

* Update ChangeLog
  • Loading branch information
lmazuel authored Nov 27, 2017
1 parent 40fa36d commit 7748508
Show file tree
Hide file tree
Showing 225 changed files with 22,127 additions and 7,842 deletions.
24 changes: 24 additions & 0 deletions azure-mgmt-compute/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
Release History
===============

3.1.0 (2017-11-XX)
++++++++++++++++++

**Disclaimer**

This version supports Azure Profile. Meaning, you can specify specific API versions to support for each operation groups.

The default API versions of this package are now:
- 2017-03-30 for 'disks', 'virtual_machine_run_commands' and 'snapshots'
- 2017-09-01 for 'resource_skus'
- 2017-12-01 for everything else

**Python features**

- ComputeManagementClient has now a "profile" parameter, which is a dict from operation groups name to API version
- Operation groups now have access to their own models. For instance, assuming you have variable called "client",
you can access the models for this opeations groups (according to your loaded profiles) using
`client.virtual_machines.models`
- azure.mgmt.compute.models is deprecated. See https://aka.ms/pysdkmodels for details.

**Azure features**

- 'resource_skus' has improved 'location_info' field

3.0.1 (2017-09-26)
++++++++++++++++++

Expand Down
254 changes: 168 additions & 86 deletions azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion azure-mgmt-compute/azure/mgmt/compute/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .v2017_03_30.models import *
import warnings

from .v2017_03_30.models import *
from .v2017_09_01.models import *
from .v2017_12_01.models import * # Note that this line is overriding some models of 2017-03-30. See link below for details.

warnings.warn("Import models from this file is deprecated. See https://aka.ms/pysdkmodels",
DeprecationWarning)
133 changes: 45 additions & 88 deletions azure-mgmt-compute/azure/mgmt/compute/v2015_06_15/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,79 +42,28 @@
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest-core@2.0.4168",
"_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core"
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk",
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core",
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core",
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core",
"_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core"
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core",
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
"installationPath": "C:\\Users\\lmazuel\\.autorest",
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet"
},
"installationPath": "/root/.autorest"
},
{
"resolvedInfo": null,
"packageMetadata": {
"name": "@microsoft.azure/autorest.modeler",
"version": "2.0.21",
"dependencies": {
"dotnet-2.0.0": "^1.3.2"
},
"optionalDependencies": {},
"devDependencies": {
"coffee-script": "^1.11.1",
"dotnet-sdk-2.0.0": "^1.1.1",
"gulp": "^3.9.1",
"gulp-filter": "^5.0.0",
"gulp-line-ending-corrector": "^1.0.1",
"iced-coffee-script": "^108.0.11",
"marked": "^0.3.6",
"marked-terminal": "^2.0.0",
"moment": "^2.17.1",
"run-sequence": "*",
"shx": "^0.2.2",
"through2-parallel": "^0.1.3",
"yargs": "^8.0.2",
"yarn": "^1.0.2"
},
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest.modeler@2.0.21",
"_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler",
"_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
},
"installationPath": "/root/.autorest"
"installationPath": "C:\\Users\\lmazuel\\.autorest"
},
{
"resolvedInfo": null,
Expand Down Expand Up @@ -144,28 +93,28 @@
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"_shasum": "ca425289fa38a210d279729048a4a91673f09c67",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest.modeler@2.1.22",
"_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler"
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk",
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler",
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler",
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler",
"_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler"
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler",
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
"installationPath": "C:\\Users\\lmazuel\\.autorest",
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet"
},
"installationPath": "/root/.autorest"
"installationPath": "C:\\Users\\lmazuel\\.autorest"
},
{
"resolvedInfo": null,
Expand Down Expand Up @@ -197,29 +146,37 @@
"bundleDependencies": false,
"peerDependencies": {},
"deprecated": false,
"_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"_shasum": "e069166c16fd903c8e1fdf9395b433f3043cb6e3",
"_shrinkwrap": null,
"bin": null,
"_id": "@microsoft.azure/autorest.python@2.0.19",
"_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"_requested": {
"type": "directory",
"where": "/git-restapi",
"raw": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python"
"where": "C:\\Users\\lmazuel\\Git\\swagger-to-sdk",
"raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python",
"rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python",
"saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python"
},
"_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python",
"_where": "/root/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python"
"_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python",
"_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python"
},
"extensionManager": {
"installationPath": "/root/.autorest",
"dotnetPath": "/root/.dotnet"
"installationPath": "C:\\Users\\lmazuel\\.autorest",
"dotnetPath": "C:\\Users\\lmazuel\\.dotnet"
},
"installationPath": "/root/.autorest"
"installationPath": "C:\\Users\\lmazuel\\.autorest"
}
],
"autorest_bootstrap": {}
"autorest_bootstrap": {
"dependencies": {
"autorest": {
"version": "2.0.4166",
"from": "autorest",
"resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4166.tgz"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AvailabilitySetsOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class UsageOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class VirtualMachineExtensionImagesOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class VirtualMachineExtensionsOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class VirtualMachineImagesOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class VirtualMachineScaleSetVMsOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class VirtualMachineScaleSetsOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class VirtualMachineSizesOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class VirtualMachinesOperations(object):
:ivar api_version: Client Api Version. Constant value: "2015-06-15".
"""

models = models

def __init__(self, client, config, serializer, deserializer):

self._client = client
Expand Down
Loading

0 comments on commit 7748508

Please sign in to comment.