Skip to content

Commit

Permalink
[AutoPR] compute/resource-manager (#2487)
Browse files Browse the repository at this point in the history
* Generated from c0def97e9fc1e839db7727fd31c2f583f6cf04d6 (#2486)

updated OS Upgrade History API

(cherry picked from commit e784ecac207c88dda10fa0986609907486994913)

* Generated from 8fe96075f82faeec0c0e316e0dd1a1c0ee77e376 (#2501)

fixed formatting

* [AutoPR compute/resource-manager] added autoOSUpgradePolicy to UpgradePolicy (#2505)

* Generated from 57e4037bd66b30a7f95fda331085521b2d669c94

added autoOSUpgradePolicy

* Generated from 27752fd2417b688d4aba3bcde1ada9231659d208

added deafult value as false

* Generated from 27752fd2417b688d4aba3bcde1ada9231659d208

added deafult value as false

* Generated from 87e0684ac67bc015bf82c1f1227093265c2e1233 (#2562)

added older examples

* Generated from 7014b952af241255afcf4e2b620cfd40737a3ea1 (#2580)

Upgrade Compute API version to 2018-04-01 and Fix the response of all POST operation.

* [AutoPR compute/resource-manager] Added the swagger file for the new service Gallery. (#2563)

* Generated from b48862551b5e97eb40acb3da63e55522a9db566c

Added the swagger file for the new service Gallery.

* Generated from d2537a58b0496d8860759d47a9c344c19d217995

Gallery Python conf

* Generated from 29d0c5762aad64243a021fac44d65b8610304e4e

Fixed description for 202 response.

* Generated from 29d0c5762aad64243a021fac44d65b8610304e4e

Fixed description for 202 response.

* Generated from b74f3ee0fdca928bf92a7fdd2bcd17994deadca9

Changed the operationId to conform to naming convention.

* Generated from 664c041aeed346e4fdc3a2c8c29c1c59e7505b66

Fixed some typos.

* Generated from e7ab96432e0bfc7c49839ca5d1194ec1be0c23a9

Add default error response. Make provisioningInfo a enum type.

* Generated from c26feda2acff5be97893b6e5db4270e09dbf1c25

Fixed comments according to CR.

* Generated from b757a4ec5fd9e1a35bedefd53fe3d92e111db5eb

Resolved merge conflicts.

* Generated from 4abedb1c096796557fdd029401f3d317f99c7f61 (#2664)

removing resourceUpdate, adding contents to disk and snapshot

* Generated from a2f275e122829ab63c18494dbaae5a1e9ef6e81c (#2673)

Compute Py conf

* [AutoPR compute/resource-manager] [Compute] Fix List VM Extension API name, description updates and other fixes. (#2677)

* Generated from e1a86d44e0c41fe932513a0d2c96c0852c382aa0

Fix List VM Extension API name, description updates and fix for 2018-06-01 version

* Generated from d4855e2ca85a8ed773644fdb69da2a852097cca4

Add VMSS Ip Tag

* Generated from d4855e2ca85a8ed773644fdb69da2a852097cca4

Add VMSS Ip Tag

* Rebuild by Azure#2487

* Generated from 41175e4e605bb5ed0329cdfa91ae14cfbd6a6739 (#2829)

Addressed comments - added missing StandardSSD_LRS in 2018-04-01, updated name to ListAll, and removed the change from 2015-06-15

* Generated from 0a9ee3a2db06dff212c23f80c8b7bf1eec31613a (#2858)

User identities in a new dictionary property

Moving user identities support from the property "identityId" list to a new dictionary property named "userAssignedIdentities".

* Generated from c34f1fdacb2efacd4dccdd69213e83e4800ab76a (#2859)

Added listing all availability sets in a subscription and StandardSSD_LRS to 2018-06-01

* Generated from d4e9a10c23b602709da6ec04f970c7802ca60af3 (#2886)

Got the latest code from official repo master branch and resolved the conflicts.

* Rebuild by Azure#2487

* Update version.py

* Generated from 0e3b2e2f19773ecc8bb676f2d40cff4119b2a357 (#2890)

Python conf for Compute 2018-06

* [AutoPR compute/resource-manager] Update RunCommand operation output as valid json object (#2888)

* Generated from e3d9ca01eb41c555b03705a38e58173de2196194

Update RunCommand operation output as valid json object

* Generated from e3d9ca01eb41c555b03705a38e58173de2196194

Update RunCommand operation output as valid json object

* Generated from ac9f623bcc6d676360abc57b52b6ee8b0341ea18 (#2914)

Modeling ASG association with VMSS (Service support this hence updating swagger)

* [AutoPR compute/resource-manager] Update VMSS planned maintenance description to refer to best practices doc (#2911)

* Generated from 93bfe8fd52fa3907af3496b4d37c6a50655cf8ea

Update VMSS planned maintenance description to refer to best practices doc

* Generated from 93bfe8fd52fa3907af3496b4d37c6a50655cf8ea

Update VMSS planned maintenance description to refer to best practices doc

* Generated from cb39de62c1bac51455eaf7ad3fbe8ac9ec84df58 (#2918)

Add missing ScaleSet properties

The change adds the following missing properties 
 1) "zones" property to VirtualMachineScaleSetVM
 2) DiskSizeInGB to VirtualMachineScaleSetOSDisk
 3) DiskSizeInGB to VirtualMachineScaleSetUpdateOSDisk

* Generated from b59db77683f3a9c65d0edec17b5f05e458a68897 (#2942)

Revert AccessUri description to make it correspond to server response

* [AutoPR compute/resource-manager] RunCommands 2018-06-01 (#2935)

* Generated from 8d08b9c279f07fa5a919205934fd785e329dad64

RunCommands 2018-06-01

* Generated from 9c64257f21823a1d72ec25cd640375f0100638e2

Take examples from 2018-04-01

* Generated from 8f17cd0bc03fad3ed3a5259ec37e9add84ff73a7 (#2965)

Fixing instance view object definition in VMSSVMProperties

* Fix multi api client

* Update Autorest min version for Compute

* Fixing tests for latest Compute

* Make it stable

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed Jul 20, 2018
1 parent cf645da commit e8f09d0
Show file tree
Hide file tree
Showing 830 changed files with 55,123 additions and 4,366 deletions.
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

0 comments on commit e8f09d0

Please sign in to comment.