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

Release azure mgmt compute #13610

Merged
merged 8 commits into from
Sep 9, 2020
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
16 changes: 16 additions & 0 deletions sdk/compute/azure-mgmt-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 13.1.0 (2020-09-08)

**Features**

- Model Snapshot has a new parameter disk_state
- Model VirtualMachineScaleSetExtensionUpdate has a new parameter enable_automatic_upgrade
- Model VirtualMachineInstanceView has a new parameter patch_status
- Model VirtualMachineInstanceView has a new parameter vm_health
- Model VirtualMachineExtensionUpdate has a new parameter enable_automatic_upgrade
- Model CreationData has a new parameter logical_sector_size
- Model Disk has a new parameter tier
- Model DiskUpdate has a new parameter tier
- Model VirtualMachineScaleSetExtension has a new parameter enable_automatic_upgrade
- Model VirtualMachineExtension has a new parameter enable_automatic_upgrade
- Added operation DiskEncryptionSetsOperations.list_associated_resources

## 13.0.0 (2020-07-06)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,37 @@ class ComputeManagementClient(MultiApiClientMixin, SDKClient):
:type profile: azure.profiles.KnownProfiles
"""

DEFAULT_API_VERSION = '2020-06-01'
DEFAULT_API_VERSION = '2020-06-30'
_PROFILE_TAG = "azure.mgmt.compute.ComputeManagementClient"
LATEST_PROFILE = ProfileDefinition({
_PROFILE_TAG: {
None: DEFAULT_API_VERSION,
'disk_accesses': '2020-05-01',
'disk_encryption_sets': '2020-05-01',
'disks': '2020-05-01',
'availability_sets': '2020-06-01',
'dedicated_host_groups': '2020-06-01',
'dedicated_hosts': '2020-06-01',
'galleries': '2019-12-01',
'gallery_application_versions': '2019-12-01',
'gallery_applications': '2019-12-01',
'gallery_image_versions': '2019-12-01',
'gallery_images': '2019-12-01',
'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-05-01',
'ssh_public_keys': '2020-06-01',
'usage': '2020-06-01',
'virtual_machine_extension_images': '2020-06-01',
'virtual_machine_extensions': '2020-06-01',
'virtual_machine_images': '2020-06-01',
'virtual_machine_run_commands': '2020-06-01',
'virtual_machine_scale_set_extensions': '2020-06-01',
'virtual_machine_scale_set_rolling_upgrades': '2020-06-01',
'virtual_machine_scale_set_vm_extensions': '2020-06-01',
'virtual_machine_scale_set_vms': '2020-06-01',
'virtual_machine_scale_sets': '2020-06-01',
'virtual_machine_sizes': '2020-06-01',
'virtual_machines': '2020-06-01',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -99,6 +115,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2019-12-01: :mod:`v2019_12_01.models<azure.mgmt.compute.v2019_12_01.models>`
* 2020-05-01: :mod:`v2020_05_01.models<azure.mgmt.compute.v2020_05_01.models>`
* 2020-06-01: :mod:`v2020_06_01.models<azure.mgmt.compute.v2020_06_01.models>`
* 2020-06-30: :mod:`v2020_06_30.models<azure.mgmt.compute.v2020_06_30.models>`
"""
if api_version == '2015-06-15':
from .v2015_06_15 import models
Expand Down Expand Up @@ -151,6 +168,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2020-06-01':
from .v2020_06_01 import models
return models
elif api_version == '2020-06-30':
from .v2020_06_30 import models
return models
raise NotImplementedError("APIVersion {} is not available".format(api_version))

@property
Expand Down Expand Up @@ -248,10 +268,13 @@ def disk_accesses(self):
"""Instance depends on the API version:

* 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>`
"""
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
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -263,6 +286,7 @@ def disk_encryption_sets(self):
* 2019-07-01: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2019_07_01.operations.DiskEncryptionSetsOperations>`
* 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>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -271,6 +295,8 @@ def disk_encryption_sets(self):
from .v2019_11_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Expand All @@ -288,6 +314,7 @@ def disks(self):
* 2019-07-01: :class:`DisksOperations<azure.mgmt.compute.v2019_07_01.operations.DisksOperations>`
* 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>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand All @@ -308,6 +335,8 @@ def disks(self):
from .v2019_11_01.operations import DisksOperations as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import DisksOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import DisksOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".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 @@ -587,6 +616,7 @@ def snapshots(self):
* 2019-07-01: :class:`SnapshotsOperations<azure.mgmt.compute.v2019_07_01.operations.SnapshotsOperations>`
* 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>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand All @@ -607,6 +637,8 @@ def snapshots(self):
from .v2019_11_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import SnapshotsOperations as OperationClass
elif api_version == '2020-06-30':
from .v2020_06_30.operations import SnapshotsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".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,5 @@
# --------------------------------------------------------------------------
from .v2019_04_01.models import *
from .v2019_12_01.models import *
from .v2020_05_01.models import *
from .v2020_06_01.models import *
from .v2020_06_30.models import *
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from ._models_py3 import AutomaticRepairsPolicy
from ._models_py3 import AvailabilitySet
from ._models_py3 import AvailabilitySetUpdate
from ._models_py3 import AvailablePatchSummary
from ._models_py3 import BillingProfile
from ._models_py3 import BootDiagnostics
from ._models_py3 import BootDiagnosticsInstanceView
Expand Down Expand Up @@ -53,6 +54,7 @@
from ._models_py3 import InstanceViewStatus
from ._models_py3 import KeyVaultKeyReference
from ._models_py3 import KeyVaultSecretReference
from ._models_py3 import LastPatchInstallationSummary
from ._models_py3 import LinuxConfiguration
from ._models_py3 import LogAnalyticsInputBase
from ._models_py3 import LogAnalyticsOperationResult
Expand Down Expand Up @@ -128,6 +130,7 @@
from ._models_py3 import VirtualMachineImage
from ._models_py3 import VirtualMachineImageResource
from ._models_py3 import VirtualMachineInstanceView
from ._models_py3 import VirtualMachinePatchStatus
from ._models_py3 import VirtualMachineReimageParameters
from ._models_py3 import VirtualMachineScaleSet
from ._models_py3 import VirtualMachineScaleSetDataDisk
Expand Down Expand Up @@ -189,6 +192,7 @@
from ._models import AutomaticRepairsPolicy
from ._models import AvailabilitySet
from ._models import AvailabilitySetUpdate
from ._models import AvailablePatchSummary
from ._models import BillingProfile
from ._models import BootDiagnostics
from ._models import BootDiagnosticsInstanceView
Expand Down Expand Up @@ -222,6 +226,7 @@
from ._models import InstanceViewStatus
from ._models import KeyVaultKeyReference
from ._models import KeyVaultSecretReference
from ._models import LastPatchInstallationSummary
from ._models import LinuxConfiguration
from ._models import LogAnalyticsInputBase
from ._models import LogAnalyticsOperationResult
Expand Down Expand Up @@ -297,6 +302,7 @@
from ._models import VirtualMachineImage
from ._models import VirtualMachineImageResource
from ._models import VirtualMachineInstanceView
from ._models import VirtualMachinePatchStatus
from ._models import VirtualMachineReimageParameters
from ._models import VirtualMachineScaleSet
from ._models import VirtualMachineScaleSetDataDisk
Expand Down Expand Up @@ -390,6 +396,7 @@
ResourceIdentityType,
MaintenanceOperationResultCodeTypes,
HyperVGenerationType,
RebootStatus,
UpgradeMode,
VirtualMachineScaleSetScaleInRules,
OperatingSystemStateTypes,
Expand Down Expand Up @@ -417,6 +424,7 @@
'AutomaticRepairsPolicy',
'AvailabilitySet',
'AvailabilitySetUpdate',
'AvailablePatchSummary',
'BillingProfile',
'BootDiagnostics',
'BootDiagnosticsInstanceView',
Expand Down Expand Up @@ -450,6 +458,7 @@
'InstanceViewStatus',
'KeyVaultKeyReference',
'KeyVaultSecretReference',
'LastPatchInstallationSummary',
'LinuxConfiguration',
'LogAnalyticsInputBase',
'LogAnalyticsOperationResult',
Expand Down Expand Up @@ -525,6 +534,7 @@
'VirtualMachineImage',
'VirtualMachineImageResource',
'VirtualMachineInstanceView',
'VirtualMachinePatchStatus',
'VirtualMachineReimageParameters',
'VirtualMachineScaleSet',
'VirtualMachineScaleSetDataDisk',
Expand Down Expand Up @@ -617,6 +627,7 @@
'ResourceIdentityType',
'MaintenanceOperationResultCodeTypes',
'HyperVGenerationType',
'RebootStatus',
'UpgradeMode',
'VirtualMachineScaleSetScaleInRules',
'OperatingSystemStateTypes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,15 @@ class HyperVGenerationType(str, Enum):
v2 = "V2"


class RebootStatus(str, Enum):

not_needed = "NotNeeded"
required = "Required"
started = "Started"
failed = "Failed"
completed = "Completed"


class UpgradeMode(str, Enum):

automatic = "Automatic"
Expand Down
Loading