Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] compute/resource-manager #2487

Merged
merged 30 commits into from
Jul 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6b9fb8c
Generated from c0def97e9fc1e839db7727fd31c2f583f6cf04d6 (#2486)
AutorestCI Apr 27, 2018
f434626
Generated from 8fe96075f82faeec0c0e316e0dd1a1c0ee77e376 (#2501)
AutorestCI May 2, 2018
755e121
[AutoPR compute/resource-manager] added autoOSUpgradePolicy to Upgrad…
AutorestCI May 8, 2018
eee2ad2
Generated from 87e0684ac67bc015bf82c1f1227093265c2e1233 (#2562)
AutorestCI May 17, 2018
85f3a39
Generated from 7014b952af241255afcf4e2b620cfd40737a3ea1 (#2580)
AutorestCI May 21, 2018
7404489
[AutoPR compute/resource-manager] Added the swagger file for the new …
AutorestCI May 23, 2018
6d22b90
Generated from 4abedb1c096796557fdd029401f3d317f99c7f61 (#2664)
AutorestCI May 31, 2018
e54191c
Generated from a2f275e122829ab63c18494dbaae5a1e9ef6e81c (#2673)
AutorestCI Jun 1, 2018
2bcc242
[AutoPR compute/resource-manager] [Compute] Fix List VM Extension API…
AutorestCI Jun 2, 2018
9c49b8d
Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/2487
AutorestCI Jun 4, 2018
f1235da
Generated from 41175e4e605bb5ed0329cdfa91ae14cfbd6a6739 (#2829)
AutorestCI Jun 30, 2018
2ce5c7e
Generated from 0a9ee3a2db06dff212c23f80c8b7bf1eec31613a (#2858)
AutorestCI Jul 2, 2018
946d5dc
Generated from c34f1fdacb2efacd4dccdd69213e83e4800ab76a (#2859)
AutorestCI Jul 2, 2018
15479ef
Generated from d4e9a10c23b602709da6ec04f970c7802ca60af3 (#2886)
AutorestCI Jul 6, 2018
82c4f0b
Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/2487
AutorestCI Jul 6, 2018
c2f5dce
Update version.py
lmazuel Jul 6, 2018
d75f3b0
Generated from 0e3b2e2f19773ecc8bb676f2d40cff4119b2a357 (#2890)
AutorestCI Jul 9, 2018
4c7955b
[AutoPR compute/resource-manager] Update RunCommand operation output …
AutorestCI Jul 10, 2018
595c28a
Generated from ac9f623bcc6d676360abc57b52b6ee8b0341ea18 (#2914)
AutorestCI Jul 11, 2018
1d5ff49
[AutoPR compute/resource-manager] Update VMSS planned maintenance des…
AutorestCI Jul 11, 2018
663e409
Generated from cb39de62c1bac51455eaf7ad3fbe8ac9ec84df58 (#2918)
AutorestCI Jul 13, 2018
8175b81
Generated from b59db77683f3a9c65d0edec17b5f05e458a68897 (#2942)
AutorestCI Jul 18, 2018
2a6625e
[AutoPR compute/resource-manager] RunCommands 2018-06-01 (#2935)
AutorestCI Jul 19, 2018
219480c
Generated from 8f17cd0bc03fad3ed3a5259ec37e9add84ff73a7 (#2965)
AutorestCI Jul 20, 2018
d26c3a1
Fix multi api client
lmazuel Jul 20, 2018
b45ffbe
Update Autorest min version for Compute
lmazuel Jul 20, 2018
b6c3396
Fixing tests for latest Compute
lmazuel Jul 20, 2018
dfcc1a5
Make it stable
lmazuel Jul 20, 2018
1ccf250
ChangeLog
lmazuel Jul 20, 2018
1321efb
Merge branch 'master' into restapi_auto_compute/resource-manager
lmazuel Jul 20, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 30 additions & 2 deletions azure-mgmt-compute/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
Release History
===============

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

**Features**

- Model VirtualMachineScaleSetIdentity has a new parameter user_assigned_identities
- Model VirtualMachineScaleSetIPConfiguration has a new parameter application_security_groups
- Model VirtualMachineScaleSetUpdateIPConfiguration has a new parameter application_security_groups
- Model VirtualMachineIdentity has a new parameter user_assigned_identities
- Model LinuxConfiguration has a new parameter provision_vm_agent
- Model OSProfile has a new parameter allow_extension_operations
- Added operation group GalleryImagesOperations
- Added operation group GalleryImageVersionsOperations
- Added operation group GalleriesOperations
- Model UpgradeOperationHistoricalStatusInfoProperties has a new parameter rollback_info
- Model UpgradePolicy has a new parameter auto_os_upgrade_policy
- Added operation AvailabilitySetsOperations.list_by_subscription

**Breaking changes**

- Model VirtualMachineScaleSetIdentity no longer has parameter identity_ids
- Model VirtualMachineScaleSetOSDisk no longer has parameter disk_size_gb
- Model VirtualMachineScaleSetVM no longer has parameter zones
- Model VirtualMachineScaleSetUpdateOSDisk no longer has parameter disk_size_gb
- Model VirtualMachineIdentity no longer has parameter identity_ids

New default API Version is now 2018-06-01

4.0.0rc2 (2018-04-17)
+++++++++++++++++++++

Expand Down Expand Up @@ -40,7 +68,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
Expand Down Expand Up @@ -216,7 +244,7 @@ to use the new Managed Disk feature instead of Storage.

New APIVersion for "container" 2016-09-30.

* several parameters (e.g. "username") now dynamically check before REST calls validity
* several parameters (e.g. "username") now dynamically check before REST calls validity
against a regexp. Exception will be TypeError and not CloudError anymore.

0.31.0 (2016-11-01)
Expand Down
150 changes: 140 additions & 10 deletions azure-mgmt-compute/azure/mgmt/compute/compute_management_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -59,7 +59,7 @@ def __init__(
self.subscription_id = subscription_id


class ComputeManagementClient(object):
class ComputeManagementClient(SDKClient):
"""Compute Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -98,7 +98,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ComputeManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2015-06-15'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
from .virtual_machine_scale_set_instance_view_py3 import VirtualMachineScaleSetInstanceView
from .virtual_machine_scale_set_sku_capacity_py3 import VirtualMachineScaleSetSkuCapacity
from .virtual_machine_scale_set_sku_py3 import VirtualMachineScaleSetSku
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
from .virtual_machine_scale_set_vm_instance_view_py3 import VirtualMachineScaleSetVMInstanceView
from .virtual_machine_scale_set_vm_py3 import VirtualMachineScaleSetVM
from .api_error_base_py3 import ApiErrorBase
from .inner_error_py3 import InnerError
from .api_error_py3 import ApiError
Expand Down Expand Up @@ -156,8 +156,8 @@
from .virtual_machine_scale_set_instance_view import VirtualMachineScaleSetInstanceView
from .virtual_machine_scale_set_sku_capacity import VirtualMachineScaleSetSkuCapacity
from .virtual_machine_scale_set_sku import VirtualMachineScaleSetSku
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
from .virtual_machine_scale_set_vm_instance_view import VirtualMachineScaleSetVMInstanceView
from .virtual_machine_scale_set_vm import VirtualMachineScaleSetVM
from .api_error_base import ApiErrorBase
from .inner_error import InnerError
from .api_error import ApiError
Expand Down Expand Up @@ -256,8 +256,8 @@
'VirtualMachineScaleSetInstanceView',
'VirtualMachineScaleSetSkuCapacity',
'VirtualMachineScaleSetSku',
'VirtualMachineScaleSetVM',
'VirtualMachineScaleSetVMInstanceView',
'VirtualMachineScaleSetVM',
'ApiErrorBase',
'InnerError',
'ApiError',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class AvailabilitySet(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class NetworkInterfaceReference(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class VirtualMachineCaptureResult(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class VirtualMachineExtensionImage(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class VirtualMachineExtension(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .update_resource import UpdateResource
from .update_resource_py3 import UpdateResource


class VirtualMachineExtensionUpdate(UpdateResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .virtual_machine_image_resource import VirtualMachineImageResource
from .virtual_machine_image_resource_py3 import VirtualMachineImageResource


class VirtualMachineImage(VirtualMachineImageResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class VirtualMachineImageResource(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class VirtualMachine(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class VirtualMachineScaleSetExtension(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class VirtualMachineScaleSetIPConfiguration(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .sub_resource import SubResource
from .sub_resource_py3 import SubResource


class VirtualMachineScaleSetNetworkConfiguration(SubResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class VirtualMachineScaleSet(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class VirtualMachineScaleSetVM(Resource):
:vartype latest_model_applied: bool
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
~azure.mgmt.compute.v2015_06_15.models.VirtualMachineInstanceView
~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceView
:param hardware_profile: Specifies the hardware settings for the virtual
machine.
:type hardware_profile:
Expand Down Expand Up @@ -118,7 +118,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_id': {'key': 'instanceId', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'Sku'},
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class VirtualMachineScaleSetVM(Resource):
Expand Down Expand Up @@ -39,7 +39,7 @@ class VirtualMachineScaleSetVM(Resource):
:vartype latest_model_applied: bool
:ivar instance_view: The virtual machine instance view.
:vartype instance_view:
~azure.mgmt.compute.v2015_06_15.models.VirtualMachineInstanceView
~azure.mgmt.compute.v2015_06_15.models.VirtualMachineScaleSetVMInstanceView
:param hardware_profile: Specifies the hardware settings for the virtual
machine.
:type hardware_profile:
Expand Down Expand Up @@ -118,7 +118,7 @@ class VirtualMachineScaleSetVM(Resource):
'instance_id': {'key': 'instanceId', 'type': 'str'},
'sku': {'key': 'sku', 'type': 'Sku'},
'latest_model_applied': {'key': 'properties.latestModelApplied', 'type': 'bool'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineInstanceView'},
'instance_view': {'key': 'properties.instanceView', 'type': 'VirtualMachineScaleSetVMInstanceView'},
'hardware_profile': {'key': 'properties.hardwareProfile', 'type': 'HardwareProfile'},
'storage_profile': {'key': 'properties.storageProfile', 'type': 'StorageProfile'},
'os_profile': {'key': 'properties.osProfile', 'type': 'OSProfile'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def create_or_update(

# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
Expand All @@ -86,9 +87,8 @@ def create_or_update(
body_content = self._serialize.body(parameters, 'AvailabilitySet')

# Construct and send request
request = self._client.put(url, query_parameters)
response = self._client.send(
request, header_parameters, body_content, stream=False, **operation_config)
request = self._client.put(url, query_parameters, header_parameters, body_content)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -140,7 +140,7 @@ def delete(

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -149,8 +149,8 @@ def delete(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.delete(url, query_parameters)
response = self._client.send(request, header_parameters, stream=False, **operation_config)
request = self._client.delete(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200, 204]:
exp = CloudError(response)
Expand Down Expand Up @@ -202,7 +202,7 @@ def get(

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -211,8 +211,8 @@ def get(
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -268,7 +268,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -277,9 +277,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down Expand Up @@ -340,7 +339,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -349,9 +348,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def internal_paging(next_link=None, raw=False):

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
header_parameters['Accept'] = 'application/json'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
Expand All @@ -85,9 +85,8 @@ def internal_paging(next_link=None, raw=False):
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)
request = self._client.get(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200]:
exp = CloudError(response)
Expand Down
Loading