Skip to content

Commit 1664d1e

Browse files
[AutoRelease] t2-compute-2023-12-28-39237(can only be merged by SDK owner) (#33669)
* code and test * Update assets.json --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent fc45e92 commit 1664d1e

File tree

74 files changed

+16225
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+16225
-61
lines changed

sdk/compute/azure-mgmt-compute/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release History
22

3+
## 30.5.0 (2024-01-22)
4+
5+
### Features Added
6+
7+
- Model CreationData has a new parameter provisioned_bandwidth_copy_speed
8+
- Model PurchasePlan has a new parameter promotion_code
9+
310
## 30.4.0 (2023-12-18)
411

512
### Features Added

sdk/compute/azure-mgmt-compute/_meta.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "6c4497e6b0aaad8127f2dd50fa8a29aaf68f24e6",
2+
"commit": "4792bce7667477529991457890b4a6b670e70508",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
@@ -50,5 +50,6 @@
5050
"package-2023-07-01-only": "2023-08-10 16:21:40 -0400 1a925d1afe288a5f20d078bbc89214a36a0e4287 Microsoft.Compute/ComputeRP/stable/2023-07-01/virtualMachineScaleSet.json",
5151
"package-2023-04-02-only": "2023-08-07 20:58:57 -0400 b9403296f0b0e112b0d8222ad05fd1d79ee10e03 Microsoft.Compute/DiskRP/stable/2023-04-02/snapshot.json",
5252
"package-2023-09-01-only": "2023-12-05 16:05:55 -0500 378977e71101fdf224414b86e9f7d8c776cd07ec Microsoft.Compute/ComputeRP/stable/2023-09-01/virtualMachineScaleSet.json",
53-
"package-2022-08-03-only": "2023-11-28 14:37:35 -0500 a4d77e0bd0f00b66d42940a9be143fdb38534b1e Microsoft.Compute/GalleryRP/stable/2022-08-03/sharedGallery.json"
53+
"package-2022-08-03-only": "2023-11-28 14:37:35 -0500 a4d77e0bd0f00b66d42940a9be143fdb38534b1e Microsoft.Compute/GalleryRP/stable/2022-08-03/sharedGallery.json",
54+
"package-2023-10-02-only": "2023-12-19 03:18:52 -0500 4a4e7c0083937d49061641e857bc876043bb1f5b Microsoft.Compute/DiskRP/stable/2023-10-02/snapshot.json"
5455
}

sdk/compute/azure-mgmt-compute/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/compute/azure-mgmt-compute",
5-
"Tag": "python/compute/azure-mgmt-compute_8d0481cf75"
5+
"Tag": "python/compute/azure-mgmt-compute_0fc23eb5bf"
66
}

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
5353
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5454
"""
5555

56-
DEFAULT_API_VERSION = '2023-09-01'
56+
DEFAULT_API_VERSION = '2023-10-02'
5757
_PROFILE_TAG = "azure.mgmt.compute.ComputeManagementClient"
5858
LATEST_PROFILE = ProfileDefinition({
5959
_PROFILE_TAG: {
6060
None: DEFAULT_API_VERSION,
61+
'availability_sets': '2023-09-01',
62+
'capacity_reservation_groups': '2023-09-01',
63+
'capacity_reservations': '2023-09-01',
6164
'cloud_service_operating_systems': '2022-09-04',
6265
'cloud_service_role_instances': '2022-09-04',
6366
'cloud_service_roles': '2022-09-04',
@@ -66,21 +69,39 @@ class ComputeManagementClient(MultiApiClientMixin, _SDKClient):
6669
'community_galleries': '2022-08-03',
6770
'community_gallery_image_versions': '2022-08-03',
6871
'community_gallery_images': '2022-08-03',
69-
'disk_accesses': '2023-04-02',
70-
'disk_encryption_sets': '2023-04-02',
71-
'disk_restore_point': '2023-04-02',
72-
'disks': '2023-04-02',
72+
'dedicated_host_groups': '2023-09-01',
73+
'dedicated_hosts': '2023-09-01',
7374
'galleries': '2022-08-03',
7475
'gallery_application_versions': '2022-08-03',
7576
'gallery_applications': '2022-08-03',
7677
'gallery_image_versions': '2022-08-03',
7778
'gallery_images': '2022-08-03',
7879
'gallery_sharing_profile': '2022-08-03',
80+
'images': '2023-09-01',
81+
'log_analytics': '2023-09-01',
82+
'operations': '2023-09-01',
83+
'proximity_placement_groups': '2023-09-01',
7984
'resource_skus': '2021-07-01',
85+
'restore_point_collections': '2023-09-01',
86+
'restore_points': '2023-09-01',
8087
'shared_galleries': '2022-08-03',
8188
'shared_gallery_image_versions': '2022-08-03',
8289
'shared_gallery_images': '2022-08-03',
83-
'snapshots': '2023-04-02',
90+
'ssh_public_keys': '2023-09-01',
91+
'usage': '2023-09-01',
92+
'virtual_machine_extension_images': '2023-09-01',
93+
'virtual_machine_extensions': '2023-09-01',
94+
'virtual_machine_images': '2023-09-01',
95+
'virtual_machine_images_edge_zone': '2023-09-01',
96+
'virtual_machine_run_commands': '2023-09-01',
97+
'virtual_machine_scale_set_extensions': '2023-09-01',
98+
'virtual_machine_scale_set_rolling_upgrades': '2023-09-01',
99+
'virtual_machine_scale_set_vm_extensions': '2023-09-01',
100+
'virtual_machine_scale_set_vm_run_commands': '2023-09-01',
101+
'virtual_machine_scale_set_vms': '2023-09-01',
102+
'virtual_machine_scale_sets': '2023-09-01',
103+
'virtual_machine_sizes': '2023-09-01',
104+
'virtual_machines': '2023-09-01',
84105
}},
85106
_PROFILE_TAG + " latest"
86107
)
@@ -154,6 +175,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
154175
* 2023-04-02: :mod:`v2023_04_02.models<azure.mgmt.compute.v2023_04_02.models>`
155176
* 2023-07-01: :mod:`v2023_07_01.models<azure.mgmt.compute.v2023_07_01.models>`
156177
* 2023-09-01: :mod:`v2023_09_01.models<azure.mgmt.compute.v2023_09_01.models>`
178+
* 2023-10-02: :mod:`v2023_10_02.models<azure.mgmt.compute.v2023_10_02.models>`
157179
"""
158180
if api_version == '2015-06-15':
159181
from .v2015_06_15 import models
@@ -284,6 +306,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
284306
elif api_version == '2023-09-01':
285307
from .v2023_09_01 import models
286308
return models
309+
elif api_version == '2023-10-02':
310+
from .v2023_10_02 import models
311+
return models
287312
raise ValueError("API version {} is not available".format(api_version))
288313

289314
@property
@@ -750,6 +775,7 @@ def disk_accesses(self):
750775
* 2022-07-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2022_07_02.operations.DiskAccessesOperations>`
751776
* 2023-01-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_01_02.operations.DiskAccessesOperations>`
752777
* 2023-04-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_04_02.operations.DiskAccessesOperations>`
778+
* 2023-10-02: :class:`DiskAccessesOperations<azure.mgmt.compute.v2023_10_02.operations.DiskAccessesOperations>`
753779
"""
754780
api_version = self._get_api_version('disk_accesses')
755781
if api_version == '2020-05-01':
@@ -774,6 +800,8 @@ def disk_accesses(self):
774800
from .v2023_01_02.operations import DiskAccessesOperations as OperationClass
775801
elif api_version == '2023-04-02':
776802
from .v2023_04_02.operations import DiskAccessesOperations as OperationClass
803+
elif api_version == '2023-10-02':
804+
from .v2023_10_02.operations import DiskAccessesOperations as OperationClass
777805
else:
778806
raise ValueError("API version {} does not have operation group 'disk_accesses'".format(api_version))
779807
self._config.api_version = api_version
@@ -796,6 +824,7 @@ def disk_encryption_sets(self):
796824
* 2022-07-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2022_07_02.operations.DiskEncryptionSetsOperations>`
797825
* 2023-01-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_01_02.operations.DiskEncryptionSetsOperations>`
798826
* 2023-04-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_04_02.operations.DiskEncryptionSetsOperations>`
827+
* 2023-10-02: :class:`DiskEncryptionSetsOperations<azure.mgmt.compute.v2023_10_02.operations.DiskEncryptionSetsOperations>`
799828
"""
800829
api_version = self._get_api_version('disk_encryption_sets')
801830
if api_version == '2019-07-01':
@@ -824,6 +853,8 @@ def disk_encryption_sets(self):
824853
from .v2023_01_02.operations import DiskEncryptionSetsOperations as OperationClass
825854
elif api_version == '2023-04-02':
826855
from .v2023_04_02.operations import DiskEncryptionSetsOperations as OperationClass
856+
elif api_version == '2023-10-02':
857+
from .v2023_10_02.operations import DiskEncryptionSetsOperations as OperationClass
827858
else:
828859
raise ValueError("API version {} does not have operation group 'disk_encryption_sets'".format(api_version))
829860
self._config.api_version = api_version
@@ -842,6 +873,7 @@ def disk_restore_point(self):
842873
* 2022-07-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2022_07_02.operations.DiskRestorePointOperations>`
843874
* 2023-01-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_01_02.operations.DiskRestorePointOperations>`
844875
* 2023-04-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_04_02.operations.DiskRestorePointOperations>`
876+
* 2023-10-02: :class:`DiskRestorePointOperations<azure.mgmt.compute.v2023_10_02.operations.DiskRestorePointOperations>`
845877
"""
846878
api_version = self._get_api_version('disk_restore_point')
847879
if api_version == '2020-09-30':
@@ -862,6 +894,8 @@ def disk_restore_point(self):
862894
from .v2023_01_02.operations import DiskRestorePointOperations as OperationClass
863895
elif api_version == '2023-04-02':
864896
from .v2023_04_02.operations import DiskRestorePointOperations as OperationClass
897+
elif api_version == '2023-10-02':
898+
from .v2023_10_02.operations import DiskRestorePointOperations as OperationClass
865899
else:
866900
raise ValueError("API version {} does not have operation group 'disk_restore_point'".format(api_version))
867901
self._config.api_version = api_version
@@ -890,6 +924,7 @@ def disks(self):
890924
* 2022-07-02: :class:`DisksOperations<azure.mgmt.compute.v2022_07_02.operations.DisksOperations>`
891925
* 2023-01-02: :class:`DisksOperations<azure.mgmt.compute.v2023_01_02.operations.DisksOperations>`
892926
* 2023-04-02: :class:`DisksOperations<azure.mgmt.compute.v2023_04_02.operations.DisksOperations>`
927+
* 2023-10-02: :class:`DisksOperations<azure.mgmt.compute.v2023_10_02.operations.DisksOperations>`
893928
"""
894929
api_version = self._get_api_version('disks')
895930
if api_version == '2016-04-30-preview':
@@ -930,6 +965,8 @@ def disks(self):
930965
from .v2023_01_02.operations import DisksOperations as OperationClass
931966
elif api_version == '2023-04-02':
932967
from .v2023_04_02.operations import DisksOperations as OperationClass
968+
elif api_version == '2023-10-02':
969+
from .v2023_10_02.operations import DisksOperations as OperationClass
933970
else:
934971
raise ValueError("API version {} does not have operation group 'disks'".format(api_version))
935972
self._config.api_version = api_version
@@ -1644,6 +1681,7 @@ def snapshots(self):
16441681
* 2022-07-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2022_07_02.operations.SnapshotsOperations>`
16451682
* 2023-01-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_01_02.operations.SnapshotsOperations>`
16461683
* 2023-04-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_04_02.operations.SnapshotsOperations>`
1684+
* 2023-10-02: :class:`SnapshotsOperations<azure.mgmt.compute.v2023_10_02.operations.SnapshotsOperations>`
16471685
"""
16481686
api_version = self._get_api_version('snapshots')
16491687
if api_version == '2016-04-30-preview':
@@ -1684,6 +1722,8 @@ def snapshots(self):
16841722
from .v2023_01_02.operations import SnapshotsOperations as OperationClass
16851723
elif api_version == '2023-04-02':
16861724
from .v2023_04_02.operations import SnapshotsOperations as OperationClass
1725+
elif api_version == '2023-10-02':
1726+
from .v2023_10_02.operations import SnapshotsOperations as OperationClass
16871727
else:
16881728
raise ValueError("API version {} does not have operation group 'snapshots'".format(api_version))
16891729
self._config.api_version = api_version

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "30.4.0"
8+
VERSION = "30.5.0"

0 commit comments

Comments
 (0)