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

## 1.0.0b3 (2026-08-14)

### Features Added

- Model `BulkCreateCustomProperties` added property `min_capacity`
- Model `BulkCreateCustomProperties` added property `partial_fulfillment_policy`
- Model `BulkCreateCustomProperties` added property `resources`
- Model `ExecutionParameters` added property `capacity_recommendation_parameters`
- Model `ResourceOperationDetails` added property `capacity_recommendation`
- Added model `BulkCreateCustomResource`
- Added model `BulkCreateCustomVirtualMachineInfo`
- Added model `CapacityRecommendation`
- Added model `CapacityRecommendationDetails`
- Added model `CapacityRecommendationParameters`
- Added model `CapacityRecommendationPlacementScore`
- Added model `CapacityRecommendationSize`
- Added enum `CapacityRecommendationStatus`
- Added enum `OccurrenceResourceProvisioningState`
- Added enum `PartialFulfillmentMode`
- Added model `PartialFulfillmentPolicy`
- Added enum `PartialFulfillmentReason`
- Added enum `ScheduledActionsDeadlineType`
- Added model `ScheduledActionsExecutionParameters`
- Added enum `ScheduledActionsProvisioningState`
- Added enum `ScheduledActionsResourceOperationType`
- Added model `ScheduledActionsRetryPolicy`
- Model `BulkCreateCustomOperations` added method `virtual_machines_get_operation_status`

### Breaking Changes

- Deleted or renamed model `RecurringScheduledActionsDeadlineType`
- Deleted or renamed model `RecurringScheduledActionsExecutionParameters`
- Deleted or renamed model `RecurringScheduledActionsProvisioningState`
- Deleted or renamed model `RecurringScheduledActionsResourceOperationType`
- Deleted or renamed model `RecurringScheduledActionsRetryPolicy`
- Deleted or renamed model `ResourceProvisioningState`

## 1.0.0b2 (2026-07-22)

### Features Added
Expand Down
10 changes: 5 additions & 5 deletions sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"apiVersion": "2026-07-06-preview",
"apiVersion": "2026-08-06-preview",
"apiVersions": {
"Microsoft.Compute": "2026-07-06-preview"
"Microsoft.Compute": "2026-08-06-preview"
},
"commit": "f4b4cd52ac5d40b9eef60d18ba9b3a8911e92edc",
"commit": "bd92126f09e7e3caa74f10fa1c944d1e451813ac",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/compute/resource-manager/Microsoft.Compute/Bulkactions",
"emitterVersion": "0.63.3",
"httpClientPythonVersion": "^0.34.2"
"emitterVersion": "0.63.5",
"httpClientPythonVersion": "^0.36.0"
}
1,137 changes: 664 additions & 473 deletions sdk/compute/azure-mgmt-compute-bulkaction/api.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiMdSha256: a441d273b218be0de2ef3610ab10874435138f37941fee3739b188b864fb282f
parserVersion: 0.3.30
apiMdSha256: 42c8834db805a9027c94155efd3fe8f76e766e67c6568e01ef75d9e6398380a3
parserVersion: 0.3.31
pythonVersion: 3.13.14
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,19 @@
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverridesProfile": "Microsoft.Compute.BulkCreateCustomOverridesProfile",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomPriorityProfile": "Microsoft.Compute.BulkCreateCustomPriorityProfile",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomProperties": "Microsoft.Compute.BulkCreateCustomProperties",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomResource": "Microsoft.Compute.BulkCreateCustomResource",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomVirtualMachineInfo": "Microsoft.Compute.BulkCreateCustomVirtualMachineInfo",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomVmSizeProfile": "Microsoft.Compute.BulkCreateCustomVmSizeProfile",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomZoneAllocationPolicy": "Microsoft.Compute.BulkCreateCustomZoneAllocationPolicy",
"azure.mgmt.compute.bulkaction.models.BulkInstancesInnerError": "Microsoft.Compute.InnerError",
"azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest": "Microsoft.Compute.CancelOccurrenceRequest",
"azure.mgmt.compute.bulkaction.models.CancelOperationsContent": "Microsoft.Compute.CancelOperationsRequest",
"azure.mgmt.compute.bulkaction.models.CancelOperationsResponse": "Microsoft.Compute.CancelOperationsResponse",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendation": "Microsoft.Compute.CapacityRecommendation",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendationDetails": "Microsoft.Compute.CapacityRecommendationDetails",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendationParameters": "Microsoft.Compute.CapacityRecommendationParameters",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendationPlacementScore": "Microsoft.Compute.CapacityRecommendationPlacementScore",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendationSize": "Microsoft.Compute.CapacityRecommendationSize",
"azure.mgmt.compute.bulkaction.models.CapacityReservationProfile": "Microsoft.Compute.CapacityReservationProfile",
"azure.mgmt.compute.bulkaction.models.ComputeProfile": "Microsoft.Compute.ComputeProfile",
"azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse": "Microsoft.Compute.CreateResourceOperationResponse",
Expand Down Expand Up @@ -88,13 +95,12 @@
"azure.mgmt.compute.bulkaction.models.OSImageNotificationProfile": "Microsoft.Compute.OSImageNotificationProfile",
"azure.mgmt.compute.bulkaction.models.OSProfile": "Microsoft.Compute.OSProfile",
"azure.mgmt.compute.bulkaction.models.OSProfileProvisioningData": "Microsoft.Compute.OSProfileProvisioningData",
"azure.mgmt.compute.bulkaction.models.PartialFulfillmentPolicy": "Microsoft.Compute.PartialFulfillmentPolicy",
"azure.mgmt.compute.bulkaction.models.PatchSettings": "Microsoft.Compute.PatchSettings",
"azure.mgmt.compute.bulkaction.models.Plan": "Azure.ResourceManager.CommonTypes.Plan",
"azure.mgmt.compute.bulkaction.models.PriorityProfile": "Microsoft.Compute.PriorityProfile",
"azure.mgmt.compute.bulkaction.models.ProxyAgentSettings": "Microsoft.Compute.ProxyAgentSettings",
"azure.mgmt.compute.bulkaction.models.PublicIPAddressSku": "Microsoft.Compute.PublicIPAddressSku",
"azure.mgmt.compute.bulkaction.models.RecurringScheduledActionsExecutionParameters": "Microsoft.Compute.RecurringScheduledActionsExecutionParameters",
"azure.mgmt.compute.bulkaction.models.RecurringScheduledActionsRetryPolicy": "Microsoft.Compute.RecurringScheduledActionsRetryPolicy",
"azure.mgmt.compute.bulkaction.models.ReimagePayload": "Microsoft.Compute.ReimagePayload",
"azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse": "Microsoft.Compute.ReimageResourceOperationResponse",
"azure.mgmt.compute.bulkaction.models.ReimageResourceOverride": "Microsoft.Compute.ReimageResourceOverride",
Expand All @@ -120,7 +126,9 @@
"azure.mgmt.compute.bulkaction.models.ScheduledActionResource": "Microsoft.Compute.ScheduledActionResource",
"azure.mgmt.compute.bulkaction.models.ScheduledActionResourceInput": "Microsoft.Compute.ScheduledActionResourceInput",
"azure.mgmt.compute.bulkaction.models.ScheduledActionResources": "Microsoft.Compute.ScheduledActionResources",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsExecutionParameters": "Microsoft.Compute.ScheduledActionsExecutionParameters",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsExtensionProperties": "Microsoft.Compute.ScheduledActionsExtensionProperties",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsRetryPolicy": "Microsoft.Compute.ScheduledActionsRetryPolicy",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsSchedule": "Microsoft.Compute.ScheduledActionsSchedule",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsScheduleUpdate": "Microsoft.Compute.ScheduledActionsScheduleUpdate",
"azure.mgmt.compute.bulkaction.models.ScheduledActionUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
Expand Down Expand Up @@ -174,6 +182,7 @@
"azure.mgmt.compute.bulkaction.models.ResourceOperationType": "Microsoft.Compute.ResourceOperationType",
"azure.mgmt.compute.bulkaction.models.DeadlineType": "Microsoft.Compute.DeadlineType",
"azure.mgmt.compute.bulkaction.models.OperationState": "Microsoft.Compute.OperationState",
"azure.mgmt.compute.bulkaction.models.CapacityRecommendationStatus": "Microsoft.Compute.CapacityRecommendationStatus",
"azure.mgmt.compute.bulkaction.models.OptimizationPreference": "Microsoft.Compute.OptimizationPreference",
"azure.mgmt.compute.bulkaction.models.OsType": "Microsoft.Compute.OsType",
"azure.mgmt.compute.bulkaction.models.PriorityType": "Microsoft.Compute.PriorityType",
Expand Down Expand Up @@ -223,21 +232,23 @@
"azure.mgmt.compute.bulkaction.models.Modes": "Microsoft.Compute.Modes",
"azure.mgmt.compute.bulkaction.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
"azure.mgmt.compute.bulkaction.models.VMOperationStatus": "Microsoft.Compute.VMOperationStatus",
"azure.mgmt.compute.bulkaction.models.PartialFulfillmentMode": "Microsoft.Compute.PartialFulfillmentMode",
"azure.mgmt.compute.bulkaction.models.PartialFulfillmentReason": "Microsoft.Compute.PartialFulfillmentReason",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomAllocationStrategy": "Microsoft.Compute.BulkCreateCustomAllocationStrategy",
"azure.mgmt.compute.bulkaction.models.ResourceIdentityType": "Microsoft.Compute.ResourceIdentityType",
"azure.mgmt.compute.bulkaction.models.BulkCreateCustomDistributionStrategy": "Microsoft.Compute.BulkCreateCustomDistributionStrategy",
"azure.mgmt.compute.bulkaction.models.ResourceType": "Microsoft.Compute.ResourceType",
"azure.mgmt.compute.bulkaction.models.ScheduledActionType": "Microsoft.Compute.ScheduledActionType",
"azure.mgmt.compute.bulkaction.models.WeekDay": "Microsoft.Compute.WeekDay",
"azure.mgmt.compute.bulkaction.models.Month": "Microsoft.Compute.Month",
"azure.mgmt.compute.bulkaction.models.RecurringScheduledActionsResourceOperationType": "Microsoft.Compute.RecurringScheduledActionsResourceOperationType",
"azure.mgmt.compute.bulkaction.models.RecurringScheduledActionsDeadlineType": "Microsoft.Compute.RecurringScheduledActionsDeadlineType",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsResourceOperationType": "Microsoft.Compute.ScheduledActionsResourceOperationType",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsDeadlineType": "Microsoft.Compute.ScheduledActionsDeadlineType",
"azure.mgmt.compute.bulkaction.models.NotificationType": "Microsoft.Compute.NotificationType",
"azure.mgmt.compute.bulkaction.models.Language": "Microsoft.Compute.Language",
"azure.mgmt.compute.bulkaction.models.RecurringScheduledActionsProvisioningState": "Microsoft.Compute.RecurringScheduledActionsProvisioningState",
"azure.mgmt.compute.bulkaction.models.ScheduledActionsProvisioningState": "Microsoft.Compute.ScheduledActionsProvisioningState",
"azure.mgmt.compute.bulkaction.models.ResourceOperationStatus": "Microsoft.Compute.ResourceOperationStatus",
"azure.mgmt.compute.bulkaction.models.OccurrenceState": "Microsoft.Compute.OccurrenceState",
"azure.mgmt.compute.bulkaction.models.ResourceProvisioningState": "Azure.ResourceManager.ResourceProvisioningState",
"azure.mgmt.compute.bulkaction.models.OccurrenceResourceProvisioningState": "Microsoft.Compute.OccurrenceResourceProvisioningState",
"azure.mgmt.compute.bulkaction.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.compute.bulkaction.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_deallocate_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkDeallocate",
Expand Down Expand Up @@ -288,6 +299,8 @@
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.begin_delete": "Microsoft.Compute.BulkCreateCustom.delete",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.begin_cancel": "Microsoft.Compute.BulkCreateCustom.cancel",
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.begin_cancel": "Microsoft.Compute.BulkCreateCustom.cancel",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.virtual_machines_get_operation_status": "Microsoft.Compute.BulkCreateCustom.virtualMachinesGetOperationStatus",
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.virtual_machines_get_operation_status": "Microsoft.Compute.BulkCreateCustom.virtualMachinesGetOperationStatus",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.list_by_resource_group": "Microsoft.Compute.BulkCreateCustom.listByResourceGroup",
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.list_by_resource_group": "Microsoft.Compute.BulkCreateCustom.listByResourceGroup",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.list_by_subscription": "Microsoft.Compute.BulkCreateCustom.listBySubscription",
Expand Down Expand Up @@ -337,5 +350,5 @@
"azure.mgmt.compute.bulkaction.operations.OccurrenceExtensionOperations.list_occurrence_by_vms": "Microsoft.Compute.OccurrenceExtension.listOccurrenceByVms",
"azure.mgmt.compute.bulkaction.aio.operations.OccurrenceExtensionOperations.list_occurrence_by_vms": "Microsoft.Compute.OccurrenceExtension.listOccurrenceByVms"
},
"CrossLanguageVersion": "bc10e6cd5455"
"CrossLanguageVersion": "90e3e737f46e"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand Down Expand Up @@ -41,7 +42,7 @@
from azure.core.credentials import TokenCredential


class ComputeBulkActionsMgmtClient: # pylint: disable=too-many-instance-attributes
class ComputeBulkActionsMgmtClient: # pylint: disable=too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""ComputeBulkActionsMgmtClient.

:ivar operations: Operations operations
Expand Down Expand Up @@ -78,7 +79,7 @@ class ComputeBulkActionsMgmtClient: # pylint: disable=too-many-instance-attribu
None.
:paramtype cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are
"2026-07-06-preview" and None. Default value is None. If not set, the operation's default API
"2026-08-06-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long,useless-suppression
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -18,7 +19,7 @@
from azure.core.credentials import TokenCredential


class ComputeBulkActionsMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class ComputeBulkActionsMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long,docstring-keyword-should-match-keyword-only
"""Configuration for ComputeBulkActionsMgmtClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -34,7 +35,7 @@ class ComputeBulkActionsMgmtClientConfiguration: # pylint: disable=too-many-ins
None.
:type cloud_setting: ~azure.core.AzureClouds
:keyword api_version: The API version to use for this operation. Known values are
"2026-07-06-preview" and None. Default value is None. If not set, the operation's default API
"2026-08-06-preview" and None. Default value is None. If not set, the operation's default API
version will be used. Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
Expand All @@ -48,7 +49,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2026-07-06-preview")
api_version: str = kwargs.pop("api_version", "2026-08-06-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down Expand Up @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr):
return int(attr)


def _deserialize_bool_as_str(attr):
if isinstance(attr, bool):
return attr
return attr.lower() == "true"


_DESERIALIZE_MAPPING = {
datetime: _deserialize_datetime,
date: _deserialize_date,
Expand Down Expand Up @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr):
def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None):
if annotation is int and rf and rf._format == "str":
return _deserialize_int_as_str
if annotation is bool and rf and rf._format == "str":
return _deserialize_bool_as_str
if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING:
return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format])
if rf and rf._format:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b2"
VERSION = "1.0.0b3"
Loading
Loading