Skip to content

Commit 45dd4d9

Browse files
[AutoRelease] t2-compute-2026-01-08-25067(can only be merged by SDK owner) (#44583)
* code and test * update changelog * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 673caa3 commit 45dd4d9

File tree

167 files changed

+6550
-595
lines changed

Some content is hidden

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

167 files changed

+6550
-595
lines changed

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

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

3+
## 37.2.0 (2026-01-27)
4+
5+
### Features Added
6+
7+
- Added operation group GalleryScriptVersionsOperations
8+
- Added operation group GalleryScriptsOperations
9+
- Model GalleryApplicationVersionPublishingProfile has a new parameter storage_account_strategy
10+
- Model GalleryArtifactPublishingProfileBase has a new parameter storage_account_strategy
11+
- Model GalleryImageVersionPublishingProfile has a new parameter storage_account_strategy
12+
313
## 37.1.0 (2025-11-17)
414

515
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "a49631915059dad95cfa78cf100c1201e9760b43",
2+
"commit": "9f3fa32698e2f50dbdfa8d3469ad65c0fe590013",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.42.0",
6+
"@autorest/python@6.45.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.42.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/compute/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2025-03-03 --use=@autorest/python@6.45.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/compute/resource-manager/readme.md"
1111
}

sdk/compute/azure-mgmt-compute/apiview-properties.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@
179179
"azure.mgmt.compute.models.GalleryInVMAccessControlProfileVersionUpdate": null,
180180
"azure.mgmt.compute.models.GalleryList": null,
181181
"azure.mgmt.compute.models.GalleryOSDiskImage": null,
182+
"azure.mgmt.compute.models.GalleryScript": null,
183+
"azure.mgmt.compute.models.GalleryScriptList": null,
184+
"azure.mgmt.compute.models.GenericGalleryParameter": null,
185+
"azure.mgmt.compute.models.GalleryScriptParameter": null,
186+
"azure.mgmt.compute.models.GalleryScriptProperties": null,
187+
"azure.mgmt.compute.models.GalleryScriptUpdate": null,
188+
"azure.mgmt.compute.models.GalleryScriptVersion": null,
189+
"azure.mgmt.compute.models.GalleryScriptVersionList": null,
190+
"azure.mgmt.compute.models.GalleryScriptVersionProperties": null,
191+
"azure.mgmt.compute.models.GalleryScriptVersionPublishingProfile": null,
192+
"azure.mgmt.compute.models.GalleryScriptVersionSafetyProfile": null,
193+
"azure.mgmt.compute.models.GalleryScriptVersionUpdate": null,
182194
"azure.mgmt.compute.models.GallerySoftDeletedResource": null,
183195
"azure.mgmt.compute.models.GallerySoftDeletedResourceList": null,
184196
"azure.mgmt.compute.models.GalleryTargetExtendedLocation": null,
@@ -328,6 +340,7 @@
328340
"azure.mgmt.compute.models.ScheduledEventsPolicy": null,
329341
"azure.mgmt.compute.models.ScheduledEventsProfile": null,
330342
"azure.mgmt.compute.models.ScheduleProfile": null,
343+
"azure.mgmt.compute.models.ScriptSource": null,
331344
"azure.mgmt.compute.models.SecurityPostureReference": null,
332345
"azure.mgmt.compute.models.SecurityPostureReferenceUpdate": null,
333346
"azure.mgmt.compute.models.SecurityProfile": null,
@@ -612,6 +625,7 @@
612625
"azure.mgmt.compute.models.EdgeZoneStorageAccountType": null,
613626
"azure.mgmt.compute.models.ReplicationState": null,
614627
"azure.mgmt.compute.models.ReplicationMode": null,
628+
"azure.mgmt.compute.models.StorageAccountStrategy": null,
615629
"azure.mgmt.compute.models.GalleryApplicationScriptRebootBehavior": null,
616630
"azure.mgmt.compute.models.AggregatedReplicationState": null,
617631
"azure.mgmt.compute.models.HostCaching": null,
@@ -620,6 +634,7 @@
620634
"azure.mgmt.compute.models.EndpointTypes": null,
621635
"azure.mgmt.compute.models.AccessControlRulesMode": null,
622636
"azure.mgmt.compute.models.EndpointAccess": null,
637+
"azure.mgmt.compute.models.GalleryScriptParameterType": null,
623638
"azure.mgmt.compute.models.SoftDeletedArtifactTypes": null,
624639
"azure.mgmt.compute.models.CloudServiceUpgradeMode": null,
625640
"azure.mgmt.compute.models.CloudServiceSlotType": null,
@@ -1192,6 +1207,26 @@
11921207
"azure.mgmt.compute.aio.operations.GalleryInVMAccessControlProfileVersionsOperations.begin_update": null,
11931208
"azure.mgmt.compute.operations.GalleryInVMAccessControlProfileVersionsOperations.begin_delete": null,
11941209
"azure.mgmt.compute.aio.operations.GalleryInVMAccessControlProfileVersionsOperations.begin_delete": null,
1210+
"azure.mgmt.compute.operations.GalleryScriptsOperations.list_by_gallery": null,
1211+
"azure.mgmt.compute.aio.operations.GalleryScriptsOperations.list_by_gallery": null,
1212+
"azure.mgmt.compute.operations.GalleryScriptsOperations.get": null,
1213+
"azure.mgmt.compute.aio.operations.GalleryScriptsOperations.get": null,
1214+
"azure.mgmt.compute.operations.GalleryScriptsOperations.begin_create_or_update": null,
1215+
"azure.mgmt.compute.aio.operations.GalleryScriptsOperations.begin_create_or_update": null,
1216+
"azure.mgmt.compute.operations.GalleryScriptsOperations.begin_update": null,
1217+
"azure.mgmt.compute.aio.operations.GalleryScriptsOperations.begin_update": null,
1218+
"azure.mgmt.compute.operations.GalleryScriptsOperations.begin_delete": null,
1219+
"azure.mgmt.compute.aio.operations.GalleryScriptsOperations.begin_delete": null,
1220+
"azure.mgmt.compute.operations.GalleryScriptVersionsOperations.list_by_gallery_script": null,
1221+
"azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations.list_by_gallery_script": null,
1222+
"azure.mgmt.compute.operations.GalleryScriptVersionsOperations.get": null,
1223+
"azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations.get": null,
1224+
"azure.mgmt.compute.operations.GalleryScriptVersionsOperations.begin_create_or_update": null,
1225+
"azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations.begin_create_or_update": null,
1226+
"azure.mgmt.compute.operations.GalleryScriptVersionsOperations.begin_update": null,
1227+
"azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations.begin_update": null,
1228+
"azure.mgmt.compute.operations.GalleryScriptVersionsOperations.begin_delete": null,
1229+
"azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations.begin_delete": null,
11951230
"azure.mgmt.compute.operations.GallerySharingProfileOperations.begin_update": null,
11961231
"azure.mgmt.compute.aio.operations.GallerySharingProfileOperations.begin_update": null,
11971232
"azure.mgmt.compute.operations.SoftDeletedResourceOperations.list_by_artifact_name": null,

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
GalleryImagesOperations,
4646
GalleryInVMAccessControlProfileVersionsOperations,
4747
GalleryInVMAccessControlProfilesOperations,
48+
GalleryScriptVersionsOperations,
49+
GalleryScriptsOperations,
4850
GallerySharingProfileOperations,
4951
ImagesOperations,
5052
LogAnalyticsOperations,
@@ -198,6 +200,10 @@ class ComputeManagementClient: # pylint: disable=client-accepts-api-version-key
198200
GalleryInVMAccessControlProfileVersionsOperations operations
199201
:vartype gallery_in_vm_access_control_profile_versions:
200202
azure.mgmt.compute.operations.GalleryInVMAccessControlProfileVersionsOperations
203+
:ivar gallery_scripts: GalleryScriptsOperations operations
204+
:vartype gallery_scripts: azure.mgmt.compute.operations.GalleryScriptsOperations
205+
:ivar gallery_script_versions: GalleryScriptVersionsOperations operations
206+
:vartype gallery_script_versions: azure.mgmt.compute.operations.GalleryScriptVersionsOperations
201207
:ivar gallery_sharing_profile: GallerySharingProfileOperations operations
202208
:vartype gallery_sharing_profile: azure.mgmt.compute.operations.GallerySharingProfileOperations
203209
:ivar soft_deleted_resource: SoftDeletedResourceOperations operations
@@ -383,6 +389,10 @@ def __init__(
383389
self.gallery_in_vm_access_control_profile_versions = GalleryInVMAccessControlProfileVersionsOperations(
384390
self._client, self._config, self._serialize, self._deserialize
385391
)
392+
self.gallery_scripts = GalleryScriptsOperations(self._client, self._config, self._serialize, self._deserialize)
393+
self.gallery_script_versions = GalleryScriptVersionsOperations(
394+
self._client, self._config, self._serialize, self._deserialize
395+
)
386396
self.gallery_sharing_profile = GallerySharingProfileOperations(
387397
self._client, self._config, self._serialize, self._deserialize
388398
)

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_utils/serialization.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,20 @@ def serialize_basic(cls, data, data_type, **kwargs):
821821
:param str data_type: Type of object in the iterable.
822822
:rtype: str, int, float, bool
823823
:return: serialized object
824+
:raises TypeError: raise if data_type is not one of str, int, float, bool.
824825
"""
825826
custom_serializer = cls._get_custom_serializers(data_type, **kwargs)
826827
if custom_serializer:
827828
return custom_serializer(data)
828829
if data_type == "str":
829830
return cls.serialize_unicode(data)
830-
return eval(data_type)(data) # nosec # pylint: disable=eval-used
831+
if data_type == "int":
832+
return int(data)
833+
if data_type == "float":
834+
return float(data)
835+
if data_type == "bool":
836+
return bool(data)
837+
raise TypeError("Unknown basic data type: {}".format(data_type))
831838

832839
@classmethod
833840
def serialize_unicode(cls, data):
@@ -1757,7 +1764,7 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return
17571764
:param str data_type: deserialization data type.
17581765
:return: Deserialized basic type.
17591766
:rtype: str, int, float or bool
1760-
:raises TypeError: if string format is not valid.
1767+
:raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool.
17611768
"""
17621769
# If we're here, data is supposed to be a basic type.
17631770
# If it's still an XML node, take the text
@@ -1783,7 +1790,11 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return
17831790

17841791
if data_type == "str":
17851792
return self.deserialize_unicode(attr)
1786-
return eval(data_type)(attr) # nosec # pylint: disable=eval-used
1793+
if data_type == "int":
1794+
return int(attr)
1795+
if data_type == "float":
1796+
return float(attr)
1797+
raise TypeError("Unknown basic data type: {}".format(data_type))
17871798

17881799
@staticmethod
17891800
def deserialize_unicode(data):

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 = "37.1.0"
8+
VERSION = "37.2.0"

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
GalleryImagesOperations,
4646
GalleryInVMAccessControlProfileVersionsOperations,
4747
GalleryInVMAccessControlProfilesOperations,
48+
GalleryScriptVersionsOperations,
49+
GalleryScriptsOperations,
4850
GallerySharingProfileOperations,
4951
ImagesOperations,
5052
LogAnalyticsOperations,
@@ -201,6 +203,11 @@ class ComputeManagementClient: # pylint: disable=client-accepts-api-version-key
201203
GalleryInVMAccessControlProfileVersionsOperations operations
202204
:vartype gallery_in_vm_access_control_profile_versions:
203205
azure.mgmt.compute.aio.operations.GalleryInVMAccessControlProfileVersionsOperations
206+
:ivar gallery_scripts: GalleryScriptsOperations operations
207+
:vartype gallery_scripts: azure.mgmt.compute.aio.operations.GalleryScriptsOperations
208+
:ivar gallery_script_versions: GalleryScriptVersionsOperations operations
209+
:vartype gallery_script_versions:
210+
azure.mgmt.compute.aio.operations.GalleryScriptVersionsOperations
204211
:ivar gallery_sharing_profile: GallerySharingProfileOperations operations
205212
:vartype gallery_sharing_profile:
206213
azure.mgmt.compute.aio.operations.GallerySharingProfileOperations
@@ -389,6 +396,10 @@ def __init__(
389396
self.gallery_in_vm_access_control_profile_versions = GalleryInVMAccessControlProfileVersionsOperations(
390397
self._client, self._config, self._serialize, self._deserialize
391398
)
399+
self.gallery_scripts = GalleryScriptsOperations(self._client, self._config, self._serialize, self._deserialize)
400+
self.gallery_script_versions = GalleryScriptVersionsOperations(
401+
self._client, self._config, self._serialize, self._deserialize
402+
)
392403
self.gallery_sharing_profile = GallerySharingProfileOperations(
393404
self._client, self._config, self._serialize, self._deserialize
394405
)

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858
from ._gallery_image_versions_operations import GalleryImageVersionsOperations # type: ignore
5959
from ._gallery_in_vm_access_control_profiles_operations import GalleryInVMAccessControlProfilesOperations # type: ignore
6060
from ._gallery_in_vm_access_control_profile_versions_operations import GalleryInVMAccessControlProfileVersionsOperations # type: ignore
61+
from ._gallery_scripts_operations import GalleryScriptsOperations # type: ignore
62+
from ._gallery_script_versions_operations import GalleryScriptVersionsOperations # type: ignore
6163
from ._gallery_sharing_profile_operations import GallerySharingProfileOperations # type: ignore
6264
from ._soft_deleted_resource_operations import SoftDeletedResourceOperations # type: ignore
6365
from ._cloud_service_role_instances_operations import CloudServiceRoleInstancesOperations # type: ignore
@@ -116,6 +118,8 @@
116118
"GalleryImageVersionsOperations",
117119
"GalleryInVMAccessControlProfilesOperations",
118120
"GalleryInVMAccessControlProfileVersionsOperations",
121+
"GalleryScriptsOperations",
122+
"GalleryScriptVersionsOperations",
119123
"GallerySharingProfileOperations",
120124
"SoftDeletedResourceOperations",
121125
"CloudServiceRoleInstancesOperations",

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_community_galleries_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def get(self, location: str, public_gallery_name: str, **kwargs: Any) -> _
7575
_headers = kwargs.pop("headers", {}) or {}
7676
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
7777

78-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-03"))
78+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-03"))
7979
cls: ClsType[_models.CommunityGallery] = kwargs.pop("cls", None)
8080

8181
_request = build_get_request(

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/operations/_community_gallery_image_versions_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def list(
7575
_headers = kwargs.pop("headers", {}) or {}
7676
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
7777

78-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-03"))
78+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-03"))
7979
cls: ClsType[_models.CommunityGalleryImageVersionList] = kwargs.pop("cls", None)
8080

8181
error_map: MutableMapping = {
@@ -167,7 +167,7 @@ async def get(
167167
_headers = kwargs.pop("headers", {}) or {}
168168
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
169169

170-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2024-03-03"))
170+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-03-03"))
171171
cls: ClsType[_models.CommunityGalleryImageVersion] = kwargs.pop("cls", None)
172172

173173
_request = build_get_request(

0 commit comments

Comments
 (0)