Skip to content
Closed
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
7 changes: 4 additions & 3 deletions sdk/compute/azure-mgmt-compute/_meta.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"commit": "eb3d96f8444cc58707d7cd3c8a7e10658cb319ea",
"commit": "cdf802090059e8ffcccc578389d308bbc68ad619",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"readme": "specification/compute/resource-manager/readme.md",
"package-2023-03-01-only": "2023-04-17 22:42:05 -0400 b06a6f45e472dd07c2e0dab06b1e52dfe2684c88 Microsoft.Compute/ComputeRP/stable/2023-03-01/virtualMachineScaleSet.json",
"package-2023-01-02-only": "2023-06-28 00:48:15 -0400 b1d41f8dc643415d4dc6ee82bdb2fef04ef45bc9 Microsoft.Compute/DiskRP/stable/2023-01-02/snapshot.json",
Expand Down Expand Up @@ -47,5 +47,6 @@
"package-compute-2016-04-preview": "2022-07-31 21:47:43 -0400 2dcad6d6e9a96882eb6d317e7500a94be007a9c6 Microsoft.Compute/DiskRP/preview/2016-04-30-preview/disk.json",
"package-compute-2016-03": "2022-07-31 21:47:43 -0400 2dcad6d6e9a96882eb6d317e7500a94be007a9c6 Microsoft.Compute/ComputeRP/stable/2016-03-30/compute.json",
"package-compute-2015-06": "2022-07-31 21:47:43 -0400 2dcad6d6e9a96882eb6d317e7500a94be007a9c6 Microsoft.Compute/ComputeRP/stable/2015-06-15/compute.json",
"package-2023-07-01-only": "2023-08-10 16:21:40 -0400 1a925d1afe288a5f20d078bbc89214a36a0e4287 Microsoft.Compute/ComputeRP/stable/2023-07-01/virtualMachineScaleSet.json"
"package-2023-07-01-only": "2023-08-10 16:21:40 -0400 1a925d1afe288a5f20d078bbc89214a36a0e4287 Microsoft.Compute/ComputeRP/stable/2023-07-01/virtualMachineScaleSet.json",
"package-2023-04-02-only": "2023-08-07 20:58:57 -0400 b9403296f0b0e112b0d8222ad05fd1d79ee10e03 Microsoft.Compute/DiskRP/stable/2023-04-02/snapshot.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'community_galleries': '2022-03-03',
'community_gallery_image_versions': '2022-03-03',
'community_gallery_images': '2022-03-03',
'disk_accesses': '2023-01-02',
'disk_encryption_sets': '2023-01-02',
'disk_restore_point': '2023-01-02',
'disks': '2023-01-02',
'disk_accesses': '2023-04-02',
'disk_encryption_sets': '2023-04-02',
'disk_restore_point': '2023-04-02',
'disks': '2023-04-02',
'galleries': '2022-03-03',
'gallery_application_versions': '2022-03-03',
'gallery_applications': '2022-03-03',
Expand All @@ -80,7 +80,7 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'shared_galleries': '2022-03-03',
'shared_gallery_image_versions': '2022-03-03',
'shared_gallery_images': '2022-03-03',
'snapshots': '2023-01-02',
'snapshots': '2023-04-02',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -150,6 +150,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2022-11-01: :mod:`v2022_11_01.models<azure.mgmt.compute.v2022_11_01.models>`
* 2023-01-02: :mod:`v2023_01_02.models<azure.mgmt.compute.v2023_01_02.models>`
* 2023-03-01: :mod:`v2023_03_01.models<azure.mgmt.compute.v2023_03_01.models>`
* 2023-04-02: :mod:`v2023_04_02.models<azure.mgmt.compute.v2023_04_02.models>`
* 2023-07-01: :mod:`v2023_07_01.models<azure.mgmt.compute.v2023_07_01.models>`
"""
if api_version == '2015-06-15':
Expand Down Expand Up @@ -269,6 +270,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2023-03-01':
from .v2023_03_01 import models
return models
elif api_version == '2023-04-02':
from .v2023_04_02 import models
return models
elif api_version == '2023-07-01':
from .v2023_07_01 import models
return models
Expand Down Expand Up @@ -713,6 +717,7 @@ def disk_accesses(self):
* 2022-03-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2022_03_02.operations.DiskAccessesOperations>`
* 2022-07-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2022_07_02.operations.DiskAccessesOperations>`
* 2023-01-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_01_02.operations.DiskAccessesOperations>`
* 2023-04-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_04_02.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
Expand All @@ -735,6 +740,8 @@ def disk_accesses(self):
from .v2022_07_02.operations import DiskAccessesOperations as OperationClass
elif api_version == '2023-01-02':
from .v2023_01_02.operations import DiskAccessesOperations as OperationClass
elif api_version == '2023-04-02':
from .v2023_04_02.operations import DiskAccessesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
self._config.api_version = api_version
Expand All @@ -756,6 +763,7 @@ def disk_encryption_sets(self):
* 2022-03-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2022_03_02.operations.DiskEncryptionSetsOperations>`
* 2022-07-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2022_07_02.operations.DiskEncryptionSetsOperations>`
* 2023-01-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_01_02.operations.DiskEncryptionSetsOperations>`
* 2023-04-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_04_02.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -782,6 +790,8 @@ def disk_encryption_sets(self):
from .v2022_07_02.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2023-01-02':
from .v2023_01_02.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2023-04-02':
from .v2023_04_02.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
self._config.api_version = api_version
Expand All @@ -799,6 +809,7 @@ def disk_restore_point(self):
* 2022-03-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2022_03_02.operations.DiskRestorePointOperations>`
* 2022-07-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2022_07_02.operations.DiskRestorePointOperations>`
* 2023-01-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_01_02.operations.DiskRestorePointOperations>`
* 2023-04-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_04_02.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
Expand All @@ -817,6 +828,8 @@ def disk_restore_point(self):
from .v2022_07_02.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2023-01-02':
from .v2023_01_02.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2023-04-02':
from .v2023_04_02.operations import DiskRestorePointOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
self._config.api_version = api_version
Expand Down Expand Up @@ -844,6 +857,7 @@ def disks(self):
* 2022-03-02: :class:`DisksOperations<azure.mgmt.compute.v2022_03_02.operations.DisksOperations>`
* 2022-07-02: :class:`DisksOperations<azure.mgmt.compute.v2022_07_02.operations.DisksOperations>`
* 2023-01-02: :class:`DisksOperations<azure.mgmt.compute.v2023_01_02.operations.DisksOperations>`
* 2023-04-02: :class:`DisksOperations<azure.mgmt.compute.v2023_04_02.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -882,6 +896,8 @@ def disks(self):
from .v2022_07_02.operations import DisksOperations as OperationClass
elif api_version == '2023-01-02':
from .v2023_01_02.operations import DisksOperations as OperationClass
elif api_version == '2023-04-02':
from .v2023_04_02.operations import DisksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
self._config.api_version = api_version
Expand Down Expand Up @@ -1550,6 +1566,7 @@ def snapshots(self):
* 2022-03-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2022_03_02.operations.SnapshotsOperations>`
* 2022-07-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2022_07_02.operations.SnapshotsOperations>`
* 2023-01-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_01_02.operations.SnapshotsOperations>`
* 2023-04-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_04_02.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -1588,6 +1605,8 @@ def snapshots(self):
from .v2022_07_02.operations import SnapshotsOperations as OperationClass
elif api_version == '2023-01-02':
from .v2023_01_02.operations import SnapshotsOperations as OperationClass
elif api_version == '2023-04-02':
from .v2023_04_02.operations import SnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
self._config.api_version = api_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'community_galleries': '2022-03-03',
'community_gallery_image_versions': '2022-03-03',
'community_gallery_images': '2022-03-03',
'disk_accesses': '2023-01-02',
'disk_encryption_sets': '2023-01-02',
'disk_restore_point': '2023-01-02',
'disks': '2023-01-02',
'disk_accesses': '2023-04-02',
'disk_encryption_sets': '2023-04-02',
'disk_restore_point': '2023-04-02',
'disks': '2023-04-02',
'galleries': '2022-03-03',
'gallery_application_versions': '2022-03-03',
'gallery_applications': '2022-03-03',
Expand All @@ -80,7 +80,7 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
'shared_galleries': '2022-03-03',
'shared_gallery_image_versions': '2022-03-03',
'shared_gallery_images': '2022-03-03',
'snapshots': '2023-01-02',
'snapshots': '2023-04-02',
}},
_PROFILE_TAG + " latest"
)
Expand Down Expand Up @@ -150,6 +150,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
* 2022-11-01: :mod:`v2022_11_01.models<azure.mgmt.compute.v2022_11_01.models>`
* 2023-01-02: :mod:`v2023_01_02.models<azure.mgmt.compute.v2023_01_02.models>`
* 2023-03-01: :mod:`v2023_03_01.models<azure.mgmt.compute.v2023_03_01.models>`
* 2023-04-02: :mod:`v2023_04_02.models<azure.mgmt.compute.v2023_04_02.models>`
* 2023-07-01: :mod:`v2023_07_01.models<azure.mgmt.compute.v2023_07_01.models>`
"""
if api_version == '2015-06-15':
Expand Down Expand Up @@ -269,6 +270,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
elif api_version == '2023-03-01':
from ..v2023_03_01 import models
return models
elif api_version == '2023-04-02':
from ..v2023_04_02 import models
return models
elif api_version == '2023-07-01':
from ..v2023_07_01 import models
return models
Expand Down Expand Up @@ -713,6 +717,7 @@ def disk_accesses(self):
* 2022-03-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2022_03_02.aio.operations.DiskAccessesOperations>`
* 2022-07-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2022_07_02.aio.operations.DiskAccessesOperations>`
* 2023-01-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_01_02.aio.operations.DiskAccessesOperations>`
* 2023-04-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_04_02.aio.operations.DiskAccessesOperations>`
"""
api_version = self._get_api_version('disk_accesses')
if api_version == '2020-05-01':
Expand All @@ -735,6 +740,8 @@ def disk_accesses(self):
from ..v2022_07_02.aio.operations import DiskAccessesOperations as OperationClass
elif api_version == '2023-01-02':
from ..v2023_01_02.aio.operations import DiskAccessesOperations as OperationClass
elif api_version == '2023-04-02':
from ..v2023_04_02.aio.operations import DiskAccessesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
self._config.api_version = api_version
Expand All @@ -756,6 +763,7 @@ def disk_encryption_sets(self):
* 2022-03-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2022_03_02.aio.operations.DiskEncryptionSetsOperations>`
* 2022-07-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2022_07_02.aio.operations.DiskEncryptionSetsOperations>`
* 2023-01-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_01_02.aio.operations.DiskEncryptionSetsOperations>`
* 2023-04-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_04_02.aio.operations.DiskEncryptionSetsOperations>`
"""
api_version = self._get_api_version('disk_encryption_sets')
if api_version == '2019-07-01':
Expand All @@ -782,6 +790,8 @@ def disk_encryption_sets(self):
from ..v2022_07_02.aio.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2023-01-02':
from ..v2023_01_02.aio.operations import DiskEncryptionSetsOperations as OperationClass
elif api_version == '2023-04-02':
from ..v2023_04_02.aio.operations import DiskEncryptionSetsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
self._config.api_version = api_version
Expand All @@ -799,6 +809,7 @@ def disk_restore_point(self):
* 2022-03-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2022_03_02.aio.operations.DiskRestorePointOperations>`
* 2022-07-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2022_07_02.aio.operations.DiskRestorePointOperations>`
* 2023-01-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_01_02.aio.operations.DiskRestorePointOperations>`
* 2023-04-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_04_02.aio.operations.DiskRestorePointOperations>`
"""
api_version = self._get_api_version('disk_restore_point')
if api_version == '2020-09-30':
Expand All @@ -817,6 +828,8 @@ def disk_restore_point(self):
from ..v2022_07_02.aio.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2023-01-02':
from ..v2023_01_02.aio.operations import DiskRestorePointOperations as OperationClass
elif api_version == '2023-04-02':
from ..v2023_04_02.aio.operations import DiskRestorePointOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
self._config.api_version = api_version
Expand Down Expand Up @@ -844,6 +857,7 @@ def disks(self):
* 2022-03-02: :class:`DisksOperations<azure.mgmt.compute.v2022_03_02.aio.operations.DisksOperations>`
* 2022-07-02: :class:`DisksOperations<azure.mgmt.compute.v2022_07_02.aio.operations.DisksOperations>`
* 2023-01-02: :class:`DisksOperations<azure.mgmt.compute.v2023_01_02.aio.operations.DisksOperations>`
* 2023-04-02: :class:`DisksOperations<azure.mgmt.compute.v2023_04_02.aio.operations.DisksOperations>`
"""
api_version = self._get_api_version('disks')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -882,6 +896,8 @@ def disks(self):
from ..v2022_07_02.aio.operations import DisksOperations as OperationClass
elif api_version == '2023-01-02':
from ..v2023_01_02.aio.operations import DisksOperations as OperationClass
elif api_version == '2023-04-02':
from ..v2023_04_02.aio.operations import DisksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
self._config.api_version = api_version
Expand Down Expand Up @@ -1550,6 +1566,7 @@ def snapshots(self):
* 2022-03-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2022_03_02.aio.operations.SnapshotsOperations>`
* 2022-07-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2022_07_02.aio.operations.SnapshotsOperations>`
* 2023-01-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_01_02.aio.operations.SnapshotsOperations>`
* 2023-04-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_04_02.aio.operations.SnapshotsOperations>`
"""
api_version = self._get_api_version('snapshots')
if api_version == '2016-04-30-preview':
Expand Down Expand Up @@ -1588,6 +1605,8 @@ def snapshots(self):
from ..v2022_07_02.aio.operations import SnapshotsOperations as OperationClass
elif api_version == '2023-01-02':
from ..v2023_01_02.aio.operations import SnapshotsOperations as OperationClass
elif api_version == '2023-04-02':
from ..v2023_04_02.aio.operations import SnapshotsOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
self._config.api_version = api_version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
from .v2021_07_01.models import *
from .v2022_03_03.models import *
from .v2022_09_04.models import *
from .v2023_01_02.models import *
from .v2023_04_02.models import *
from .v2023_07_01.models import *
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._compute_management_client import ComputeManagementClient
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"ComputeManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Loading