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
25 changes: 25 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Release History

## 18.1.0 (2021-01-19)

**Features**
- Model Disk has a new parameter purchase_plan
- Model Disk has a new parameter extended_location
- Model Disk has a new parameter bursting_enabled
- Model ThrottledRequestsInput has a new parameter group_by_client_application_id
- Model ThrottledRequestsInput has a new parameter group_by_user_agent
- Model Snapshot has a new parameter purchase_plan
- Model Snapshot has a new parameter extended_location
- Model DiskUpdate has a new parameter purchase_plan
- Model DiskUpdate has a new parameter bursting_enabled
- Model LogAnalyticsInputBase has a new parameter group_by_client_application_id
- Model LogAnalyticsInputBase has a new parameter group_by_user_agent
- Model PurchasePlan has a new parameter promotion_code
- Model VirtualMachineScaleSetNetworkConfiguration has a new parameter enable_fpga
- Model RequestRateByIntervalInput has a new parameter group_by_client_application_id
- Model RequestRateByIntervalInput has a new parameter group_by_user_agent
- Model VirtualMachineScaleSetUpdateNetworkConfiguration has a new parameter enable_fpga
- Added operation DiskAccessesOperations.list_private_endpoint_connections
- Added operation DiskAccessesOperations.begin_delete_a_private_endpoint_connection
- Added operation DiskAccessesOperations.begin_update_a_private_endpoint_connection
- Added operation DiskAccessesOperations.get_a_private_endpoint_connection
- Added operation group DiskRestorePointOperations

## 18.0.0 (2020-11-17)

**Features**
Expand Down
10 changes: 10 additions & 0 deletions sdk/compute/azure-mgmt-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-compute%2FREADME.png)
# Usage


To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
Code samples for this package can be found at [Compute Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'availability_sets': '2020-06-01',
'dedicated_host_groups': '2020-06-01',
'dedicated_hosts': '2020-06-01',
'disk_accesses': '2020-06-30',
'disk_encryption_sets': '2020-06-30',
'disks': '2020-06-30',
'images': '2020-06-01',
'log_analytics': '2020-06-01',
'operations': '2020-06-01',
'proximity_placement_groups': '2020-06-01',
'resource_skus': '2019-04-01',
'snapshots': '2020-06-30',
'ssh_public_keys': '2020-06-01',
'usage': '2020-06-01',
'virtual_machine_extension_images': '2020-06-01',
Expand Down Expand Up @@ -282,12 +278,15 @@ def disk_accesses(self):

* 2020-05-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_05_01.operations.DiskAccessesOperations>`
* 2020-06-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_06_30.operations.DiskAccessesOperations>`
* 2020-09-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_09_30.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
from .v2020_05_01.operations import DiskAccessesOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import DiskAccessesOperations as OperationClass
elif api_version == '2020-09-30':
from .v2020_09_30.operations import DiskAccessesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -300,6 +299,7 @@ def disk_encryption_sets(self):
* 2019-11-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2019_11_01.operations.DiskEncryptionSetsOperations>`
* 2020-05-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_05_01.operations.DiskEncryptionSetsOperations>`
* 2020-06-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_06_30.operations.DiskEncryptionSetsOperations>`
* 2020-09-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_09_30.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -310,10 +310,25 @@ def disk_encryption_sets(self):
from .v2020_05_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-09-30':
from .v2020_09_30.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def disk_restore_point(self):
"""Instance depends on the API version:

* 2020-09-30: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_09_30.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
from .v2020_09_30.operations import DiskRestorePointOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def disks(self):
"""Instance depends on the API version:
Expand All @@ -328,6 +343,7 @@ def disks(self):
* 2019-11-01: :class:`DisksOperations<azure.mgmt.compute.v2019_11_01.operations.DisksOperations>`
* 2020-05-01: :class:`DisksOperations<azure.mgmt.compute.v2020_05_01.operations.DisksOperations>`
* 2020-06-30: :class:`DisksOperations<azure.mgmt.compute.v2020_06_30.operations.DisksOperations>`
* 2020-09-30: :class:`DisksOperations<azure.mgmt.compute.v2020_09_30.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand All @@ -350,6 +366,8 @@ def disks(self):
from .v2020_05_01.operations import DisksOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import DisksOperations as OperationClass
elif api_version == '2020-09-30':
from .v2020_09_30.operations import DisksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -697,6 +715,7 @@ def snapshots(self):
* 2019-11-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2019_11_01.operations.SnapshotsOperations>`
* 2020-05-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_05_01.operations.SnapshotsOperations>`
* 2020-06-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_06_30.operations.SnapshotsOperations>`
* 2020-09-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_09_30.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand All @@ -719,6 +738,8 @@ def snapshots(self):
from .v2020_05_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-09-30':
from .v2020_09_30.operations import SnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "18.0.0"
VERSION = "18.1.0"
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,11 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'availability_sets': '2020-06-01',
'dedicated_host_groups': '2020-06-01',
'dedicated_hosts': '2020-06-01',
'disk_accesses': '2020-06-30',
'disk_encryption_sets': '2020-06-30',
'disks': '2020-06-30',
'images': '2020-06-01',
'log_analytics': '2020-06-01',
'operations': '2020-06-01',
'proximity_placement_groups': '2020-06-01',
'resource_skus': '2019-04-01',
'snapshots': '2020-06-30',
'ssh_public_keys': '2020-06-01',
'usage': '2020-06-01',
'virtual_machine_extension_images': '2020-06-01',
Expand Down Expand Up @@ -282,12 +278,15 @@ def disk_accesses(self):

* 2020-05-01: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_05_01.aio.operations.DiskAccessesOperations>`
* 2020-06-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_06_30.aio.operations.DiskAccessesOperations>`
* 2020-09-30: :class:`DiskAccessesOperations<azure.mgmt.compute.v2020_09_30.aio.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
from ..v2020_05_01.aio.operations import DiskAccessesOperations as OperationClass
elif api_version == '2020-06-30':
from ..v2020_06_30.aio.operations import DiskAccessesOperations as OperationClass
elif api_version == '2020-09-30':
from ..v2020_09_30.aio.operations import DiskAccessesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -300,6 +299,7 @@ def disk_encryption_sets(self):
* 2019-11-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2019_11_01.aio.operations.DiskEncryptionSetsOperations>`
* 2020-05-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_05_01.aio.operations.DiskEncryptionSetsOperations>`
* 2020-06-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_06_30.aio.operations.DiskEncryptionSetsOperations>`
* 2020-09-30: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2020_09_30.aio.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -310,10 +310,25 @@ def disk_encryption_sets(self):
from ..v2020_05_01.aio.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-06-30':
from ..v2020_06_30.aio.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-09-30':
from ..v2020_09_30.aio.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def disk_restore_point(self):
"""Instance depends on the API version:

* 2020-09-30: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2020_09_30.aio.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
from ..v2020_09_30.aio.operations import DiskRestorePointOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def disks(self):
"""Instance depends on the API version:
Expand All @@ -328,6 +343,7 @@ def disks(self):
* 2019-11-01: :class:`DisksOperations<azure.mgmt.compute.v2019_11_01.aio.operations.DisksOperations>`
* 2020-05-01: :class:`DisksOperations<azure.mgmt.compute.v2020_05_01.aio.operations.DisksOperations>`
* 2020-06-30: :class:`DisksOperations<azure.mgmt.compute.v2020_06_30.aio.operations.DisksOperations>`
* 2020-09-30: :class:`DisksOperations<azure.mgmt.compute.v2020_09_30.aio.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand All @@ -350,6 +366,8 @@ def disks(self):
from ..v2020_05_01.aio.operations import DisksOperations as OperationClass
elif api_version == '2020-06-30':
from ..v2020_06_30.aio.operations import DisksOperations as OperationClass
elif api_version == '2020-09-30':
from ..v2020_09_30.aio.operations import DisksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down Expand Up @@ -697,6 +715,7 @@ def snapshots(self):
* 2019-11-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2019_11_01.aio.operations.SnapshotsOperations>`
* 2020-05-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_05_01.aio.operations.SnapshotsOperations>`
* 2020-06-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_06_30.aio.operations.SnapshotsOperations>`
* 2020-09-30: :class:`SnapshotsOperations<azure.mgmt.compute.v2020_09_30.aio.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand All @@ -719,6 +738,8 @@ def snapshots(self):
from ..v2020_05_01.aio.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-06-30':
from ..v2020_06_30.aio.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-09-30':
from ..v2020_09_30.aio.operations import SnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# --------------------------------------------------------------------------
from .v2019_04_01.models import *
from .v2020_06_01.models import *
from .v2020_06_30.models import *
from .v2020_09_30.models import *
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false
"client_side_validation": true
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false
"client_side_validation": true
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false
"client_side_validation": true
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"custom_base_url": null,
"azure_arm": true,
"has_lro_operations": true,
"client_side_validation": false
"client_side_validation": true
},
"global_parameters": {
"sync": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def __init__(

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.availability_sets = AvailabilitySetsOperations(
Expand Down
Loading