diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md b/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md
index c717529e3354..81c114656825 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md
@@ -1,5 +1,67 @@
# Release History
+## 1.0.0b4 (2026-09-11)
+
+### Features Added
+
+ - Client `ComputeBulkActionsMgmtClient` added operation group `bulk_create`
+ - Enum `ScheduledActionsProvisioningState` added member `UPDATING`
+ - Model `VirtualMachineInfo` added property `name`
+ - Model `ZonePreference` added property `target_max_capacity`
+ - Added model `BulkCreateProperties`
+ - Added model `BulkCreateVmSizeProfile`
+ - Added model `LocationBasedBulkCreate`
+ - Added operation group `BulkCreateOperations`
+
+### Breaking Changes
+
+ - Deleted or renamed client operation group `ComputeBulkActionsMgmtClient.launch_bulk_instances_operation`
+ - Deleted or renamed enum value `DeadlineType.UNKNOWN`
+ - Model `ExecutionParameters` deleted or renamed its instance variable `optimization_preference`
+ - Deleted or renamed enum value `OperationState.PENDING_EXECUTION`
+ - Deleted or renamed enum value `OperationState.PENDING_SCHEDULING`
+ - Deleted or renamed enum value `OperationState.UNKNOWN`
+ - Deleted or renamed enum value `ResourceOperationType.GET_INSTANCE_VIEW`
+ - Deleted or renamed enum value `ResourceOperationType.UNKNOWN`
+ - Deleted or renamed enum value `ScheduledActionsDeadlineType.UNKNOWN`
+ - Model `ScheduledActionsExecutionParameters` deleted or renamed its instance variable `optimization_preference`
+ - Deleted or renamed enum value `ScheduledActionsResourceOperationType.UNKNOWN`
+ - Deleted or renamed model `AcceleratorManufacturer`
+ - Deleted or renamed model `AcceleratorType`
+ - Deleted or renamed model `AcknowledgeBulkOperationErrorsRequest`
+ - Deleted or renamed model `AcknowledgeBulkOperationErrorsResponse`
+ - Deleted or renamed model `ApiError`
+ - Deleted or renamed model `ApiErrorBase`
+ - Deleted or renamed model `ArchitectureType`
+ - Deleted or renamed model `BulkInstancesInnerError`
+ - Deleted or renamed model `CpuManufacturer`
+ - Deleted or renamed model `CreateResourceOperationResponse`
+ - Deleted or renamed model `ExecuteCreateContent`
+ - Deleted or renamed model `ExecuteVdiCreateRequest`
+ - Deleted or renamed model `FlexProperties`
+ - Deleted or renamed model `HyperVGeneration`
+ - Deleted or renamed model `LaunchBulkInstancesOperationProperties`
+ - Deleted or renamed model `LocalStorageDiskType`
+ - Deleted or renamed model `LocationBasedLaunchBulkInstancesOperation`
+ - Deleted or renamed model `OptimizationPreference`
+ - Deleted or renamed model `OsType`
+ - Deleted or renamed model `ResourceProvisionPayload`
+ - Deleted or renamed model `ResourceProvisionVdiPayload`
+ - Deleted or renamed model `VMAttributeMinMaxDouble`
+ - Deleted or renamed model `VMAttributeMinMaxInteger`
+ - Deleted or renamed model `VMAttributeSupport`
+ - Deleted or renamed model `VMAttributes`
+ - Deleted or renamed model `VMCategory`
+ - Deleted or renamed model `VMOperationStatus`
+ - Deleted or renamed model `VirtualMachine`
+ - Deleted or renamed model `VmSizeProfile`
+ - Deleted or renamed method `VirtualMachineBulkOperationsOperations.bulk_acknowledge_operation_errors`
+ - Deleted or renamed method `VirtualMachineBulkOperationsOperations.bulk_create_operation`
+ - Deleted or renamed method `VirtualMachineBulkOperationsOperations.bulk_list_operation_errors`
+ - Deleted or renamed method `VirtualMachineBulkOperationsOperations.bulk_vdi_flex_create_operation`
+ - Deleted or renamed operation group `LaunchBulkInstancesOperationOperations`
+ - Operation group `BulkCreateCustomOperations.virtual_machines_get_operation_status` changed return type from `GetOperationStatusResponse` to `ItemPaged[ResourceOperation]`
+
## 1.0.0b3 (2026-08-13)
### Features Added
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json b/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json
index 7b61f98d4e0a..c9f8b2cd5bee 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json
@@ -1,11 +1,11 @@
{
- "apiVersion": "2026-08-06-preview",
+ "apiVersion": "2026-09-06-preview",
"apiVersions": {
- "Microsoft.Compute": "2026-08-06-preview"
+ "Microsoft.Compute": "2026-09-06-preview"
},
- "commit": "da7c67564bd3344610ffb0ec21a1974e79ffb00a",
+ "commit": "43e3626d45f0c104b0ac50c1540fc2168371b212",
"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.35.1"
+ "emitterVersion": "0.63.6",
+ "httpClientPythonVersion": "^0.37.1"
}
\ No newline at end of file
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/api.md b/sdk/compute/azure-mgmt-compute-bulkaction/api.md
index 1bb8d0e0f18f..607c035a90de 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/api.md
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/api.md
@@ -2,8 +2,8 @@
namespace azure.mgmt.compute.bulkaction
class azure.mgmt.compute.bulkaction.ComputeBulkActionsMgmtClient: implements ContextManager
+ bulk_create: BulkCreateOperations
bulk_create_custom: BulkCreateCustomOperations
- launch_bulk_instances_operation: LaunchBulkInstancesOperationOperations
occurrence_extension: OccurrenceExtensionOperations
occurrences: OccurrencesOperations
operations: Operations
@@ -38,8 +38,8 @@ namespace azure.mgmt.compute.bulkaction
namespace azure.mgmt.compute.bulkaction.aio
class azure.mgmt.compute.bulkaction.aio.ComputeBulkActionsMgmtClient: implements AsyncContextManager
+ bulk_create: BulkCreateOperations
bulk_create_custom: BulkCreateCustomOperations
- launch_bulk_instances_operation: LaunchBulkInstancesOperationOperations
occurrence_extension: OccurrenceExtensionOperations
occurrences: OccurrencesOperations
operations: Operations
@@ -82,7 +82,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> None: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_cancel(
self,
resource_group_name: str,
@@ -128,7 +128,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[LocationBasedBulkCreateCustom]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_delete(
self,
resource_group_name: str,
@@ -140,7 +140,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[None]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def get(
self,
resource_group_name: str,
@@ -150,7 +150,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> LocationBasedBulkCreateCustom: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def get_async_operation_status(
self,
location: str,
@@ -159,7 +159,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> OperationStatusResult: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
@@ -168,25 +168,25 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncItemPaged[LocationBasedBulkCreateCustom]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_subscription(
self,
location: str,
**kwargs: Any
) -> AsyncItemPaged[LocationBasedBulkCreateCustom]: ...
- @distributed_trace_async
- @api_version_validation(method_added_on='2026-08-06-preview', params_added_on={'2026-08-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-08-06-preview'])
- async def virtual_machines_get_operation_status(
+ @distributed_trace
+ @api_version_validation(method_added_on='2026-08-06-preview', params_added_on={'2026-08-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-08-06-preview', '2026-09-06-preview'])
+ def virtual_machines_get_operation_status(
self,
resource_group_name: str,
location: str,
name: str,
**kwargs: Any
- ) -> GetOperationStatusResponse: ...
+ ) -> AsyncItemPaged[ResourceOperation]: ...
- class azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations:
+ class azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations:
def __init__(
self,
@@ -195,7 +195,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> None: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-09-06-preview'])
async def begin_cancel(
self,
resource_group_name: str,
@@ -210,11 +210,11 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
resource_group_name: str,
location: str,
name: str,
- resource: LocationBasedLaunchBulkInstancesOperation,
+ resource: LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> AsyncLROPoller[LocationBasedBulkCreate]: ...
@overload
async def begin_create_or_update(
@@ -222,11 +222,11 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
resource_group_name: str,
location: str,
name: str,
- resource: LocationBasedLaunchBulkInstancesOperation,
+ resource: LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> AsyncLROPoller[LocationBasedBulkCreate]: ...
@overload
async def begin_create_or_update(
@@ -238,10 +238,10 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> AsyncLROPoller[LocationBasedBulkCreate]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-09-06-preview'])
async def begin_delete(
self,
resource_group_name: str,
@@ -253,18 +253,18 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[None]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-09-06-preview'])
async def get(
self,
resource_group_name: str,
location: str,
name: str,
**kwargs: Any
- ) -> LocationBasedLaunchBulkInstancesOperation: ...
+ ) -> LocationBasedBulkCreate: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- async def get_operation_status(
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-09-06-preview'])
+ async def get_async_operation_status(
self,
location: str,
async_operation_id: str,
@@ -272,34 +272,31 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> OperationStatusResult: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
location: str,
**kwargs: Any
- ) -> AsyncItemPaged[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> AsyncItemPaged[LocationBasedBulkCreate]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-09-06-preview'])
def list_by_subscription(
self,
location: str,
**kwargs: Any
- ) -> AsyncItemPaged[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> AsyncItemPaged[LocationBasedBulkCreate]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'filter', 'skiptoken', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- def list_virtual_machines(
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-09-06-preview'])
+ def virtual_machines_get_operation_status(
self,
resource_group_name: str,
location: str,
name: str,
- *,
- filter: Optional[str] = ...,
- skiptoken: Optional[str] = ...,
**kwargs: Any
- ) -> AsyncItemPaged[VirtualMachine]: ...
+ ) -> AsyncItemPaged[ResourceOperation]: ...
class azure.mgmt.compute.bulkaction.aio.operations.OccurrenceExtensionOperations:
@@ -311,7 +308,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_occurrence_by_vms(
self,
resource_uri: str,
@@ -400,7 +397,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[ResourceOperationResponse]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def get(
self,
resource_group_name: str,
@@ -410,7 +407,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> Occurrence: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_scheduled_action(
self,
resource_group_name: str,
@@ -419,7 +416,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncItemPaged[Occurrence]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_resources(
self,
resource_group_name: str,
@@ -450,7 +447,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_vms(
self,
resource_uri: str,
@@ -467,7 +464,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> None: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def get(
self,
location: str,
@@ -584,7 +581,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[ScheduledAction]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_delete(
self,
resource_group_name: str,
@@ -626,7 +623,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[ResourceOperationResponse]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_disable(
self,
resource_group_name: str,
@@ -635,7 +632,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[None]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_enable(
self,
resource_group_name: str,
@@ -644,7 +641,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[None]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def begin_trigger_manual_occurrence(
self,
resource_group_name: str,
@@ -686,7 +683,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncLROPoller[None]: ...
@distributed_trace_async
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
async def get(
self,
resource_group_name: str,
@@ -695,7 +692,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> ScheduledAction: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
@@ -703,11 +700,11 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
) -> AsyncItemPaged[ScheduledAction]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged[ScheduledAction]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_resources(
self,
resource_group_name: str,
@@ -757,39 +754,6 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
**kwargs
) -> None: ...
- @overload
- async def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: AcknowledgeBulkOperationErrorsRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
- @overload
- async def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: AcknowledgeBulkOperationErrorsRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
- @overload
- async def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
@overload
async def bulk_cancel_operations(
self,
@@ -823,39 +787,6 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
**kwargs: Any
) -> CancelOperationsResponse: ...
- @overload
- async def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteCreateContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- async def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteCreateContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- async def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
@overload
async def bulk_deallocate_operation(
self,
@@ -988,17 +919,6 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
**kwargs: Any
) -> HibernateResourceOperationResponse: ...
- @distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'lookback_in_minutes', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- def bulk_list_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- *,
- lookback_in_minutes: Optional[int] = ...,
- **kwargs: Any
- ) -> AsyncItemPaged[ResourceOperation]: ...
-
@overload
async def bulk_reimage_operation(
self,
@@ -1065,85 +985,9 @@ namespace azure.mgmt.compute.bulkaction.aio.operations
**kwargs: Any
) -> StartResourceOperationResponse: ...
- @overload
- async def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteVdiCreateRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- async def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteVdiCreateRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- async def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
namespace azure.mgmt.compute.bulkaction.models
- class azure.mgmt.compute.bulkaction.models.AcceleratorManufacturer(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- AMD = "AMD"
- NVIDIA = "Nvidia"
- XILINX = "Xilinx"
-
-
- class azure.mgmt.compute.bulkaction.models.AcceleratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- FPGA = "FPGA"
- GPU = "GPU"
-
-
- class azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest(_Model):
- operation_ids: list[str]
-
- @overload
- def __init__(
- self,
- *,
- operation_ids: list[str]
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse(_Model):
- acknowledged: list[str]
- not_found: list[str]
- skipped: list[str]
-
- @overload
- def __init__(
- self,
- *,
- acknowledged: list[str],
- not_found: list[str],
- skipped: list[str]
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
INTERNAL = "Internal"
@@ -1218,46 +1062,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.ApiError(_Model):
- code: Optional[str]
- details: Optional[list[ApiErrorBase]]
- innererror: Optional[BulkInstancesInnerError]
- message: Optional[str]
- target: Optional[str]
-
- @overload
- def __init__(
- self,
- *,
- code: Optional[str] = ...,
- details: Optional[list[ApiErrorBase]] = ...,
- innererror: Optional[BulkInstancesInnerError] = ...,
- message: Optional[str] = ...,
- target: Optional[str] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.ApiErrorBase(_Model):
- code: Optional[str]
- message: Optional[str]
- target: Optional[str]
-
- @overload
- def __init__(
- self,
- *,
- code: Optional[str] = ...,
- message: Optional[str] = ...,
- target: Optional[str] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.ApplicationProfile(_Model):
gallery_applications: Optional[list[VMGalleryApplication]]
@@ -1272,11 +1076,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.ArchitectureType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- ARM64 = "ARM64"
- X64 = "X64"
-
-
class azure.mgmt.compute.bulkaction.models.BootDiagnostics(_Model):
enabled: Optional[bool]
storage_uri: Optional[str]
@@ -1521,16 +1320,48 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.BulkInstancesInnerError(_Model):
- error_detail: Optional[str]
- exception_type: Optional[str]
+ class azure.mgmt.compute.bulkaction.models.BulkCreateProperties(_Model):
+ capacity: int
+ capacity_type: Optional[Union[str, CapacityType]]
+ compute_profile: ComputeProfile
+ created_time: Optional[datetime]
+ execution_parameters: Optional[ExecutionParameters]
+ min_capacity: Optional[int]
+ partial_fulfillment_policy: Optional[PartialFulfillmentPolicy]
+ priority_profile: PriorityProfile
+ provisioning_state: Optional[Union[str, ProvisioningState]]
+ vm_sizes_profile: Optional[list[BulkCreateVmSizeProfile]]
+ zone_allocation_policy: Optional[ZoneAllocationPolicy]
+
+ @overload
+ def __init__(
+ self,
+ *,
+ capacity: int,
+ capacity_type: Optional[Union[str, CapacityType]] = ...,
+ compute_profile: ComputeProfile,
+ execution_parameters: Optional[ExecutionParameters] = ...,
+ min_capacity: Optional[int] = ...,
+ partial_fulfillment_policy: Optional[PartialFulfillmentPolicy] = ...,
+ priority_profile: PriorityProfile,
+ vm_sizes_profile: Optional[list[BulkCreateVmSizeProfile]] = ...,
+ zone_allocation_policy: Optional[ZoneAllocationPolicy] = ...
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+
+ class azure.mgmt.compute.bulkaction.models.BulkCreateVmSizeProfile(_Model):
+ name: str
+ rank: Optional[int]
@overload
def __init__(
self,
*,
- error_detail: Optional[str] = ...,
- exception_type: Optional[str] = ...
+ name: str,
+ rank: Optional[int] = ...
) -> None: ...
@overload
@@ -1783,33 +1614,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.CpuManufacturer(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- AMD = "AMD"
- AMPERE = "Ampere"
- INTEL = "Intel"
- MICROSOFT = "Microsoft"
-
-
- class azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse(_Model):
- description: str
- location: str
- results: Optional[list[ResourceOperation]]
- type: str
-
- @overload
- def __init__(
- self,
- *,
- description: str,
- location: str,
- results: Optional[list[ResourceOperation]] = ...,
- type: str
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
APPLICATION = "Application"
KEY = "Key"
@@ -1858,7 +1662,6 @@ namespace azure.mgmt.compute.bulkaction.models
class azure.mgmt.compute.bulkaction.models.DeadlineType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
COMPLETE_BY = "CompleteBy"
INITIATE_AT = "InitiateAt"
- UNKNOWN = "Unknown"
class azure.mgmt.compute.bulkaction.models.DeallocateResourceOperationResponse(_Model):
@@ -2092,22 +1895,6 @@ namespace azure.mgmt.compute.bulkaction.models
DELETE = "Delete"
- class azure.mgmt.compute.bulkaction.models.ExecuteCreateContent(_Model):
- execution_parameters: ExecutionParameters
- resource_config_parameters: ResourceProvisionPayload
-
- @overload
- def __init__(
- self,
- *,
- execution_parameters: ExecutionParameters,
- resource_config_parameters: ResourceProvisionPayload
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent(_Model):
execution_parameters: ExecutionParameters
resources: Optional[Resources]
@@ -2202,25 +1989,8 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest(_Model):
- execution_parameters: ExecutionParameters
- resource_config_parameters: ResourceProvisionVdiPayload
-
- @overload
- def __init__(
- self,
- *,
- execution_parameters: ExecutionParameters,
- resource_config_parameters: ResourceProvisionVdiPayload
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.ExecutionParameters(_Model):
capacity_recommendation_parameters: Optional[CapacityRecommendationParameters]
- optimization_preference: Optional[Union[str, OptimizationPreference]]
retry_policy: Optional[RetryPolicy]
verify_vm_agent_health: Optional[bool]
@@ -2229,7 +1999,6 @@ namespace azure.mgmt.compute.bulkaction.models
self,
*,
capacity_recommendation_parameters: Optional[CapacityRecommendationParameters] = ...,
- optimization_preference: Optional[Union[str, OptimizationPreference]] = ...,
retry_policy: Optional[RetryPolicy] = ...,
verify_vm_agent_health: Optional[bool] = ...
) -> None: ...
@@ -2263,28 +2032,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.FlexProperties(_Model):
- min_capacity: Optional[int]
- os_type: Union[str, OsType]
- priority_profile: PriorityProfile
- vm_size_profiles: list[VmSizeProfile]
- zone_allocation_policy: Optional[ZoneAllocationPolicy]
-
- @overload
- def __init__(
- self,
- *,
- min_capacity: Optional[int] = ...,
- os_type: Union[str, OsType],
- priority_profile: PriorityProfile,
- vm_size_profiles: list[VmSizeProfile],
- zone_allocation_policy: Optional[ZoneAllocationPolicy] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.GetOperationStatusContent(_Model):
operation_ids: list[str]
@@ -2365,11 +2112,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- GEN1 = "Gen1"
- GEN2 = "Gen2"
-
-
class azure.mgmt.compute.bulkaction.models.IPVersions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
I_PV4 = "IPv4"
I_PV6 = "IPv6"
@@ -2437,36 +2179,6 @@ namespace azure.mgmt.compute.bulkaction.models
EN_US = "en-us"
- class azure.mgmt.compute.bulkaction.models.LaunchBulkInstancesOperationProperties(_Model):
- capacity: int
- capacity_type: Optional[Union[str, CapacityType]]
- compute_profile: ComputeProfile
- created_time: Optional[datetime]
- priority_profile: PriorityProfile
- provisioning_state: Optional[Union[str, ProvisioningState]]
- retry_policy: Optional[RetryPolicy]
- vm_attributes: Optional[VMAttributes]
- vm_sizes_profile: Optional[list[VmSizeProfile]]
- zone_allocation_policy: Optional[ZoneAllocationPolicy]
-
- @overload
- def __init__(
- self,
- *,
- capacity: int,
- capacity_type: Optional[Union[str, CapacityType]] = ...,
- compute_profile: ComputeProfile,
- priority_profile: PriorityProfile,
- retry_policy: Optional[RetryPolicy] = ...,
- vm_attributes: Optional[VMAttributes] = ...,
- vm_sizes_profile: Optional[list[VmSizeProfile]] = ...,
- zone_allocation_policy: Optional[ZoneAllocationPolicy] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.LinuxConfiguration(_Model):
disable_password_authentication: Optional[bool]
enable_vm_agent_platform_updates: Optional[bool]
@@ -2540,17 +2252,12 @@ namespace azure.mgmt.compute.bulkaction.models
IMAGE_DEFAULT = "ImageDefault"
- class azure.mgmt.compute.bulkaction.models.LocalStorageDiskType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- HDD = "HDD"
- SSD = "SSD"
-
-
- class azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom(ProxyResource):
+ class azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate(ProxyResource):
id: str
identity: Optional[ManagedServiceIdentity]
name: str
plan: Optional[Plan]
- properties: Optional[BulkCreateCustomProperties]
+ properties: Optional[BulkCreateProperties]
system_data: SystemData
tags: Optional[dict[str, str]]
type: str
@@ -2562,7 +2269,7 @@ namespace azure.mgmt.compute.bulkaction.models
*,
identity: Optional[ManagedServiceIdentity] = ...,
plan: Optional[Plan] = ...,
- properties: Optional[BulkCreateCustomProperties] = ...,
+ properties: Optional[BulkCreateProperties] = ...,
tags: Optional[dict[str, str]] = ...,
zones: Optional[list[str]] = ...
) -> None: ...
@@ -2571,12 +2278,12 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation(ProxyResource):
+ class azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom(ProxyResource):
id: str
identity: Optional[ManagedServiceIdentity]
name: str
plan: Optional[Plan]
- properties: Optional[LaunchBulkInstancesOperationProperties]
+ properties: Optional[BulkCreateCustomProperties]
system_data: SystemData
tags: Optional[dict[str, str]]
type: str
@@ -2588,7 +2295,7 @@ namespace azure.mgmt.compute.bulkaction.models
*,
identity: Optional[ManagedServiceIdentity] = ...,
plan: Optional[Plan] = ...,
- properties: Optional[LaunchBulkInstancesOperationProperties] = ...,
+ properties: Optional[BulkCreateCustomProperties] = ...,
tags: Optional[dict[str, str]] = ...,
zones: Optional[list[str]] = ...
) -> None: ...
@@ -3017,11 +2724,8 @@ namespace azure.mgmt.compute.bulkaction.models
CANCELLED = "Cancelled"
EXECUTING = "Executing"
FAILED = "Failed"
- PENDING_EXECUTION = "PendingExecution"
- PENDING_SCHEDULING = "PendingScheduling"
SCHEDULED = "Scheduled"
SUCCEEDED = "Succeeded"
- UNKNOWN = "Unknown"
class azure.mgmt.compute.bulkaction.models.OperationStatusResult(_Model):
@@ -3053,23 +2757,12 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.OptimizationPreference(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- AVAILABILITY = "Availability"
- COST = "Cost"
- COST_AVAILABILITY_BALANCED = "CostAvailabilityBalanced"
-
-
class azure.mgmt.compute.bulkaction.models.Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta):
SYSTEM = "system"
USER = "user"
USER_SYSTEM = "user,system"
- class azure.mgmt.compute.bulkaction.models.OsType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- LINUX = "Linux"
- WINDOWS = "Windows"
-
-
class azure.mgmt.compute.bulkaction.models.PartialFulfillmentMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
DISABLED = "Disabled"
ENABLED = "Enabled"
@@ -3441,71 +3134,27 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.ResourceOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- FAILED = "Failed"
- SUCCEEDED = "Succeeded"
-
-
- class azure.mgmt.compute.bulkaction.models.ResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- CREATE = "Create"
- DEALLOCATE = "Deallocate"
- DELETE = "Delete"
- GET_INSTANCE_VIEW = "GetInstanceView"
- HIBERNATE = "Hibernate"
- START = "Start"
- UNKNOWN = "Unknown"
-
-
- class azure.mgmt.compute.bulkaction.models.ResourcePatchRequest(_Model):
- resources: list[ScheduledActionResourceInput]
-
- @overload
- def __init__(
- self,
- *,
- resources: list[ScheduledActionResourceInput]
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.ResourceProvisionPayload(_Model):
- base_profile: Optional[dict[str, Any]]
- resource_count: int
- resource_overrides: Optional[list[dict[str, Any]]]
- resource_prefix: Optional[str]
-
- @overload
- def __init__(
- self,
- *,
- base_profile: Optional[dict[str, Any]] = ...,
- resource_count: int,
- resource_overrides: Optional[list[dict[str, Any]]] = ...,
- resource_prefix: Optional[str] = ...
- ) -> None: ...
+ class azure.mgmt.compute.bulkaction.models.ResourceOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ FAILED = "Failed"
+ SUCCEEDED = "Succeeded"
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
+
+ class azure.mgmt.compute.bulkaction.models.ResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
+ CREATE = "Create"
+ DEALLOCATE = "Deallocate"
+ DELETE = "Delete"
+ HIBERNATE = "Hibernate"
+ START = "Start"
- class azure.mgmt.compute.bulkaction.models.ResourceProvisionVdiPayload(_Model):
- base_profile: Optional[dict[str, Any]]
- flex_properties: FlexProperties
- resource_count: int
- resource_overrides: Optional[list[dict[str, Any]]]
- resource_prefix: Optional[str]
+ class azure.mgmt.compute.bulkaction.models.ResourcePatchRequest(_Model):
+ resources: list[ScheduledActionResourceInput]
@overload
def __init__(
self,
*,
- base_profile: Optional[dict[str, Any]] = ...,
- flex_properties: FlexProperties,
- resource_count: int,
- resource_overrides: Optional[list[dict[str, Any]]] = ...,
- resource_prefix: Optional[str] = ...
+ resources: list[ScheduledActionResourceInput]
) -> None: ...
@overload
@@ -3768,18 +3417,15 @@ namespace azure.mgmt.compute.bulkaction.models
class azure.mgmt.compute.bulkaction.models.ScheduledActionsDeadlineType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
COMPLETE_BY = "CompleteBy"
INITIATE_AT = "InitiateAt"
- UNKNOWN = "Unknown"
class azure.mgmt.compute.bulkaction.models.ScheduledActionsExecutionParameters(_Model):
- optimization_preference: Optional[Union[str, OptimizationPreference]]
retry_policy: Optional[ScheduledActionsRetryPolicy]
@overload
def __init__(
self,
*,
- optimization_preference: Optional[Union[str, OptimizationPreference]] = ...,
retry_policy: Optional[ScheduledActionsRetryPolicy] = ...
) -> None: ...
@@ -3820,6 +3466,7 @@ namespace azure.mgmt.compute.bulkaction.models
DELETING = "Deleting"
FAILED = "Failed"
SUCCEEDED = "Succeeded"
+ UPDATING = "Updating"
class azure.mgmt.compute.bulkaction.models.ScheduledActionsResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -3828,7 +3475,6 @@ namespace azure.mgmt.compute.bulkaction.models
DELETE = "Delete"
HIBERNATE = "Hibernate"
START = "Start"
- UNKNOWN = "Unknown"
class azure.mgmt.compute.bulkaction.models.ScheduledActionsRetryPolicy(_Model):
@@ -4197,110 +3843,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble(_Model):
- max: Optional[float]
- min: Optional[float]
-
- @overload
- def __init__(
- self,
- *,
- max: Optional[float] = ...,
- min: Optional[float] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger(_Model):
- max: Optional[int]
- min: Optional[int]
-
- @overload
- def __init__(
- self,
- *,
- max: Optional[int] = ...,
- min: Optional[int] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.VMAttributeSupport(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- EXCLUDED = "Excluded"
- INCLUDED = "Included"
- REQUIRED = "Required"
-
-
- class azure.mgmt.compute.bulkaction.models.VMAttributes(_Model):
- accelerator_count: Optional[VMAttributeMinMaxInteger]
- accelerator_manufacturers: Optional[list[Union[str, AcceleratorManufacturer]]]
- accelerator_support: Optional[Union[str, VMAttributeSupport]]
- accelerator_types: Optional[list[Union[str, AcceleratorType]]]
- allowed_vm_sizes: Optional[list[str]]
- architecture_types: list[Union[str, ArchitectureType]]
- burstable_support: Optional[Union[str, VMAttributeSupport]]
- cpu_manufacturers: Optional[list[Union[str, CpuManufacturer]]]
- data_disk_count: Optional[VMAttributeMinMaxInteger]
- excluded_vm_sizes: Optional[list[str]]
- hyper_v_generations: Optional[list[Union[str, HyperVGeneration]]]
- local_storage_disk_types: Optional[list[Union[str, LocalStorageDiskType]]]
- local_storage_in_gi_b: Optional[VMAttributeMinMaxDouble]
- local_storage_support: Optional[Union[str, VMAttributeSupport]]
- memory_in_gi_b: VMAttributeMinMaxDouble
- memory_in_gi_b_per_v_cpu: Optional[VMAttributeMinMaxDouble]
- network_bandwidth_in_mbps: Optional[VMAttributeMinMaxDouble]
- network_interface_count: Optional[VMAttributeMinMaxInteger]
- rdma_network_interface_count: Optional[VMAttributeMinMaxInteger]
- rdma_support: Optional[Union[str, VMAttributeSupport]]
- v_cpu_count: VMAttributeMinMaxInteger
- vm_categories: Optional[list[Union[str, VMCategory]]]
-
- @overload
- def __init__(
- self,
- *,
- accelerator_count: Optional[VMAttributeMinMaxInteger] = ...,
- accelerator_manufacturers: Optional[list[Union[str, AcceleratorManufacturer]]] = ...,
- accelerator_support: Optional[Union[str, VMAttributeSupport]] = ...,
- accelerator_types: Optional[list[Union[str, AcceleratorType]]] = ...,
- allowed_vm_sizes: Optional[list[str]] = ...,
- architecture_types: list[Union[str, ArchitectureType]],
- burstable_support: Optional[Union[str, VMAttributeSupport]] = ...,
- cpu_manufacturers: Optional[list[Union[str, CpuManufacturer]]] = ...,
- data_disk_count: Optional[VMAttributeMinMaxInteger] = ...,
- excluded_vm_sizes: Optional[list[str]] = ...,
- hyper_v_generations: Optional[list[Union[str, HyperVGeneration]]] = ...,
- local_storage_disk_types: Optional[list[Union[str, LocalStorageDiskType]]] = ...,
- local_storage_in_gi_b: Optional[VMAttributeMinMaxDouble] = ...,
- local_storage_support: Optional[Union[str, VMAttributeSupport]] = ...,
- memory_in_gi_b: VMAttributeMinMaxDouble,
- memory_in_gi_b_per_v_cpu: Optional[VMAttributeMinMaxDouble] = ...,
- network_bandwidth_in_mbps: Optional[VMAttributeMinMaxDouble] = ...,
- network_interface_count: Optional[VMAttributeMinMaxInteger] = ...,
- rdma_network_interface_count: Optional[VMAttributeMinMaxInteger] = ...,
- rdma_support: Optional[Union[str, VMAttributeSupport]] = ...,
- v_cpu_count: VMAttributeMinMaxInteger,
- vm_categories: Optional[list[Union[str, VMCategory]]] = ...
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
- class azure.mgmt.compute.bulkaction.models.VMCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- COMPUTE_OPTIMIZED = "ComputeOptimized"
- FPGA_ACCELERATED = "FpgaAccelerated"
- GENERAL_PURPOSE = "GeneralPurpose"
- GPU_ACCELERATED = "GpuAccelerated"
- HIGH_PERFORMANCE_COMPUTE = "HighPerformanceCompute"
- MEMORY_OPTIMIZED = "MemoryOptimized"
- STORAGE_OPTIMIZED = "StorageOptimized"
-
-
class azure.mgmt.compute.bulkaction.models.VMDiskSecurityProfile(_Model):
disk_encryption_set: Optional[DiskEncryptionSetParametersContent]
security_encryption_type: Optional[Union[str, SecurityEncryptionTypes]]
@@ -4341,16 +3883,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.VMOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- CANCELED = "Canceled"
- CANCELLING = "Cancelling"
- CANCEL_FAILED_STATUS_UNKNOWN = "CancelFailedStatusUnknown"
- CREATING = "Creating"
- DELETING = "Deleting"
- FAILED = "Failed"
- SUCCEEDED = "Succeeded"
-
-
class azure.mgmt.compute.bulkaction.models.VaultCertificate(_Model):
certificate_store: Optional[str]
certificate_url: Optional[str]
@@ -4397,14 +3929,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.VirtualMachine(_Model):
- error: Optional[ApiError]
- id: str
- name: str
- operation_status: Union[str, VMOperationStatus]
- type: Optional[str]
-
-
class azure.mgmt.compute.bulkaction.models.VirtualMachineIdentity(_Model):
principal_id: Optional[str]
tenant_id: Optional[str]
@@ -4424,6 +3948,7 @@ namespace azure.mgmt.compute.bulkaction.models
class azure.mgmt.compute.bulkaction.models.VirtualMachineInfo(_Model):
+ name: str
vm_size: Optional[str]
zone: Optional[str]
@@ -4431,6 +3956,7 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(
self,
*,
+ name: str,
vm_size: Optional[str] = ...,
zone: Optional[str] = ...
) -> None: ...
@@ -4645,22 +4171,6 @@ namespace azure.mgmt.compute.bulkaction.models
def __init__(self, mapping: Mapping[str, Any]) -> None: ...
- class azure.mgmt.compute.bulkaction.models.VmSizeProfile(_Model):
- name: str
- rank: int
-
- @overload
- def __init__(
- self,
- *,
- name: str,
- rank: int
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None: ...
-
-
class azure.mgmt.compute.bulkaction.models.VmSizeProperties(_Model):
v_cpus_available: Optional[int]
v_cpus_per_core: Optional[int]
@@ -4794,6 +4304,7 @@ namespace azure.mgmt.compute.bulkaction.models
class azure.mgmt.compute.bulkaction.models.ZonePreference(_Model):
rank: int
+ target_max_capacity: Optional[int]
zone: str
@overload
@@ -4801,6 +4312,7 @@ namespace azure.mgmt.compute.bulkaction.models
self,
*,
rank: int,
+ target_max_capacity: Optional[int] = ...,
zone: str
) -> None: ...
@@ -4819,7 +4331,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_cancel(
self,
resource_group_name: str,
@@ -4865,7 +4377,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[LocationBasedBulkCreateCustom]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_delete(
self,
resource_group_name: str,
@@ -4877,7 +4389,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[None]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def get(
self,
resource_group_name: str,
@@ -4887,7 +4399,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LocationBasedBulkCreateCustom: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def get_async_operation_status(
self,
location: str,
@@ -4896,7 +4408,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> OperationStatusResult: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
@@ -4905,7 +4417,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> ItemPaged[LocationBasedBulkCreateCustom]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_subscription(
self,
location: str,
@@ -4913,17 +4425,17 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> ItemPaged[LocationBasedBulkCreateCustom]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-08-06-preview', params_added_on={'2026-08-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-08-06-preview', params_added_on={'2026-08-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-08-06-preview', '2026-09-06-preview'])
def virtual_machines_get_operation_status(
self,
resource_group_name: str,
location: str,
name: str,
**kwargs: Any
- ) -> GetOperationStatusResponse: ...
+ ) -> ItemPaged[ResourceOperation]: ...
- class azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations:
+ class azure.mgmt.compute.bulkaction.operations.BulkCreateOperations:
def __init__(
self,
@@ -4932,7 +4444,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name']}, api_versions_list=['2026-09-06-preview'])
def begin_cancel(
self,
resource_group_name: str,
@@ -4947,11 +4459,11 @@ namespace azure.mgmt.compute.bulkaction.operations
resource_group_name: str,
location: str,
name: str,
- resource: LocationBasedLaunchBulkInstancesOperation,
+ resource: LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> LROPoller[LocationBasedBulkCreate]: ...
@overload
def begin_create_or_update(
@@ -4959,11 +4471,11 @@ namespace azure.mgmt.compute.bulkaction.operations
resource_group_name: str,
location: str,
name: str,
- resource: LocationBasedLaunchBulkInstancesOperation,
+ resource: LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> LROPoller[LocationBasedBulkCreate]: ...
@overload
def begin_create_or_update(
@@ -4975,10 +4487,10 @@ namespace azure.mgmt.compute.bulkaction.operations
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> LROPoller[LocationBasedBulkCreate]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'delete_instances']}, api_versions_list=['2026-09-06-preview'])
def begin_delete(
self,
resource_group_name: str,
@@ -4990,18 +4502,18 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[None]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-09-06-preview'])
def get(
self,
resource_group_name: str,
location: str,
name: str,
**kwargs: Any
- ) -> LocationBasedLaunchBulkInstancesOperation: ...
+ ) -> LocationBasedBulkCreate: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- def get_operation_status(
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'location', 'async_operation_id', 'accept']}, api_versions_list=['2026-09-06-preview'])
+ def get_async_operation_status(
self,
location: str,
async_operation_id: str,
@@ -5009,34 +4521,31 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> OperationStatusResult: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'accept']}, api_versions_list=['2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
location: str,
**kwargs: Any
- ) -> ItemPaged[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> ItemPaged[LocationBasedBulkCreate]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'location', 'accept']}, api_versions_list=['2026-09-06-preview'])
def list_by_subscription(
self,
location: str,
**kwargs: Any
- ) -> ItemPaged[LocationBasedLaunchBulkInstancesOperation]: ...
+ ) -> ItemPaged[LocationBasedBulkCreate]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'filter', 'skiptoken', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- def list_virtual_machines(
+ @api_version_validation(method_added_on='2026-09-06-preview', params_added_on={'2026-09-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'name', 'accept']}, api_versions_list=['2026-09-06-preview'])
+ def virtual_machines_get_operation_status(
self,
resource_group_name: str,
location: str,
name: str,
- *,
- filter: Optional[str] = ...,
- skiptoken: Optional[str] = ...,
**kwargs: Any
- ) -> ItemPaged[VirtualMachine]: ...
+ ) -> ItemPaged[ResourceOperation]: ...
class azure.mgmt.compute.bulkaction.operations.OccurrenceExtensionOperations:
@@ -5048,7 +4557,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_occurrence_by_vms(
self,
resource_uri: str,
@@ -5137,7 +4646,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[ResourceOperationResponse]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def get(
self,
resource_group_name: str,
@@ -5147,7 +4656,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> Occurrence: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_scheduled_action(
self,
resource_group_name: str,
@@ -5156,7 +4665,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> ItemPaged[Occurrence]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'occurrence_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_resources(
self,
resource_group_name: str,
@@ -5187,7 +4696,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'resource_uri', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_vms(
self,
resource_uri: str,
@@ -5204,7 +4713,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> None: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'location', 'operation_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def get(
self,
location: str,
@@ -5321,7 +4830,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[ScheduledAction]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_delete(
self,
resource_group_name: str,
@@ -5363,7 +4872,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[ResourceOperationResponse]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_disable(
self,
resource_group_name: str,
@@ -5372,7 +4881,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[None]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_enable(
self,
resource_group_name: str,
@@ -5381,7 +4890,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[None]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def begin_trigger_manual_occurrence(
self,
resource_group_name: str,
@@ -5423,7 +4932,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> LROPoller[None]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def get(
self,
resource_group_name: str,
@@ -5432,7 +4941,7 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> ScheduledAction: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_resource_group(
self,
resource_group_name: str,
@@ -5440,11 +4949,11 @@ namespace azure.mgmt.compute.bulkaction.operations
) -> ItemPaged[ScheduledAction]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_by_subscription(self, **kwargs: Any) -> ItemPaged[ScheduledAction]: ...
@distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
+ @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'scheduled_action_name', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview', '2026-09-06-preview'])
def list_resources(
self,
resource_group_name: str,
@@ -5494,39 +5003,6 @@ namespace azure.mgmt.compute.bulkaction.operations
**kwargs
) -> None: ...
- @overload
- def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: AcknowledgeBulkOperationErrorsRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
- @overload
- def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: AcknowledgeBulkOperationErrorsRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
- @overload
- def bulk_acknowledge_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> AcknowledgeBulkOperationErrorsResponse: ...
-
@overload
def bulk_cancel_operations(
self,
@@ -5560,39 +5036,6 @@ namespace azure.mgmt.compute.bulkaction.operations
**kwargs: Any
) -> CancelOperationsResponse: ...
- @overload
- def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteCreateContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteCreateContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- def bulk_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
@overload
def bulk_deallocate_operation(
self,
@@ -5725,17 +5168,6 @@ namespace azure.mgmt.compute.bulkaction.operations
**kwargs: Any
) -> HibernateResourceOperationResponse: ...
- @distributed_trace
- @api_version_validation(method_added_on='2026-07-06-preview', params_added_on={'2026-07-06-preview': ['api_version', 'subscription_id', 'resource_group_name', 'location', 'lookback_in_minutes', 'accept']}, api_versions_list=['2026-07-06-preview', '2026-08-06-preview'])
- def bulk_list_operation_errors(
- self,
- resource_group_name: str,
- location: str,
- *,
- lookback_in_minutes: Optional[int] = ...,
- **kwargs: Any
- ) -> ItemPaged[ResourceOperation]: ...
-
@overload
def bulk_reimage_operation(
self,
@@ -5802,47 +5234,9 @@ namespace azure.mgmt.compute.bulkaction.operations
**kwargs: Any
) -> StartResourceOperationResponse: ...
- @overload
- def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteVdiCreateRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: ExecuteVdiCreateRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
- @overload
- def bulk_vdi_flex_create_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> CreateResourceOperationResponse: ...
-
namespace azure.mgmt.compute.bulkaction.types
- class azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest(TypedDict, total=False):
- key "operationIds": Required[list[str]]
- operationIds: list[str]
-
-
class azure.mgmt.compute.bulkaction.types.AdditionalCapabilities(TypedDict, total=False):
key "hibernationEnabled": bool
key "ultraSSDEnabled": bool
@@ -6001,6 +5395,37 @@ namespace azure.mgmt.compute.bulkaction.types
zonePreferences: list[ZonePreference]
+ class azure.mgmt.compute.bulkaction.types.BulkCreateProperties(TypedDict, total=False):
+ key "capacity": Required[int]
+ key "capacityType": Union[str, CapacityType]
+ key "computeProfile": Required[ComputeProfile]
+ key "createdTime": str
+ key "executionParameters": ForwardRef('ExecutionParameters', module='types')
+ key "minCapacity": int
+ key "partialFulfillmentPolicy": ForwardRef('PartialFulfillmentPolicy', module='types')
+ key "priorityProfile": Required[PriorityProfile]
+ key "provisioningState": Union[str, ProvisioningState]
+ key "zoneAllocationPolicy": ForwardRef('ZoneAllocationPolicy', module='types')
+ capacity: int
+ capacityType: Union[str, CapacityType]
+ computeProfile: ComputeProfile
+ createdTime: str
+ executionParameters: ExecutionParameters
+ minCapacity: int
+ partialFulfillmentPolicy: PartialFulfillmentPolicy
+ priorityProfile: PriorityProfile
+ provisioningState: Union[str, ProvisioningState]
+ vmSizesProfile: list[BulkCreateVmSizeProfile]
+ zoneAllocationPolicy: ZoneAllocationPolicy
+
+
+ class azure.mgmt.compute.bulkaction.types.BulkCreateVmSizeProfile(TypedDict, total=False):
+ key "name": Required[str]
+ key "rank": int
+ name: str
+ rank: int
+
+
class azure.mgmt.compute.bulkaction.types.BulkactionVMExtension(TypedDict, total=False):
key "name": Required[str]
key "properties": Required[BulkActionVmExtensionProperties]
@@ -6144,13 +5569,6 @@ namespace azure.mgmt.compute.bulkaction.types
scheduledEventsApiVersion: str
- class azure.mgmt.compute.bulkaction.types.ExecuteCreateContent(TypedDict, total=False):
- key "executionParameters": Required[ExecutionParameters]
- key "resourceConfigParameters": Required[ResourceProvisionPayload]
- executionParameters: ExecutionParameters
- resourceConfigParameters: ResourceProvisionPayload
-
-
class azure.mgmt.compute.bulkaction.types.ExecuteDeallocateContent(TypedDict, total=False):
key "executionParameters": Required[ExecutionParameters]
key "resources": ForwardRef('Resources', module='types')
@@ -6200,37 +5618,15 @@ namespace azure.mgmt.compute.bulkaction.types
resourcesWithContext: ResourcesWithContext
- class azure.mgmt.compute.bulkaction.types.ExecuteVdiCreateRequest(TypedDict, total=False):
- key "executionParameters": Required[ExecutionParameters]
- key "resourceConfigParameters": Required[ResourceProvisionVdiPayload]
- executionParameters: ExecutionParameters
- resourceConfigParameters: ResourceProvisionVdiPayload
-
-
class azure.mgmt.compute.bulkaction.types.ExecutionParameters(TypedDict, total=False):
key "capacityRecommendationParameters": ForwardRef('CapacityRecommendationParameters', module='types')
- key "optimizationPreference": Union[str, OptimizationPreference]
key "retryPolicy": ForwardRef('RetryPolicy', module='types')
key "verifyVmAgentHealth": bool
capacityRecommendationParameters: CapacityRecommendationParameters
- optimizationPreference: Union[str, OptimizationPreference]
retryPolicy: RetryPolicy
verifyVmAgentHealth: bool
- class azure.mgmt.compute.bulkaction.types.FlexProperties(TypedDict, total=False):
- key "minCapacity": int
- key "osType": Required[Union[str, OsType]]
- key "priorityProfile": Required[PriorityProfile]
- key "vmSizeProfiles": Required[list[VmSizeProfile]]
- key "zoneAllocationPolicy": ForwardRef('ZoneAllocationPolicy', module='types')
- minCapacity: int
- osType: Union[str, OsType]
- priorityProfile: PriorityProfile
- vmSizeProfiles: list[VmSizeProfile]
- zoneAllocationPolicy: ZoneAllocationPolicy
-
-
class azure.mgmt.compute.bulkaction.types.GetOperationStatusContent(TypedDict, total=False):
key "operationIds": Required[list[str]]
operationIds: list[str]
@@ -6281,28 +5677,6 @@ namespace azure.mgmt.compute.bulkaction.types
sourceVault: SubResource
- class azure.mgmt.compute.bulkaction.types.LaunchBulkInstancesOperationProperties(TypedDict, total=False):
- key "capacity": Required[int]
- key "capacityType": Union[str, CapacityType]
- key "computeProfile": Required[ComputeProfile]
- key "createdTime": str
- key "priorityProfile": Required[PriorityProfile]
- key "provisioningState": Union[str, ProvisioningState]
- key "retryPolicy": ForwardRef('RetryPolicy', module='types')
- key "vmAttributes": ForwardRef('VMAttributes', module='types')
- key "zoneAllocationPolicy": ForwardRef('ZoneAllocationPolicy', module='types')
- capacity: int
- capacityType: Union[str, CapacityType]
- computeProfile: ComputeProfile
- createdTime: str
- priorityProfile: PriorityProfile
- provisioningState: Union[str, ProvisioningState]
- retryPolicy: RetryPolicy
- vmAttributes: VMAttributes
- vmSizesProfile: list[VmSizeProfile]
- zoneAllocationPolicy: ZoneAllocationPolicy
-
-
class azure.mgmt.compute.bulkaction.types.LinuxConfiguration(TypedDict, total=False):
key "disablePasswordAuthentication": bool
key "enableVMAgentPlatformUpdates": bool
@@ -6332,38 +5706,38 @@ namespace azure.mgmt.compute.bulkaction.types
rebootSetting: Union[str, LinuxVMGuestPatchAutomaticByPlatformRebootSetting]
- class azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom(ProxyResource):
+ class azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreate(ProxyResource):
key "id": str
key "identity": ForwardRef('ManagedServiceIdentity', module='types')
key "name": str
key "plan": ForwardRef('Plan', module='types')
- key "properties": ForwardRef('BulkCreateCustomProperties', module='types')
+ key "properties": ForwardRef('BulkCreateProperties', module='types')
key "systemData": ForwardRef('SystemData', module='types')
key "type": str
id: str
identity: ManagedServiceIdentity
name: str
plan: Plan
- properties: BulkCreateCustomProperties
+ properties: BulkCreateProperties
systemData: SystemData
tags: dict[str, str]
type: str
zones: list[str]
- class azure.mgmt.compute.bulkaction.types.LocationBasedLaunchBulkInstancesOperation(ProxyResource):
+ class azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom(ProxyResource):
key "id": str
key "identity": ForwardRef('ManagedServiceIdentity', module='types')
key "name": str
key "plan": ForwardRef('Plan', module='types')
- key "properties": ForwardRef('LaunchBulkInstancesOperationProperties', module='types')
+ key "properties": ForwardRef('BulkCreateCustomProperties', module='types')
key "systemData": ForwardRef('SystemData', module='types')
key "type": str
id: str
identity: ManagedServiceIdentity
name: str
plan: Plan
- properties: LaunchBulkInstancesOperationProperties
+ properties: BulkCreateCustomProperties
systemData: SystemData
tags: dict[str, str]
type: str
@@ -6600,26 +5974,6 @@ namespace azure.mgmt.compute.bulkaction.types
resources: list[ScheduledActionResourceInput]
- class azure.mgmt.compute.bulkaction.types.ResourceProvisionPayload(TypedDict, total=False):
- key "resourceCount": Required[int]
- key "resourcePrefix": str
- baseProfile: dict[str, Any]
- resourceCount: int
- resourceOverrides: list[dict[str, Any]]
- resourcePrefix: str
-
-
- class azure.mgmt.compute.bulkaction.types.ResourceProvisionVdiPayload(TypedDict, total=False):
- key "flexProperties": Required[FlexProperties]
- key "resourceCount": Required[int]
- key "resourcePrefix": str
- baseProfile: dict[str, Any]
- flexProperties: FlexProperties
- resourceCount: int
- resourceOverrides: list[dict[str, Any]]
- resourcePrefix: str
-
-
class azure.mgmt.compute.bulkaction.types.ResourceWithContext(TypedDict, total=False):
key "resourceContext": Required[str]
key "resourceId": Required[str]
@@ -6710,9 +6064,7 @@ namespace azure.mgmt.compute.bulkaction.types
class azure.mgmt.compute.bulkaction.types.ScheduledActionsExecutionParameters(TypedDict, total=False):
- key "optimizationPreference": Union[str, OptimizationPreference]
key "retryPolicy": ForwardRef('ScheduledActionsRetryPolicy', module='types')
- optimizationPreference: Union[str, OptimizationPreference]
retryPolicy: ScheduledActionsRetryPolicy
@@ -6882,59 +6234,6 @@ namespace azure.mgmt.compute.bulkaction.types
automaticallyApprove: bool
- class azure.mgmt.compute.bulkaction.types.VMAttributeMinMaxDouble(TypedDict, total=False):
- key "max": float
- key "min": float
- max: float
- min: float
-
-
- class azure.mgmt.compute.bulkaction.types.VMAttributeMinMaxInteger(TypedDict, total=False):
- key "max": int
- key "min": int
- max: int
- min: int
-
-
- class azure.mgmt.compute.bulkaction.types.VMAttributes(TypedDict, total=False):
- key "acceleratorCount": ForwardRef('VMAttributeMinMaxInteger', module='types')
- key "acceleratorSupport": Union[str, VMAttributeSupport]
- key "architectureTypes": Required[list[Union[str, ArchitectureType]]]
- key "burstableSupport": Union[str, VMAttributeSupport]
- key "dataDiskCount": ForwardRef('VMAttributeMinMaxInteger', module='types')
- key "localStorageInGiB": ForwardRef('VMAttributeMinMaxDouble', module='types')
- key "localStorageSupport": Union[str, VMAttributeSupport]
- key "memoryInGiB": Required[VMAttributeMinMaxDouble]
- key "memoryInGiBPerVCpu": ForwardRef('VMAttributeMinMaxDouble', module='types')
- key "networkBandwidthInMbps": ForwardRef('VMAttributeMinMaxDouble', module='types')
- key "networkInterfaceCount": ForwardRef('VMAttributeMinMaxInteger', module='types')
- key "rdmaNetworkInterfaceCount": ForwardRef('VMAttributeMinMaxInteger', module='types')
- key "rdmaSupport": Union[str, VMAttributeSupport]
- key "vCpuCount": Required[VMAttributeMinMaxInteger]
- acceleratorCount: VMAttributeMinMaxInteger
- acceleratorManufacturers: list[Union[str, AcceleratorManufacturer]]
- acceleratorSupport: Union[str, VMAttributeSupport]
- acceleratorTypes: list[Union[str, AcceleratorType]]
- allowedVMSizes: list[str]
- architectureTypes: list[Union[str, ArchitectureType]]
- burstableSupport: Union[str, VMAttributeSupport]
- cpuManufacturers: list[Union[str, CpuManufacturer]]
- dataDiskCount: VMAttributeMinMaxInteger
- excludedVMSizes: list[str]
- hyperVGenerations: list[Union[str, HyperVGeneration]]
- localStorageDiskTypes: list[Union[str, LocalStorageDiskType]]
- localStorageInGiB: VMAttributeMinMaxDouble
- localStorageSupport: Union[str, VMAttributeSupport]
- memoryInGiB: VMAttributeMinMaxDouble
- memoryInGiBPerVCpu: VMAttributeMinMaxDouble
- networkBandwidthInMbps: VMAttributeMinMaxDouble
- networkInterfaceCount: VMAttributeMinMaxInteger
- rdmaNetworkInterfaceCount: VMAttributeMinMaxInteger
- rdmaSupport: Union[str, VMAttributeSupport]
- vCpuCount: VMAttributeMinMaxInteger
- vmCategories: list[Union[str, VMCategory]]
-
-
class azure.mgmt.compute.bulkaction.types.VMDiskSecurityProfile(TypedDict, total=False):
key "diskEncryptionSet": ForwardRef('DiskEncryptionSetParametersContent', module='types')
key "securityEncryptionType": Union[str, SecurityEncryptionTypes]
@@ -7094,13 +6393,6 @@ namespace azure.mgmt.compute.bulkaction.types
tempDisk: bool
- class azure.mgmt.compute.bulkaction.types.VmSizeProfile(TypedDict, total=False):
- key "name": Required[str]
- key "rank": Required[int]
- name: str
- rank: int
-
-
class azure.mgmt.compute.bulkaction.types.VmSizeProperties(TypedDict, total=False):
key "vCpusAvailable": int
key "vCpusPerCore": int
@@ -7148,8 +6440,10 @@ namespace azure.mgmt.compute.bulkaction.types
class azure.mgmt.compute.bulkaction.types.ZonePreference(TypedDict, total=False):
key "rank": Required[int]
+ key "targetMaxCapacity": int
key "zone": Required[str]
rank: int
+ targetMaxCapacity: int
zone: str
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml b/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml
index d6e6513d0307..9567dfabf044 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml
@@ -1,3 +1,4 @@
-apiMdSha256: 42c8834db805a9027c94155efd3fe8f76e766e67c6568e01ef75d9e6398380a3
+apiMdSha256: 7e5fddc787fc51eb59070be521ff16ad9a3900eccdc65a842fa4a42441673ca9
+packageVersion: 1.0.0b4
parserVersion: 0.3.31
-pythonVersion: 3.13.14
+pythonVersion: 3.13.15
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json b/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json
index 31701d9677ed..96a9678b4f05 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json
@@ -1,14 +1,10 @@
{
"CrossLanguagePackageId": "Microsoft.Compute",
"CrossLanguageDefinitionId": {
- "azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest": "Microsoft.Compute.AcknowledgeBulkOperationErrorsRequest",
- "azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse": "Microsoft.Compute.AcknowledgeBulkOperationErrorsResponse",
"azure.mgmt.compute.bulkaction.models.AdditionalCapabilities": "Microsoft.Compute.AdditionalCapabilities",
"azure.mgmt.compute.bulkaction.models.AdditionalUnattendContent": "Microsoft.Compute.AdditionalUnattendContent",
"azure.mgmt.compute.bulkaction.models.AllInstancesDown": "Microsoft.Compute.AllInstancesDown",
"azure.mgmt.compute.bulkaction.models.ApiEntityReference": "Microsoft.Compute.ApiEntityReference",
- "azure.mgmt.compute.bulkaction.models.ApiError": "Microsoft.Compute.ApiError",
- "azure.mgmt.compute.bulkaction.models.ApiErrorBase": "Microsoft.Compute.ApiErrorBase",
"azure.mgmt.compute.bulkaction.models.ApplicationProfile": "Microsoft.Compute.ApplicationProfile",
"azure.mgmt.compute.bulkaction.models.BootDiagnostics": "Microsoft.Compute.BootDiagnostics",
"azure.mgmt.compute.bulkaction.models.BulkactionVMExtension": "Microsoft.Compute.BulkactionVMExtension",
@@ -23,7 +19,8 @@
"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.BulkCreateProperties": "Microsoft.Compute.BulkCreateProperties",
+ "azure.mgmt.compute.bulkaction.models.BulkCreateVmSizeProfile": "Microsoft.Compute.BulkCreateVmSizeProfile",
"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",
@@ -34,7 +31,6 @@
"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",
"azure.mgmt.compute.bulkaction.models.DataDisk": "Microsoft.Compute.DataDisk",
"azure.mgmt.compute.bulkaction.models.DeallocateResourceOperationResponse": "Microsoft.Compute.DeallocateResourceOperationResponse",
"azure.mgmt.compute.bulkaction.models.DelayRequest": "Microsoft.Compute.DelayRequest",
@@ -49,18 +45,15 @@
"azure.mgmt.compute.bulkaction.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.compute.bulkaction.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.compute.bulkaction.models.EventGridAndResourceGraph": "Microsoft.Compute.EventGridAndResourceGraph",
- "azure.mgmt.compute.bulkaction.models.ExecuteCreateContent": "Microsoft.Compute.ExecuteCreateRequest",
"azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent": "Microsoft.Compute.ExecuteDeallocateRequest",
"azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent": "Microsoft.Compute.ExecuteDeleteRequest",
"azure.mgmt.compute.bulkaction.models.ExecuteHibernateContent": "Microsoft.Compute.ExecuteHibernateRequest",
"azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest": "Microsoft.Compute.ExecuteReimageRequest",
"azure.mgmt.compute.bulkaction.models.ExecuteStartContent": "Microsoft.Compute.ExecuteStartRequest",
- "azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest": "Microsoft.Compute.ExecuteVdiCreateRequest",
"azure.mgmt.compute.bulkaction.models.ExecutionParameters": "Microsoft.Compute.ExecutionParameters",
"azure.mgmt.compute.bulkaction.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.compute.bulkaction.models.ExtensionResource": "Azure.ResourceManager.CommonTypes.ExtensionResource",
"azure.mgmt.compute.bulkaction.models.FallbackOperationInfo": "Microsoft.Compute.FallbackOperationInfo",
- "azure.mgmt.compute.bulkaction.models.FlexProperties": "Microsoft.Compute.FlexProperties",
"azure.mgmt.compute.bulkaction.models.GetOperationStatusContent": "Microsoft.Compute.GetOperationStatusRequest",
"azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse": "Microsoft.Compute.GetOperationStatusResponse",
"azure.mgmt.compute.bulkaction.models.HardwareProfile": "Microsoft.Compute.HardwareProfile",
@@ -69,13 +62,12 @@
"azure.mgmt.compute.bulkaction.models.ImageReference": "Microsoft.Compute.ImageReference",
"azure.mgmt.compute.bulkaction.models.KeyVaultKeyReference": "Microsoft.Compute.KeyVaultKeyReference",
"azure.mgmt.compute.bulkaction.models.KeyVaultSecretReference": "Microsoft.Compute.KeyVaultSecretReference",
- "azure.mgmt.compute.bulkaction.models.LaunchBulkInstancesOperationProperties": "Microsoft.Compute.LaunchBulkInstancesOperationProperties",
"azure.mgmt.compute.bulkaction.models.LinuxConfiguration": "Microsoft.Compute.LinuxConfiguration",
"azure.mgmt.compute.bulkaction.models.LinuxPatchSettings": "Microsoft.Compute.LinuxPatchSettings",
"azure.mgmt.compute.bulkaction.models.LinuxVMGuestPatchAutomaticByPlatformSettings": "Microsoft.Compute.LinuxVMGuestPatchAutomaticByPlatformSettings",
"azure.mgmt.compute.bulkaction.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
+ "azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate": "Microsoft.Compute.LocationBasedBulkCreate",
"azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom": "Microsoft.Compute.LocationBasedBulkCreateCustom",
- "azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation": "Microsoft.Compute.LocationBasedLaunchBulkInstancesOperation",
"azure.mgmt.compute.bulkaction.models.ManagedDiskParametersContent": "Microsoft.Compute.ManagedDiskParameters",
"azure.mgmt.compute.bulkaction.models.ManagedServiceIdentity": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity",
"azure.mgmt.compute.bulkaction.models.NetworkInterfaceReference": "Microsoft.Compute.NetworkInterfaceReference",
@@ -112,8 +104,6 @@
"azure.mgmt.compute.bulkaction.models.ResourceOperationError": "Microsoft.Compute.ResourceOperationError",
"azure.mgmt.compute.bulkaction.models.ResourceOperationResponse": "Microsoft.Compute.ResourceOperationResponse",
"azure.mgmt.compute.bulkaction.models.ResourcePatchRequest": "Microsoft.Compute.ResourcePatchRequest",
- "azure.mgmt.compute.bulkaction.models.ResourceProvisionPayload": "Microsoft.Compute.ResourceProvisionPayload",
- "azure.mgmt.compute.bulkaction.models.ResourceProvisionVdiPayload": "Microsoft.Compute.ResourceProvisionVdiPayload",
"azure.mgmt.compute.bulkaction.models.ResourceResultSummary": "Microsoft.Compute.ResourceResultSummary",
"azure.mgmt.compute.bulkaction.models.Resources": "Microsoft.Compute.Resources",
"azure.mgmt.compute.bulkaction.models.ResourceStatus": "Microsoft.Compute.ResourceStatus",
@@ -151,7 +141,6 @@
"azure.mgmt.compute.bulkaction.models.VaultCertificate": "Microsoft.Compute.VaultCertificate",
"azure.mgmt.compute.bulkaction.models.VaultSecretGroup": "Microsoft.Compute.VaultSecretGroup",
"azure.mgmt.compute.bulkaction.models.VirtualHardDisk": "Microsoft.Compute.VirtualHardDisk",
- "azure.mgmt.compute.bulkaction.models.VirtualMachine": "Microsoft.Compute.VirtualMachine",
"azure.mgmt.compute.bulkaction.models.VirtualMachineIdentity": "Microsoft.Compute.VirtualMachineIdentity",
"azure.mgmt.compute.bulkaction.models.VirtualMachineInfo": "Microsoft.Compute.VirtualMachineInfo",
"azure.mgmt.compute.bulkaction.models.VirtualMachineIpTag": "Microsoft.Compute.VirtualMachineIpTag",
@@ -164,12 +153,8 @@
"azure.mgmt.compute.bulkaction.models.VirtualMachinePublicIPAddressConfigurationProperties": "Microsoft.Compute.VirtualMachinePublicIPAddressConfigurationProperties",
"azure.mgmt.compute.bulkaction.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration": "Microsoft.Compute.VirtualMachinePublicIPAddressDnsSettingsConfiguration",
"azure.mgmt.compute.bulkaction.models.VirtualMachineReimageParameters": "Microsoft.Compute.VirtualMachineReimageParameters",
- "azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble": "Microsoft.Compute.VMAttributeMinMaxDouble",
- "azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger": "Microsoft.Compute.VMAttributeMinMaxInteger",
- "azure.mgmt.compute.bulkaction.models.VMAttributes": "Microsoft.Compute.VMAttributes",
"azure.mgmt.compute.bulkaction.models.VMDiskSecurityProfile": "Microsoft.Compute.VMDiskSecurityProfile",
"azure.mgmt.compute.bulkaction.models.VMGalleryApplication": "Microsoft.Compute.VMGalleryApplication",
- "azure.mgmt.compute.bulkaction.models.VmSizeProfile": "Microsoft.Compute.VmSizeProfile",
"azure.mgmt.compute.bulkaction.models.VmSizeProperties": "Microsoft.Compute.VmSizeProperties",
"azure.mgmt.compute.bulkaction.models.WindowsConfiguration": "Microsoft.Compute.WindowsConfiguration",
"azure.mgmt.compute.bulkaction.models.WindowsVMGuestPatchAutomaticByPlatformSettings": "Microsoft.Compute.WindowsVMGuestPatchAutomaticByPlatformSettings",
@@ -183,23 +168,14 @@
"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",
- "azure.mgmt.compute.bulkaction.models.EvictionPolicy": "Microsoft.Compute.EvictionPolicy",
- "azure.mgmt.compute.bulkaction.models.AllocationStrategy": "Microsoft.Compute.AllocationStrategy",
- "azure.mgmt.compute.bulkaction.models.DistributionStrategy": "Microsoft.Compute.DistributionStrategy",
"azure.mgmt.compute.bulkaction.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.compute.bulkaction.models.ProvisioningState": "Microsoft.Compute.ProvisioningState",
"azure.mgmt.compute.bulkaction.models.CapacityType": "Microsoft.Compute.CapacityType",
- "azure.mgmt.compute.bulkaction.models.ArchitectureType": "Microsoft.Compute.ArchitectureType",
- "azure.mgmt.compute.bulkaction.models.VMAttributeSupport": "Microsoft.Compute.VMAttributeSupport",
- "azure.mgmt.compute.bulkaction.models.LocalStorageDiskType": "Microsoft.Compute.LocalStorageDiskType",
- "azure.mgmt.compute.bulkaction.models.AcceleratorManufacturer": "Microsoft.Compute.AcceleratorManufacturer",
- "azure.mgmt.compute.bulkaction.models.AcceleratorType": "Microsoft.Compute.AcceleratorType",
- "azure.mgmt.compute.bulkaction.models.VMCategory": "Microsoft.Compute.VMCategory",
- "azure.mgmt.compute.bulkaction.models.CpuManufacturer": "Microsoft.Compute.CpuManufacturer",
- "azure.mgmt.compute.bulkaction.models.HyperVGeneration": "Microsoft.Compute.HyperVGeneration",
+ "azure.mgmt.compute.bulkaction.models.PartialFulfillmentMode": "Microsoft.Compute.PartialFulfillmentMode",
+ "azure.mgmt.compute.bulkaction.models.PartialFulfillmentReason": "Microsoft.Compute.PartialFulfillmentReason",
+ "azure.mgmt.compute.bulkaction.models.PriorityType": "Microsoft.Compute.PriorityType",
+ "azure.mgmt.compute.bulkaction.models.EvictionPolicy": "Microsoft.Compute.EvictionPolicy",
+ "azure.mgmt.compute.bulkaction.models.BulkCreateCustomAllocationStrategy": "Microsoft.Compute.BulkCreateCustomAllocationStrategy",
"azure.mgmt.compute.bulkaction.models.OperatingSystemTypes": "Microsoft.Compute.OperatingSystemTypes",
"azure.mgmt.compute.bulkaction.models.CachingTypes": "Microsoft.Compute.CachingTypes",
"azure.mgmt.compute.bulkaction.models.DiffDiskOptions": "Microsoft.Compute.DiffDiskOptions",
@@ -230,13 +206,11 @@
"azure.mgmt.compute.bulkaction.models.SecurityTypes": "Microsoft.Compute.SecurityTypes",
"azure.mgmt.compute.bulkaction.models.Mode": "Microsoft.Compute.Mode",
"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.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
+ "azure.mgmt.compute.bulkaction.models.AllocationStrategy": "Microsoft.Compute.AllocationStrategy",
+ "azure.mgmt.compute.bulkaction.models.DistributionStrategy": "Microsoft.Compute.DistributionStrategy",
"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",
@@ -257,10 +231,6 @@
"azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_hibernate_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkHibernate",
"azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_start_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkStart",
"azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_start_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkStart",
- "azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_create_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkCreate",
- "azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_create_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkCreate",
- "azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_vdi_flex_create_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkVdiFlexCreate",
- "azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_vdi_flex_create_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkVdiFlexCreate",
"azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_delete_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkDelete",
"azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_delete_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkDelete",
"azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_get_operations_status": "Microsoft.Compute.VirtualMachineBulkOperations.bulkGetOperationsStatus",
@@ -269,26 +239,6 @@
"azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_cancel_operations": "Microsoft.Compute.VirtualMachineBulkOperations.bulkCancel",
"azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_reimage_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkReimage",
"azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_reimage_operation": "Microsoft.Compute.VirtualMachineBulkOperations.bulkReimage",
- "azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_list_operation_errors": "Microsoft.Compute.VirtualMachineBulkOperations.bulkListOperationErrors",
- "azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_list_operation_errors": "Microsoft.Compute.VirtualMachineBulkOperations.bulkListOperationErrors",
- "azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations.bulk_acknowledge_operation_errors": "Microsoft.Compute.VirtualMachineBulkOperations.bulkAcknowledgeOperationErrors",
- "azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations.bulk_acknowledge_operation_errors": "Microsoft.Compute.VirtualMachineBulkOperations.bulkAcknowledgeOperationErrors",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.get": "Microsoft.Compute.LaunchBulkInstancesOperation.get",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.get": "Microsoft.Compute.LaunchBulkInstancesOperation.get",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.get_operation_status": "Microsoft.Compute.LaunchBulkInstancesOperation.getOperationStatus",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.get_operation_status": "Microsoft.Compute.LaunchBulkInstancesOperation.getOperationStatus",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.begin_create_or_update": "Microsoft.Compute.LaunchBulkInstancesOperation.createOrUpdate",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.begin_create_or_update": "Microsoft.Compute.LaunchBulkInstancesOperation.createOrUpdate",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.begin_delete": "Microsoft.Compute.LaunchBulkInstancesOperation.delete",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.begin_delete": "Microsoft.Compute.LaunchBulkInstancesOperation.delete",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.begin_cancel": "Microsoft.Compute.LaunchBulkInstancesOperation.cancel",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.begin_cancel": "Microsoft.Compute.LaunchBulkInstancesOperation.cancel",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.list_by_resource_group": "Microsoft.Compute.LaunchBulkInstancesOperation.listByResourceGroup",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.list_by_resource_group": "Microsoft.Compute.LaunchBulkInstancesOperation.listByResourceGroup",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.list_by_subscription": "Microsoft.Compute.LaunchBulkInstancesOperation.listBySubscription",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.list_by_subscription": "Microsoft.Compute.LaunchBulkInstancesOperation.listBySubscription",
- "azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations.list_virtual_machines": "Microsoft.Compute.LaunchBulkInstancesOperation.listVirtualMachines",
- "azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations.list_virtual_machines": "Microsoft.Compute.LaunchBulkInstancesOperation.listVirtualMachines",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.get": "Microsoft.Compute.BulkCreateCustom.get",
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.get": "Microsoft.Compute.BulkCreateCustom.get",
"azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations.get_async_operation_status": "Microsoft.Compute.BulkCreateCustom.getAsyncOperationStatus",
@@ -305,6 +255,22 @@
"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",
"azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations.list_by_subscription": "Microsoft.Compute.BulkCreateCustom.listBySubscription",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.get": "Microsoft.Compute.BulkCreate.get",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.get": "Microsoft.Compute.BulkCreate.get",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.get_async_operation_status": "Microsoft.Compute.BulkCreate.getAsyncOperationStatus",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.get_async_operation_status": "Microsoft.Compute.BulkCreate.getAsyncOperationStatus",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.begin_create_or_update": "Microsoft.Compute.BulkCreate.createOrUpdate",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.begin_create_or_update": "Microsoft.Compute.BulkCreate.createOrUpdate",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.begin_delete": "Microsoft.Compute.BulkCreate.delete",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.begin_delete": "Microsoft.Compute.BulkCreate.delete",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.begin_cancel": "Microsoft.Compute.BulkCreate.cancel",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.begin_cancel": "Microsoft.Compute.BulkCreate.cancel",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.virtual_machines_get_operation_status": "Microsoft.Compute.BulkCreate.virtualMachinesGetOperationStatus",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.virtual_machines_get_operation_status": "Microsoft.Compute.BulkCreate.virtualMachinesGetOperationStatus",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.list_by_resource_group": "Microsoft.Compute.BulkCreate.listByResourceGroup",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.list_by_resource_group": "Microsoft.Compute.BulkCreate.listByResourceGroup",
+ "azure.mgmt.compute.bulkaction.operations.BulkCreateOperations.list_by_subscription": "Microsoft.Compute.BulkCreate.listBySubscription",
+ "azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations.list_by_subscription": "Microsoft.Compute.BulkCreate.listBySubscription",
"azure.mgmt.compute.bulkaction.operations.ScheduledActionsOperations.get": "Microsoft.Compute.ScheduledActions.get",
"azure.mgmt.compute.bulkaction.aio.operations.ScheduledActionsOperations.get": "Microsoft.Compute.ScheduledActions.get",
"azure.mgmt.compute.bulkaction.operations.ScheduledActionsOperations.begin_create_or_update": "Microsoft.Compute.ScheduledActions.createOrUpdate",
@@ -350,5 +316,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": "071824f42610"
+ "CrossLanguageVersion": "eeb9d3b226eb"
}
\ No newline at end of file
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_client.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_client.py
index 11bc669a9152..17b99dd7850b 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_client.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_client.py
@@ -22,7 +22,7 @@
from ._utils.serialization import Deserializer, Serializer
from .operations import (
BulkCreateCustomOperations,
- LaunchBulkInstancesOperationOperations,
+ BulkCreateOperations,
OccurrenceExtensionOperations,
OccurrencesOperations,
Operations,
@@ -50,12 +50,11 @@ class ComputeBulkActionsMgmtClient: # pylint: disable=too-many-instance-attribu
:ivar virtual_machine_bulk_operations: VirtualMachineBulkOperationsOperations operations
:vartype virtual_machine_bulk_operations:
azure.mgmt.compute.bulkaction.operations.VirtualMachineBulkOperationsOperations
- :ivar launch_bulk_instances_operation: LaunchBulkInstancesOperationOperations operations
- :vartype launch_bulk_instances_operation:
- azure.mgmt.compute.bulkaction.operations.LaunchBulkInstancesOperationOperations
:ivar bulk_create_custom: BulkCreateCustomOperations operations
:vartype bulk_create_custom:
azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations
+ :ivar bulk_create: BulkCreateOperations operations
+ :vartype bulk_create: azure.mgmt.compute.bulkaction.operations.BulkCreateOperations
:ivar scheduled_actions: ScheduledActionsOperations operations
:vartype scheduled_actions: azure.mgmt.compute.bulkaction.operations.ScheduledActionsOperations
:ivar scheduled_action_extension: ScheduledActionExtensionOperations operations
@@ -79,7 +78,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-08-06-preview" and None. Default value is None. If not set, the operation's default API
+ "2026-09-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
@@ -138,12 +137,10 @@ def __init__(
self.virtual_machine_bulk_operations = VirtualMachineBulkOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
- self.launch_bulk_instances_operation = LaunchBulkInstancesOperationOperations(
- self._client, self._config, self._serialize, self._deserialize
- )
self.bulk_create_custom = BulkCreateCustomOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.bulk_create = BulkCreateOperations(self._client, self._config, self._serialize, self._deserialize)
self.scheduled_actions = ScheduledActionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_configuration.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_configuration.py
index 4f3a0b9ad173..c2f4fc012aef 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_configuration.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_configuration.py
@@ -35,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-08-06-preview" and None. Default value is None. If not set, the operation's default API
+ "2026-09-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
@@ -49,7 +49,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
- api_version: str = kwargs.pop("api_version", "2026-08-06-preview")
+ api_version: str = kwargs.pop("api_version", "2026-09-06-preview")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_patch.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_patch.py
index 87676c65a8f0..ea765788358a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_patch.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_patch.py
@@ -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
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_version.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_version.py
index c43fdbc2e239..22553b18fb7e 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_version.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_version.py
@@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
-VERSION = "1.0.0b3"
+VERSION = "1.0.0b4"
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_client.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_client.py
index 6836a6aa2fa2..51b183043c77 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_client.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_client.py
@@ -22,7 +22,7 @@
from ._configuration import ComputeBulkActionsMgmtClientConfiguration
from .operations import (
BulkCreateCustomOperations,
- LaunchBulkInstancesOperationOperations,
+ BulkCreateOperations,
OccurrenceExtensionOperations,
OccurrencesOperations,
Operations,
@@ -50,12 +50,11 @@ class ComputeBulkActionsMgmtClient: # pylint: disable=too-many-instance-attribu
:ivar virtual_machine_bulk_operations: VirtualMachineBulkOperationsOperations operations
:vartype virtual_machine_bulk_operations:
azure.mgmt.compute.bulkaction.aio.operations.VirtualMachineBulkOperationsOperations
- :ivar launch_bulk_instances_operation: LaunchBulkInstancesOperationOperations operations
- :vartype launch_bulk_instances_operation:
- azure.mgmt.compute.bulkaction.aio.operations.LaunchBulkInstancesOperationOperations
:ivar bulk_create_custom: BulkCreateCustomOperations operations
:vartype bulk_create_custom:
azure.mgmt.compute.bulkaction.aio.operations.BulkCreateCustomOperations
+ :ivar bulk_create: BulkCreateOperations operations
+ :vartype bulk_create: azure.mgmt.compute.bulkaction.aio.operations.BulkCreateOperations
:ivar scheduled_actions: ScheduledActionsOperations operations
:vartype scheduled_actions:
azure.mgmt.compute.bulkaction.aio.operations.ScheduledActionsOperations
@@ -80,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-08-06-preview" and None. Default value is None. If not set, the operation's default API
+ "2026-09-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
@@ -141,12 +140,10 @@ def __init__(
self.virtual_machine_bulk_operations = VirtualMachineBulkOperationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
- self.launch_bulk_instances_operation = LaunchBulkInstancesOperationOperations(
- self._client, self._config, self._serialize, self._deserialize
- )
self.bulk_create_custom = BulkCreateCustomOperations(
self._client, self._config, self._serialize, self._deserialize
)
+ self.bulk_create = BulkCreateOperations(self._client, self._config, self._serialize, self._deserialize)
self.scheduled_actions = ScheduledActionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_configuration.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_configuration.py
index e04244d06bc3..7b3ddb65f479 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_configuration.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_configuration.py
@@ -35,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-08-06-preview" and None. Default value is None. If not set, the operation's default API
+ "2026-09-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
@@ -49,7 +49,7 @@ def __init__(
cloud_setting: Optional["AzureClouds"] = None,
**kwargs: Any
) -> None:
- api_version: str = kwargs.pop("api_version", "2026-08-06-preview")
+ api_version: str = kwargs.pop("api_version", "2026-09-06-preview")
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_patch.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_patch.py
index 87676c65a8f0..ea765788358a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_patch.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/_patch.py
@@ -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
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/__init__.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/__init__.py
index 870bc4fc237b..fca2ddcf285a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/__init__.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/__init__.py
@@ -14,8 +14,8 @@
from ._operations import Operations # type: ignore
from ._operations import VirtualMachineBulkOperationsOperations # type: ignore
-from ._operations import LaunchBulkInstancesOperationOperations # type: ignore
from ._operations import BulkCreateCustomOperations # type: ignore
+from ._operations import BulkCreateOperations # type: ignore
from ._operations import ScheduledActionsOperations # type: ignore
from ._operations import ScheduledActionExtensionOperations # type: ignore
from ._operations import ScheduledActionOperationStatusOperations # type: ignore
@@ -29,8 +29,8 @@
__all__ = [
"Operations",
"VirtualMachineBulkOperationsOperations",
- "LaunchBulkInstancesOperationOperations",
"BulkCreateCustomOperations",
+ "BulkCreateOperations",
"ScheduledActionsOperations",
"ScheduledActionExtensionOperations",
"ScheduledActionOperationStatusOperations",
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_operations.py
index 1ce00d95ef26..800b7fefac84 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_operations.py
@@ -1,4 +1,4 @@
-# pylint: disable=line-too-long,useless-suppression,too-many-lines
+# pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
@@ -38,6 +38,8 @@
from ..._utils.serialization import Deserializer, Serializer
from ..._validation import api_version_validation
from ...operations._operations import (
+ build_bulk_create_cancel_request,
+ build_bulk_create_create_or_update_request,
build_bulk_create_custom_cancel_request,
build_bulk_create_custom_create_or_update_request,
build_bulk_create_custom_delete_request,
@@ -46,14 +48,12 @@
build_bulk_create_custom_list_by_resource_group_request,
build_bulk_create_custom_list_by_subscription_request,
build_bulk_create_custom_virtual_machines_get_operation_status_request,
- build_launch_bulk_instances_operation_cancel_request,
- build_launch_bulk_instances_operation_create_or_update_request,
- build_launch_bulk_instances_operation_delete_request,
- build_launch_bulk_instances_operation_get_operation_status_request,
- build_launch_bulk_instances_operation_get_request,
- build_launch_bulk_instances_operation_list_by_resource_group_request,
- build_launch_bulk_instances_operation_list_by_subscription_request,
- build_launch_bulk_instances_operation_list_virtual_machines_request,
+ build_bulk_create_delete_request,
+ build_bulk_create_get_async_operation_status_request,
+ build_bulk_create_get_request,
+ build_bulk_create_list_by_resource_group_request,
+ build_bulk_create_list_by_subscription_request,
+ build_bulk_create_virtual_machines_get_operation_status_request,
build_occurrence_extension_list_occurrence_by_vms_request,
build_occurrences_cancel_request,
build_occurrences_delay_request,
@@ -77,17 +77,13 @@
build_scheduled_actions_patch_resources_request,
build_scheduled_actions_trigger_manual_occurrence_request,
build_scheduled_actions_update_request,
- build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_request,
build_virtual_machine_bulk_operations_bulk_cancel_operations_request,
- build_virtual_machine_bulk_operations_bulk_create_operation_request,
build_virtual_machine_bulk_operations_bulk_deallocate_operation_request,
build_virtual_machine_bulk_operations_bulk_delete_operation_request,
build_virtual_machine_bulk_operations_bulk_get_operations_status_request,
build_virtual_machine_bulk_operations_bulk_hibernate_operation_request,
- build_virtual_machine_bulk_operations_bulk_list_operation_errors_request,
build_virtual_machine_bulk_operations_bulk_reimage_operation_request,
build_virtual_machine_bulk_operations_bulk_start_operation_request,
- build_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation_request,
)
from .._configuration import ComputeBulkActionsMgmtClientConfiguration
@@ -766,16 +762,16 @@ async def bulk_start_operation(
return deserialized # type: ignore
@overload
- async def bulk_create_operation(
+ async def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: _models.ExecuteCreateContent,
+ request_body: _models.ExecuteDeleteContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -784,27 +780,27 @@ async def bulk_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteCreateContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_create_operation(
+ async def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: _types.ExecuteCreateContent,
+ request_body: _types.ExecuteDeleteContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -813,18 +809,18 @@ async def bulk_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteCreateContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_create_operation(
+ async def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
@@ -832,8 +828,8 @@ async def bulk_create_operation(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -846,35 +842,21 @@ async def bulk_create_operation(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace_async
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- async def bulk_create_operation(
+ async def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.ExecuteCreateContent, _types.ExecuteCreateContent, IO[bytes]],
+ request_body: Union[_models.ExecuteDeleteContent, _types.ExecuteDeleteContent, IO[bytes]],
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -882,13 +864,13 @@ async def bulk_create_operation(
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a ExecuteCreateContent type or a IO[bytes]
+ :param request_body: The request body. Is either a ExecuteDeleteContent type or a IO[bytes]
type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteCreateContent or
- ~azure.mgmt.compute.bulkaction.types.ExecuteCreateContent or IO[bytes]
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent or
+ ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent or IO[bytes]
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -903,7 +885,7 @@ async def bulk_create_operation(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CreateResourceOperationResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.DeleteResourceOperationResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
@@ -912,7 +894,7 @@ async def bulk_create_operation(
else:
_content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_create_operation_request(
+ _request = build_virtual_machine_bulk_operations_bulk_delete_operation_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -951,7 +933,7 @@ async def bulk_create_operation(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.CreateResourceOperationResponse, response.json())
+ deserialized = _deserialize(_models.DeleteResourceOperationResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -959,17 +941,17 @@ async def bulk_create_operation(
return deserialized # type: ignore
@overload
- async def bulk_vdi_flex_create_operation(
+ async def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: _models.ExecuteVdiCreateRequest,
+ request_body: _models.GetOperationStatusContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -977,28 +959,28 @@ async def bulk_vdi_flex_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_vdi_flex_create_operation(
+ async def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: _types.ExecuteVdiCreateRequest,
+ request_body: _types.GetOperationStatusContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -1006,18 +988,18 @@ async def bulk_vdi_flex_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteVdiCreateRequest
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_vdi_flex_create_operation(
+ async def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
@@ -1025,9 +1007,9 @@ async def bulk_vdi_flex_create_operation(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -1039,49 +1021,35 @@ async def bulk_vdi_flex_create_operation(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace_async
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- async def bulk_vdi_flex_create_operation(
+ async def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.ExecuteVdiCreateRequest, _types.ExecuteVdiCreateRequest, IO[bytes]],
+ request_body: Union[_models.GetOperationStatusContent, _types.GetOperationStatusContent, IO[bytes]],
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a ExecuteVdiCreateRequest type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest or
- ~azure.mgmt.compute.bulkaction.types.ExecuteVdiCreateRequest or IO[bytes]
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :param request_body: The request body. Is either a GetOperationStatusContent type or a
+ IO[bytes] type. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent or
+ ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent or IO[bytes]
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -1096,7 +1064,7 @@ async def bulk_vdi_flex_create_operation(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CreateResourceOperationResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
@@ -1105,7 +1073,7 @@ async def bulk_vdi_flex_create_operation(
else:
_content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation_request(
+ _request = build_virtual_machine_bulk_operations_bulk_get_operations_status_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -1144,7 +1112,7 @@ async def bulk_vdi_flex_create_operation(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.CreateResourceOperationResponse, response.json())
+ deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -1152,17 +1120,16 @@ async def bulk_vdi_flex_create_operation(
return deserialized # type: ignore
@overload
- async def bulk_delete_operation(
+ async def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: _models.ExecuteDeleteContent,
+ request_body: _models.CancelOperationsContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -1170,28 +1137,27 @@ async def bulk_delete_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_delete_operation(
+ async def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: _types.ExecuteDeleteContent,
+ request_body: _types.CancelOperationsContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -1199,18 +1165,18 @@ async def bulk_delete_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_delete_operation(
+ async def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
@@ -1218,9 +1184,8 @@ async def bulk_delete_operation(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -1232,853 +1197,187 @@ async def bulk_delete_operation(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace_async
- async def bulk_delete_operation(
+ async def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.ExecuteDeleteContent, _types.ExecuteDeleteContent, IO[bytes]],
+ request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]],
**kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a ExecuteDeleteContent type or a IO[bytes]
+ :param request_body: The request body. Is either a CancelOperationsContent type or a IO[bytes]
type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent or
- ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent or IO[bytes]
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.DeleteResourceOperationResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_delete_operation_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- await response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.DeleteResourceOperationResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- async def bulk_get_operations_status(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.GetOperationStatusContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_get_operations_status(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.GetOperationStatusContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_get_operations_status(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace_async
- async def bulk_get_operations_status(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.GetOperationStatusContent, _types.GetOperationStatusContent, IO[bytes]],
- **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a GetOperationStatusContent type or a
- IO[bytes] type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent or
- ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent or IO[bytes]
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_get_operations_status_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- await response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- async def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.CancelOperationsContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.CancelOperationsContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent or
+ ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent or IO[bytes]
:return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace_async
- async def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]],
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a CancelOperationsContent type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent or
- ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent or IO[bytes]
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CancelOperationsResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_cancel_operations_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- await response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.CancelOperationsResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- async def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.ExecuteReimageRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.ExecuteReimageRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- async def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace_async
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- async def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.ExecuteReimageRequest, _types.ExecuteReimageRequest, IO[bytes]],
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a ExecuteReimageRequest type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest or
- ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest or IO[bytes]
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.ReimageResourceOperationResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_reimage_operation_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- await response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.ReimageResourceOperationResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "lookback_in_minutes",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- def bulk_list_operation_errors(
- self, resource_group_name: str, location: str, *, lookback_in_minutes: Optional[int] = None, **kwargs: Any
- ) -> AsyncItemPaged["_models.ResourceOperation"]:
- """BulkListOperationErrors: List bulk operation errors for a resource group.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :keyword lookback_in_minutes: The number of minutes to look back for errors. Default value is
- None.
- :paramtype lookback_in_minutes: int
- :return: An iterator like instance of ResourceOperation
- :rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- _headers = kwargs.pop("headers", {}) or {}
- _params = kwargs.pop("params", {}) or {}
-
- cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
-
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- def prepare_request(next_link=None):
- if not next_link:
-
- _request = build_virtual_machine_bulk_operations_bulk_list_operation_errors_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- lookback_in_minutes=lookback_in_minutes,
- api_version=self._config.api_version,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url(
- "self._config.base_url", self._config.base_url, "str", skip_quote=True
- ),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- else:
- # make call to next link with the client's api-version
- _parsed_next_link = urllib.parse.urlparse(next_link)
- _next_request_params = case_insensitive_dict(
- {
- key: [urllib.parse.quote(v) for v in value]
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
- }
- )
- _next_request_params["api-version"] = self._config.api_version
- _request = HttpRequest(
- "GET",
- urllib.parse.urljoin(next_link, _parsed_next_link.path),
- headers=_headers,
- params=_next_request_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url(
- "self._config.base_url", self._config.base_url, "str", skip_quote=True
- ),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
+ :raises ~azure.core.exceptions.HttpResponseError:
+ """
+ error_map: MutableMapping = {
+ 401: ClientAuthenticationError,
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
- return _request
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
- async def extract_data(pipeline_response):
- deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(
- List[_models.ResourceOperation],
- deserialized.get("value", []),
- )
- if cls:
- list_of_elem = cls(list_of_elem) # type: ignore
- return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[_models.CancelOperationsResponse] = kwargs.pop("cls", None)
- async def get_next(next_link=None):
- _request = prepare_request(next_link)
+ content_type = content_type or "application/json"
+ _content = None
+ if isinstance(request_body, (IOBase, bytes)):
+ _content = request_body
+ else:
+ _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _stream = False
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
+ _request = build_virtual_machine_bulk_operations_bulk_cancel_operations_request(
+ resource_group_name=resource_group_name,
+ location=location,
+ subscription_id=self._config.subscription_id,
+ content_type=content_type,
+ api_version=self._config.api_version,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = kwargs.pop("stream", False)
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ if _stream:
+ try:
+ await response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = _failsafe_deserialize(
+ _models.ErrorResponse,
+ response,
)
- response = pipeline_response.http_response
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- if response.status_code not in [200]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+ if _stream:
+ deserialized = response.iter_bytes() if _decompress else response.iter_raw()
+ else:
+ deserialized = _deserialize(_models.CancelOperationsResponse, response.json())
- return pipeline_response
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
- return AsyncItemPaged(get_next, extract_data)
+ return deserialized # type: ignore
@overload
- async def bulk_acknowledge_operation_errors(
+ async def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: _models.AcknowledgeBulkOperationErrorsRequest,
+ request_body: _models.ExecuteReimageRequest,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest
+ :param request_body: The request body. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_acknowledge_operation_errors(
+ async def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: _types.AcknowledgeBulkOperationErrorsRequest,
+ request_body: _types.ExecuteReimageRequest,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest
+ :param request_body: The request body. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- async def bulk_acknowledge_operation_errors(
+ async def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: IO[bytes],
+ request_body: IO[bytes],
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: IO[bytes]
+ :param request_body: The request body. Required.
+ :type request_body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -2095,31 +1394,30 @@ async def bulk_acknowledge_operation_errors(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- async def bulk_acknowledge_operation_errors(
+ async def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: Union[
- _models.AcknowledgeBulkOperationErrorsRequest, _types.AcknowledgeBulkOperationErrorsRequest, IO[bytes]
- ],
+ request_body: Union[_models.ExecuteReimageRequest, _types.ExecuteReimageRequest, IO[bytes]],
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Is either a
- AcknowledgeBulkOperationErrorsRequest type or a IO[bytes] type. Required.
- :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest or
- ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest or IO[bytes]
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :param request_body: The request body. Is either a ExecuteReimageRequest type or a IO[bytes]
+ type. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest or
+ ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest or IO[bytes]
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -2134,16 +1432,16 @@ async def bulk_acknowledge_operation_errors(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.AcknowledgeBulkOperationErrorsResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.ReimageResourceOperationResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
- if isinstance(body, (IOBase, bytes)):
- _content = body
+ if isinstance(request_body, (IOBase, bytes)):
+ _content = request_body
else:
- _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
+ _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_request(
+ _request = build_virtual_machine_bulk_operations_bulk_reimage_operation_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -2182,7 +1480,7 @@ async def bulk_acknowledge_operation_errors(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.AcknowledgeBulkOperationErrorsResponse, response.json())
+ deserialized = _deserialize(_models.ReimageResourceOperationResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2190,14 +1488,14 @@ async def bulk_acknowledge_operation_errors(
return deserialized # type: ignore
-class LaunchBulkInstancesOperationOperations: # pylint: disable=docstring-missing-param
+class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Instead, you should access the following operations through
:class:`~azure.mgmt.compute.bulkaction.aio.ComputeBulkActionsMgmtClient`'s
- :attr:`launch_bulk_instances_operation` attribute.
+ :attr:`bulk_create_custom` attribute.
"""
def __init__(self, *args, **kwargs) -> None:
@@ -2222,23 +1520,23 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def get(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.LocationBasedLaunchBulkInstancesOperation:
- """Gets an instance of LaunchBulkInstancesOperations.
+ ) -> _models.LocationBasedBulkCreateCustom:
+ """Gets an instance of BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
- :return: LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
+ :return: LocationBasedBulkCreateCustom. The LocationBasedBulkCreateCustom is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -2252,9 +1550,9 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[_models.LocationBasedLaunchBulkInstancesOperation] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_get_request(
+ _request = build_bulk_create_custom_get_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -2292,7 +1590,7 @@ async def get(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.LocationBasedLaunchBulkInstancesOperation, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2305,12 +1603,12 @@ async def get(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- async def get_operation_status(
+ async def get_async_operation_status(
self, location: str, async_operation_id: str, **kwargs: Any
) -> _models.OperationStatusResult:
- """Get the status of a LaunchBulkInstancesOperation.
+ """Get the status of an async operation of a BulkCreateCustom.
:param location: The location name. Required.
:type location: str
@@ -2333,7 +1631,7 @@ async def get_operation_status(
cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_get_operation_status_request(
+ _request = build_bulk_create_custom_get_async_operation_status_request(
location=location,
async_operation_id=async_operation_id,
subscription_id=self._config.subscription_id,
@@ -2390,18 +1688,14 @@ async def get_operation_status(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _create_or_update_initial(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[
- _models.LocationBasedLaunchBulkInstancesOperation,
- _types.LocationBasedLaunchBulkInstancesOperation,
- IO[bytes],
- ],
+ resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
error_map: MutableMapping = {
@@ -2425,7 +1719,7 @@ async def _create_or_update_initial(
else:
_content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_launch_bulk_instances_operation_create_or_update_request(
+ _request = build_bulk_create_custom_create_or_update_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -2481,29 +1775,29 @@ async def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _models.LocationBasedLaunchBulkInstancesOperation,
+ resource: _models.LocationBasedBulkCreateCustom,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedLaunchBulkInstancesOperation.
- The LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -2513,29 +1807,29 @@ async def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _types.LocationBasedLaunchBulkInstancesOperation,
+ resource: _types.LocationBasedBulkCreateCustom,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedLaunchBulkInstancesOperation
+ :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedLaunchBulkInstancesOperation.
- The LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -2549,25 +1843,25 @@ async def begin_create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedLaunchBulkInstancesOperation.
- The LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -2585,44 +1879,40 @@ async def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_create_or_update(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[
- _models.LocationBasedLaunchBulkInstancesOperation,
- _types.LocationBasedLaunchBulkInstancesOperation,
- IO[bytes],
- ],
+ resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
- :param resource: Resource create parameters. Is either a
- LocationBasedLaunchBulkInstancesOperation type or a IO[bytes] type. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
- or ~azure.mgmt.compute.bulkaction.types.LocationBasedLaunchBulkInstancesOperation or IO[bytes]
- :return: An instance of AsyncLROPoller that returns LocationBasedLaunchBulkInstancesOperation.
- The LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :param resource: Resource create parameters. Is either a LocationBasedBulkCreateCustom type or
+ a IO[bytes] type. Required.
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom or
+ ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom or IO[bytes]
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.LocationBasedLaunchBulkInstancesOperation] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -2643,7 +1933,7 @@ async def begin_create_or_update(
def get_long_running_output(pipeline_response):
response = pipeline_response.http_response
- deserialized = _deserialize(_models.LocationBasedLaunchBulkInstancesOperation, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
return deserialized
@@ -2661,13 +1951,13 @@ def get_long_running_output(pipeline_response):
else:
polling_method = polling
if cont_token:
- return AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation].from_continuation_token(
+ return AsyncLROPoller[_models.LocationBasedBulkCreateCustom].from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output,
)
- return AsyncLROPoller[_models.LocationBasedLaunchBulkInstancesOperation](
+ return AsyncLROPoller[_models.LocationBasedBulkCreateCustom](
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
@@ -2683,7 +1973,7 @@ def get_long_running_output(pipeline_response):
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _delete_initial(
self,
@@ -2707,7 +1997,7 @@ async def _delete_initial(
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_delete_request(
+ _request = build_bulk_create_custom_delete_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -2767,7 +2057,7 @@ async def _delete_initial(
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_delete(
self,
@@ -2778,14 +2068,14 @@ async def begin_delete(
delete_instances: Optional[bool] = None,
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Deletes LaunchBulkInstancesOperations.
+ """Deletes BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:keyword delete_instances: When true, deletes all virtual machines created by this BulkAction
Operation. Default value is None.
@@ -2845,7 +2135,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _cancel_initial(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
@@ -2863,7 +2153,7 @@ async def _cancel_initial(
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_cancel_request(
+ _request = build_bulk_create_custom_cancel_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -2914,19 +2204,19 @@ async def _cancel_initial(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_cancel(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
) -> AsyncLROPoller[None]:
- """Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ """Cancels BulkCreateCustom instances that have not yet launched.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:return: An instance of AsyncLROPoller that returns None
:rtype: ~azure.core.polling.AsyncLROPoller[None]
@@ -2979,31 +2269,40 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-08-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ "2026-08-06-preview": [
+ "api_version",
+ "subscription_id",
+ "resource_group_name",
+ "location",
+ "name",
+ "accept",
+ ]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-08-06-preview", "2026-09-06-preview"],
)
- def list_by_resource_group(
- self, resource_group_name: str, location: str, **kwargs: Any
- ) -> AsyncItemPaged["_models.LocationBasedLaunchBulkInstancesOperation"]:
- """List LaunchBulkInstancesOperation resources by resource group.
+ def virtual_machines_get_operation_status(
+ self, resource_group_name: str, location: str, name: str, **kwargs: Any
+ ) -> AsyncItemPaged["_models.ResourceOperation"]:
+ """Gets the operation status for virtual machines in a BulkCreateCustom operation.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedLaunchBulkInstancesOperation
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :type name: str
+ :return: An iterator like instance of ResourceOperation
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedLaunchBulkInstancesOperation]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -3016,9 +2315,10 @@ def list_by_resource_group(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_by_resource_group_request(
+ _request = build_bulk_create_custom_virtual_machines_get_operation_status_request(
resource_group_name=resource_group_name,
location=location,
+ name=name,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
headers=_headers,
@@ -3059,8 +2359,8 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedLaunchBulkInstancesOperation],
- deserialized.get("value", []),
+ List[_models.ResourceOperation],
+ deserialized.get("results", []),
)
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
@@ -3090,25 +2390,30 @@ async def get_next(next_link=None):
@distributed_trace
@api_version_validation(
method_added_on="2026-07-06-preview",
- params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ params_added_on={
+ "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ },
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def list_by_subscription(
- self, location: str, **kwargs: Any
- ) -> AsyncItemPaged["_models.LocationBasedLaunchBulkInstancesOperation"]:
- """List LaunchBulkInstancesOperation resources by subscriptionId.
+ def list_by_resource_group(
+ self, resource_group_name: str, location: str, **kwargs: Any
+ ) -> AsyncItemPaged["_models.LocationBasedBulkCreateCustom"]:
+ """List BulkCreateCustom resources by resource group.
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedLaunchBulkInstancesOperation
+ :return: An iterator like instance of LocationBasedBulkCreateCustom
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedLaunchBulkInstancesOperation]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -3121,7 +2426,8 @@ def list_by_subscription(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_by_subscription_request(
+ _request = build_bulk_create_custom_list_by_resource_group_request(
+ resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
@@ -3163,7 +2469,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedLaunchBulkInstancesOperation],
+ List[_models.LocationBasedBulkCreateCustom],
deserialized.get("value", []),
)
if cls:
@@ -3192,55 +2498,27 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
@distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "name",
- "filter",
- "skiptoken",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ @api_version_validation(
+ method_added_on="2026-07-06-preview",
+ params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def list_virtual_machines(
- self,
- resource_group_name: str,
- location: str,
- name: str,
- *,
- filter: Optional[str] = None,
- skiptoken: Optional[str] = None,
- **kwargs: Any
- ) -> AsyncItemPaged["_models.VirtualMachine"]:
- """List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ def list_by_subscription(
+ self, location: str, **kwargs: Any
+ ) -> AsyncItemPaged["_models.LocationBasedBulkCreateCustom"]:
+ """List BulkCreateCustom resources by subscriptionId.
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
- :type name: str
- :keyword filter: Filter expression to filter the virtual machines. Default value is None.
- :paramtype filter: str
- :keyword skiptoken: Skip token for pagination. Uses the token from a previous response to fetch
- the next page of results. Default value is None.
- :paramtype skiptoken: str
- :return: An iterator like instance of VirtualMachine
+ :return: An iterator like instance of LocationBasedBulkCreateCustom
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.VirtualMachine]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -3253,13 +2531,9 @@ def list_virtual_machines(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_virtual_machines_request(
- resource_group_name=resource_group_name,
+ _request = build_bulk_create_custom_list_by_subscription_request(
location=location,
- name=name,
subscription_id=self._config.subscription_id,
- filter=filter,
- skiptoken=skiptoken,
api_version=self._config.api_version,
headers=_headers,
params=_params,
@@ -3299,7 +2573,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.VirtualMachine],
+ List[_models.LocationBasedBulkCreateCustom],
deserialized.get("value", []),
)
if cls:
@@ -3328,14 +2602,14 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)
-class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param
+class BulkCreateOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Instead, you should access the following operations through
:class:`~azure.mgmt.compute.bulkaction.aio.ComputeBulkActionsMgmtClient`'s
- :attr:`bulk_create_custom` attribute.
+ :attr:`bulk_create` attribute.
"""
def __init__(self, *args, **kwargs) -> None:
@@ -3349,9 +2623,9 @@ def __init__(self, *args, **kwargs) -> None:
@distributed_trace_async
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -3360,23 +2634,22 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def get(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.LocationBasedBulkCreateCustom:
- """Gets an instance of BulkCreateCustoms.
+ ) -> _models.LocationBasedBulkCreate:
+ """Gets an instance of BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :return: LocationBasedBulkCreateCustom. The LocationBasedBulkCreateCustom is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
+ :return: LocationBasedBulkCreate. The LocationBasedBulkCreate is compatible with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -3390,9 +2663,9 @@ async def get(
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreate] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_get_request(
+ _request = build_bulk_create_get_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -3430,7 +2703,7 @@ async def get(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreate, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -3439,16 +2712,16 @@ async def get(
@distributed_trace_async
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def get_async_operation_status(
self, location: str, async_operation_id: str, **kwargs: Any
) -> _models.OperationStatusResult:
- """Get the status of an async operation of a BulkCreateCustom.
+ """Get the status of an async operation of a BulkCreate.
:param location: The location name. Required.
:type location: str
@@ -3471,7 +2744,7 @@ async def get_async_operation_status(
cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_get_async_operation_status_request(
+ _request = build_bulk_create_get_async_operation_status_request(
location=location,
async_operation_id=async_operation_id,
subscription_id=self._config.subscription_id,
@@ -3516,9 +2789,9 @@ async def get_async_operation_status(
return deserialized # type: ignore
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -3528,14 +2801,14 @@ async def get_async_operation_status(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def _create_or_update_initial(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
+ resource: Union[_models.LocationBasedBulkCreate, _types.LocationBasedBulkCreate, IO[bytes]],
**kwargs: Any
) -> AsyncIterator[bytes]:
error_map: MutableMapping = {
@@ -3559,7 +2832,7 @@ async def _create_or_update_initial(
else:
_content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_bulk_create_custom_create_or_update_request(
+ _request = build_bulk_create_create_or_update_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -3615,29 +2888,29 @@ async def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _models.LocationBasedBulkCreateCustom,
+ resource: _models.LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3647,29 +2920,29 @@ async def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _types.LocationBasedBulkCreateCustom,
+ resource: _types.LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom
+ :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3683,33 +2956,33 @@ async def begin_create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace_async
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -3719,40 +2992,40 @@ async def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def begin_create_or_update(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
+ resource: Union[_models.LocationBasedBulkCreate, _types.LocationBasedBulkCreate, IO[bytes]],
**kwargs: Any
- ) -> AsyncLROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> AsyncLROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :param resource: Resource create parameters. Is either a LocationBasedBulkCreateCustom type or
- a IO[bytes] type. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom or
- ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom or IO[bytes]
- :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :param resource: Resource create parameters. Is either a LocationBasedBulkCreate type or a
+ IO[bytes] type. Required.
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate or
+ ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreate or IO[bytes]
+ :return: An instance of AsyncLROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.AsyncLROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreate] = kwargs.pop("cls", None)
polling: Union[bool, AsyncPollingMethod] = kwargs.pop("polling", True)
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -3773,7 +3046,7 @@ async def begin_create_or_update(
def get_long_running_output(pipeline_response):
response = pipeline_response.http_response
- deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreate, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
return deserialized
@@ -3791,20 +3064,20 @@ def get_long_running_output(pipeline_response):
else:
polling_method = polling
if cont_token:
- return AsyncLROPoller[_models.LocationBasedBulkCreateCustom].from_continuation_token(
+ return AsyncLROPoller[_models.LocationBasedBulkCreate].from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output,
)
- return AsyncLROPoller[_models.LocationBasedBulkCreateCustom](
+ return AsyncLROPoller[_models.LocationBasedBulkCreate](
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -3813,7 +3086,7 @@ def get_long_running_output(pipeline_response):
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def _delete_initial(
self,
@@ -3837,7 +3110,7 @@ async def _delete_initial(
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_delete_request(
+ _request = build_bulk_create_delete_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -3886,9 +3159,9 @@ async def _delete_initial(
@distributed_trace_async
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -3897,7 +3170,7 @@ async def _delete_initial(
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def begin_delete(
self,
@@ -3908,14 +3181,14 @@ async def begin_delete(
delete_instances: Optional[bool] = None,
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Deletes BulkCreateCustoms.
+ """Deletes BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:keyword delete_instances: When true, deletes all virtual machines created by this BulkAction
Operation. Default value is None.
@@ -3971,11 +3244,11 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def _cancel_initial(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
@@ -3993,7 +3266,7 @@ async def _cancel_initial(
cls: ClsType[AsyncIterator[bytes]] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_cancel_request(
+ _request = build_bulk_create_cancel_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -4040,23 +3313,23 @@ async def _cancel_initial(
@distributed_trace_async
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
async def begin_cancel(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
) -> AsyncLROPoller[None]:
- """Cancels BulkCreateCustom instances that have not yet launched.
+ """Cancels BulkCreate instances that have not yet launched.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:return: An instance of AsyncLROPoller that returns None
:rtype: ~azure.core.polling.AsyncLROPoller[None]
@@ -4107,11 +3380,11 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
)
return AsyncLROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
- @distributed_trace_async
+ @distributed_trace
@api_version_validation(
- method_added_on="2026-08-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-08-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -4120,25 +3393,30 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
"accept",
]
},
- api_versions_list=["2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
- async def virtual_machines_get_operation_status(
+ def virtual_machines_get_operation_status(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """Gets the operation status for virtual machines in a BulkCreateCustom operation.
+ ) -> AsyncItemPaged["_models.ResourceOperation"]:
+ """Gets the operation status for virtual machines in a BulkCreate operation.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :return: An iterator like instance of ResourceOperation
+ :rtype:
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
+
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -4147,83 +3425,108 @@ async def virtual_machines_get_operation_status(
}
error_map.update(kwargs.pop("error_map", {}) or {})
- _headers = kwargs.pop("headers", {}) or {}
- _params = kwargs.pop("params", {}) or {}
+ def prepare_request(next_link=None):
+ if not next_link:
- cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
+ _request = build_bulk_create_virtual_machines_get_operation_status_request(
+ resource_group_name=resource_group_name,
+ location=location,
+ name=name,
+ subscription_id=self._config.subscription_id,
+ api_version=self._config.api_version,
+ headers=_headers,
+ params=_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url(
+ "self._config.base_url", self._config.base_url, "str", skip_quote=True
+ ),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
- _request = build_bulk_create_custom_virtual_machines_get_operation_status_request(
- resource_group_name=resource_group_name,
- location=location,
- name=name,
- subscription_id=self._config.subscription_id,
- api_version=self._config.api_version,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
+ else:
+ # make call to next link with the client's api-version
+ _parsed_next_link = urllib.parse.urlparse(next_link)
+ _next_request_params = case_insensitive_dict(
+ {
+ key: [urllib.parse.quote(v) for v in value]
+ for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
+ }
+ )
+ _next_request_params["api-version"] = self._config.api_version
+ _request = HttpRequest(
+ "GET",
+ urllib.parse.urljoin(next_link, _parsed_next_link.path),
+ headers=_headers,
+ params=_next_request_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url(
+ "self._config.base_url", self._config.base_url, "str", skip_quote=True
+ ),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
+ return _request
- response = pipeline_response.http_response
+ async def extract_data(pipeline_response):
+ deserialized = pipeline_response.http_response.json()
+ list_of_elem = _deserialize(
+ List[_models.ResourceOperation],
+ deserialized.get("results", []),
+ )
+ if cls:
+ list_of_elem = cls(list_of_elem) # type: ignore
+ return deserialized.get("nextLink") or None, AsyncList(list_of_elem)
- if response.status_code not in [200]:
- if _stream:
- try:
- await response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
+ async def get_next(next_link=None):
+ _request = prepare_request(next_link)
+
+ _stream = False
+ pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+ response = pipeline_response.http_response
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = _failsafe_deserialize(
+ _models.ErrorResponse,
+ response,
+ )
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
+ return pipeline_response
- return deserialized # type: ignore
+ return AsyncItemPaged(get_next, extract_data)
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def list_by_resource_group(
self, resource_group_name: str, location: str, **kwargs: Any
- ) -> AsyncItemPaged["_models.LocationBasedBulkCreateCustom"]:
- """List BulkCreateCustom resources by resource group.
+ ) -> AsyncItemPaged["_models.LocationBasedBulkCreate"]:
+ """List BulkCreate resources by resource group.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedBulkCreateCustom
+ :return: An iterator like instance of LocationBasedBulkCreate
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreate]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -4236,7 +3539,7 @@ def list_by_resource_group(
def prepare_request(next_link=None):
if not next_link:
- _request = build_bulk_create_custom_list_by_resource_group_request(
+ _request = build_bulk_create_list_by_resource_group_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -4279,7 +3582,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedBulkCreateCustom],
+ List[_models.LocationBasedBulkCreate],
deserialized.get("value", []),
)
if cls:
@@ -4309,26 +3612,24 @@ async def get_next(next_link=None):
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ method_added_on="2026-09-06-preview",
+ params_added_on={"2026-09-06-preview": ["api_version", "subscription_id", "location", "accept"]},
+ api_versions_list=["2026-09-06-preview"],
)
- def list_by_subscription(
- self, location: str, **kwargs: Any
- ) -> AsyncItemPaged["_models.LocationBasedBulkCreateCustom"]:
- """List BulkCreateCustom resources by subscriptionId.
+ def list_by_subscription(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.LocationBasedBulkCreate"]:
+ """List BulkCreate resources by subscriptionId.
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedBulkCreateCustom
+ :return: An iterator like instance of LocationBasedBulkCreate
:rtype:
- ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreate]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -4341,7 +3642,7 @@ def list_by_subscription(
def prepare_request(next_link=None):
if not next_link:
- _request = build_bulk_create_custom_list_by_subscription_request(
+ _request = build_bulk_create_list_by_subscription_request(
location=location,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
@@ -4383,7 +3684,7 @@ def prepare_request(next_link=None):
async def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedBulkCreateCustom],
+ List[_models.LocationBasedBulkCreate],
deserialized.get("value", []),
)
if cls:
@@ -4443,15 +3744,16 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def get(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> _models.ScheduledAction:
- """Get a ScheduledAction.
+ """Gets the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: ScheduledAction. The ScheduledAction is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.ScheduledAction
@@ -4526,7 +3828,7 @@ async def get(self, resource_group_name: str, scheduled_action_name: str, **kwar
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _create_or_update_initial(
self,
@@ -4615,14 +3917,15 @@ async def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: ~azure.mgmt.compute.bulkaction.models.ScheduledAction
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -4644,14 +3947,15 @@ async def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: ~azure.mgmt.compute.bulkaction.types.ScheduledAction
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -4673,14 +3977,15 @@ async def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -4705,7 +4010,7 @@ async def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_create_or_update(
self,
@@ -4714,15 +4019,16 @@ async def begin_create_or_update(
resource: Union[_models.ScheduledAction, _types.ScheduledAction, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Is either a ScheduledAction type or a IO[bytes]
- type. Required.
+ :param resource: The scheduled action to create or update. Is either a ScheduledAction type or
+ a IO[bytes] type. Required.
:type resource: ~azure.mgmt.compute.bulkaction.models.ScheduledAction or
~azure.mgmt.compute.bulkaction.types.ScheduledAction or IO[bytes]
:return: An instance of AsyncLROPoller that returns ScheduledAction. The ScheduledAction is
@@ -4795,7 +4101,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _update_initial(
self,
@@ -4885,14 +4191,16 @@ async def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: ~azure.mgmt.compute.bulkaction.models.ScheduledActionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -4912,14 +4220,16 @@ async def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: ~azure.mgmt.compute.bulkaction.types.ScheduledActionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -4939,14 +4249,16 @@ async def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -4969,7 +4281,7 @@ async def begin_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_update(
self,
@@ -4978,15 +4290,16 @@ async def begin_update(
properties: Union[_models.ScheduledActionUpdate, _types.ScheduledActionUpdate, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Is either a ScheduledActionUpdate
- type or a IO[bytes] type. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Is either a ScheduledActionUpdate type or a IO[bytes] type. Required.
:type properties: ~azure.mgmt.compute.bulkaction.models.ScheduledActionUpdate or
~azure.mgmt.compute.bulkaction.types.ScheduledActionUpdate or IO[bytes]
:return: An instance of AsyncLROPoller that returns None
@@ -5045,7 +4358,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _delete_initial(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
@@ -5117,17 +4430,18 @@ async def _delete_initial(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_delete(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncLROPoller[None]:
- """Delete a ScheduledAction.
+ """Deletes the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of AsyncLROPoller that returns None
:rtype: ~azure.core.polling.AsyncLROPoller[None]
@@ -5181,12 +4495,12 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_resource_group(
self, resource_group_name: str, **kwargs: Any
) -> AsyncItemPaged["_models.ScheduledAction"]:
- """List ScheduledAction resources by resource group.
+ """Lists scheduled actions in the specified resource group.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -5286,10 +4600,10 @@ async def get_next(next_link=None):
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ScheduledAction"]:
- """List ScheduledAction resources by subscription ID.
+ """Lists scheduled actions in the specified subscription.
:return: An iterator like instance of ScheduledAction
:rtype:
@@ -5393,17 +4707,18 @@ async def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_resources(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncItemPaged["_models.ScheduledActionResource"]:
- """List resources attached to Scheduled Actions.
+ """Lists resources associated with the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An iterator like instance of ScheduledActionResource
:rtype:
@@ -5509,7 +4824,7 @@ async def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _attach_resources_initial(
self,
@@ -5599,14 +4914,15 @@ async def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceAttachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -5628,14 +4944,15 @@ async def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourceAttachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -5657,14 +4974,15 @@ async def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -5689,7 +5007,7 @@ async def begin_attach_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_attach_resources(
self,
@@ -5698,15 +5016,16 @@ async def begin_attach_resources(
body: Union[_models.ResourceAttachRequest, _types.ResourceAttachRequest, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourceAttachRequest type or a
- IO[bytes] type. Required.
+ :param body: The resources to add to the scheduled action. Is either a ResourceAttachRequest
+ type or a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceAttachRequest or
~azure.mgmt.compute.bulkaction.types.ResourceAttachRequest or IO[bytes]
:return: An instance of AsyncLROPoller that returns ResourceOperationResponse. The
@@ -5779,7 +5098,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _detach_resources_initial(
self,
@@ -5869,14 +5188,15 @@ async def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceDetachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -5898,14 +5218,15 @@ async def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourceDetachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -5927,14 +5248,15 @@ async def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -5959,7 +5281,7 @@ async def begin_detach_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_detach_resources(
self,
@@ -5968,15 +5290,16 @@ async def begin_detach_resources(
body: Union[_models.ResourceDetachRequest, _types.ResourceDetachRequest, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourceDetachRequest type or a
- IO[bytes] type. Required.
+ :param body: The resources to remove from the scheduled action. Is either a
+ ResourceDetachRequest type or a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceDetachRequest or
~azure.mgmt.compute.bulkaction.types.ResourceDetachRequest or IO[bytes]
:return: An instance of AsyncLROPoller that returns ResourceOperationResponse. The
@@ -6047,14 +5370,15 @@ async def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourcePatchRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6075,14 +5399,15 @@ async def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourcePatchRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6103,14 +5428,15 @@ async def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -6134,7 +5460,7 @@ async def patch_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def patch_resources(
self,
@@ -6143,15 +5469,16 @@ async def patch_resources(
body: Union[_models.ResourcePatchRequest, _types.ResourcePatchRequest, IO[bytes]],
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourcePatchRequest type or a
- IO[bytes] type. Required.
+ :param body: The resource-specific settings to update. Is either a ResourcePatchRequest type or
+ a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourcePatchRequest or
~azure.mgmt.compute.bulkaction.types.ResourcePatchRequest or IO[bytes]
:return: ResourceOperationResponse. The ResourceOperationResponse is compatible with
@@ -6231,7 +5558,7 @@ async def patch_resources(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _disable_initial(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
@@ -6302,17 +5629,18 @@ async def _disable_initial(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_disable(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncLROPoller[None]:
- """Disable the scheduled action so its future occurrences do not run.
+ """Disables the specified scheduled action so future occurrences do not run.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of AsyncLROPoller that returns None
:rtype: ~azure.core.polling.AsyncLROPoller[None]
@@ -6367,7 +5695,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _enable_initial(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
@@ -6438,17 +5766,18 @@ async def _enable_initial(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_enable(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncLROPoller[None]:
- """Enable a previously disabled scheduled action so its future occurrences run.
+ """Enables the specified scheduled action so new occurrences run.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of AsyncLROPoller that returns None
:rtype: ~azure.core.polling.AsyncLROPoller[None]
@@ -6510,7 +5839,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _cancel_next_occurrence_initial(
self,
@@ -6600,14 +5929,16 @@ async def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6629,14 +5960,16 @@ async def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6658,14 +5991,16 @@ async def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -6690,7 +6025,7 @@ async def begin_cancel_next_occurrence(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_cancel_next_occurrence(
self,
@@ -6699,14 +6034,16 @@ async def begin_cancel_next_occurrence(
body: Union[_models.CancelOccurrenceRequest, _types.CancelOccurrenceRequest, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a CancelOccurrenceRequest type or a
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Is either a CancelOccurrenceRequest type or a
IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest or
~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest or IO[bytes]
@@ -6779,7 +6116,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _trigger_manual_occurrence_initial(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
@@ -6857,17 +6194,18 @@ async def _trigger_manual_occurrence_initial(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_trigger_manual_occurrence(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncLROPoller[_models.Occurrence]:
- """Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ """Runs the specified scheduled action immediately.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of AsyncLROPoller that returns Occurrence. The Occurrence is compatible
with MutableMapping
@@ -6947,13 +6285,12 @@ def __init__(self, *args, **kwargs) -> None:
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "resource_uri", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_vms(self, resource_uri: str, **kwargs: Any) -> AsyncItemPaged["_models.ScheduledActionResources"]:
- """List ScheduledActionResources resources by parent.
+ """Lists scheduled actions associated with the specified VM.
- :param resource_uri: The fully qualified Azure Resource manager identifier of the resource.
- Required.
+ :param resource_uri: The fully qualified Azure resource ID of the compute resource. Required.
:type resource_uri: str
:return: An iterator like instance of ScheduledActionResources
:rtype:
@@ -7071,15 +6408,14 @@ def __init__(self, *args, **kwargs) -> None:
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "location", "operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult:
- """Get the status of a ScheduledActions asynchronous operation. Both the ``Azure-AsyncOperation``
- and ``Location`` headers returned by long-running operations point at this endpoint.
+ """Gets the status of the specified scheduled action operation.
- :param location: The location name. Required.
+ :param location: The Azure region where the operation is running. Required.
:type location: str
- :param operation_id: The operation id. Required.
+ :param operation_id: The operation ID in UUID format. Required.
:type operation_id: str
:return: OperationStatusResult. The OperationStatusResult is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.OperationStatusResult
@@ -7175,19 +6511,20 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def get(
self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any
) -> _models.Occurrence:
- """Get a Occurrence.
+ """Gets the specified occurrence.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
:return: Occurrence. The Occurrence is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.Occurrence
@@ -7263,17 +6600,18 @@ async def get(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_scheduled_action(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> AsyncItemPaged["_models.Occurrence"]:
- """List Occurrence resources by ScheduledAction.
+ """Lists occurrences for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An iterator like instance of Occurrence
:rtype:
@@ -7380,19 +6718,20 @@ async def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_resources(
self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any
) -> AsyncItemPaged["_models.OccurrenceResource"]:
- """List resources attached to Scheduled Actions for the given occurrence.
+ """Lists resources for the specified occurrence.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
:return: An iterator like instance of OccurrenceResource
:rtype:
@@ -7500,7 +6839,7 @@ async def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _cancel_initial(
self,
@@ -7593,16 +6932,18 @@ async def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7625,16 +6966,18 @@ async def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7657,16 +7000,18 @@ async def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -7692,7 +7037,7 @@ async def begin_cancel(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_cancel(
self,
@@ -7702,16 +7047,18 @@ async def begin_cancel(
body: Union[_models.CancelOccurrenceRequest, _types.CancelOccurrenceRequest, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Is either a CancelOccurrenceRequest type or a
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Is either a CancelOccurrenceRequest type or a
IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest or
~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest or IO[bytes]
@@ -7787,7 +7134,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def _delay_initial(
self,
@@ -7880,16 +7227,18 @@ async def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.DelayRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7912,16 +7261,18 @@ async def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.DelayRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7944,16 +7295,18 @@ async def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -7979,7 +7332,7 @@ async def begin_delay(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
async def begin_delay(
self,
@@ -7989,17 +7342,19 @@ async def begin_delay(
body: Union[_models.DelayRequest, _types.DelayRequest, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Is either a DelayRequest type or a IO[bytes]
- type. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Is either a DelayRequest type or a IO[bytes] type.
+ Required.
:type body: ~azure.mgmt.compute.bulkaction.models.DelayRequest or
~azure.mgmt.compute.bulkaction.types.DelayRequest or IO[bytes]
:return: An instance of AsyncLROPoller that returns ResourceOperationResponse. The
@@ -8085,15 +7440,14 @@ def __init__(self, *args, **kwargs) -> None:
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "resource_uri", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_occurrence_by_vms(
self, resource_uri: str, **kwargs: Any
) -> AsyncItemPaged["_models.OccurrenceExtensionResource"]:
- """List OccurrenceExtensionResource resources by parent.
+ """Lists scheduled action occurrences associated with the specified VM.
- :param resource_uri: The fully qualified Azure Resource manager identifier of the resource.
- Required.
+ :param resource_uri: The fully qualified Azure resource ID of the compute resource. Required.
:type resource_uri: str
:return: An iterator like instance of OccurrenceExtensionResource
:rtype:
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_patch.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_patch.py
index 87676c65a8f0..ea765788358a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_patch.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_patch.py
@@ -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
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/__init__.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/__init__.py
index 12994de69d6b..eaeefec3b517 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/__init__.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/__init__.py
@@ -14,14 +14,10 @@
from ._models import ( # type: ignore
- AcknowledgeBulkOperationErrorsRequest,
- AcknowledgeBulkOperationErrorsResponse,
AdditionalCapabilities,
AdditionalUnattendContent,
AllInstancesDown,
ApiEntityReference,
- ApiError,
- ApiErrorBase,
ApplicationProfile,
BootDiagnostics,
BulkActionVmExtensionProperties,
@@ -34,7 +30,8 @@
BulkCreateCustomVirtualMachineInfo,
BulkCreateCustomVmSizeProfile,
BulkCreateCustomZoneAllocationPolicy,
- BulkInstancesInnerError,
+ BulkCreateProperties,
+ BulkCreateVmSizeProfile,
BulkactionVMExtension,
BulkactionVMProperties,
CancelOccurrenceRequest,
@@ -47,7 +44,6 @@
CapacityRecommendationSize,
CapacityReservationProfile,
ComputeProfile,
- CreateResourceOperationResponse,
DataDisk,
DeallocateResourceOperationResponse,
DelayRequest,
@@ -61,17 +57,14 @@
ErrorDetail,
ErrorResponse,
EventGridAndResourceGraph,
- ExecuteCreateContent,
ExecuteDeallocateContent,
ExecuteDeleteContent,
ExecuteHibernateContent,
ExecuteReimageRequest,
ExecuteStartContent,
- ExecuteVdiCreateRequest,
ExecutionParameters,
ExtensionResource,
FallbackOperationInfo,
- FlexProperties,
GetOperationStatusContent,
GetOperationStatusResponse,
HardwareProfile,
@@ -80,12 +73,11 @@
ImageReference,
KeyVaultKeyReference,
KeyVaultSecretReference,
- LaunchBulkInstancesOperationProperties,
LinuxConfiguration,
LinuxPatchSettings,
LinuxVMGuestPatchAutomaticByPlatformSettings,
+ LocationBasedBulkCreate,
LocationBasedBulkCreateCustom,
- LocationBasedLaunchBulkInstancesOperation,
ManagedDiskParametersContent,
ManagedServiceIdentity,
NetworkInterfaceReference,
@@ -124,8 +116,6 @@
ResourceOperationError,
ResourceOperationResponse,
ResourcePatchRequest,
- ResourceProvisionPayload,
- ResourceProvisionVdiPayload,
ResourceResultSummary,
ResourceStatus,
ResourceWithContext,
@@ -161,15 +151,11 @@
UserAssignedIdentity,
UserInitiatedReboot,
UserInitiatedRedeploy,
- VMAttributeMinMaxDouble,
- VMAttributeMinMaxInteger,
- VMAttributes,
VMDiskSecurityProfile,
VMGalleryApplication,
VaultCertificate,
VaultSecretGroup,
VirtualHardDisk,
- VirtualMachine,
VirtualMachineIdentity,
VirtualMachineInfo,
VirtualMachineIpTag,
@@ -182,7 +168,6 @@
VirtualMachinePublicIPAddressConfigurationProperties,
VirtualMachinePublicIPAddressDnsSettingsConfiguration,
VirtualMachineReimageParameters,
- VmSizeProfile,
VmSizeProperties,
WinRMConfiguration,
WinRMListener,
@@ -193,17 +178,13 @@
)
from ._enums import ( # type: ignore
- AcceleratorManufacturer,
- AcceleratorType,
ActionType,
AllocationStrategy,
- ArchitectureType,
BulkCreateCustomAllocationStrategy,
BulkCreateCustomDistributionStrategy,
CachingTypes,
CapacityRecommendationStatus,
CapacityType,
- CpuManufacturer,
CreatedByType,
DeadlineType,
DeleteOptions,
@@ -216,13 +197,11 @@
DistributionStrategy,
DomainNameLabelScopeTypes,
EvictionPolicy,
- HyperVGeneration,
IPVersions,
Language,
LinuxPatchAssessmentMode,
LinuxVMGuestPatchAutomaticByPlatformRebootSetting,
LinuxVMGuestPatchMode,
- LocalStorageDiskType,
ManagedServiceIdentityType,
Mode,
Modes,
@@ -235,9 +214,7 @@
OccurrenceState,
OperatingSystemTypes,
OperationState,
- OptimizationPreference,
Origin,
- OsType,
PartialFulfillmentMode,
PartialFulfillmentReason,
PriorityType,
@@ -258,9 +235,6 @@
SecurityTypes,
SettingNames,
StorageAccountTypes,
- VMAttributeSupport,
- VMCategory,
- VMOperationStatus,
WeekDay,
WindowsPatchAssessmentMode,
WindowsVMGuestPatchAutomaticByPlatformRebootSetting,
@@ -271,14 +245,10 @@
from ._patch import patch_sdk as _patch_sdk
__all__ = [
- "AcknowledgeBulkOperationErrorsRequest",
- "AcknowledgeBulkOperationErrorsResponse",
"AdditionalCapabilities",
"AdditionalUnattendContent",
"AllInstancesDown",
"ApiEntityReference",
- "ApiError",
- "ApiErrorBase",
"ApplicationProfile",
"BootDiagnostics",
"BulkActionVmExtensionProperties",
@@ -291,7 +261,8 @@
"BulkCreateCustomVirtualMachineInfo",
"BulkCreateCustomVmSizeProfile",
"BulkCreateCustomZoneAllocationPolicy",
- "BulkInstancesInnerError",
+ "BulkCreateProperties",
+ "BulkCreateVmSizeProfile",
"BulkactionVMExtension",
"BulkactionVMProperties",
"CancelOccurrenceRequest",
@@ -304,7 +275,6 @@
"CapacityRecommendationSize",
"CapacityReservationProfile",
"ComputeProfile",
- "CreateResourceOperationResponse",
"DataDisk",
"DeallocateResourceOperationResponse",
"DelayRequest",
@@ -318,17 +288,14 @@
"ErrorDetail",
"ErrorResponse",
"EventGridAndResourceGraph",
- "ExecuteCreateContent",
"ExecuteDeallocateContent",
"ExecuteDeleteContent",
"ExecuteHibernateContent",
"ExecuteReimageRequest",
"ExecuteStartContent",
- "ExecuteVdiCreateRequest",
"ExecutionParameters",
"ExtensionResource",
"FallbackOperationInfo",
- "FlexProperties",
"GetOperationStatusContent",
"GetOperationStatusResponse",
"HardwareProfile",
@@ -337,12 +304,11 @@
"ImageReference",
"KeyVaultKeyReference",
"KeyVaultSecretReference",
- "LaunchBulkInstancesOperationProperties",
"LinuxConfiguration",
"LinuxPatchSettings",
"LinuxVMGuestPatchAutomaticByPlatformSettings",
+ "LocationBasedBulkCreate",
"LocationBasedBulkCreateCustom",
- "LocationBasedLaunchBulkInstancesOperation",
"ManagedDiskParametersContent",
"ManagedServiceIdentity",
"NetworkInterfaceReference",
@@ -381,8 +347,6 @@
"ResourceOperationError",
"ResourceOperationResponse",
"ResourcePatchRequest",
- "ResourceProvisionPayload",
- "ResourceProvisionVdiPayload",
"ResourceResultSummary",
"ResourceStatus",
"ResourceWithContext",
@@ -418,15 +382,11 @@
"UserAssignedIdentity",
"UserInitiatedReboot",
"UserInitiatedRedeploy",
- "VMAttributeMinMaxDouble",
- "VMAttributeMinMaxInteger",
- "VMAttributes",
"VMDiskSecurityProfile",
"VMGalleryApplication",
"VaultCertificate",
"VaultSecretGroup",
"VirtualHardDisk",
- "VirtualMachine",
"VirtualMachineIdentity",
"VirtualMachineInfo",
"VirtualMachineIpTag",
@@ -439,7 +399,6 @@
"VirtualMachinePublicIPAddressConfigurationProperties",
"VirtualMachinePublicIPAddressDnsSettingsConfiguration",
"VirtualMachineReimageParameters",
- "VmSizeProfile",
"VmSizeProperties",
"WinRMConfiguration",
"WinRMListener",
@@ -447,17 +406,13 @@
"WindowsVMGuestPatchAutomaticByPlatformSettings",
"ZoneAllocationPolicy",
"ZonePreference",
- "AcceleratorManufacturer",
- "AcceleratorType",
"ActionType",
"AllocationStrategy",
- "ArchitectureType",
"BulkCreateCustomAllocationStrategy",
"BulkCreateCustomDistributionStrategy",
"CachingTypes",
"CapacityRecommendationStatus",
"CapacityType",
- "CpuManufacturer",
"CreatedByType",
"DeadlineType",
"DeleteOptions",
@@ -470,13 +425,11 @@
"DistributionStrategy",
"DomainNameLabelScopeTypes",
"EvictionPolicy",
- "HyperVGeneration",
"IPVersions",
"Language",
"LinuxPatchAssessmentMode",
"LinuxVMGuestPatchAutomaticByPlatformRebootSetting",
"LinuxVMGuestPatchMode",
- "LocalStorageDiskType",
"ManagedServiceIdentityType",
"Mode",
"Modes",
@@ -489,9 +442,7 @@
"OccurrenceState",
"OperatingSystemTypes",
"OperationState",
- "OptimizationPreference",
"Origin",
- "OsType",
"PartialFulfillmentMode",
"PartialFulfillmentReason",
"PriorityType",
@@ -512,9 +463,6 @@
"SecurityTypes",
"SettingNames",
"StorageAccountTypes",
- "VMAttributeSupport",
- "VMCategory",
- "VMOperationStatus",
"WeekDay",
"WindowsPatchAssessmentMode",
"WindowsVMGuestPatchAutomaticByPlatformRebootSetting",
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_enums.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_enums.py
index 94182f7e6b5d..d604e8ab0086 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_enums.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_enums.py
@@ -10,26 +10,6 @@
from azure.core import CaseInsensitiveEnumMeta
-class AcceleratorManufacturer(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Accelerator manufacturers supported by Azure VMs."""
-
- AMD = "AMD"
- """AMD GpuType."""
- NVIDIA = "Nvidia"
- """Nvidia GpuType."""
- XILINX = "Xilinx"
- """Xilinx GpuType."""
-
-
-class AcceleratorType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Accelerator types supported by Azure VMs."""
-
- GPU = "GPU"
- """GPU Accelerator."""
- FPGA = "FPGA"
- """FPGA Accelerator."""
-
-
class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal
only APIs.
@@ -50,15 +30,6 @@ class AllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Platform prioritizes VM sizes with the highest available capacity first."""
-class ArchitectureType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Architecture types supported by Azure VMs."""
-
- ARM64 = "ARM64"
- """ARM64 Architecture."""
- X64 = "X64"
- """X64 Architecture."""
-
-
class BulkCreateCustomAllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The allocation strategy for VM size selection in BulkCreateCustom."""
@@ -118,19 +89,6 @@ class CapacityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
VCpus will be overprovisioned by default."""
-class CpuManufacturer(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Cpu Manufacturers supported by Azure VMs."""
-
- INTEL = "Intel"
- """Intel CPU."""
- AMD = "AMD"
- """AMD CPU."""
- MICROSOFT = "Microsoft"
- """Microsoft CPU."""
- AMPERE = "Ampere"
- """Ampere CPU."""
-
-
class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The kind of entity that created the resource."""
@@ -147,8 +105,6 @@ class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class DeadlineType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The types of deadlines supported by Bulkactions."""
- UNKNOWN = "Unknown"
- """Default value of Unknown."""
INITIATE_AT = "InitiateAt"
"""Initiate the operation at the given deadline."""
COMPLETE_BY = "CompleteBy"
@@ -303,15 +259,6 @@ class EvictionPolicy(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""When evicted, the Spot VM will be deallocated/stopped."""
-class HyperVGeneration(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """HyperVGenerations supported by Azure VMs."""
-
- GEN1 = "Gen1"
- """Gen1 hyperV."""
- GEN2 = "Gen2"
- """Gen2 hyperV."""
-
-
class IPVersions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Available from compute Api-Version 2017-03-30 onwards, it represents whether the specific
ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and
@@ -325,10 +272,10 @@ class IPVersions(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class Language(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The notification languages currently supported."""
+ """The language used for scheduled action notifications."""
EN_US = "en-us"
- """American english language."""
+ """English (United States)."""
class LinuxPatchAssessmentMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -373,15 +320,6 @@ class LinuxVMGuestPatchMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""AutomaticByPlatform linux VM guest patch mode."""
-class LocalStorageDiskType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Local storage disk types supported by Azure VMs."""
-
- HDD = "HDD"
- """HDD DiskType."""
- SSD = "SSD"
- """SSD DiskType."""
-
-
class ManagedServiceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Type of managed service identity (where both SystemAssigned and UserAssigned types are
allowed).
@@ -426,34 +364,34 @@ class Modes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class Month(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Representation of the months available selection in a gregorian calendar."""
+ """A month in which the scheduled action can run."""
JANUARY = "January"
- """The January month."""
+ """The scheduled action can run in January."""
FEBRUARY = "February"
- """The February month."""
+ """The scheduled action can run in February."""
MARCH = "March"
- """The March month."""
+ """The scheduled action can run in March."""
APRIL = "April"
- """The April month."""
+ """The scheduled action can run in April."""
MAY = "May"
- """The May month."""
+ """The scheduled action can run in May."""
JUNE = "June"
- """The June month."""
+ """The scheduled action can run in June."""
JULY = "July"
- """The July month."""
+ """The scheduled action can run in July."""
AUGUST = "August"
- """The August month."""
+ """The scheduled action can run in August."""
SEPTEMBER = "September"
- """The September month."""
+ """The scheduled action can run in September."""
OCTOBER = "October"
- """The October month."""
+ """The scheduled action can run in October."""
NOVEMBER = "November"
- """The November month."""
+ """The scheduled action can run in November."""
DECEMBER = "December"
- """The December month."""
+ """The scheduled action can run in December."""
ALL = "All"
- """All months."""
+ """Every month."""
class NetworkApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -494,10 +432,10 @@ class NetworkInterfaceAuxiliarySku(str, Enum, metaclass=CaseInsensitiveEnumMeta)
class NotificationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The type of notification supported."""
+ """The delivery method for scheduled action notifications."""
EMAIL = "Email"
- """Notify through e-mail."""
+ """Sends notifications by email."""
class OccurrenceResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -522,22 +460,22 @@ class OccurrenceResourceProvisioningState(str, Enum, metaclass=CaseInsensitiveEn
class OccurrenceState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The state the occurrence is at a given time."""
+ """The current state of a scheduled action occurrence."""
CREATED = "Created"
- """The occurrence was created."""
+ """The occurrence has been created."""
RESCHEDULING = "Rescheduling"
- """The occurrence is being rescheduled."""
+ """The scheduled time for the occurrence is being updated."""
SCHEDULED = "Scheduled"
"""The occurrence has been scheduled."""
SUCCEEDED = "Succeeded"
- """The occurrence has successfully ran."""
+ """The occurrence operations completed successfully."""
FAILED = "Failed"
- """The occurrence has failed during its scheduling."""
+ """One or more of the occurrence operations failed."""
CANCELLING = "Cancelling"
- """The occurrence is going through cancellation."""
+ """Cancellation of the occurrence is in progress."""
CANCELED = "Canceled"
- """The occurrence has been canceled."""
+ """The occurrence was canceled."""
class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -554,14 +492,8 @@ class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class OperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Values that define the states of operations in Bulkactions."""
- UNKNOWN = "Unknown"
- """The default value for the operation state enum."""
- PENDING_SCHEDULING = "PendingScheduling"
- """Operations that are pending scheduling."""
SCHEDULED = "Scheduled"
"""Operations that have been scheduled."""
- PENDING_EXECUTION = "PendingExecution"
- """Operations that are waiting to be executed."""
EXECUTING = "Executing"
"""Operations that are in the process of being executed."""
SUCCEEDED = "Succeeded"
@@ -574,17 +506,6 @@ class OperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Operations that are blocked."""
-class OptimizationPreference(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The preferences customers can select to optimize their requests to ScheduledActions."""
-
- COST = "Cost"
- """Optimize while considering cost savings."""
- AVAILABILITY = "Availability"
- """Optimize while considering availability of resources."""
- COST_AVAILABILITY_BALANCED = "CostAvailabilityBalanced"
- """Optimize while considering a balance of cost and availability."""
-
-
class Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit
logs UX. Default value is "user,system".
@@ -598,15 +519,6 @@ class Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Indicates the operation is initiated by a user or system."""
-class OsType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The supported operating system types for flex VM creation."""
-
- WINDOWS = "Windows"
- """Windows operating system."""
- LINUX = "Linux"
- """Linux operating system."""
-
-
class PartialFulfillmentMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Whether the service may launch fewer instances than requested when the full capacity cannot be
satisfied.
@@ -707,19 +619,17 @@ class ResourceIdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
class ResourceOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The state the resource is on after the resource operation is applied."""
+ """Current status of an operation for the specific occurrence and resource."""
SUCCEEDED = "Succeeded"
- """The resource operation was successful."""
+ """The operation completed successfully for the resource."""
FAILED = "Failed"
- """The resource operation has failed."""
+ """The operation failed for the resource."""
class ResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""The kind of bulk operation that can be performed on resources using Bulkactions API."""
- UNKNOWN = "Unknown"
- """The default value for this enum type."""
START = "Start"
"""Start operations on the resources."""
DEALLOCATE = "Deallocate"
@@ -730,33 +640,28 @@ class ResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""Create operations on the resources."""
DELETE = "Delete"
"""Delete operations on the resources."""
- GET_INSTANCE_VIEW = "GetInstanceView"
- """Post-Start VM agent health-check sub-operation; surfaced when the customer opts into
- verifyVmAgentHealth on a Start request."""
class ResourceType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The type of resource being targeted."""
+ """The type of compute resource targeted by the scheduled action."""
VIRTUAL_MACHINE = "VirtualMachine"
- """Resources defined are Virtual Machines."""
+ """Azure virtual machines."""
VIRTUAL_MACHINE_SCALE_SET = "VirtualMachineScaleSet"
- """Resources defined are Virtual Machines Scale Sets."""
+ """Azure Virtual Machine Scale Sets."""
class ScheduledActionsDeadlineType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The type of deadline the scheduled action follows for its schedule."""
+ """How the scheduled time is interpreted for the resource operation."""
- UNKNOWN = "Unknown"
- """Default value of Unknown."""
INITIATE_AT = "InitiateAt"
- """Initiate the operation at the given deadline."""
+ """Starts the operation at the scheduled time."""
COMPLETE_BY = "CompleteBy"
- """Complete the operation by the given deadline."""
+ """Completes the operation by the scheduled time."""
class ScheduledActionsProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Provisioning state of the scheduled action resource."""
+ """The provisioning state of the scheduled action."""
SUCCEEDED = "Succeeded"
"""Resource has been created."""
@@ -765,35 +670,35 @@ class ScheduledActionsProvisioningState(str, Enum, metaclass=CaseInsensitiveEnum
CANCELED = "Canceled"
"""Resource creation was canceled."""
DELETING = "Deleting"
- """Resource is being deleted."""
+ """The scheduled action is being deleted."""
+ UPDATING = "Updating"
+ """The scheduled action is being updated."""
class ScheduledActionsResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """The resource operation to take on a scheduled-action failure."""
+ """The operation to retry when a scheduled action fails."""
- UNKNOWN = "Unknown"
- """The default value for this enum type."""
START = "Start"
- """Start operations on the resources."""
+ """Starts the resources."""
DEALLOCATE = "Deallocate"
- """Deallocate operations on the resources."""
+ """Deallocates the resources."""
HIBERNATE = "Hibernate"
- """Hibernate operations on the resources."""
+ """Hibernates the resources."""
CREATE = "Create"
- """Create operations on the resources."""
+ """Creates the resources."""
DELETE = "Delete"
- """Delete operations on the resources."""
+ """Deletes the resources."""
class ScheduledActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Specify which action user wants to be performed on the resources."""
+ """The operation performed by the scheduled action."""
START = "Start"
- """Perform a start action on the specified resources."""
+ """Starts the targeted resources."""
DEALLOCATE = "Deallocate"
- """Perform a deallocate action on the specified resources."""
+ """Deallocates the targeted resources."""
HIBERNATE = "Hibernate"
- """Perform hibernate and deallocate on the specified resources."""
+ """Hibernates the targeted resources."""
class SecurityEncryptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
@@ -863,85 +768,25 @@ class StorageAccountTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta):
"""PremiumV2_LRS storage account type."""
-class VMAttributeSupport(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """VMSizes supported by Azure VMs. Included is a union of Excluded and Required."""
-
- EXCLUDED = "Excluded"
- """All VMSizes having the feature support will be excluded."""
- INCLUDED = "Included"
- """VMSizes that have the feature support and that do not have the feature support will be used.
- Included is a union of Excluded and Required."""
- REQUIRED = "Required"
- """Only the VMSizes having the feature support will be used."""
-
-
-class VMCategory(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """VMCategories defined for Azure VMs."""
-
- GENERAL_PURPOSE = "GeneralPurpose"
- """General purpose VM sizes provide balanced CPU-to-memory ratio. Ideal for testing and
- development, small to medium databases, and low to medium traffic web servers."""
- COMPUTE_OPTIMIZED = "ComputeOptimized"
- """Compute optimized VM sizes have a high CPU-to-memory ratio. These sizes are good for medium
- traffic web servers, network appliances, batch processes, and application servers."""
- MEMORY_OPTIMIZED = "MemoryOptimized"
- """Memory optimized VM sizes offer a high memory-to-CPU ratio that is great for relational
- database servers, medium to large caches, and in-memory analytics."""
- STORAGE_OPTIMIZED = "StorageOptimized"
- """Storage optimized virtual machine (VM) sizes offer high disk throughput and IO, and are ideal
- for Big Data, SQL, NoSQL databases, data warehousing, and large transactional databases."""
- GPU_ACCELERATED = "GpuAccelerated"
- """GPU optimized VM sizes are specialized virtual machines available with single, multiple, or
- fractional GPUs."""
- FPGA_ACCELERATED = "FpgaAccelerated"
- """FPGA optimized VM sizes are specialized virtual machines available with single or multiple
- FPGA."""
- HIGH_PERFORMANCE_COMPUTE = "HighPerformanceCompute"
- """Azure High Performance Compute VMs are optimized for various HPC workloads such as CFD, FEA,
- EDA, rendering, molecular dynamics, weather simulation, and financial risk analysis."""
-
-
-class VMOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Virtual Machine operation status values."""
-
- CREATING = "Creating"
- """Indicates that the virtual machine is either in the process of being created or is scheduled to
- be created."""
- CANCELED = "Canceled"
- """Indicates that the cancellation request was successful because the virtual machine had not been
- created yet."""
- CANCEL_FAILED_STATUS_UNKNOWN = "CancelFailedStatusUnknown"
- """Indicates that the cancellation request could not be applied because the virtual machine had
- already been created."""
- FAILED = "Failed"
- """Indicates that the virtual machine operation failed."""
- SUCCEEDED = "Succeeded"
- """Indicates that the virtual machine operation completed successfully."""
- DELETING = "Deleting"
- """Indicates that the virtual machine is being deleted."""
- CANCELLING = "Cancelling"
- """Indicates that the virtual machine operation is being cancelled."""
-
-
class WeekDay(str, Enum, metaclass=CaseInsensitiveEnumMeta):
- """Representation of the possible selection of days in a week in a gregorian calendar."""
+ """A day of the week on which the scheduled action can run."""
MONDAY = "Monday"
- """Monday weekday."""
+ """The scheduled action can run on Monday."""
TUESDAY = "Tuesday"
- """Tuesday weekday."""
+ """The scheduled action can run on Tuesday."""
WEDNESDAY = "Wednesday"
- """Wednesday weekday."""
+ """The scheduled action can run on Wednesday."""
THURSDAY = "Thursday"
- """Thursday weekday."""
+ """The scheduled action can run on Thursday."""
FRIDAY = "Friday"
- """Friday weekday."""
+ """The scheduled action can run on Friday."""
SATURDAY = "Saturday"
- """Saturday weekday."""
+ """The scheduled action can run on Saturday."""
SUNDAY = "Sunday"
- """Sunday weekday."""
+ """The scheduled action can run on Sunday."""
ALL = "All"
- """All week days."""
+ """Every day of the week."""
class WindowsPatchAssessmentMode(str, Enum, metaclass=CaseInsensitiveEnumMeta):
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_models.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_models.py
index 8271d32f3810..c8012e351d83 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_models.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_models.py
@@ -19,77 +19,6 @@
from .. import models as _models
-class AcknowledgeBulkOperationErrorsRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The request to acknowledge bulk operation errors.
-
- :ivar operation_ids: The set of operation ids to acknowledge. Required.
- :vartype operation_ids: list[str]
- """
-
- operation_ids: list[str] = rest_field(
- name="operationIds", visibility=["read", "create", "update", "delete", "query"]
- )
- """The set of operation ids to acknowledge. Required."""
-
- @overload
- def __init__(
- self,
- *,
- operation_ids: list[str],
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class AcknowledgeBulkOperationErrorsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The response from acknowledging bulk operation errors.
-
- :ivar acknowledged: The set of operation ids that were newly acknowledged. Required.
- :vartype acknowledged: list[str]
- :ivar not_found: The set of operation ids that were not found in the completed operations
- store. Required.
- :vartype not_found: list[str]
- :ivar skipped: The set of operation ids that were skipped because they were already
- acknowledged, not failed, or belong to a different scope. Required.
- :vartype skipped: list[str]
- """
-
- acknowledged: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The set of operation ids that were newly acknowledged. Required."""
- not_found: list[str] = rest_field(name="notFound", visibility=["read", "create", "update", "delete", "query"])
- """The set of operation ids that were not found in the completed operations store. Required."""
- skipped: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The set of operation ids that were skipped because they were already acknowledged, not failed,
- or belong to a different scope. Required."""
-
- @overload
- def __init__(
- self,
- *,
- acknowledged: list[str],
- not_found: list[str],
- skipped: list[str],
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class AdditionalCapabilities(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Enables or disables a capability on the virtual machine or virtual machine scale set.
@@ -257,96 +186,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ApiError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """ApiError for Fleet.
-
- :ivar code: The error code.
- :vartype code: str
- :ivar target: The target of the particular error.
- :vartype target: str
- :ivar message: The error message.
- :vartype message: str
- :ivar details: The API error details.
- :vartype details: list[~azure.mgmt.compute.bulkaction.models.ApiErrorBase]
- :ivar innererror: The API inner error.
- :vartype innererror: ~azure.mgmt.compute.bulkaction.models.BulkInstancesInnerError
- """
-
- code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The error code."""
- target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The target of the particular error."""
- message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The error message."""
- details: Optional[list["_models.ApiErrorBase"]] = rest_field(
- visibility=["read", "create", "update", "delete", "query"]
- )
- """The API error details."""
- innererror: Optional["_models.BulkInstancesInnerError"] = rest_field(
- visibility=["read", "create", "update", "delete", "query"]
- )
- """The API inner error."""
-
- @overload
- def __init__(
- self,
- *,
- code: Optional[str] = None,
- target: Optional[str] = None,
- message: Optional[str] = None,
- details: Optional[list["_models.ApiErrorBase"]] = None,
- innererror: Optional["_models.BulkInstancesInnerError"] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class ApiErrorBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """API error base.
-
- :ivar code: The error code.
- :vartype code: str
- :ivar target: The target of the particular error.
- :vartype target: str
- :ivar message: The error message.
- :vartype message: str
- """
-
- code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The error code."""
- target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The target of the particular error."""
- message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The error message."""
-
- @overload
- def __init__(
- self,
- *,
- code: Optional[str] = None,
- target: Optional[str] = None,
- message: Optional[str] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class ApplicationProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Contains the list of gallery applications that should be made available to the VM.
@@ -516,9 +355,7 @@ class BulkActionVmExtensionProperties(_Model): # pylint: disable=docstring-keyw
newer version of the extension available."""
settings: Optional[dict[str, Any]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""JSON formatted public settings for the extension."""
- protected_settings: Optional[dict[str, Any]] = rest_field(
- name="protectedSettings", visibility=["read", "create", "update", "delete", "query"]
- )
+ protected_settings: Optional[dict[str, Any]] = rest_field(name="protectedSettings", visibility=["create"])
"""The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no
protected settings at all."""
suppress_failures: Optional[bool] = rest_field(
@@ -528,7 +365,7 @@ class BulkActionVmExtensionProperties(_Model): # pylint: disable=docstring-keyw
such as not connecting to the VM will not be suppressed regardless of this value). The default
is false."""
protected_settings_from_key_vault: Optional["_models.KeyVaultSecretReference"] = rest_field(
- name="protectedSettingsFromKeyVault", visibility=["read", "create", "update", "delete", "query"]
+ name="protectedSettingsFromKeyVault", visibility=["create"]
)
"""The extensions protected settings that are passed by reference, and consumed from key vault."""
provision_after_extensions: Optional[list[str]] = rest_field(
@@ -1243,30 +1080,150 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class BulkInstancesInnerError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Inner error details.
+class BulkCreateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
+ """Details of the BulkCreate.
- :ivar exception_type: The exception type.
- :vartype exception_type: str
- :ivar error_detail: The internal error message or exception dump.
- :vartype error_detail: str
+ :ivar created_time: The UTC time the BulkCreate resource was created.
+ :vartype created_time: ~datetime.datetime
+ :ivar provisioning_state: The status of the last operation. Known values are: "Creating",
+ "Succeeded", "Failed", "Deleting", and "Canceled".
+ :vartype provisioning_state: str or ~azure.mgmt.compute.bulkaction.models.ProvisioningState
+ :ivar capacity: Total capacity to achieve. It can be in terms of VMs or vCPUs. Required.
+ :vartype capacity: int
+ :ivar capacity_type: Specifies capacity type for launching instances. It can be in terms of VMs
+ or vCPUs. Known values are: "VM" and "VCpu".
+ :vartype capacity_type: str or ~azure.mgmt.compute.bulkaction.models.CapacityType
+ :ivar min_capacity: The minimum capacity, expressed in units specified by capacityType, that
+ Azure must be able to allocate for the request to proceed. If Azure cannot allocate at least
+ this capacity with high confidence, the request is rejected with 409 Conflict
+ (InsufficientCapacity) and no VMs are created. Otherwise, Azure allocates as much capacity as
+ possible, up to the requested capacity. Must be greater than 0, less than capacity, and
+ requires partialFulfillmentPolicy.mode to be Enabled.
+ :vartype min_capacity: int
+ :ivar partial_fulfillment_policy: Controls how partial fulfillment is handled for a BulkCreate
+ request. When enabled, Azure creates only the VMs or vCPUs it has high confidence can be
+ successfully allocated, instead of attempting the entire request and potentially returning
+ allocation failures.
+ :vartype partial_fulfillment_policy:
+ ~azure.mgmt.compute.bulkaction.models.PartialFulfillmentPolicy
+ :ivar priority_profile: Configuration Options for Regular or Spot instances in BulkCreate.
+ Required.
+ :vartype priority_profile: ~azure.mgmt.compute.bulkaction.models.PriorityProfile
+ :ivar vm_sizes_profile: List of VM sizes supported for BulkCreate. Every virtual machine is
+ created from the operation-level computeProfile regardless of the size selected, so no
+ per-VM-size override can be supplied here.
+ :vartype vm_sizes_profile: list[~azure.mgmt.compute.bulkaction.models.BulkCreateVmSizeProfile]
+ :ivar compute_profile: Compute Profile to configure the Virtual Machines. Applied uniformly to
+ every virtual machine created by the operation. Required.
+ :vartype compute_profile: ~azure.mgmt.compute.bulkaction.models.ComputeProfile
+ :ivar zone_allocation_policy: Zone Allocation Policy for launching instances.
+ :vartype zone_allocation_policy: ~azure.mgmt.compute.bulkaction.models.ZoneAllocationPolicy
+ :ivar execution_parameters: Extra parameters that control how the request is executed,
+ including the retry policy.
+ :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters
"""
- exception_type: Optional[str] = rest_field(
- name="exceptionType", visibility=["read", "create", "update", "delete", "query"]
+ created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339")
+ """The UTC time the BulkCreate resource was created."""
+ provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
+ name="provisioningState", visibility=["read"]
+ )
+ """The status of the last operation. Known values are: \"Creating\", \"Succeeded\", \"Failed\",
+ \"Deleting\", and \"Canceled\"."""
+ capacity: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
+ """Total capacity to achieve. It can be in terms of VMs or vCPUs. Required."""
+ capacity_type: Optional[Union[str, "_models.CapacityType"]] = rest_field(
+ name="capacityType", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """Specifies capacity type for launching instances. It can be in terms of VMs or vCPUs. Known
+ values are: \"VM\" and \"VCpu\"."""
+ min_capacity: Optional[int] = rest_field(
+ name="minCapacity", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """The minimum capacity, expressed in units specified by capacityType, that Azure must be able to
+ allocate for the request to proceed. If Azure cannot allocate at least this capacity with high
+ confidence, the request is rejected with 409 Conflict (InsufficientCapacity) and no VMs are
+ created. Otherwise, Azure allocates as much capacity as possible, up to the requested capacity.
+ Must be greater than 0, less than capacity, and requires partialFulfillmentPolicy.mode to be
+ Enabled."""
+ partial_fulfillment_policy: Optional["_models.PartialFulfillmentPolicy"] = rest_field(
+ name="partialFulfillmentPolicy", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """Controls how partial fulfillment is handled for a BulkCreate request. When enabled, Azure
+ creates only the VMs or vCPUs it has high confidence can be successfully allocated, instead of
+ attempting the entire request and potentially returning allocation failures."""
+ priority_profile: "_models.PriorityProfile" = rest_field(
+ name="priorityProfile", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """Configuration Options for Regular or Spot instances in BulkCreate. Required."""
+ vm_sizes_profile: Optional[list["_models.BulkCreateVmSizeProfile"]] = rest_field(
+ name="vmSizesProfile", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """List of VM sizes supported for BulkCreate. Every virtual machine is created from the
+ operation-level computeProfile regardless of the size selected, so no per-VM-size override can
+ be supplied here."""
+ compute_profile: "_models.ComputeProfile" = rest_field(
+ name="computeProfile", visibility=["read", "create", "update", "delete", "query"]
)
- """The exception type."""
- error_detail: Optional[str] = rest_field(
- name="errorDetail", visibility=["read", "create", "update", "delete", "query"]
+ """Compute Profile to configure the Virtual Machines. Applied uniformly to every virtual machine
+ created by the operation. Required."""
+ zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = rest_field(
+ name="zoneAllocationPolicy", visibility=["read", "create", "update", "delete", "query"]
)
- """The internal error message or exception dump."""
+ """Zone Allocation Policy for launching instances."""
+ execution_parameters: Optional["_models.ExecutionParameters"] = rest_field(
+ name="executionParameters", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """Extra parameters that control how the request is executed, including the retry policy."""
+
+ @overload
+ def __init__(
+ self,
+ *,
+ capacity: int,
+ priority_profile: "_models.PriorityProfile",
+ compute_profile: "_models.ComputeProfile",
+ capacity_type: Optional[Union[str, "_models.CapacityType"]] = None,
+ min_capacity: Optional[int] = None,
+ partial_fulfillment_policy: Optional["_models.PartialFulfillmentPolicy"] = None,
+ vm_sizes_profile: Optional[list["_models.BulkCreateVmSizeProfile"]] = None,
+ zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = None,
+ execution_parameters: Optional["_models.ExecutionParameters"] = None,
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
+ """
+ :param mapping: raw JSON to initialize the model.
+ :type mapping: Mapping[str, Any]
+ """
+
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
+ super().__init__(*args, **kwargs)
+
+
+class BulkCreateVmSizeProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
+ """A VM size that the service may select for a BulkCreate operation.
+
+ :ivar name: The name of the VM size, eg Standard_D2ads_v5. Required.
+ :vartype name: str
+ :ivar rank: The rank of this VM size in the priority order, starting at 0, where a lower value
+ is preferred. Used when priorityProfile.allocationStrategy is Prioritized.
+ :vartype rank: int
+ """
+
+ name: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
+ """The name of the VM size, eg Standard_D2ads_v5. Required."""
+ rank: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
+ """The rank of this VM size in the priority order, starting at 0, where a lower value is
+ preferred. Used when priorityProfile.allocationStrategy is Prioritized."""
@overload
def __init__(
self,
*,
- exception_type: Optional[str] = None,
- error_detail: Optional[str] = None,
+ name: str,
+ rank: Optional[int] = None,
) -> None: ...
@overload
@@ -1281,16 +1238,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class CancelOccurrenceRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The request to cancel an occurrence.
+ """Request body for canceling a scheduled action occurrence.
- :ivar resource_ids: The resources the cancellation should act on. If no resource is passed in
- the list, Scheduled Action will cancel the occurrence for all resources. Required.
+ :ivar resource_ids: The resources for which operations should be canceled. An empty array
+ cancels all operations for all resources for the occurrence. Required.
:vartype resource_ids: list[str]
"""
resource_ids: list[str] = rest_field(name="resourceIds", visibility=["read", "create", "update", "delete", "query"])
- """The resources the cancellation should act on. If no resource is passed in the list, Scheduled
- Action will cancel the occurrence for all resources. Required."""
+ """The resources for which operations should be canceled. An empty array cancels all operations
+ for all resources for the occurrence. Required."""
@overload
def __init__(
@@ -1701,51 +1658,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class CreateResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The response from a create request.
-
- :ivar description: The description of the operation response. Required.
- :vartype description: str
- :ivar type: The type of resources used in the create request eg virtual machines. Required.
- :vartype type: str
- :ivar location: The location of the create request eg westus. Required.
- :vartype location: str
- :ivar results: The results from the create request if no errors exist.
- :vartype results: list[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
- """
-
- description: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The description of the operation response. Required."""
- type: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The type of resources used in the create request eg virtual machines. Required."""
- location: str = rest_field(visibility=["read", "create"])
- """The location of the create request eg westus. Required."""
- results: Optional[list["_models.ResourceOperation"]] = rest_field(
- visibility=["read", "create", "update", "delete", "query"]
- )
- """The results from the create request if no errors exist."""
-
- @overload
- def __init__(
- self,
- *,
- description: str,
- type: str,
- location: str,
- results: Optional[list["_models.ResourceOperation"]] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class DataDisk(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Describes a data disk.
@@ -1932,21 +1844,19 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class DelayRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Request to ask for a delay in an occurrence, delay should be set to client local time eg (PST)
- 2025-05-30T06:35:00-07:00.
+ """Request body for delaying a scheduled action occurrence.
- :ivar delay: The exact time to delay the operations to. Required.
+ :ivar delay: The new date and time for the occurrence, including the UTC offset. Required.
:vartype delay: ~datetime.datetime
- :ivar resource_ids: The resources that should be delayed. If empty, the delay will apply to the
- all resources in the occurrence. Required.
+ :ivar resource_ids: The resources to delay. An empty array delays all resources in the
+ occurrence. Required.
:vartype resource_ids: list[str]
"""
delay: datetime.datetime = rest_field(visibility=["read", "create", "update", "delete", "query"], format="rfc3339")
- """The exact time to delay the operations to. Required."""
+ """The new date and time for the occurrence, including the UTC offset. Required."""
resource_ids: list[str] = rest_field(name="resourceIds", visibility=["read", "create", "update", "delete", "query"])
- """The resources that should be delayed. If empty, the delay will apply to the all resources in
- the occurrence. Required."""
+ """The resources to delay. An empty array delays all resources in the occurrence. Required."""
@overload
def __init__(
@@ -2334,44 +2244,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ExecuteCreateContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The ExecuteCreateRequest request for create operations.
-
- :ivar resource_config_parameters: resource creation payload. Required.
- :vartype resource_config_parameters:
- ~azure.mgmt.compute.bulkaction.models.ResourceProvisionPayload
- :ivar execution_parameters: The execution parameters for the request. Required.
- :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters
- """
-
- resource_config_parameters: "_models.ResourceProvisionPayload" = rest_field(
- name="resourceConfigParameters", visibility=["read", "create", "update", "delete", "query"]
- )
- """resource creation payload. Required."""
- execution_parameters: "_models.ExecutionParameters" = rest_field(
- name="executionParameters", visibility=["read", "create", "update", "delete", "query"]
- )
- """The execution parameters for the request. Required."""
-
- @overload
- def __init__(
- self,
- *,
- resource_config_parameters: "_models.ResourceProvisionPayload",
- execution_parameters: "_models.ExecutionParameters",
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class ExecuteDeallocateContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The ExecuteDeallocateRequest request for executeDeallocate operations.
@@ -2606,51 +2478,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ExecuteVdiCreateRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The VdiCreateRequest request for create operations.
-
- :ivar resource_config_parameters: resource creation payload. Required.
- :vartype resource_config_parameters:
- ~azure.mgmt.compute.bulkaction.models.ResourceProvisionVdiPayload
- :ivar execution_parameters: The execution parameters for the request. Required.
- :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters
- """
-
- resource_config_parameters: "_models.ResourceProvisionVdiPayload" = rest_field(
- name="resourceConfigParameters", visibility=["read", "create", "update", "delete", "query"]
- )
- """resource creation payload. Required."""
- execution_parameters: "_models.ExecutionParameters" = rest_field(
- name="executionParameters", visibility=["read", "create", "update", "delete", "query"]
- )
- """The execution parameters for the request. Required."""
-
- @overload
- def __init__(
- self,
- *,
- resource_config_parameters: "_models.ResourceProvisionVdiPayload",
- execution_parameters: "_models.ExecutionParameters",
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Extra details needed to run the user's request.
- :ivar optimization_preference: Details that could optimize the user's request. Known values
- are: "Cost", "Availability", and "CostAvailabilityBalanced".
- :vartype optimization_preference: str or
- ~azure.mgmt.compute.bulkaction.models.OptimizationPreference
:ivar retry_policy: Retry policy the user can pass.
:vartype retry_policy: ~azure.mgmt.compute.bulkaction.models.RetryPolicy
:ivar verify_vm_agent_health: When true on an executeStart request, run a post-Start VM agent
@@ -2665,11 +2495,6 @@ class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-m
~azure.mgmt.compute.bulkaction.models.CapacityRecommendationParameters
"""
- optimization_preference: Optional[Union[str, "_models.OptimizationPreference"]] = rest_field(
- name="optimizationPreference", visibility=["read", "create", "update", "delete", "query"]
- )
- """Details that could optimize the user's request. Known values are: \"Cost\", \"Availability\",
- and \"CostAvailabilityBalanced\"."""
retry_policy: Optional["_models.RetryPolicy"] = rest_field(
name="retryPolicy", visibility=["read", "create", "update", "delete", "query"]
)
@@ -2691,7 +2516,6 @@ class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-m
def __init__(
self,
*,
- optimization_preference: Optional[Union[str, "_models.OptimizationPreference"]] = None,
retry_policy: Optional["_models.RetryPolicy"] = None,
verify_vm_agent_health: Optional[bool] = None,
capacity_recommendation_parameters: Optional["_models.CapacityRecommendationParameters"] = None,
@@ -2757,8 +2581,7 @@ class FallbackOperationInfo(_Model): # pylint: disable=docstring-keyword-should
"""Describes the fallback operation that was performed.
:ivar last_op_type: The last operation type that was performed as a fallback. Required. Known
- values are: "Unknown", "Start", "Deallocate", "Hibernate", "Create", "Delete", and
- "GetInstanceView".
+ values are: "Start", "Deallocate", "Hibernate", "Create", and "Delete".
:vartype last_op_type: str or ~azure.mgmt.compute.bulkaction.models.ResourceOperationType
:ivar status: The status of the fallback operation. Required.
:vartype status: str
@@ -2770,8 +2593,7 @@ class FallbackOperationInfo(_Model): # pylint: disable=docstring-keyword-should
name="lastOpType", visibility=["read", "create", "update", "delete", "query"]
)
"""The last operation type that was performed as a fallback. Required. Known values are:
- \"Unknown\", \"Start\", \"Deallocate\", \"Hibernate\", \"Create\", \"Delete\", and
- \"GetInstanceView\"."""
+ \"Start\", \"Deallocate\", \"Hibernate\", \"Create\", and \"Delete\"."""
status: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The status of the fallback operation. Required."""
error: Optional["_models.ResourceOperationError"] = rest_field(
@@ -2799,69 +2621,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class FlexProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The flex properties for flexible VM creation.
-
- :ivar vm_size_profiles: The list of VM size profiles to use for flex creation. Required.
- :vartype vm_size_profiles: list[~azure.mgmt.compute.bulkaction.models.VmSizeProfile]
- :ivar os_type: The operating system type for the VMs. Required. Known values are: "Windows" and
- "Linux".
- :vartype os_type: str or ~azure.mgmt.compute.bulkaction.models.OsType
- :ivar priority_profile: The priority profile for VM allocation. Required.
- :vartype priority_profile: ~azure.mgmt.compute.bulkaction.models.PriorityProfile
- :ivar zone_allocation_policy: The zone allocation policy for distributing VMs across
- availability zones.
- :vartype zone_allocation_policy: ~azure.mgmt.compute.bulkaction.models.ZoneAllocationPolicy
- :ivar min_capacity: The minimum number of VMs that must be successfully created for the request
- to proceed. If fewer than this number can be allocated, the entire request is automatically
- rejected.
- :vartype min_capacity: int
- """
-
- vm_size_profiles: list["_models.VmSizeProfile"] = rest_field(
- name="vmSizeProfiles", visibility=["read", "create", "update", "delete", "query"]
- )
- """The list of VM size profiles to use for flex creation. Required."""
- os_type: Union[str, "_models.OsType"] = rest_field(
- name="osType", visibility=["read", "create", "update", "delete", "query"]
- )
- """The operating system type for the VMs. Required. Known values are: \"Windows\" and \"Linux\"."""
- priority_profile: "_models.PriorityProfile" = rest_field(
- name="priorityProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """The priority profile for VM allocation. Required."""
- zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = rest_field(
- name="zoneAllocationPolicy", visibility=["read", "create", "update", "delete", "query"]
- )
- """The zone allocation policy for distributing VMs across availability zones."""
- min_capacity: Optional[int] = rest_field(
- name="minCapacity", visibility=["read", "create", "update", "delete", "query"]
- )
- """The minimum number of VMs that must be successfully created for the request to proceed. If
- fewer than this number can be allocated, the entire request is automatically rejected."""
-
- @overload
- def __init__(
- self,
- *,
- vm_size_profiles: list["_models.VmSizeProfile"],
- os_type: Union[str, "_models.OsType"],
- priority_profile: "_models.PriorityProfile",
- zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = None,
- min_capacity: Optional[int] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class GetOperationStatusContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""This is the request to get operation status using operationids.
@@ -3176,138 +2935,46 @@ class KeyVaultKeyReference(_Model): # pylint: disable=docstring-keyword-should-
"""The relative URL of the Key Vault containing the key. Required."""
@overload
- def __init__(
- self,
- *,
- key_url: str,
- source_vault: "_models.SubResource",
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class KeyVaultSecretReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Describes a reference to Key Vault Secret.
-
- :ivar secret_url: The URL referencing a secret in a Key Vault. Required.
- :vartype secret_url: str
- :ivar source_vault: The relative URL of the Key Vault containing the secret. Required.
- :vartype source_vault: ~azure.mgmt.compute.bulkaction.models.SubResource
- """
-
- secret_url: str = rest_field(name="secretUrl", visibility=["read", "create", "update", "delete", "query"])
- """The URL referencing a secret in a Key Vault. Required."""
- source_vault: "_models.SubResource" = rest_field(
- name="sourceVault", visibility=["read", "create", "update", "delete", "query"]
- )
- """The relative URL of the Key Vault containing the secret. Required."""
-
- @overload
- def __init__(
- self,
- *,
- secret_url: str,
- source_vault: "_models.SubResource",
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class LaunchBulkInstancesOperationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Details of the LaunchBulkInstancesOperation.
-
- :ivar created_time: The UTC time the LaunchBulkInstancesOperation resource was created.
- :vartype created_time: ~datetime.datetime
- :ivar provisioning_state: The status of the last operation. Known values are: "Creating",
- "Succeeded", "Failed", "Deleting", and "Canceled".
- :vartype provisioning_state: str or ~azure.mgmt.compute.bulkaction.models.ProvisioningState
- :ivar capacity: Total capacity to achieve. It can be in terms of VMs or vCPUs. Required.
- :vartype capacity: int
- :ivar capacity_type: Specifies capacity type for launching instances. It can be in terms of VMs
- or vCPUs. Known values are: "VM" and "VCpu".
- :vartype capacity_type: str or ~azure.mgmt.compute.bulkaction.models.CapacityType
- :ivar priority_profile: Configuration Options for Regular or Spot instances in
- LaunchBulkInstancesOperation. Required.
- :vartype priority_profile: ~azure.mgmt.compute.bulkaction.models.PriorityProfile
- :ivar vm_sizes_profile: List of VM sizes supported for LaunchBulkInstancesOperation.
- :vartype vm_sizes_profile: list[~azure.mgmt.compute.bulkaction.models.VmSizeProfile]
- :ivar vm_attributes: Attributes to launch instances.
- :vartype vm_attributes: ~azure.mgmt.compute.bulkaction.models.VMAttributes
- :ivar compute_profile: Compute Profile to configure the Virtual Machines. Required.
- :vartype compute_profile: ~azure.mgmt.compute.bulkaction.models.ComputeProfile
- :ivar zone_allocation_policy: Zone Allocation Policy for launching instances.
- :vartype zone_allocation_policy: ~azure.mgmt.compute.bulkaction.models.ZoneAllocationPolicy
- :ivar retry_policy: Retry policy the user can pass.
- :vartype retry_policy: ~azure.mgmt.compute.bulkaction.models.RetryPolicy
- """
-
- created_time: Optional[datetime.datetime] = rest_field(name="createdTime", visibility=["read"], format="rfc3339")
- """The UTC time the LaunchBulkInstancesOperation resource was created."""
- provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
- name="provisioningState", visibility=["read"]
- )
- """The status of the last operation. Known values are: \"Creating\", \"Succeeded\", \"Failed\",
- \"Deleting\", and \"Canceled\"."""
- capacity: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Total capacity to achieve. It can be in terms of VMs or vCPUs. Required."""
- capacity_type: Optional[Union[str, "_models.CapacityType"]] = rest_field(
- name="capacityType", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies capacity type for launching instances. It can be in terms of VMs or vCPUs. Known
- values are: \"VM\" and \"VCpu\"."""
- priority_profile: "_models.PriorityProfile" = rest_field(
- name="priorityProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """Configuration Options for Regular or Spot instances in LaunchBulkInstancesOperation. Required."""
- vm_sizes_profile: Optional[list["_models.VmSizeProfile"]] = rest_field(
- name="vmSizesProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """List of VM sizes supported for LaunchBulkInstancesOperation."""
- vm_attributes: Optional["_models.VMAttributes"] = rest_field(
- name="vmAttributes", visibility=["read", "create", "update", "delete", "query"]
- )
- """Attributes to launch instances."""
- compute_profile: "_models.ComputeProfile" = rest_field(
- name="computeProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """Compute Profile to configure the Virtual Machines. Required."""
- zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = rest_field(
- name="zoneAllocationPolicy", visibility=["read", "create", "update", "delete", "query"]
- )
- """Zone Allocation Policy for launching instances."""
- retry_policy: Optional["_models.RetryPolicy"] = rest_field(
- name="retryPolicy", visibility=["read", "create", "update", "delete", "query"]
+ def __init__(
+ self,
+ *,
+ key_url: str,
+ source_vault: "_models.SubResource",
+ ) -> None: ...
+
+ @overload
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
+ """
+ :param mapping: raw JSON to initialize the model.
+ :type mapping: Mapping[str, Any]
+ """
+
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
+ super().__init__(*args, **kwargs)
+
+
+class KeyVaultSecretReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
+ """Describes a reference to Key Vault Secret.
+
+ :ivar secret_url: The URL referencing a secret in a Key Vault. Required.
+ :vartype secret_url: str
+ :ivar source_vault: The relative URL of the Key Vault containing the secret. Required.
+ :vartype source_vault: ~azure.mgmt.compute.bulkaction.models.SubResource
+ """
+
+ secret_url: str = rest_field(name="secretUrl", visibility=["read", "create", "update", "delete", "query"])
+ """The URL referencing a secret in a Key Vault. Required."""
+ source_vault: "_models.SubResource" = rest_field(
+ name="sourceVault", visibility=["read", "create", "update", "delete", "query"]
)
- """Retry policy the user can pass."""
+ """The relative URL of the Key Vault containing the secret. Required."""
@overload
def __init__(
self,
*,
- capacity: int,
- priority_profile: "_models.PriorityProfile",
- compute_profile: "_models.ComputeProfile",
- capacity_type: Optional[Union[str, "_models.CapacityType"]] = None,
- vm_sizes_profile: Optional[list["_models.VmSizeProfile"]] = None,
- vm_attributes: Optional["_models.VMAttributes"] = None,
- zone_allocation_policy: Optional["_models.ZoneAllocationPolicy"] = None,
- retry_policy: Optional["_models.RetryPolicy"] = None,
+ secret_url: str,
+ source_vault: "_models.SubResource",
) -> None: ...
@overload
@@ -3513,8 +3180,8 @@ class ProxyResource(Resource):
"""
-class LocationBasedBulkCreateCustom(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Location based BulkCreateCustom resource. The location is part of the resource path.
+class LocationBasedBulkCreate(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
+ """Location based BulkCreate resource. The location is part of the resource path.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -3528,8 +3195,8 @@ class LocationBasedBulkCreateCustom(ProxyResource): # pylint: disable=docstring
information.
:vartype system_data: ~azure.mgmt.compute.bulkaction.models.SystemData
:ivar properties: The resource-specific properties for this resource.
- :vartype properties: ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomProperties
- :ivar zones: Zones in which the BulkCreateCustom is available.
+ :vartype properties: ~azure.mgmt.compute.bulkaction.models.BulkCreateProperties
+ :ivar zones: Zones in which the BulkCreate is available.
:vartype zones: list[str]
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
@@ -3539,12 +3206,12 @@ class LocationBasedBulkCreateCustom(ProxyResource): # pylint: disable=docstring
:vartype plan: ~azure.mgmt.compute.bulkaction.models.Plan
"""
- properties: Optional["_models.BulkCreateCustomProperties"] = rest_field(
+ properties: Optional["_models.BulkCreateProperties"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
"""The resource-specific properties for this resource."""
- zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Zones in which the BulkCreateCustom is available."""
+ zones: Optional[list[str]] = rest_field(visibility=["read", "create"])
+ """Zones in which the BulkCreate is available."""
tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""Resource tags."""
identity: Optional["_models.ManagedServiceIdentity"] = rest_field(
@@ -3558,7 +3225,7 @@ class LocationBasedBulkCreateCustom(ProxyResource): # pylint: disable=docstring
def __init__(
self,
*,
- properties: Optional["_models.BulkCreateCustomProperties"] = None,
+ properties: Optional["_models.BulkCreateProperties"] = None,
zones: Optional[list[str]] = None,
tags: Optional[dict[str, str]] = None,
identity: Optional["_models.ManagedServiceIdentity"] = None,
@@ -3576,11 +3243,8 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class LocationBasedLaunchBulkInstancesOperation(
- ProxyResource
-): # pylint: disable=name-too-long,docstring-keyword-should-match-keyword-only
- """Location based LaunchBulkInstancesOperation resource. The location is part of the resource
- path.
+class LocationBasedBulkCreateCustom(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
+ """Location based BulkCreateCustom resource. The location is part of the resource path.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -3594,9 +3258,8 @@ class LocationBasedLaunchBulkInstancesOperation(
information.
:vartype system_data: ~azure.mgmt.compute.bulkaction.models.SystemData
:ivar properties: The resource-specific properties for this resource.
- :vartype properties:
- ~azure.mgmt.compute.bulkaction.models.LaunchBulkInstancesOperationProperties
- :ivar zones: Zones in which the LaunchBulkInstancesOperation is available.
+ :vartype properties: ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomProperties
+ :ivar zones: Zones in which the BulkCreateCustom is available.
:vartype zones: list[str]
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
@@ -3606,12 +3269,12 @@ class LocationBasedLaunchBulkInstancesOperation(
:vartype plan: ~azure.mgmt.compute.bulkaction.models.Plan
"""
- properties: Optional["_models.LaunchBulkInstancesOperationProperties"] = rest_field(
+ properties: Optional["_models.BulkCreateCustomProperties"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
"""The resource-specific properties for this resource."""
- zones: Optional[list[str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Zones in which the LaunchBulkInstancesOperation is available."""
+ zones: Optional[list[str]] = rest_field(visibility=["read", "create"])
+ """Zones in which the BulkCreateCustom is available."""
tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""Resource tags."""
identity: Optional["_models.ManagedServiceIdentity"] = rest_field(
@@ -3625,7 +3288,7 @@ class LocationBasedLaunchBulkInstancesOperation(
def __init__(
self,
*,
- properties: Optional["_models.LaunchBulkInstancesOperationProperties"] = None,
+ properties: Optional["_models.BulkCreateCustomProperties"] = None,
zones: Optional[list[str]] = None,
tags: Optional[dict[str, str]] = None,
identity: Optional["_models.ManagedServiceIdentity"] = None,
@@ -3876,29 +3539,29 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class NotificationProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The information about notifications to be send to about upcoming operations.
+ """Settings for notifications about upcoming scheduled action operations.
- :ivar destination: Where the notification should be sent. For email, it should follow email
- format. Required.
+ :ivar destination: The notification destination. For email notifications, specify a valid email
+ address. Required.
:vartype destination: str
- :ivar type: Type of notification to be sent. Required. "Email"
+ :ivar type: The notification delivery method. Required. "Email"
:vartype type: str or ~azure.mgmt.compute.bulkaction.models.NotificationType
- :ivar language: The language the notification should be sent on. Required. "en-us"
+ :ivar language: The language used for the notification. Required. "en-us"
:vartype language: str or ~azure.mgmt.compute.bulkaction.models.Language
- :ivar disabled: Tells if the notification is enabled or not.
+ :ivar disabled: If true, notifications to this destination are disabled.
:vartype disabled: bool
"""
destination: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Where the notification should be sent. For email, it should follow email format. Required."""
+ """The notification destination. For email notifications, specify a valid email address. Required."""
type: Union[str, "_models.NotificationType"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """Type of notification to be sent. Required. \"Email\""""
+ """The notification delivery method. Required. \"Email\""""
language: Union[str, "_models.Language"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The language the notification should be sent on. Required. \"en-us\""""
+ """The language used for the notification. Required. \"en-us\""""
disabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Tells if the notification is enabled or not."""
+ """If true, notifications to this destination are disabled."""
@overload
def __init__(
@@ -3922,8 +3585,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class Occurrence(ProxyResource): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Concrete proxy resource types can be created by aliasing this type using a specific property
- type.
+ """One scheduled execution of a scheduled action.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -3964,51 +3626,48 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OccurrenceExtensionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The properties of the occurrence extension.
+ """An occurrence associated with a specific compute resource.
- :ivar resource_id: The ARM Id of the resource.
- "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
- Required.
+ :ivar resource_id: The Azure resource ID of the targeted virtual machine. Required.
:vartype resource_id: str
- :ivar notification_settings: The desired notification settings for the specified resource.
+ :ivar notification_settings: Notification settings that apply only to this resource.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
- :ivar scheduled_time: The time the occurrence is scheduled for the resource. Specified in UTC.
- Required.
+ :ivar scheduled_time: Read-only. The UTC date and time when the operation is scheduled for this
+ resource. Required.
:vartype scheduled_time: ~datetime.datetime
- :ivar provisioning_state: The current state of the resource. Known values are: "Succeeded",
- "Failed", "Canceled", "Created", "Scheduled", "Cancelling", "Rescheduling", and "InvalidState".
+ :ivar provisioning_state: Read-only. The current state of the operation for this resource.
+ Known values are: "Succeeded", "Failed", "Canceled", "Created", "Scheduled", "Cancelling",
+ "Rescheduling", and "InvalidState".
:vartype provisioning_state: str or
~azure.mgmt.compute.bulkaction.models.OccurrenceResourceProvisioningState
- :ivar error_details: Error details for the resource. Only populated if resource is in failed
- state.
+ :ivar error_details: Read-only. Error details when the operation fails for this resource.
:vartype error_details: ~azure.core.ODataV4Format
- :ivar scheduled_action_id: The arm identifier of the scheduled action the occurrence belongs
- to. Required.
+ :ivar scheduled_action_id: The Azure resource ID of the scheduled action that owns the
+ occurrence. Required.
:vartype scheduled_action_id: str
"""
resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"])
- """The ARM Id of the resource.
- \"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}\".
- Required."""
+ """The Azure resource ID of the targeted virtual machine. Required."""
notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The desired notification settings for the specified resource."""
+ """Notification settings that apply only to this resource."""
scheduled_time: datetime.datetime = rest_field(name="scheduledTime", visibility=["read"], format="rfc3339")
- """The time the occurrence is scheduled for the resource. Specified in UTC. Required."""
+ """Read-only. The UTC date and time when the operation is scheduled for this resource. Required."""
provisioning_state: Optional[Union[str, "_models.OccurrenceResourceProvisioningState"]] = rest_field(
name="provisioningState", visibility=["read"]
)
- """The current state of the resource. Known values are: \"Succeeded\", \"Failed\", \"Canceled\",
- \"Created\", \"Scheduled\", \"Cancelling\", \"Rescheduling\", and \"InvalidState\"."""
+ """Read-only. The current state of the operation for this resource. Known values are:
+ \"Succeeded\", \"Failed\", \"Canceled\", \"Created\", \"Scheduled\", \"Cancelling\",
+ \"Rescheduling\", and \"InvalidState\"."""
error_details: Optional[ODataV4Format] = rest_field(name="errorDetails", visibility=["read"])
- """Error details for the resource. Only populated if resource is in failed state."""
+ """Read-only. Error details when the operation fails for this resource."""
scheduled_action_id: str = rest_field(
name="scheduledActionId", visibility=["read", "create", "update", "delete", "query"]
)
- """The arm identifier of the scheduled action the occurrence belongs to. Required."""
+ """The Azure resource ID of the scheduled action that owns the occurrence. Required."""
@overload
def __init__(
@@ -4031,7 +3690,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OccurrenceExtensionResource(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The scheduled action extension.
+ """A scheduled action occurrence associated with a specific compute resource.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -4072,81 +3731,78 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OccurrenceProperties(_Model):
- """Properties for an occurrence.
+ """Properties of a scheduled action occurrence.
- :ivar scheduled_time: The time the occurrence is scheduled for. This value can be changed by
- calling the delay API. Required.
+ :ivar scheduled_time: Read-only. The UTC date and time when the occurrence is scheduled to run.
+ Required.
:vartype scheduled_time: ~datetime.datetime
- :ivar result_summary: The result for occurrences that achieved a terminal state. Required.
+ :ivar result_summary: Read-only. The result summary after the occurrence reaches a final state.
+ Required.
:vartype result_summary: ~azure.mgmt.compute.bulkaction.models.OccurrenceResultSummary
- :ivar provisioning_state: The aggregated provisioning state of the occurrence. Known values
- are: "Created", "Rescheduling", "Scheduled", "Succeeded", "Failed", "Cancelling", and
- "Canceled".
+ :ivar provisioning_state: Read-only. The current state of the occurrence. Known values are:
+ "Created", "Rescheduling", "Scheduled", "Succeeded", "Failed", "Cancelling", and "Canceled".
:vartype provisioning_state: str or ~azure.mgmt.compute.bulkaction.models.OccurrenceState
"""
scheduled_time: datetime.datetime = rest_field(name="scheduledTime", visibility=["read"], format="rfc3339")
- """The time the occurrence is scheduled for. This value can be changed by calling the delay API.
- Required."""
+ """Read-only. The UTC date and time when the occurrence is scheduled to run. Required."""
result_summary: "_models.OccurrenceResultSummary" = rest_field(name="resultSummary", visibility=["read"])
- """The result for occurrences that achieved a terminal state. Required."""
+ """Read-only. The result summary after the occurrence reaches a final state. Required."""
provisioning_state: Optional[Union[str, "_models.OccurrenceState"]] = rest_field(
name="provisioningState", visibility=["read"]
)
- """The aggregated provisioning state of the occurrence. Known values are: \"Created\",
+ """Read-only. The current state of the occurrence. Known values are: \"Created\",
\"Rescheduling\", \"Scheduled\", \"Succeeded\", \"Failed\", \"Cancelling\", and \"Canceled\"."""
class OccurrenceResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Represents an scheduled action resource metadata.
+ """Scheduling and status details for a resource included in a scheduled action occurrence.
- :ivar name: The name of the resource. Required.
+ :ivar name: Read-only. The name of the association resource. Required.
:vartype name: str
- :ivar id: The compute RP resource id of the resource in the scheduled actions scope. Required.
+ :ivar id: Read-only. The Azure resource ID of the association resource. Required.
:vartype id: str
- :ivar type: The type of resource.
+ :ivar type: Read-only. The Azure resource type of the associated resource.
:vartype type: str
- :ivar resource_id: The ARM Id of the resource.
- "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
- Required.
+ :ivar resource_id: The Azure resource ID of the targeted virtual machine. Required.
:vartype resource_id: str
- :ivar notification_settings: The desired notification settings for the specified resource.
+ :ivar notification_settings: Notification settings that apply only to this resource.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
- :ivar scheduled_time: The time the occurrence is scheduled for the resource. Required.
+ :ivar scheduled_time: Read-only. The UTC date and time when the operation is scheduled for this
+ resource. Required.
:vartype scheduled_time: ~datetime.datetime
- :ivar provisioning_state: The current state of the resource. Known values are: "Succeeded",
- "Failed", "Canceled", "Created", "Scheduled", "Cancelling", "Rescheduling", and "InvalidState".
+ :ivar provisioning_state: Read-only. The current state of the operation for this resource.
+ Known values are: "Succeeded", "Failed", "Canceled", "Created", "Scheduled", "Cancelling",
+ "Rescheduling", and "InvalidState".
:vartype provisioning_state: str or
~azure.mgmt.compute.bulkaction.models.OccurrenceResourceProvisioningState
- :ivar error_details: Error details for the resource. Only populated if resource is in failed
- state.
+ :ivar error_details: Read-only. Error details when the operation fails for this resource.
:vartype error_details: ~azure.core.ODataV4Format
"""
name: str = rest_field(visibility=["read"])
- """The name of the resource. Required."""
+ """Read-only. The name of the association resource. Required."""
id: str = rest_field(visibility=["read"])
- """The compute RP resource id of the resource in the scheduled actions scope. Required."""
+ """Read-only. The Azure resource ID of the association resource. Required."""
type: Optional[str] = rest_field(visibility=["read"])
- """The type of resource."""
+ """Read-only. The Azure resource type of the associated resource."""
resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"])
- """The ARM Id of the resource.
- \"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}\".
- Required."""
+ """The Azure resource ID of the targeted virtual machine. Required."""
notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The desired notification settings for the specified resource."""
+ """Notification settings that apply only to this resource."""
scheduled_time: datetime.datetime = rest_field(name="scheduledTime", visibility=["read"], format="rfc3339")
- """The time the occurrence is scheduled for the resource. Required."""
+ """Read-only. The UTC date and time when the operation is scheduled for this resource. Required."""
provisioning_state: Optional[Union[str, "_models.OccurrenceResourceProvisioningState"]] = rest_field(
name="provisioningState", visibility=["read"]
)
- """The current state of the resource. Known values are: \"Succeeded\", \"Failed\", \"Canceled\",
- \"Created\", \"Scheduled\", \"Cancelling\", \"Rescheduling\", and \"InvalidState\"."""
+ """Read-only. The current state of the operation for this resource. Known values are:
+ \"Succeeded\", \"Failed\", \"Canceled\", \"Created\", \"Scheduled\", \"Cancelling\",
+ \"Rescheduling\", and \"InvalidState\"."""
error_details: Optional[ODataV4Format] = rest_field(name="errorDetails", visibility=["read"])
- """Error details for the resource. Only populated if resource is in failed state."""
+ """Read-only. Error details when the operation fails for this resource."""
@overload
def __init__(
@@ -4168,21 +3824,20 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class OccurrenceResultSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The summarized provisioning result of an occurrence.
+ """Summary of results for a scheduled action occurrence.
- :ivar total: The total number of resources that the occurrence was supposed to act on.
- Required.
+ :ivar total: The number of resources targeted by the occurrence. Required.
:vartype total: int
- :ivar statuses: The summarized status of the resources. Required.
+ :ivar statuses: Resource counts grouped by result code. Required.
:vartype statuses: list[~azure.mgmt.compute.bulkaction.models.ResourceResultSummary]
"""
total: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The total number of resources that the occurrence was supposed to act on. Required."""
+ """The number of resources targeted by the occurrence. Required."""
statuses: list["_models.ResourceResultSummary"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The summarized status of the resources. Required."""
+ """Resource counts grouped by result code. Required."""
@overload
def __init__(
@@ -4628,9 +4283,7 @@ class OSProfile(_Model): # pylint: disable=docstring-keyword-should-match-keywo
\"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\",
\"user4\", \"user5\".
**Minimum-length (Linux):** 1 character
**Max-length
(Linux):** 64 characters
**Max-length (Windows):** 20 characters."""
- admin_password: Optional[str] = rest_field(
- name="adminPassword", visibility=["read", "create", "update", "delete", "query"]
- )
+ admin_password: Optional[str] = rest_field(name="adminPassword", visibility=["create"])
"""Specifies the password of the administrator account.
**Minimum-length (Windows):** 8
characters
**Minimum-length (Linux):** 6 characters
**Max-length (Windows):**
123 characters
**Max-length (Linux):** 72 characters
**Complexity
@@ -5269,16 +4922,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ResourceAttachRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Request model to attach a list of scheduled action resources.
+ """Resources to attach to a scheduled action.
- :ivar resources: List of resources to be attached/patched. Required.
+ :ivar resources: The list of resources to attach to the scheduled action. Required.
:vartype resources: list[~azure.mgmt.compute.bulkaction.models.ScheduledActionResourceInput]
"""
resources: list["_models.ScheduledActionResourceInput"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """List of resources to be attached/patched. Required."""
+ """The list of resources to attach to the scheduled action. Required."""
@overload
def __init__(
@@ -5299,14 +4952,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ResourceDetachRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Request model to detach a list of scheduled action resources.
+ """Resources to remove from a scheduled action.
- :ivar resources: List of resources to be detached. Required.
+ :ivar resources: The Azure resource IDs of the resources to remove. Required.
:vartype resources: list[str]
"""
resources: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """List of resources to be detached. Required."""
+ """The Azure resource IDs of the resources to remove. Required."""
@overload
def __init__(
@@ -5421,19 +5074,18 @@ class ResourceOperationDetails(_Model): # pylint: disable=docstring-keyword-sho
:ivar resource_id: Unique identifier for the resource involved in the operation, for example
Azure resource ID.
:vartype resource_id: str
- :ivar op_type: Type of operation performed on the resources. Known values are: "Unknown",
- "Start", "Deallocate", "Hibernate", "Create", "Delete", and "GetInstanceView".
+ :ivar op_type: Type of operation performed on the resources. Known values are: "Start",
+ "Deallocate", "Hibernate", "Create", and "Delete".
:vartype op_type: str or ~azure.mgmt.compute.bulkaction.models.ResourceOperationType
:ivar subscription_id: Subscription id attached to the request.
:vartype subscription_id: str
:ivar deadline: Deadline for the operation.
:vartype deadline: ~datetime.datetime
- :ivar deadline_type: Type of deadline of the operation. Known values are: "Unknown",
- "InitiateAt", and "CompleteBy".
+ :ivar deadline_type: Type of deadline of the operation. Known values are: "InitiateAt" and
+ "CompleteBy".
:vartype deadline_type: str or ~azure.mgmt.compute.bulkaction.models.DeadlineType
- :ivar state: Current state of the operation. Known values are: "Unknown", "PendingScheduling",
- "Scheduled", "PendingExecution", "Executing", "Succeeded", "Failed", "Cancelled", and
- "Blocked".
+ :ivar state: Current state of the operation. Known values are: "Scheduled", "Executing",
+ "Succeeded", "Failed", "Cancelled", and "Blocked".
:vartype state: str or ~azure.mgmt.compute.bulkaction.models.OperationState
:ivar timezone: Timezone for the operation.
:vartype timezone: str
@@ -5462,8 +5114,8 @@ class ResourceOperationDetails(_Model): # pylint: disable=docstring-keyword-sho
op_type: Optional[Union[str, "_models.ResourceOperationType"]] = rest_field(
name="opType", visibility=["read", "create", "update", "delete", "query"]
)
- """Type of operation performed on the resources. Known values are: \"Unknown\", \"Start\",
- \"Deallocate\", \"Hibernate\", \"Create\", \"Delete\", and \"GetInstanceView\"."""
+ """Type of operation performed on the resources. Known values are: \"Start\", \"Deallocate\",
+ \"Hibernate\", \"Create\", and \"Delete\"."""
subscription_id: Optional[str] = rest_field(
name="subscriptionId", visibility=["read", "create", "update", "delete", "query"]
)
@@ -5475,14 +5127,12 @@ class ResourceOperationDetails(_Model): # pylint: disable=docstring-keyword-sho
deadline_type: Optional[Union[str, "_models.DeadlineType"]] = rest_field(
name="deadlineType", visibility=["read", "create", "update", "delete", "query"]
)
- """Type of deadline of the operation. Known values are: \"Unknown\", \"InitiateAt\", and
- \"CompleteBy\"."""
+ """Type of deadline of the operation. Known values are: \"InitiateAt\" and \"CompleteBy\"."""
state: Optional[Union[str, "_models.OperationState"]] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """Current state of the operation. Known values are: \"Unknown\", \"PendingScheduling\",
- \"Scheduled\", \"PendingExecution\", \"Executing\", \"Succeeded\", \"Failed\", \"Cancelled\",
- and \"Blocked\"."""
+ """Current state of the operation. Known values are: \"Scheduled\", \"Executing\", \"Succeeded\",
+ \"Failed\", \"Cancelled\", and \"Blocked\"."""
timezone: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""Timezone for the operation."""
resource_operation_error: Optional["_models.ResourceOperationError"] = rest_field(
@@ -5575,21 +5225,20 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The response from scheduled action resource requests, which contains the status of each
- resource.
+ """Results of a scheduled action operation for targeted resources.
- :ivar total_resources: The total number of resources operated on. Required.
+ :ivar total_resources: The number of resources included in the operation. Required.
:vartype total_resources: int
- :ivar resources_statuses: The resource status of for each resource. Required.
+ :ivar resources_statuses: The operation result for each resource. Required.
:vartype resources_statuses: list[~azure.mgmt.compute.bulkaction.models.ResourceStatus]
"""
total_resources: int = rest_field(name="totalResources", visibility=["read", "create", "update", "delete", "query"])
- """The total number of resources operated on. Required."""
+ """The number of resources included in the operation. Required."""
resources_statuses: list["_models.ResourceStatus"] = rest_field(
name="resourcesStatuses", visibility=["read", "create", "update", "delete", "query"]
)
- """The resource status of for each resource. Required."""
+ """The operation result for each resource. Required."""
@overload
def __init__(
@@ -5611,16 +5260,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ResourcePatchRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Request model perform a resource operation in a list of resources.
+ """Resource-specific settings to update in a scheduled action.
- :ivar resources: The list of resources we watch to patch. Required.
+ :ivar resources: The resources and notification settings to update. Required.
:vartype resources: list[~azure.mgmt.compute.bulkaction.models.ScheduledActionResourceInput]
"""
resources: list["_models.ScheduledActionResourceInput"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The list of resources we watch to patch. Required."""
+ """The resources and notification settings to update. Required."""
@overload
def __init__(
@@ -5640,144 +5289,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class ResourceProvisionPayload(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Resource creation data model.
-
- :ivar base_profile: Bulk Actions Virtual Machine Profile object that contains VM properties
- that are common across all VMs in this batch.
- :vartype base_profile: dict[str, any]
- :ivar resource_overrides: Bulk Actions Virtual Machine Profile array, that contains VM
- properties that should be overridden for each VM in the batch.
- :vartype resource_overrides: list[dict[str, any]]
- :ivar resource_count: Number of VMs to be created. Required.
- :vartype resource_count: int
- :ivar resource_prefix: If resourceOverrides doesn't contain "name", the service will create a
- name based on the prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1..
- :vartype resource_prefix: str
- """
-
- base_profile: Optional[dict[str, Any]] = rest_field(
- name="baseProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """Bulk Actions Virtual Machine Profile object that contains VM properties that are common across
- all VMs in this batch."""
- resource_overrides: Optional[list[dict[str, Any]]] = rest_field(
- name="resourceOverrides", visibility=["read", "create", "update", "delete", "query"]
- )
- """Bulk Actions Virtual Machine Profile array, that contains VM properties that should be
- overridden for each VM in the batch."""
- resource_count: int = rest_field(name="resourceCount", visibility=["read", "create", "update", "delete", "query"])
- """Number of VMs to be created. Required."""
- resource_prefix: Optional[str] = rest_field(
- name="resourcePrefix", visibility=["read", "create", "update", "delete", "query"]
- )
- """If resourceOverrides doesn't contain \"name\", the service will create a name based on the
- prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1.."""
-
- @overload
- def __init__(
- self,
- *,
- resource_count: int,
- base_profile: Optional[dict[str, Any]] = None,
- resource_overrides: Optional[list[dict[str, Any]]] = None,
- resource_prefix: Optional[str] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class ResourceProvisionVdiPayload(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Resource creation data model with Flex properties for VDI scenarios.
-
- :ivar base_profile: Bulk Actions Virtual Machine Profile object that contains VM properties
- that are common across all VMs in this batch.
- :vartype base_profile: dict[str, any]
- :ivar resource_overrides: Bulk Actions Virtual Machine Profile array, that contains VM
- properties that should be overridden for each VM in the batch.
- :vartype resource_overrides: list[dict[str, any]]
- :ivar resource_count: Number of VMs to be created. Required.
- :vartype resource_count: int
- :ivar resource_prefix: If resourceOverrides doesn't contain "name", the service will create a
- name based on the prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1..
- :vartype resource_prefix: str
- :ivar flex_properties: Flex properties used for VDI resource creation scenarios. Required.
- :vartype flex_properties: ~azure.mgmt.compute.bulkaction.models.FlexProperties
- """
-
- base_profile: Optional[dict[str, Any]] = rest_field(
- name="baseProfile", visibility=["read", "create", "update", "delete", "query"]
- )
- """Bulk Actions Virtual Machine Profile object that contains VM properties that are common across
- all VMs in this batch."""
- resource_overrides: Optional[list[dict[str, Any]]] = rest_field(
- name="resourceOverrides", visibility=["read", "create", "update", "delete", "query"]
- )
- """Bulk Actions Virtual Machine Profile array, that contains VM properties that should be
- overridden for each VM in the batch."""
- resource_count: int = rest_field(name="resourceCount", visibility=["read", "create", "update", "delete", "query"])
- """Number of VMs to be created. Required."""
- resource_prefix: Optional[str] = rest_field(
- name="resourcePrefix", visibility=["read", "create", "update", "delete", "query"]
- )
- """If resourceOverrides doesn't contain \"name\", the service will create a name based on the
- prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1.."""
- flex_properties: "_models.FlexProperties" = rest_field(
- name="flexProperties", visibility=["read", "create", "update", "delete", "query"]
- )
- """Flex properties used for VDI resource creation scenarios. Required."""
-
- @overload
- def __init__(
- self,
- *,
- resource_count: int,
- flex_properties: "_models.FlexProperties",
- base_profile: Optional[dict[str, Any]] = None,
- resource_overrides: Optional[list[dict[str, Any]]] = None,
- resource_prefix: Optional[str] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class ResourceResultSummary(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The status of the resources.
+ """Summary of operation results across targeted resources.
- :ivar code: The error code for those resources. In case of success, code is populated with
- Success. Required.
+ :ivar code: The result code shared by the resources in this group. A successful result uses
+ ``Success``. Required.
:vartype code: str
- :ivar count: The number of resources that the code applies to. Required.
+ :ivar count: The number of resources with this result code. Required.
:vartype count: int
- :ivar error_details: The error details for the resources. Not populated on success cases.
+ :ivar error_details: Error details for failed resources. This property is omitted for
+ successful results.
:vartype error_details: ~azure.core.ODataV4Format
"""
code: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The error code for those resources. In case of success, code is populated with Success.
+ """The result code shared by the resources in this group. A successful result uses ``Success``.
Required."""
count: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The number of resources that the code applies to. Required."""
+ """The number of resources with this result code. Required."""
error_details: Optional[ODataV4Format] = rest_field(
name="errorDetails", visibility=["read", "create", "update", "delete", "query"]
)
- """The error details for the resources. Not populated on success cases."""
+ """Error details for failed resources. This property is omitted for successful results."""
@overload
def __init__(
@@ -5828,26 +5361,26 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ResourceStatus(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The status of a resource after a resource level operation was performed.
+ """Current status for a targeted resource in a scheduled action occurrence.
- :ivar resource_id: The arm identifier of the resource. Required.
+ :ivar resource_id: The Azure resource ID of the targeted resource. Required.
:vartype resource_id: str
- :ivar status: The state the resource is currently on. Required. Known values are: "Succeeded"
- and "Failed".
+ :ivar status: The result of the operation for the resource. Required. Known values are:
+ "Succeeded" and "Failed".
:vartype status: str or ~azure.mgmt.compute.bulkaction.models.ResourceOperationStatus
- :ivar error: Errors encountered while trying to perform.
+ :ivar error: Error details when the operation fails for the resource.
:vartype error: ~azure.core.ODataV4Format
"""
resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"])
- """The arm identifier of the resource. Required."""
+ """The Azure resource ID of the targeted resource. Required."""
status: Union[str, "_models.ResourceOperationStatus"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The state the resource is currently on. Required. Known values are: \"Succeeded\" and
+ """The result of the operation for the resource. Required. Known values are: \"Succeeded\" and
\"Failed\"."""
error: Optional[ODataV4Format] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Errors encountered while trying to perform."""
+ """Error details when the operation fails for the resource."""
@overload
def __init__(
@@ -5941,8 +5474,8 @@ class RetryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-key
:vartype retry_count: int
:ivar retry_window_in_minutes: Retry window in minutes for user request.
:vartype retry_window_in_minutes: int
- :ivar on_failure_action: Action to take on failure. Known values are: "Unknown", "Start",
- "Deallocate", "Hibernate", "Create", "Delete", and "GetInstanceView".
+ :ivar on_failure_action: Action to take on failure. Known values are: "Start", "Deallocate",
+ "Hibernate", "Create", and "Delete".
:vartype on_failure_action: str or ~azure.mgmt.compute.bulkaction.models.ResourceOperationType
"""
@@ -5957,8 +5490,8 @@ class RetryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-key
on_failure_action: Optional[Union[str, "_models.ResourceOperationType"]] = rest_field(
name="onFailureAction", visibility=["read", "create", "update", "delete", "query"]
)
- """Action to take on failure. Known values are: \"Unknown\", \"Start\", \"Deallocate\",
- \"Hibernate\", \"Create\", \"Delete\", and \"GetInstanceView\"."""
+ """Action to take on failure. Known values are: \"Start\", \"Deallocate\", \"Hibernate\",
+ \"Create\", and \"Delete\"."""
@overload
def __init__(
@@ -6025,7 +5558,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledAction(TrackedResource): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The scheduled action resource.
+ """A recurring action that operates on specified compute resources.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -6072,27 +5605,30 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Scheduled action properties.
+ """Configuration and status of a scheduled action.
- :ivar resource_type: The type of resource the scheduled action is targeting. Required. Known
+ :ivar resource_type: The type of compute resource targeted by the action. Required. Known
values are: "VirtualMachine" and "VirtualMachineScaleSet".
:vartype resource_type: str or ~azure.mgmt.compute.bulkaction.models.ResourceType
- :ivar action_type: The action the scheduled action should perform in the resources. Required.
- Known values are: "Start", "Deallocate", and "Hibernate".
+ :ivar action_type: The operation performed on the targeted resources. Required. Known values
+ are: "Start", "Deallocate", and "Hibernate".
:vartype action_type: str or ~azure.mgmt.compute.bulkaction.models.ScheduledActionType
- :ivar start_time: The time which the scheduled action is supposed to start running. Required.
+ :ivar start_time: The date and time, including UTC offset, when the schedule becomes active.
+ Required.
:vartype start_time: ~datetime.datetime
- :ivar end_time: The time when the scheduled action is supposed to stop scheduling.
+ :ivar end_time: The date and time, including UTC offset, after which no new occurrences are
+ scheduled.
:vartype end_time: ~datetime.datetime
- :ivar schedule: The schedule the scheduled action is supposed to follow. Required.
+ :ivar schedule: The recurring schedule. Required.
:vartype schedule: ~azure.mgmt.compute.bulkaction.models.ScheduledActionsSchedule
- :ivar notification_settings: The notification settings for the scheduled action. Required.
+ :ivar notification_settings: Notification settings that apply to the scheduled action.
+ Required.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
- :ivar disabled: Tell if the scheduled action is disabled or not.
+ :ivar disabled: Indicates whether new occurrences are disabled.
:vartype disabled: bool
- :ivar provisioning_state: The status of the last provisioning operation performed on the
- resource. Known values are: "Succeeded", "Failed", "Canceled", and "Deleting".
+ :ivar provisioning_state: Read-only. The provisioning state of the scheduled action. Known
+ values are: "Succeeded", "Failed", "Canceled", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.compute.bulkaction.models.ScheduledActionsProvisioningState
"""
@@ -6100,36 +5636,36 @@ class ScheduledActionProperties(_Model): # pylint: disable=docstring-keyword-sh
resource_type: Union[str, "_models.ResourceType"] = rest_field(
name="resourceType", visibility=["read", "create", "update", "delete", "query"]
)
- """The type of resource the scheduled action is targeting. Required. Known values are:
+ """The type of compute resource targeted by the action. Required. Known values are:
\"VirtualMachine\" and \"VirtualMachineScaleSet\"."""
action_type: Union[str, "_models.ScheduledActionType"] = rest_field(
name="actionType", visibility=["read", "create", "update", "delete", "query"]
)
- """The action the scheduled action should perform in the resources. Required. Known values are:
- \"Start\", \"Deallocate\", and \"Hibernate\"."""
+ """The operation performed on the targeted resources. Required. Known values are: \"Start\",
+ \"Deallocate\", and \"Hibernate\"."""
start_time: datetime.datetime = rest_field(
name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time which the scheduled action is supposed to start running. Required."""
+ """The date and time, including UTC offset, when the schedule becomes active. Required."""
end_time: Optional[datetime.datetime] = rest_field(
name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time when the scheduled action is supposed to stop scheduling."""
+ """The date and time, including UTC offset, after which no new occurrences are scheduled."""
schedule: "_models.ScheduledActionsSchedule" = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The schedule the scheduled action is supposed to follow. Required."""
+ """The recurring schedule. Required."""
notification_settings: list["_models.NotificationProperties"] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The notification settings for the scheduled action. Required."""
+ """Notification settings that apply to the scheduled action. Required."""
disabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Tell if the scheduled action is disabled or not."""
+ """Indicates whether new occurrences are disabled."""
provisioning_state: Optional[Union[str, "_models.ScheduledActionsProvisioningState"]] = rest_field(
name="provisioningState", visibility=["read"]
)
- """The status of the last provisioning operation performed on the resource. Known values are:
- \"Succeeded\", \"Failed\", \"Canceled\", and \"Deleting\"."""
+ """Read-only. The provisioning state of the scheduled action. Known values are: \"Succeeded\",
+ \"Failed\", \"Canceled\", \"Deleting\", and \"Updating\"."""
@overload
def __init__(
@@ -6156,37 +5692,33 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Represents an scheduled action resource metadata.
+ """A compute resource associated with a scheduled action.
- :ivar name: The name of the resource. Required.
+ :ivar name: Read-only. The name of the association resource. Required.
:vartype name: str
- :ivar id: The compute RP resource id of the resource in the scheduled actions scope. Required.
+ :ivar id: Read-only. The Azure resource ID of the association resource. Required.
:vartype id: str
- :ivar type: The type of resource.
+ :ivar type: Read-only. The Azure resource type of the associated resource.
:vartype type: str
- :ivar resource_id: The ARM Id of the resource.
- "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
- Required.
+ :ivar resource_id: The Azure resource ID of the targeted virtual machine. Required.
:vartype resource_id: str
- :ivar notification_settings: The desired notification settings for the specified resource.
+ :ivar notification_settings: Notification settings that apply only to this resource.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
"""
name: str = rest_field(visibility=["read"])
- """The name of the resource. Required."""
+ """Read-only. The name of the association resource. Required."""
id: str = rest_field(visibility=["read"])
- """The compute RP resource id of the resource in the scheduled actions scope. Required."""
+ """Read-only. The Azure resource ID of the association resource. Required."""
type: Optional[str] = rest_field(visibility=["read"])
- """The type of resource."""
+ """Read-only. The Azure resource type of the associated resource."""
resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"])
- """The ARM Id of the resource.
- \"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}\".
- Required."""
+ """The Azure resource ID of the targeted virtual machine. Required."""
notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The desired notification settings for the specified resource."""
+ """Notification settings that apply only to this resource."""
@overload
def __init__(
@@ -6208,26 +5740,21 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionResourceInput(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Represents the writable fields of a scheduled action resource used in attach and patch
- requests.
+ """A compute resource to add to or update in a scheduled action.
- :ivar resource_id: The ARM Id of the resource.
- "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
- Required.
+ :ivar resource_id: The Azure resource ID of the targeted virtual machine. Required.
:vartype resource_id: str
- :ivar notification_settings: The desired notification settings for the specified resource.
+ :ivar notification_settings: Notification settings that apply only to this resource.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
"""
resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"])
- """The ARM Id of the resource.
- \"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}\".
- Required."""
+ """The Azure resource ID of the targeted virtual machine. Required."""
notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The desired notification settings for the specified resource."""
+ """Notification settings that apply only to this resource."""
@overload
def __init__(
@@ -6249,7 +5776,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionResources(ExtensionResource): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The scheduled action extension.
+ """A scheduled action associated with a specific compute resource.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -6290,31 +5817,21 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionsExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """The execution parameters the scheduled action is supposed to follow.
+ """Settings that control how the scheduled action operation is executed.
- :ivar optimization_preference: Details that could optimize the user's request. Known values
- are: "Cost", "Availability", and "CostAvailabilityBalanced".
- :vartype optimization_preference: str or
- ~azure.mgmt.compute.bulkaction.models.OptimizationPreference
- :ivar retry_policy: Retry policy the user can pass.
+ :ivar retry_policy: The retry settings for failed resource operations.
:vartype retry_policy: ~azure.mgmt.compute.bulkaction.models.ScheduledActionsRetryPolicy
"""
- optimization_preference: Optional[Union[str, "_models.OptimizationPreference"]] = rest_field(
- name="optimizationPreference", visibility=["read", "create", "update", "delete", "query"]
- )
- """Details that could optimize the user's request. Known values are: \"Cost\", \"Availability\",
- and \"CostAvailabilityBalanced\"."""
retry_policy: Optional["_models.ScheduledActionsRetryPolicy"] = rest_field(
name="retryPolicy", visibility=["read", "create", "update", "delete", "query"]
)
- """Retry policy the user can pass."""
+ """The retry settings for failed resource operations."""
@overload
def __init__(
self,
*,
- optimization_preference: Optional[Union[str, "_models.OptimizationPreference"]] = None,
retry_policy: Optional["_models.ScheduledActionsRetryPolicy"] = None,
) -> None: ...
@@ -6330,32 +5847,34 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionsExtensionProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Scheduled action extension properties.
+ """A scheduled action associated with a specific compute resource.
- :ivar resource_type: The type of resource the scheduled action is targeting. Required. Known
+ :ivar resource_type: The type of compute resource targeted by the action. Required. Known
values are: "VirtualMachine" and "VirtualMachineScaleSet".
:vartype resource_type: str or ~azure.mgmt.compute.bulkaction.models.ResourceType
- :ivar action_type: The action the scheduled action should perform in the resources. Required.
- Known values are: "Start", "Deallocate", and "Hibernate".
+ :ivar action_type: The operation performed on the targeted resources. Required. Known values
+ are: "Start", "Deallocate", and "Hibernate".
:vartype action_type: str or ~azure.mgmt.compute.bulkaction.models.ScheduledActionType
- :ivar start_time: The time which the scheduled action is supposed to start running. Required.
+ :ivar start_time: The date and time, including UTC offset, when the schedule becomes active.
+ Required.
:vartype start_time: ~datetime.datetime
- :ivar end_time: The time when the scheduled action is supposed to stop scheduling.
+ :ivar end_time: The date and time, including UTC offset, after which no new occurrences are
+ scheduled.
:vartype end_time: ~datetime.datetime
- :ivar schedule: The schedule the scheduled action is supposed to follow. Required.
+ :ivar schedule: The recurring schedule. Required.
:vartype schedule: ~azure.mgmt.compute.bulkaction.models.ScheduledActionsSchedule
- :ivar notification_settings: The notification settings for the scheduled action. Required.
+ :ivar notification_settings: Notification settings that apply to the scheduled action.
+ Required.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
- :ivar disabled: Tell if the scheduled action is disabled or not.
+ :ivar disabled: Indicates whether new occurrences are disabled.
:vartype disabled: bool
- :ivar provisioning_state: The status of the last provisioning operation performed on the
- resource. Known values are: "Succeeded", "Failed", "Canceled", and "Deleting".
+ :ivar provisioning_state: Read-only. The provisioning state of the scheduled action. Known
+ values are: "Succeeded", "Failed", "Canceled", "Deleting", and "Updating".
:vartype provisioning_state: str or
~azure.mgmt.compute.bulkaction.models.ScheduledActionsProvisioningState
- :ivar resource_notification_settings: The notification settings for the scheduled action at a
- resource level. Resource level notification settings are scope to specific resources only and
- submitted through attach requests.
+ :ivar resource_notification_settings: Read-only. Notification settings that apply only to the
+ specified compute resource.
:vartype resource_notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
"""
@@ -6363,42 +5882,40 @@ class ScheduledActionsExtensionProperties(_Model): # pylint: disable=docstring-
resource_type: Union[str, "_models.ResourceType"] = rest_field(
name="resourceType", visibility=["read", "create", "update", "delete", "query"]
)
- """The type of resource the scheduled action is targeting. Required. Known values are:
+ """The type of compute resource targeted by the action. Required. Known values are:
\"VirtualMachine\" and \"VirtualMachineScaleSet\"."""
action_type: Union[str, "_models.ScheduledActionType"] = rest_field(
name="actionType", visibility=["read", "create", "update", "delete", "query"]
)
- """The action the scheduled action should perform in the resources. Required. Known values are:
- \"Start\", \"Deallocate\", and \"Hibernate\"."""
+ """The operation performed on the targeted resources. Required. Known values are: \"Start\",
+ \"Deallocate\", and \"Hibernate\"."""
start_time: datetime.datetime = rest_field(
name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time which the scheduled action is supposed to start running. Required."""
+ """The date and time, including UTC offset, when the schedule becomes active. Required."""
end_time: Optional[datetime.datetime] = rest_field(
name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time when the scheduled action is supposed to stop scheduling."""
+ """The date and time, including UTC offset, after which no new occurrences are scheduled."""
schedule: "_models.ScheduledActionsSchedule" = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The schedule the scheduled action is supposed to follow. Required."""
+ """The recurring schedule. Required."""
notification_settings: list["_models.NotificationProperties"] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The notification settings for the scheduled action. Required."""
+ """Notification settings that apply to the scheduled action. Required."""
disabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Tell if the scheduled action is disabled or not."""
+ """Indicates whether new occurrences are disabled."""
provisioning_state: Optional[Union[str, "_models.ScheduledActionsProvisioningState"]] = rest_field(
name="provisioningState", visibility=["read"]
)
- """The status of the last provisioning operation performed on the resource. Known values are:
- \"Succeeded\", \"Failed\", \"Canceled\", and \"Deleting\"."""
+ """Read-only. The provisioning state of the scheduled action. Known values are: \"Succeeded\",
+ \"Failed\", \"Canceled\", \"Deleting\", and \"Updating\"."""
resource_notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="resourceNotificationSettings", visibility=["read"]
)
- """The notification settings for the scheduled action at a resource level. Resource level
- notification settings are scope to specific resources only and submitted through attach
- requests."""
+ """Read-only. Notification settings that apply only to the specified compute resource."""
@overload
def __init__(
@@ -6425,14 +5942,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionsRetryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Retry policy the scheduled action can pass.
+ """Retry settings for a scheduled action operation.
- :ivar retry_count: Retry count for the request.
+ :ivar retry_count: The maximum number of retry attempts.
:vartype retry_count: int
- :ivar retry_window_in_minutes: Retry window in minutes for the request.
+ :ivar retry_window_in_minutes: The time window, in minutes, during which retries can occur.
:vartype retry_window_in_minutes: int
- :ivar on_failure_action: Action to take on failure. Known values are: "Unknown", "Start",
- "Deallocate", "Hibernate", "Create", and "Delete".
+ :ivar on_failure_action: The resource operation to retry after a failure. Known values are:
+ "Start", "Deallocate", "Hibernate", "Create", and "Delete".
:vartype on_failure_action: str or
~azure.mgmt.compute.bulkaction.models.ScheduledActionsResourceOperationType
"""
@@ -6440,15 +5957,15 @@ class ScheduledActionsRetryPolicy(_Model): # pylint: disable=docstring-keyword-
retry_count: Optional[int] = rest_field(
name="retryCount", visibility=["read", "create", "update", "delete", "query"]
)
- """Retry count for the request."""
+ """The maximum number of retry attempts."""
retry_window_in_minutes: Optional[int] = rest_field(
name="retryWindowInMinutes", visibility=["read", "create", "update", "delete", "query"]
)
- """Retry window in minutes for the request."""
+ """The time window, in minutes, during which retries can occur."""
on_failure_action: Optional[Union[str, "_models.ScheduledActionsResourceOperationType"]] = rest_field(
name="onFailureAction", visibility=["read", "create", "update", "delete", "query"]
)
- """Action to take on failure. Known values are: \"Unknown\", \"Start\", \"Deallocate\",
+ """The resource operation to retry after a failure. Known values are: \"Start\", \"Deallocate\",
\"Hibernate\", \"Create\", and \"Delete\"."""
@overload
@@ -6472,28 +5989,25 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionsSchedule(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Specify the schedule in which the scheduled action is supposed to follow.
+ """The recurring schedule for a scheduled action.
- :ivar scheduled_time: The time the scheduled action is supposed to run on. Required.
+ :ivar scheduled_time: The local time of day when the scheduled action runs. Required.
:vartype scheduled_time: ~datetime.time
- :ivar time_zone: The timezone the scheduled time is specified on. Required.
+ :ivar time_zone: The time zone used to interpret the scheduled time. Required.
:vartype time_zone: str
- :ivar requested_week_days: The week days the scheduled action is supposed to run on. If empty,
- it means it will run on every week day.
+ :ivar requested_week_days: The days of the week when the action runs. An empty array means
+ every day of the week.
:vartype requested_week_days: list[str or ~azure.mgmt.compute.bulkaction.models.WeekDay]
- :ivar requested_months: The months the scheduled action is supposed to run on. If empty, it
- means it will run on every month.
+ :ivar requested_months: The months when the action runs. An empty array means every month.
:vartype requested_months: list[str or ~azure.mgmt.compute.bulkaction.models.Month]
- :ivar requested_days_of_the_month: The days of the month the scheduled action is supposed to
- run on. If empty, it means it will run on every day of the month.
+ :ivar requested_days_of_the_month: The calendar days when the action runs. An empty array means
+ every day of the month.
:vartype requested_days_of_the_month: list[int]
- :ivar execution_parameters: The execution parameters the scheduled action is supposed to
- follow.
+ :ivar execution_parameters: Settings that control operation execution and retries.
:vartype execution_parameters:
~azure.mgmt.compute.bulkaction.models.ScheduledActionsExecutionParameters
- :ivar deadline_type: The type of deadline the scheduled action is supposed to follow for the
- schedule. If no value is passed, it will default to InitiateAt. Known values are: "Unknown",
- "InitiateAt", and "CompleteBy".
+ :ivar deadline_type: How the scheduled time is interpreted. The default is ``InitiateAt``.
+ Known values are: "InitiateAt" and "CompleteBy".
:vartype deadline_type: str or
~azure.mgmt.compute.bulkaction.models.ScheduledActionsDeadlineType
"""
@@ -6501,34 +6015,30 @@ class ScheduledActionsSchedule(_Model): # pylint: disable=docstring-keyword-sho
scheduled_time: datetime.time = rest_field(
name="scheduledTime", visibility=["read", "create", "update", "delete", "query"]
)
- """The time the scheduled action is supposed to run on. Required."""
+ """The local time of day when the scheduled action runs. Required."""
time_zone: str = rest_field(name="timeZone", visibility=["read", "create", "update", "delete", "query"])
- """The timezone the scheduled time is specified on. Required."""
+ """The time zone used to interpret the scheduled time. Required."""
requested_week_days: Optional[list[Union[str, "_models.WeekDay"]]] = rest_field(
name="requestedWeekDays", visibility=["read", "create", "update", "delete", "query"]
)
- """The week days the scheduled action is supposed to run on. If empty, it means it will run on
- every week day."""
+ """The days of the week when the action runs. An empty array means every day of the week."""
requested_months: Optional[list[Union[str, "_models.Month"]]] = rest_field(
name="requestedMonths", visibility=["read", "create", "update", "delete", "query"]
)
- """The months the scheduled action is supposed to run on. If empty, it means it will run on every
- month."""
+ """The months when the action runs. An empty array means every month."""
requested_days_of_the_month: Optional[list[int]] = rest_field(
name="requestedDaysOfTheMonth", visibility=["read", "create", "update", "delete", "query"]
)
- """The days of the month the scheduled action is supposed to run on. If empty, it means it will
- run on every day of the month."""
+ """The calendar days when the action runs. An empty array means every day of the month."""
execution_parameters: Optional["_models.ScheduledActionsExecutionParameters"] = rest_field(
name="executionParameters", visibility=["read", "create", "update", "delete", "query"]
)
- """The execution parameters the scheduled action is supposed to follow."""
+ """Settings that control operation execution and retries."""
deadline_type: Optional[Union[str, "_models.ScheduledActionsDeadlineType"]] = rest_field(
name="deadlineType", visibility=["read", "create", "update", "delete", "query"]
)
- """The type of deadline the scheduled action is supposed to follow for the schedule. If no value
- is passed, it will default to InitiateAt. Known values are: \"Unknown\", \"InitiateAt\", and
- \"CompleteBy\"."""
+ """How the scheduled time is interpreted. The default is ``InitiateAt``. Known values are:
+ \"InitiateAt\" and \"CompleteBy\"."""
@overload
def __init__(
@@ -6555,29 +6065,25 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionsScheduleUpdate(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """Schedule properties for update (PATCH). All properties are optional so individual fields can be
- patched (merge semantics); omitting a property preserves the current value.
+ """Schedule changes for a scheduled action. Omitted properties keep their current values.
- :ivar scheduled_time: The time the scheduled action is supposed to run on.
+ :ivar scheduled_time: The local time of day when the scheduled action runs.
:vartype scheduled_time: ~datetime.time
- :ivar time_zone: The timezone the scheduled time is specified on.
+ :ivar time_zone: The time zone used to interpret the scheduled time.
:vartype time_zone: str
- :ivar requested_week_days: The week days the scheduled action is supposed to run on. If empty,
- it means it will run on every week day.
+ :ivar requested_week_days: The days of the week when the action runs. An empty array means
+ every day of the week.
:vartype requested_week_days: list[str or ~azure.mgmt.compute.bulkaction.models.WeekDay]
- :ivar requested_months: The months the scheduled action is supposed to run on. If empty, it
- means it will run on every month.
+ :ivar requested_months: The months when the action runs. An empty array means every month.
:vartype requested_months: list[str or ~azure.mgmt.compute.bulkaction.models.Month]
- :ivar requested_days_of_the_month: The days of the month the scheduled action is supposed to
- run on. If empty, it means it will run on every day of the month.
+ :ivar requested_days_of_the_month: The calendar days when the action runs. An empty array means
+ every day of the month.
:vartype requested_days_of_the_month: list[int]
- :ivar execution_parameters: The execution parameters the scheduled action is supposed to
- follow.
+ :ivar execution_parameters: Settings that control operation execution and retries.
:vartype execution_parameters:
~azure.mgmt.compute.bulkaction.models.ScheduledActionsExecutionParameters
- :ivar deadline_type: The type of deadline the scheduled action is supposed to follow for the
- schedule. If no value is passed, it will default to InitiateAt. Known values are: "Unknown",
- "InitiateAt", and "CompleteBy".
+ :ivar deadline_type: How the scheduled time is interpreted. The default is ``InitiateAt``.
+ Known values are: "InitiateAt" and "CompleteBy".
:vartype deadline_type: str or
~azure.mgmt.compute.bulkaction.models.ScheduledActionsDeadlineType
"""
@@ -6585,34 +6091,30 @@ class ScheduledActionsScheduleUpdate(_Model): # pylint: disable=docstring-keywo
scheduled_time: Optional[datetime.time] = rest_field(
name="scheduledTime", visibility=["read", "create", "update", "delete", "query"]
)
- """The time the scheduled action is supposed to run on."""
+ """The local time of day when the scheduled action runs."""
time_zone: Optional[str] = rest_field(name="timeZone", visibility=["read", "create", "update", "delete", "query"])
- """The timezone the scheduled time is specified on."""
+ """The time zone used to interpret the scheduled time."""
requested_week_days: Optional[list[Union[str, "_models.WeekDay"]]] = rest_field(
name="requestedWeekDays", visibility=["read", "create", "update", "delete", "query"]
)
- """The week days the scheduled action is supposed to run on. If empty, it means it will run on
- every week day."""
+ """The days of the week when the action runs. An empty array means every day of the week."""
requested_months: Optional[list[Union[str, "_models.Month"]]] = rest_field(
name="requestedMonths", visibility=["read", "create", "update", "delete", "query"]
)
- """The months the scheduled action is supposed to run on. If empty, it means it will run on every
- month."""
+ """The months when the action runs. An empty array means every month."""
requested_days_of_the_month: Optional[list[int]] = rest_field(
name="requestedDaysOfTheMonth", visibility=["read", "create", "update", "delete", "query"]
)
- """The days of the month the scheduled action is supposed to run on. If empty, it means it will
- run on every day of the month."""
+ """The calendar days when the action runs. An empty array means every day of the month."""
execution_parameters: Optional["_models.ScheduledActionsExecutionParameters"] = rest_field(
name="executionParameters", visibility=["read", "create", "update", "delete", "query"]
)
- """The execution parameters the scheduled action is supposed to follow."""
+ """Settings that control operation execution and retries."""
deadline_type: Optional[Union[str, "_models.ScheduledActionsDeadlineType"]] = rest_field(
name="deadlineType", visibility=["read", "create", "update", "delete", "query"]
)
- """The type of deadline the scheduled action is supposed to follow for the schedule. If no value
- is passed, it will default to InitiateAt. Known values are: \"Unknown\", \"InitiateAt\", and
- \"CompleteBy\"."""
+ """How the scheduled time is interpreted. The default is ``InitiateAt``. Known values are:
+ \"InitiateAt\" and \"CompleteBy\"."""
@overload
def __init__(
@@ -6676,53 +6178,54 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class ScheduledActionUpdateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""The updatable properties of the ScheduledAction.
- :ivar resource_type: The type of resource the scheduled action is targeting. Known values are:
+ :ivar resource_type: The type of compute resource targeted by the action. Known values are:
"VirtualMachine" and "VirtualMachineScaleSet".
:vartype resource_type: str or ~azure.mgmt.compute.bulkaction.models.ResourceType
- :ivar action_type: The action the scheduled action should perform in the resources. Known
- values are: "Start", "Deallocate", and "Hibernate".
+ :ivar action_type: The operation performed on the targeted resources. Known values are:
+ "Start", "Deallocate", and "Hibernate".
:vartype action_type: str or ~azure.mgmt.compute.bulkaction.models.ScheduledActionType
- :ivar start_time: The time which the scheduled action is supposed to start running.
+ :ivar start_time: The date and time, including UTC offset, when the schedule becomes active.
:vartype start_time: ~datetime.datetime
- :ivar end_time: The time when the scheduled action is supposed to stop scheduling.
+ :ivar end_time: The date and time, including UTC offset, after which no new occurrences are
+ scheduled.
:vartype end_time: ~datetime.datetime
- :ivar schedule: The schedule the scheduled action is supposed to follow.
+ :ivar schedule: Changes to the recurring schedule.
:vartype schedule: ~azure.mgmt.compute.bulkaction.models.ScheduledActionsScheduleUpdate
- :ivar notification_settings: The notification settings for the scheduled action.
+ :ivar notification_settings: Notification settings that apply to the scheduled action.
:vartype notification_settings:
list[~azure.mgmt.compute.bulkaction.models.NotificationProperties]
- :ivar disabled: Tell if the scheduled action is disabled or not.
+ :ivar disabled: Indicates whether new occurrences are disabled.
:vartype disabled: bool
"""
resource_type: Optional[Union[str, "_models.ResourceType"]] = rest_field(
name="resourceType", visibility=["read", "create", "update", "delete", "query"]
)
- """The type of resource the scheduled action is targeting. Known values are: \"VirtualMachine\"
- and \"VirtualMachineScaleSet\"."""
+ """The type of compute resource targeted by the action. Known values are: \"VirtualMachine\" and
+ \"VirtualMachineScaleSet\"."""
action_type: Optional[Union[str, "_models.ScheduledActionType"]] = rest_field(
name="actionType", visibility=["read", "create", "update", "delete", "query"]
)
- """The action the scheduled action should perform in the resources. Known values are: \"Start\",
- \"Deallocate\", and \"Hibernate\"."""
+ """The operation performed on the targeted resources. Known values are: \"Start\", \"Deallocate\",
+ and \"Hibernate\"."""
start_time: Optional[datetime.datetime] = rest_field(
name="startTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time which the scheduled action is supposed to start running."""
+ """The date and time, including UTC offset, when the schedule becomes active."""
end_time: Optional[datetime.datetime] = rest_field(
name="endTime", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
)
- """The time when the scheduled action is supposed to stop scheduling."""
+ """The date and time, including UTC offset, after which no new occurrences are scheduled."""
schedule: Optional["_models.ScheduledActionsScheduleUpdate"] = rest_field(
visibility=["read", "create", "update", "delete", "query"]
)
- """The schedule the scheduled action is supposed to follow."""
+ """Changes to the recurring schedule."""
notification_settings: Optional[list["_models.NotificationProperties"]] = rest_field(
name="notificationSettings", visibility=["read", "create", "update", "delete", "query"]
)
- """The notification settings for the scheduled action."""
+ """Notification settings that apply to the scheduled action."""
disabled: Optional[bool] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Tell if the scheduled action is disabled or not."""
+ """Indicates whether new occurrences are disabled."""
@overload
def __init__(
@@ -7532,43 +7035,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class VirtualMachine(_Model):
- """A virtual machine launched by a LaunchBulkInstancesOperation.
-
- :ivar name: The name of the virtual machine. Required.
- :vartype name: str
- :ivar id: The compute RP resource id of the virtual machine.
- subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}.
- Required.
- :vartype id: str
- :ivar type: Type of the virtual machine.
- :vartype type: str
- :ivar operation_status: Represents the operationStatus of the virtual machine in response to
- the last operation performed on it by the LaunchBulkInstancesOperation. Required. Known values
- are: "Creating", "Canceled", "CancelFailedStatusUnknown", "Failed", "Succeeded", "Deleting",
- and "Cancelling".
- :vartype operation_status: str or ~azure.mgmt.compute.bulkaction.models.VMOperationStatus
- :ivar error: Error information when operationStatus is Failed.
- :vartype error: ~azure.mgmt.compute.bulkaction.models.ApiError
- """
-
- name: str = rest_field(visibility=["read"])
- """The name of the virtual machine. Required."""
- id: str = rest_field(visibility=["read"])
- """The compute RP resource id of the virtual machine.
- subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}.
- Required."""
- type: Optional[str] = rest_field(visibility=["read"])
- """Type of the virtual machine."""
- operation_status: Union[str, "_models.VMOperationStatus"] = rest_field(name="operationStatus", visibility=["read"])
- """Represents the operationStatus of the virtual machine in response to the last operation
- performed on it by the LaunchBulkInstancesOperation. Required. Known values are: \"Creating\",
- \"Canceled\", \"CancelFailedStatusUnknown\", \"Failed\", \"Succeeded\", \"Deleting\", and
- \"Cancelling\"."""
- error: Optional["_models.ApiError"] = rest_field(visibility=["read"])
- """Error information when operationStatus is Failed."""
-
-
class VirtualMachineIdentity(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Identity for the virtual machine.
@@ -7636,17 +7102,22 @@ class VirtualMachineInfo(_Model): # pylint: disable=docstring-keyword-should-ma
:vartype vm_size: str
:ivar zone: The zone identifier.
:vartype zone: str
+ :ivar name: The resolved Azure virtual machine name. Required.
+ :vartype name: str
"""
vm_size: Optional[str] = rest_field(name="vmSize", visibility=["read", "create", "update", "delete", "query"])
"""The name of the VM size, eg Standard_D2ads_v5."""
zone: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The zone identifier."""
+ name: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
+ """The resolved Azure virtual machine name. Required."""
@overload
def __init__(
self,
*,
+ name: str,
vm_size: Optional[str] = None,
zone: Optional[str] = None,
) -> None: ...
@@ -8254,318 +7725,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class VMAttributeMinMaxDouble(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """VMAttributes using double values.
-
- :ivar min: Minimum value. If not specified, no minimum filter is applied.
- :vartype min: float
- :ivar max: Maximum value. Must be greater than zero. Double.MaxValue(1.7976931348623157E+308).
- :vartype max: float
- """
-
- min: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Minimum value. If not specified, no minimum filter is applied."""
- max: Optional[float] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Maximum value. Must be greater than zero. Double.MaxValue(1.7976931348623157E+308)."""
-
- @overload
- def __init__(
- self,
- *,
- min: Optional[float] = None, # pylint: disable=redefined-builtin
- max: Optional[float] = None, # pylint: disable=redefined-builtin
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class VMAttributeMinMaxInteger(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """While retrieving VMSizes from CRS, Min = 0 (uint.MinValue) if not specified, Max = 4294967295
- (uint.MaxValue) if not specified. This allows to filter VMAttributes on all available VMSizes.
-
- :ivar min: Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified.
- :vartype min: int
- :ivar max: Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified.
- :vartype max: int
- """
-
- min: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified."""
- max: Optional[int] = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified."""
-
- @overload
- def __init__(
- self,
- *,
- min: Optional[int] = None, # pylint: disable=redefined-builtin
- max: Optional[int] = None, # pylint: disable=redefined-builtin
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
-class VMAttributes(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """VMAttributes that will be used to filter VMSizes which will be used to launch instances.
-
- :ivar v_cpu_count: The range of vCpuCount specified from Min to Max. Must be specified if
- VMAttributes are specified, either Min or Max is required if specified. Required.
- :vartype v_cpu_count: ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger
- :ivar memory_in_gi_b: The range of memory specified from Min to Max. Must be specified if
- VMAttributes are specified, either Min or Max is required if specified. Required.
- :vartype memory_in_gi_b: ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble
- :ivar architecture_types: The VM architecture types specified as a list. Must be specified if
- VMAttributes are specified. Must be compatible with image used. Required.
- :vartype architecture_types: list[str or
- ~azure.mgmt.compute.bulkaction.models.ArchitectureType]
- :ivar memory_in_gi_b_per_v_cpu: The range of memory in GiB per vCPU specified from min to max.
- Optional parameter. Either Min or Max is required if specified.
- :vartype memory_in_gi_b_per_v_cpu:
- ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble
- :ivar local_storage_support: Specifies whether the VMSize supporting local storage should be
- used to launch instances or not. Included - Default if not specified as most Azure VMs support
- local storage. Known values are: "Excluded", "Included", and "Required".
- :vartype local_storage_support: str or ~azure.mgmt.compute.bulkaction.models.VMAttributeSupport
- :ivar local_storage_in_gi_b: LocalStorageSupport should be set to "Included" or "Required" to
- use this VMAttribute. If localStorageSupport is "Excluded", this VMAttribute can not be used.
- :vartype local_storage_in_gi_b: ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble
- :ivar local_storage_disk_types: The local storage disk types specified as a list.
- LocalStorageSupport should be set to "Included" or "Required" to use this VMAttribute. If
- localStorageSupport is "Excluded", this VMAttribute can not be used.
- :vartype local_storage_disk_types: list[str or
- ~azure.mgmt.compute.bulkaction.models.LocalStorageDiskType]
- :ivar data_disk_count: The range of data disk count specified from Min to Max. Optional
- parameter. Either Min or Max is required if specified.
- :vartype data_disk_count: ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger
- :ivar network_interface_count: The range of network interface count specified from Min to Max.
- Optional parameter. Either Min or Max is required if specified.
- :vartype network_interface_count:
- ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger
- :ivar network_bandwidth_in_mbps: The range of network bandwidth in Mbps specified from Min to
- Max. Optional parameter. Either Min or Max is required if specified.
- :vartype network_bandwidth_in_mbps:
- ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxDouble
- :ivar rdma_support: Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access)
- should be used to build launch instances or not. Known values are: "Excluded", "Included", and
- "Required".
- :vartype rdma_support: str or ~azure.mgmt.compute.bulkaction.models.VMAttributeSupport
- :ivar rdma_network_interface_count: The range of RDMA (Remote Direct Memory Access) network
- interface count specified from Min to Max. Optional parameter. Either Min or Max is required if
- specified. rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. If
- rdmaSupport is "Excluded", this VMAttribute can not be used.
- :vartype rdma_network_interface_count:
- ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger
- :ivar accelerator_support: Specifies whether the VMSize supporting accelerator should be used
- to launch instances or not. acceleratorSupport should be set to "Included" or "Required" to use
- this VMAttribute. If acceleratorSupport is "Excluded", this VMAttribute can not be used. Known
- values are: "Excluded", "Included", and "Required".
- :vartype accelerator_support: str or ~azure.mgmt.compute.bulkaction.models.VMAttributeSupport
- :ivar accelerator_manufacturers: The accelerator manufacturers specified as a list.
- acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. If
- acceleratorSupport is "Excluded", this VMAttribute can not be used.
- :vartype accelerator_manufacturers: list[str or
- ~azure.mgmt.compute.bulkaction.models.AcceleratorManufacturer]
- :ivar accelerator_types: The accelerator types specified as a list. acceleratorSupport should
- be set to "Included" or "Required" to use this VMAttribute. If acceleratorSupport is
- "Excluded", this VMAttribute can not be used.
- :vartype accelerator_types: list[str or ~azure.mgmt.compute.bulkaction.models.AcceleratorType]
- :ivar accelerator_count: The range of accelerator count specified from min to max. Optional
- parameter. Either Min or Max is required if specified. acceleratorSupport should be set to
- "Included" or "Required" to use this VMAttribute. If acceleratorSupport is "Excluded", this
- VMAttribute can not be used.
- :vartype accelerator_count: ~azure.mgmt.compute.bulkaction.models.VMAttributeMinMaxInteger
- :ivar vm_categories: The VM category specified as a list. Optional parameter.
- :vartype vm_categories: list[str or ~azure.mgmt.compute.bulkaction.models.VMCategory]
- :ivar cpu_manufacturers: The VM CPU manufacturers specified as a list. Optional parameter.
- :vartype cpu_manufacturers: list[str or ~azure.mgmt.compute.bulkaction.models.CpuManufacturer]
- :ivar hyper_v_generations: The hyperV generations specified as a list. Optional parameter.
- :vartype hyper_v_generations: list[str or
- ~azure.mgmt.compute.bulkaction.models.HyperVGeneration]
- :ivar burstable_support: Specifies whether the VMSize supporting burstable capability should be
- used to launch instances or not. Known values are: "Excluded", "Included", and "Required".
- :vartype burstable_support: str or ~azure.mgmt.compute.bulkaction.models.VMAttributeSupport
- :ivar allowed_vm_sizes: Specifies which VMSizes should be allowed while filtering on
- VMAttributes. Cannot be specified together with excludedVMSizes. Maximum of 10 VM sizes
- allowed. Optional parameter.
- :vartype allowed_vm_sizes: list[str]
- :ivar excluded_vm_sizes: Specifies which VMSizes should be excluded while filtering on
- VMAttributes. Cannot be specified together with allowedVMSizes. Maximum of 10 VM sizes allowed.
- Optional parameter.
- :vartype excluded_vm_sizes: list[str]
- """
-
- v_cpu_count: "_models.VMAttributeMinMaxInteger" = rest_field(
- name="vCpuCount", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are
- specified, either Min or Max is required if specified. Required."""
- memory_in_gi_b: "_models.VMAttributeMinMaxDouble" = rest_field(
- name="memoryInGiB", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of memory specified from Min to Max. Must be specified if VMAttributes are specified,
- either Min or Max is required if specified. Required."""
- architecture_types: list[Union[str, "_models.ArchitectureType"]] = rest_field(
- name="architectureTypes", visibility=["read", "create", "update", "delete", "query"]
- )
- """The VM architecture types specified as a list. Must be specified if VMAttributes are specified.
- Must be compatible with image used. Required."""
- memory_in_gi_b_per_v_cpu: Optional["_models.VMAttributeMinMaxDouble"] = rest_field(
- name="memoryInGiBPerVCpu", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min
- or Max is required if specified."""
- local_storage_support: Optional[Union[str, "_models.VMAttributeSupport"]] = rest_field(
- name="localStorageSupport", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies whether the VMSize supporting local storage should be used to launch instances or
- not. Included - Default if not specified as most Azure VMs support local storage. Known values
- are: \"Excluded\", \"Included\", and \"Required\"."""
- local_storage_in_gi_b: Optional["_models.VMAttributeMinMaxDouble"] = rest_field(
- name="localStorageInGiB", visibility=["read", "create", "update", "delete", "query"]
- )
- """LocalStorageSupport should be set to \"Included\" or \"Required\" to use this VMAttribute. If
- localStorageSupport is \"Excluded\", this VMAttribute can not be used."""
- local_storage_disk_types: Optional[list[Union[str, "_models.LocalStorageDiskType"]]] = rest_field(
- name="localStorageDiskTypes", visibility=["read", "create", "update", "delete", "query"]
- )
- """The local storage disk types specified as a list. LocalStorageSupport should be set to
- \"Included\" or \"Required\" to use this VMAttribute. If localStorageSupport is \"Excluded\",
- this VMAttribute can not be used."""
- data_disk_count: Optional["_models.VMAttributeMinMaxInteger"] = rest_field(
- name="dataDiskCount", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of data disk count specified from Min to Max. Optional parameter. Either Min or Max
- is required if specified."""
- network_interface_count: Optional["_models.VMAttributeMinMaxInteger"] = rest_field(
- name="networkInterfaceCount", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of network interface count specified from Min to Max. Optional parameter. Either Min
- or Max is required if specified."""
- network_bandwidth_in_mbps: Optional["_models.VMAttributeMinMaxDouble"] = rest_field(
- name="networkBandwidthInMbps", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of network bandwidth in Mbps specified from Min to Max. Optional parameter. Either
- Min or Max is required if specified."""
- rdma_support: Optional[Union[str, "_models.VMAttributeSupport"]] = rest_field(
- name="rdmaSupport", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should be used to
- build launch instances or not. Known values are: \"Excluded\", \"Included\", and \"Required\"."""
- rdma_network_interface_count: Optional["_models.VMAttributeMinMaxInteger"] = rest_field(
- name="rdmaNetworkInterfaceCount", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of RDMA (Remote Direct Memory Access) network interface count specified from Min to
- Max. Optional parameter. Either Min or Max is required if specified. rdmaSupport should be set
- to \"Included\" or \"Required\" to use this VMAttribute. If rdmaSupport is \"Excluded\", this
- VMAttribute can not be used."""
- accelerator_support: Optional[Union[str, "_models.VMAttributeSupport"]] = rest_field(
- name="acceleratorSupport", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies whether the VMSize supporting accelerator should be used to launch instances or not.
- acceleratorSupport should be set to \"Included\" or \"Required\" to use this VMAttribute. If
- acceleratorSupport is \"Excluded\", this VMAttribute can not be used. Known values are:
- \"Excluded\", \"Included\", and \"Required\"."""
- accelerator_manufacturers: Optional[list[Union[str, "_models.AcceleratorManufacturer"]]] = rest_field(
- name="acceleratorManufacturers", visibility=["read", "create", "update", "delete", "query"]
- )
- """The accelerator manufacturers specified as a list. acceleratorSupport should be set to
- \"Included\" or \"Required\" to use this VMAttribute. If acceleratorSupport is \"Excluded\",
- this VMAttribute can not be used."""
- accelerator_types: Optional[list[Union[str, "_models.AcceleratorType"]]] = rest_field(
- name="acceleratorTypes", visibility=["read", "create", "update", "delete", "query"]
- )
- """The accelerator types specified as a list. acceleratorSupport should be set to \"Included\" or
- \"Required\" to use this VMAttribute. If acceleratorSupport is \"Excluded\", this VMAttribute
- can not be used."""
- accelerator_count: Optional["_models.VMAttributeMinMaxInteger"] = rest_field(
- name="acceleratorCount", visibility=["read", "create", "update", "delete", "query"]
- )
- """The range of accelerator count specified from min to max. Optional parameter. Either Min or Max
- is required if specified. acceleratorSupport should be set to \"Included\" or \"Required\" to
- use this VMAttribute. If acceleratorSupport is \"Excluded\", this VMAttribute can not be used."""
- vm_categories: Optional[list[Union[str, "_models.VMCategory"]]] = rest_field(
- name="vmCategories", visibility=["read", "create", "update", "delete", "query"]
- )
- """The VM category specified as a list. Optional parameter."""
- cpu_manufacturers: Optional[list[Union[str, "_models.CpuManufacturer"]]] = rest_field(
- name="cpuManufacturers", visibility=["read", "create", "update", "delete", "query"]
- )
- """The VM CPU manufacturers specified as a list. Optional parameter."""
- hyper_v_generations: Optional[list[Union[str, "_models.HyperVGeneration"]]] = rest_field(
- name="hyperVGenerations", visibility=["read", "create", "update", "delete", "query"]
- )
- """The hyperV generations specified as a list. Optional parameter."""
- burstable_support: Optional[Union[str, "_models.VMAttributeSupport"]] = rest_field(
- name="burstableSupport", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies whether the VMSize supporting burstable capability should be used to launch instances
- or not. Known values are: \"Excluded\", \"Included\", and \"Required\"."""
- allowed_vm_sizes: Optional[list[str]] = rest_field(
- name="allowedVMSizes", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies which VMSizes should be allowed while filtering on VMAttributes. Cannot be specified
- together with excludedVMSizes. Maximum of 10 VM sizes allowed. Optional parameter."""
- excluded_vm_sizes: Optional[list[str]] = rest_field(
- name="excludedVMSizes", visibility=["read", "create", "update", "delete", "query"]
- )
- """Specifies which VMSizes should be excluded while filtering on VMAttributes. Cannot be specified
- together with allowedVMSizes. Maximum of 10 VM sizes allowed. Optional parameter."""
-
- @overload
- def __init__(
- self,
- *,
- v_cpu_count: "_models.VMAttributeMinMaxInteger",
- memory_in_gi_b: "_models.VMAttributeMinMaxDouble",
- architecture_types: list[Union[str, "_models.ArchitectureType"]],
- memory_in_gi_b_per_v_cpu: Optional["_models.VMAttributeMinMaxDouble"] = None,
- local_storage_support: Optional[Union[str, "_models.VMAttributeSupport"]] = None,
- local_storage_in_gi_b: Optional["_models.VMAttributeMinMaxDouble"] = None,
- local_storage_disk_types: Optional[list[Union[str, "_models.LocalStorageDiskType"]]] = None,
- data_disk_count: Optional["_models.VMAttributeMinMaxInteger"] = None,
- network_interface_count: Optional["_models.VMAttributeMinMaxInteger"] = None,
- network_bandwidth_in_mbps: Optional["_models.VMAttributeMinMaxDouble"] = None,
- rdma_support: Optional[Union[str, "_models.VMAttributeSupport"]] = None,
- rdma_network_interface_count: Optional["_models.VMAttributeMinMaxInteger"] = None,
- accelerator_support: Optional[Union[str, "_models.VMAttributeSupport"]] = None,
- accelerator_manufacturers: Optional[list[Union[str, "_models.AcceleratorManufacturer"]]] = None,
- accelerator_types: Optional[list[Union[str, "_models.AcceleratorType"]]] = None,
- accelerator_count: Optional["_models.VMAttributeMinMaxInteger"] = None,
- vm_categories: Optional[list[Union[str, "_models.VMCategory"]]] = None,
- cpu_manufacturers: Optional[list[Union[str, "_models.CpuManufacturer"]]] = None,
- hyper_v_generations: Optional[list[Union[str, "_models.HyperVGeneration"]]] = None,
- burstable_support: Optional[Union[str, "_models.VMAttributeSupport"]] = None,
- allowed_vm_sizes: Optional[list[str]] = None,
- excluded_vm_sizes: Optional[list[str]] = None,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class VMDiskSecurityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Specifies the security profile settings for the managed disk. **Note:** It can only be set for
Confidential VMs.
@@ -8688,39 +7847,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)
-class VmSizeProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
- """A VM size profile with a name and rank for flex VM creation.
-
- :ivar name: The name of the VM size, eg Standard_D2ads_v5. Required.
- :vartype name: str
- :ivar rank: The rank of this VM size in the priority order. Required.
- :vartype rank: int
- """
-
- name: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The name of the VM size, eg Standard_D2ads_v5. Required."""
- rank: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
- """The rank of this VM size in the priority order. Required."""
-
- @overload
- def __init__(
- self,
- *,
- name: str,
- rank: int,
- ) -> None: ...
-
- @overload
- def __init__(self, mapping: Mapping[str, Any]) -> None:
- """
- :param mapping: raw JSON to initialize the model.
- :type mapping: Mapping[str, Any]
- """
-
- def __init__(self, *args: Any, **kwargs: Any) -> None:
- super().__init__(*args, **kwargs)
-
-
class VmSizeProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only
"""Specifies VM Size Property settings on the virtual machine.
@@ -9036,12 +8162,22 @@ class ZonePreference(_Model): # pylint: disable=docstring-keyword-should-match-
:vartype zone: str
:ivar rank: The rank of this zone in the priority order. Required.
:vartype rank: int
+ :ivar target_max_capacity: The maximum capacity to place in this zone. The sum across capped
+ zones must not exceed the requested capacity, and when every zone preference is capped the sum
+ must equal the requested capacity.
+ :vartype target_max_capacity: int
"""
zone: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The zone identifier. Required."""
rank: int = rest_field(visibility=["read", "create", "update", "delete", "query"])
"""The rank of this zone in the priority order. Required."""
+ target_max_capacity: Optional[int] = rest_field(
+ name="targetMaxCapacity", visibility=["read", "create", "update", "delete", "query"]
+ )
+ """The maximum capacity to place in this zone. The sum across capped zones must not exceed the
+ requested capacity, and when every zone preference is capped the sum must equal the requested
+ capacity."""
@overload
def __init__(
@@ -9049,6 +8185,7 @@ def __init__(
*,
zone: str,
rank: int,
+ target_max_capacity: Optional[int] = None,
) -> None: ...
@overload
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_patch.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_patch.py
index 87676c65a8f0..ea765788358a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_patch.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/models/_patch.py
@@ -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
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/__init__.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/__init__.py
index 870bc4fc237b..fca2ddcf285a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/__init__.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/__init__.py
@@ -14,8 +14,8 @@
from ._operations import Operations # type: ignore
from ._operations import VirtualMachineBulkOperationsOperations # type: ignore
-from ._operations import LaunchBulkInstancesOperationOperations # type: ignore
from ._operations import BulkCreateCustomOperations # type: ignore
+from ._operations import BulkCreateOperations # type: ignore
from ._operations import ScheduledActionsOperations # type: ignore
from ._operations import ScheduledActionExtensionOperations # type: ignore
from ._operations import ScheduledActionOperationStatusOperations # type: ignore
@@ -29,8 +29,8 @@
__all__ = [
"Operations",
"VirtualMachineBulkOperationsOperations",
- "LaunchBulkInstancesOperationOperations",
"BulkCreateCustomOperations",
+ "BulkCreateOperations",
"ScheduledActionsOperations",
"ScheduledActionExtensionOperations",
"ScheduledActionOperationStatusOperations",
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_operations.py
index 783edf7e6262..9d2e037f6fcd 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_operations.py
@@ -50,7 +50,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -72,7 +72,7 @@ def build_virtual_machine_bulk_operations_bulk_deallocate_operation_request( #
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -103,7 +103,7 @@ def build_virtual_machine_bulk_operations_bulk_hibernate_operation_request( # p
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -134,7 +134,7 @@ def build_virtual_machine_bulk_operations_bulk_start_operation_request( # pylin
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -158,68 +158,6 @@ def build_virtual_machine_bulk_operations_bulk_start_operation_request( # pylin
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_virtual_machine_bulk_operations_bulk_create_operation_request( # pylint: disable=name-too-long
- resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
-) -> HttpRequest:
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
- accept = _headers.pop("Accept", "application/json")
-
- # Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/virtualMachinesBulkCreate"
- path_format_arguments = {
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
- "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
- "location": _SERIALIZER.url("location", location, "str"),
- }
-
- _url: str = _url.format(**path_format_arguments) # type: ignore
-
- # Construct parameters
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
-
- # Construct headers
- if content_type is not None:
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
-
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-
-
-def build_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation_request( # pylint: disable=name-too-long
- resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
-) -> HttpRequest:
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
- accept = _headers.pop("Accept", "application/json")
-
- # Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/virtualMachinesBulkVdiFlexCreate"
- path_format_arguments = {
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
- "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
- "location": _SERIALIZER.url("location", location, "str"),
- }
-
- _url: str = _url.format(**path_format_arguments) # type: ignore
-
- # Construct parameters
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
-
- # Construct headers
- if content_type is not None:
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
-
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-
-
def build_virtual_machine_bulk_operations_bulk_delete_operation_request( # pylint: disable=name-too-long
resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
@@ -227,7 +165,7 @@ def build_virtual_machine_bulk_operations_bulk_delete_operation_request( # pyli
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -258,7 +196,7 @@ def build_virtual_machine_bulk_operations_bulk_get_operations_status_request( #
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -289,7 +227,7 @@ def build_virtual_machine_bulk_operations_bulk_cancel_operations_request( # pyl
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -320,7 +258,7 @@ def build_virtual_machine_bulk_operations_bulk_reimage_operation_request( # pyl
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -344,83 +282,17 @@ def build_virtual_machine_bulk_operations_bulk_reimage_operation_request( # pyl
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_virtual_machine_bulk_operations_bulk_list_operation_errors_request( # pylint: disable=name-too-long
- resource_group_name: str,
- location: str,
- subscription_id: str,
- *,
- lookback_in_minutes: Optional[int] = None,
- **kwargs: Any
-) -> HttpRequest:
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
-
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
- accept = _headers.pop("Accept", "application/json")
-
- # Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/listBulkOperationErrors"
- path_format_arguments = {
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
- "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
- "location": _SERIALIZER.url("location", location, "str"),
- }
-
- _url: str = _url.format(**path_format_arguments) # type: ignore
-
- # Construct parameters
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
- if lookback_in_minutes is not None:
- _params["lookbackInMinutes"] = _SERIALIZER.query("lookback_in_minutes", lookback_in_minutes, "int")
-
- # Construct headers
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
-
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-
-
-def build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_request( # pylint: disable=name-too-long
- resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
-) -> HttpRequest:
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
- accept = _headers.pop("Accept", "application/json")
-
- # Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/acknowledgeBulkOperationErrors"
- path_format_arguments = {
- "subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
- "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
- "location": _SERIALIZER.url("location", location, "str"),
- }
-
- _url: str = _url.format(**path_format_arguments) # type: ignore
-
- # Construct parameters
- _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
-
- # Construct headers
- if content_type is not None:
- _headers["Content-Type"] = _SERIALIZER.header("content_type", content_type, "str")
- _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
-
- return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-
-
-def build_launch_bulk_instances_operation_get_request( # pylint: disable=name-too-long
+def build_bulk_create_custom_get_request(
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -439,17 +311,17 @@ def build_launch_bulk_instances_operation_get_request( # pylint: disable=name-t
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_launch_bulk_instances_operation_get_operation_status_request( # pylint: disable=name-too-long
+def build_bulk_create_custom_get_async_operation_status_request( # pylint: disable=name-too-long
location: str, async_operation_id: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/asyncOperations/{asyncOperationId}"
+ _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/asyncOperations/{asyncOperationId}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"location": _SERIALIZER.url("location", location, "str"),
@@ -467,18 +339,18 @@ def build_launch_bulk_instances_operation_get_operation_status_request( # pylin
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_launch_bulk_instances_operation_create_or_update_request( # pylint: disable=name-too-long
+def build_bulk_create_custom_create_or_update_request( # pylint: disable=name-too-long
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -499,7 +371,7 @@ def build_launch_bulk_instances_operation_create_or_update_request( # pylint: d
return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
-def build_launch_bulk_instances_operation_delete_request( # pylint: disable=name-too-long
+def build_bulk_create_custom_delete_request(
resource_group_name: str,
location: str,
name: str,
@@ -510,9 +382,9 @@ def build_launch_bulk_instances_operation_delete_request( # pylint: disable=nam
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -530,14 +402,14 @@ def build_launch_bulk_instances_operation_delete_request( # pylint: disable=nam
return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs)
-def build_launch_bulk_instances_operation_cancel_request( # pylint: disable=name-too-long
+def build_bulk_create_custom_cancel_request(
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/cancel"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/cancel"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -553,21 +425,22 @@ def build_launch_bulk_instances_operation_cancel_request( # pylint: disable=nam
return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
-def build_launch_bulk_instances_operation_list_by_resource_group_request( # pylint: disable=name-too-long
- resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
+def build_bulk_create_custom_virtual_machines_get_operation_status_request( # pylint: disable=name-too-long
+ resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/virtualMachinesGetOperationStatus"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
"location": _SERIALIZER.url("location", location, "str"),
+ "name": _SERIALIZER.url("name", name, "str"),
}
_url: str = _url.format(**path_format_arguments) # type: ignore
@@ -578,24 +451,23 @@ def build_launch_bulk_instances_operation_list_by_resource_group_request( # pyl
# Construct headers
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
- return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
+ return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_launch_bulk_instances_operation_list_by_subscription_request( # pylint: disable=name-too-long
- location: str, subscription_id: str, **kwargs: Any
+def build_bulk_create_custom_list_by_resource_group_request( # pylint: disable=name-too-long
+ resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = (
- "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations"
- )
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
+ "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
"location": _SERIALIZER.url("location", location, "str"),
}
@@ -610,39 +482,26 @@ def build_launch_bulk_instances_operation_list_by_subscription_request( # pylin
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_launch_bulk_instances_operation_list_virtual_machines_request( # pylint: disable=name-too-long
- resource_group_name: str,
- location: str,
- name: str,
- subscription_id: str,
- *,
- filter: Optional[str] = None,
- skiptoken: Optional[str] = None,
- **kwargs: Any
+def build_bulk_create_custom_list_by_subscription_request( # pylint: disable=name-too-long
+ location: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/virtualMachines"
+ _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
- "resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
"location": _SERIALIZER.url("location", location, "str"),
- "name": _SERIALIZER.url("name", name, "str"),
}
_url: str = _url.format(**path_format_arguments) # type: ignore
# Construct parameters
_params["api-version"] = _SERIALIZER.query("api_version", api_version, "str")
- if filter is not None:
- _params["$filter"] = _SERIALIZER.query("filter", filter, "str")
- if skiptoken is not None:
- _params["$skiptoken"] = _SERIALIZER.query("skiptoken", skiptoken, "str")
# Construct headers
_headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
@@ -650,17 +509,17 @@ def build_launch_bulk_instances_operation_list_virtual_machines_request( # pyli
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_get_request(
+def build_bulk_create_get_request(
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -679,17 +538,17 @@ def build_bulk_create_custom_get_request(
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_get_async_operation_status_request( # pylint: disable=name-too-long
+def build_bulk_create_get_async_operation_status_request( # pylint: disable=name-too-long
location: str, async_operation_id: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/asyncOperations/{asyncOperationId}"
+ _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreate/asyncOperations/{asyncOperationId}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"location": _SERIALIZER.url("location", location, "str"),
@@ -707,18 +566,18 @@ def build_bulk_create_custom_get_async_operation_status_request( # pylint: disa
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_create_or_update_request( # pylint: disable=name-too-long
+def build_bulk_create_create_or_update_request( # pylint: disable=name-too-long
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -739,7 +598,7 @@ def build_bulk_create_custom_create_or_update_request( # pylint: disable=name-t
return HttpRequest(method="PUT", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_delete_request(
+def build_bulk_create_delete_request(
resource_group_name: str,
location: str,
name: str,
@@ -750,9 +609,9 @@ def build_bulk_create_custom_delete_request(
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -770,14 +629,14 @@ def build_bulk_create_custom_delete_request(
return HttpRequest(method="DELETE", url=_url, params=_params, **kwargs)
-def build_bulk_create_custom_cancel_request(
+def build_bulk_create_cancel_request(
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/cancel"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}/cancel"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -793,17 +652,17 @@ def build_bulk_create_custom_cancel_request(
return HttpRequest(method="POST", url=_url, params=_params, **kwargs)
-def build_bulk_create_custom_virtual_machines_get_operation_status_request( # pylint: disable=name-too-long
+def build_bulk_create_virtual_machines_get_operation_status_request( # pylint: disable=name-too-long
resource_group_name: str, location: str, name: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/virtualMachinesGetOperationStatus"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}/virtualMachinesGetOperationStatus"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -822,17 +681,17 @@ def build_bulk_create_custom_virtual_machines_get_operation_status_request( # p
return HttpRequest(method="POST", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_list_by_resource_group_request( # pylint: disable=name-too-long
+def build_bulk_create_list_by_resource_group_request( # pylint: disable=name-too-long
resource_group_name: str, location: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom"
+ _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"resourceGroupName": _SERIALIZER.url("resource_group_name", resource_group_name, "str"),
@@ -850,17 +709,17 @@ def build_bulk_create_custom_list_by_resource_group_request( # pylint: disable=
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)
-def build_bulk_create_custom_list_by_subscription_request( # pylint: disable=name-too-long
+def build_bulk_create_list_by_subscription_request( # pylint: disable=name-too-long
location: str, subscription_id: str, **kwargs: Any
) -> HttpRequest:
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
- _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom"
+ _url = "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreate"
path_format_arguments = {
"subscriptionId": _SERIALIZER.url("subscription_id", subscription_id, "str"),
"location": _SERIALIZER.url("location", location, "str"),
@@ -883,7 +742,7 @@ def build_scheduled_actions_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -912,7 +771,7 @@ def build_scheduled_actions_create_or_update_request( # pylint: disable=name-to
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -943,7 +802,7 @@ def build_scheduled_actions_update_request(
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -972,7 +831,7 @@ def build_scheduled_actions_delete_request(
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
_url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}"
path_format_arguments = {
@@ -995,7 +854,7 @@ def build_scheduled_actions_list_by_resource_group_request( # pylint: disable=n
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1022,7 +881,7 @@ def build_scheduled_actions_list_by_subscription_request( # pylint: disable=nam
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1048,7 +907,7 @@ def build_scheduled_actions_list_resources_request( # pylint: disable=name-too-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1077,7 +936,7 @@ def build_scheduled_actions_attach_resources_request( # pylint: disable=name-to
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1108,7 +967,7 @@ def build_scheduled_actions_detach_resources_request( # pylint: disable=name-to
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1139,7 +998,7 @@ def build_scheduled_actions_patch_resources_request( # pylint: disable=name-too
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1168,7 +1027,7 @@ def build_scheduled_actions_disable_request(
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
_url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/disable"
path_format_arguments = {
@@ -1190,7 +1049,7 @@ def build_scheduled_actions_enable_request(
) -> HttpRequest:
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
# Construct URL
_url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/enable"
path_format_arguments = {
@@ -1214,7 +1073,7 @@ def build_scheduled_actions_cancel_next_occurrence_request( # pylint: disable=n
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1244,7 +1103,7 @@ def build_scheduled_actions_trigger_manual_occurrence_request( # pylint: disabl
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1272,7 +1131,7 @@ def build_scheduled_action_extension_list_by_vms_request( # pylint: disable=nam
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1298,7 +1157,7 @@ def build_scheduled_action_operation_status_get_request( # pylint: disable=name
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1326,7 +1185,7 @@ def build_occurrences_get_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1355,7 +1214,7 @@ def build_occurrences_list_by_scheduled_action_request( # pylint: disable=name-
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1383,7 +1242,7 @@ def build_occurrences_list_resources_request(
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1413,7 +1272,7 @@ def build_occurrences_cancel_request(
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1445,7 +1304,7 @@ def build_occurrences_delay_request(
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -1476,7 +1335,7 @@ def build_occurrence_extension_list_occurrence_by_vms_request( # pylint: disabl
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
- api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-08-06-preview"))
+ api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview"))
accept = _headers.pop("Accept", "application/json")
# Construct URL
@@ -2165,16 +2024,16 @@ def bulk_start_operation(
return deserialized # type: ignore
@overload
- def bulk_create_operation(
+ def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: _models.ExecuteCreateContent,
+ request_body: _models.ExecuteDeleteContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -2183,27 +2042,27 @@ def bulk_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteCreateContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_create_operation(
+ def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: _types.ExecuteCreateContent,
+ request_body: _types.ExecuteDeleteContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -2212,18 +2071,18 @@ def bulk_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteCreateContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_create_operation(
+ def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
@@ -2231,8 +2090,8 @@ def bulk_create_operation(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -2245,35 +2104,21 @@ def bulk_create_operation(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- def bulk_create_operation(
+ def bulk_delete_operation(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.ExecuteCreateContent, _types.ExecuteCreateContent, IO[bytes]],
+ request_body: Union[_models.ExecuteDeleteContent, _types.ExecuteDeleteContent, IO[bytes]],
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkCreate: Execute create operation for a batch of virtual machines, this operation is
+ ) -> _models.DeleteResourceOperationResponse:
+ """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
@@ -2281,13 +2126,13 @@ def bulk_create_operation(
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a ExecuteCreateContent type or a IO[bytes]
+ :param request_body: The request body. Is either a ExecuteDeleteContent type or a IO[bytes]
type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteCreateContent or
- ~azure.mgmt.compute.bulkaction.types.ExecuteCreateContent or IO[bytes]
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent or
+ ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent or IO[bytes]
+ :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -2302,7 +2147,7 @@ def bulk_create_operation(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CreateResourceOperationResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.DeleteResourceOperationResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
@@ -2311,7 +2156,7 @@ def bulk_create_operation(
else:
_content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_create_operation_request(
+ _request = build_virtual_machine_bulk_operations_bulk_delete_operation_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -2350,7 +2195,7 @@ def bulk_create_operation(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.CreateResourceOperationResponse, response.json())
+ deserialized = _deserialize(_models.DeleteResourceOperationResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2358,17 +2203,17 @@ def bulk_create_operation(
return deserialized # type: ignore
@overload
- def bulk_vdi_flex_create_operation(
+ def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: _models.ExecuteVdiCreateRequest,
+ request_body: _models.GetOperationStatusContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2376,28 +2221,28 @@ def bulk_vdi_flex_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_vdi_flex_create_operation(
+ def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: _types.ExecuteVdiCreateRequest,
+ request_body: _types.GetOperationStatusContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2405,18 +2250,18 @@ def bulk_vdi_flex_create_operation(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteVdiCreateRequest
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_vdi_flex_create_operation(
+ def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
@@ -2424,9 +2269,9 @@ def bulk_vdi_flex_create_operation(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2438,228 +2283,35 @@ def bulk_vdi_flex_create_operation(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- def bulk_vdi_flex_create_operation(
+ def bulk_get_operations_status(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.ExecuteVdiCreateRequest, _types.ExecuteVdiCreateRequest, IO[bytes]],
+ request_body: Union[_models.GetOperationStatusContent, _types.GetOperationStatusContent, IO[bytes]],
**kwargs: Any
- ) -> _models.CreateResourceOperationResponse:
- """BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation
- supports flex properties to give options on Sku and zone selection.
+ ) -> _models.GetOperationStatusResponse:
+ """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
+ machines.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a ExecuteVdiCreateRequest type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteVdiCreateRequest or
- ~azure.mgmt.compute.bulkaction.types.ExecuteVdiCreateRequest or IO[bytes]
- :return: CreateResourceOperationResponse. The CreateResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CreateResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CreateResourceOperationResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.CreateResourceOperationResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- def bulk_delete_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.ExecuteDeleteContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_delete_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.ExecuteDeleteContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_delete_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace
- def bulk_delete_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.ExecuteDeleteContent, _types.ExecuteDeleteContent, IO[bytes]],
- **kwargs: Any
- ) -> _models.DeleteResourceOperationResponse:
- """BulkDelete: Execute delete operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a ExecuteDeleteContent type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeleteContent or
- ~azure.mgmt.compute.bulkaction.types.ExecuteDeleteContent or IO[bytes]
- :return: DeleteResourceOperationResponse. The DeleteResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.DeleteResourceOperationResponse
+ :param request_body: The request body. Is either a GetOperationStatusContent type or a
+ IO[bytes] type. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent or
+ ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent or IO[bytes]
+ :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -2674,7 +2326,7 @@ def bulk_delete_operation(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.DeleteResourceOperationResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
@@ -2683,7 +2335,7 @@ def bulk_delete_operation(
else:
_content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_delete_operation_request(
+ _request = build_virtual_machine_bulk_operations_bulk_get_operations_status_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -2722,7 +2374,7 @@ def bulk_delete_operation(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.DeleteResourceOperationResponse, response.json())
+ deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -2730,17 +2382,16 @@ def bulk_delete_operation(
return deserialized # type: ignore
@overload
- def bulk_get_operations_status(
+ def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: _models.GetOperationStatusContent,
+ request_body: _models.CancelOperationsContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2748,28 +2399,27 @@ def bulk_get_operations_status(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_get_operations_status(
+ def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: _types.GetOperationStatusContent,
+ request_body: _types.CancelOperationsContent,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2777,18 +2427,18 @@ def bulk_get_operations_status(
:param location: The location name. Required.
:type location: str
:param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_get_operations_status(
+ def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
@@ -2796,9 +2446,8 @@ def bulk_get_operations_status(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -2810,673 +2459,187 @@ def bulk_get_operations_status(
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace
- def bulk_get_operations_status(
+ def bulk_cancel_operations(
self,
resource_group_name: str,
location: str,
- request_body: Union[_models.GetOperationStatusContent, _types.GetOperationStatusContent, IO[bytes]],
+ request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]],
**kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual
- machines.
+ ) -> _models.CancelOperationsResponse:
+ """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param request_body: The request body. Is either a GetOperationStatusContent type or a
- IO[bytes] type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusContent or
- ~azure.mgmt.compute.bulkaction.types.GetOperationStatusContent or IO[bytes]
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
+ :param request_body: The request body. Is either a CancelOperationsContent type or a IO[bytes]
+ type. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent or
+ ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent or IO[bytes]
+ :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_get_operations_status_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.CancelOperationsContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.CancelOperationsContent,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace
- def bulk_cancel_operations(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]],
- **kwargs: Any
- ) -> _models.CancelOperationsResponse:
- """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a CancelOperationsContent type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.CancelOperationsContent or
- ~azure.mgmt.compute.bulkaction.types.CancelOperationsContent or IO[bytes]
- :return: CancelOperationsResponse. The CancelOperationsResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.CancelOperationsResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.CancelOperationsResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_cancel_operations_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.CancelOperationsResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @overload
- def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _models.ExecuteReimageRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: _types.ExecuteReimageRequest,
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest
- :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @overload
- def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: IO[bytes],
- *,
- content_type: str = "application/json",
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Required.
- :type request_body: IO[bytes]
- :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
- Default value is "application/json".
- :paramtype content_type: str
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
-
- @distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "content_type",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- def bulk_reimage_operation(
- self,
- resource_group_name: str,
- location: str,
- request_body: Union[_models.ExecuteReimageRequest, _types.ExecuteReimageRequest, IO[bytes]],
- **kwargs: Any
- ) -> _models.ReimageResourceOperationResponse:
- """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
- triggered as soon as Computeschedule receives it.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :param request_body: The request body. Is either a ExecuteReimageRequest type or a IO[bytes]
- type. Required.
- :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest or
- ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest or IO[bytes]
- :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
- with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
- _params = kwargs.pop("params", {}) or {}
-
- content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.ReimageResourceOperationResponse] = kwargs.pop("cls", None)
-
- content_type = content_type or "application/json"
- _content = None
- if isinstance(request_body, (IOBase, bytes)):
- _content = request_body
- else:
- _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
-
- _request = build_virtual_machine_bulk_operations_bulk_reimage_operation_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- content_type=content_type,
- api_version=self._config.api_version,
- content=_content,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
-
- response = pipeline_response.http_response
-
- if response.status_code not in [200]:
- if _stream:
- try:
- response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
-
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.ReimageResourceOperationResponse, response.json())
-
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
-
- return deserialized # type: ignore
-
- @distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "lookback_in_minutes",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
- )
- def bulk_list_operation_errors(
- self, resource_group_name: str, location: str, *, lookback_in_minutes: Optional[int] = None, **kwargs: Any
- ) -> ItemPaged["_models.ResourceOperation"]:
- """BulkListOperationErrors: List bulk operation errors for a resource group.
-
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
- :param location: The location name. Required.
- :type location: str
- :keyword lookback_in_minutes: The number of minutes to look back for errors. Default value is
- None.
- :paramtype lookback_in_minutes: int
- :return: An iterator like instance of ResourceOperation
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
- :raises ~azure.core.exceptions.HttpResponseError:
- """
- _headers = kwargs.pop("headers", {}) or {}
- _params = kwargs.pop("params", {}) or {}
-
- cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
-
- error_map: MutableMapping = {
- 401: ClientAuthenticationError,
- 404: ResourceNotFoundError,
- 409: ResourceExistsError,
- 304: ResourceNotModifiedError,
- }
- error_map.update(kwargs.pop("error_map", {}) or {})
-
- def prepare_request(next_link=None):
- if not next_link:
-
- _request = build_virtual_machine_bulk_operations_bulk_list_operation_errors_request(
- resource_group_name=resource_group_name,
- location=location,
- subscription_id=self._config.subscription_id,
- lookback_in_minutes=lookback_in_minutes,
- api_version=self._config.api_version,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url(
- "self._config.base_url", self._config.base_url, "str", skip_quote=True
- ),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
-
- else:
- # make call to next link with the client's api-version
- _parsed_next_link = urllib.parse.urlparse(next_link)
- _next_request_params = case_insensitive_dict(
- {
- key: [urllib.parse.quote(v) for v in value]
- for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
- }
- )
- _next_request_params["api-version"] = self._config.api_version
- _request = HttpRequest(
- "GET",
- urllib.parse.urljoin(next_link, _parsed_next_link.path),
- headers=_headers,
- params=_next_request_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url(
- "self._config.base_url", self._config.base_url, "str", skip_quote=True
- ),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
- return _request
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
- def extract_data(pipeline_response):
- deserialized = pipeline_response.http_response.json()
- list_of_elem = _deserialize(
- List[_models.ResourceOperation],
- deserialized.get("value", []),
- )
- if cls:
- list_of_elem = cls(list_of_elem) # type: ignore
- return deserialized.get("nextLink") or None, iter(list_of_elem)
+ content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
+ cls: ClsType[_models.CancelOperationsResponse] = kwargs.pop("cls", None)
- def get_next(next_link=None):
- _request = prepare_request(next_link)
+ content_type = content_type or "application/json"
+ _content = None
+ if isinstance(request_body, (IOBase, bytes)):
+ _content = request_body
+ else:
+ _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _stream = False
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
+ _request = build_virtual_machine_bulk_operations_bulk_cancel_operations_request(
+ resource_group_name=resource_group_name,
+ location=location,
+ subscription_id=self._config.subscription_id,
+ content_type=content_type,
+ api_version=self._config.api_version,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
+
+ _decompress = kwargs.pop("decompress", True)
+ _stream = kwargs.pop("stream", False)
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200]:
+ if _stream:
+ try:
+ response.read() # Load the body in memory and close the socket
+ except (StreamConsumedError, StreamClosedError):
+ pass
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = _failsafe_deserialize(
+ _models.ErrorResponse,
+ response,
)
- response = pipeline_response.http_response
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- if response.status_code not in [200]:
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
- )
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+ if _stream:
+ deserialized = response.iter_bytes() if _decompress else response.iter_raw()
+ else:
+ deserialized = _deserialize(_models.CancelOperationsResponse, response.json())
- return pipeline_response
+ if cls:
+ return cls(pipeline_response, deserialized, {}) # type: ignore
- return ItemPaged(get_next, extract_data)
+ return deserialized # type: ignore
@overload
- def bulk_acknowledge_operation_errors(
+ def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: _models.AcknowledgeBulkOperationErrorsRequest,
+ request_body: _models.ExecuteReimageRequest,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest
+ :param request_body: The request body. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_acknowledge_operation_errors(
+ def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: _types.AcknowledgeBulkOperationErrorsRequest,
+ request_body: _types.ExecuteReimageRequest,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest
+ :param request_body: The request body. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@overload
- def bulk_acknowledge_operation_errors(
+ def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: IO[bytes],
+ request_body: IO[bytes],
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Required.
- :type body: IO[bytes]
+ :param request_body: The request body. Required.
+ :type request_body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3493,31 +2656,30 @@ def bulk_acknowledge_operation_errors(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def bulk_acknowledge_operation_errors(
+ def bulk_reimage_operation(
self,
resource_group_name: str,
location: str,
- body: Union[
- _models.AcknowledgeBulkOperationErrorsRequest, _types.AcknowledgeBulkOperationErrorsRequest, IO[bytes]
- ],
+ request_body: Union[_models.ExecuteReimageRequest, _types.ExecuteReimageRequest, IO[bytes]],
**kwargs: Any
- ) -> _models.AcknowledgeBulkOperationErrorsResponse:
- """BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ ) -> _models.ReimageResourceOperationResponse:
+ """BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is
+ triggered as soon as Computeschedule receives it.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param body: The list of operation ids to acknowledge. Is either a
- AcknowledgeBulkOperationErrorsRequest type or a IO[bytes] type. Required.
- :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest or
- ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest or IO[bytes]
- :return: AcknowledgeBulkOperationErrorsResponse. The AcknowledgeBulkOperationErrorsResponse is
- compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsResponse
+ :param request_body: The request body. Is either a ExecuteReimageRequest type or a IO[bytes]
+ type. Required.
+ :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteReimageRequest or
+ ~azure.mgmt.compute.bulkaction.types.ExecuteReimageRequest or IO[bytes]
+ :return: ReimageResourceOperationResponse. The ReimageResourceOperationResponse is compatible
+ with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.ReimageResourceOperationResponse
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -3532,16 +2694,16 @@ def bulk_acknowledge_operation_errors(
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.AcknowledgeBulkOperationErrorsResponse] = kwargs.pop("cls", None)
+ cls: ClsType[_models.ReimageResourceOperationResponse] = kwargs.pop("cls", None)
content_type = content_type or "application/json"
_content = None
- if isinstance(body, (IOBase, bytes)):
- _content = body
+ if isinstance(request_body, (IOBase, bytes)):
+ _content = request_body
else:
- _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
+ _content = json.dumps(request_body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_request(
+ _request = build_virtual_machine_bulk_operations_bulk_reimage_operation_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -3580,7 +2742,7 @@ def bulk_acknowledge_operation_errors(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.AcknowledgeBulkOperationErrorsResponse, response.json())
+ deserialized = _deserialize(_models.ReimageResourceOperationResponse, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -3588,14 +2750,14 @@ def bulk_acknowledge_operation_errors(
return deserialized # type: ignore
-class LaunchBulkInstancesOperationOperations: # pylint: disable=docstring-missing-param
+class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Instead, you should access the following operations through
:class:`~azure.mgmt.compute.bulkaction.ComputeBulkActionsMgmtClient`'s
- :attr:`launch_bulk_instances_operation` attribute.
+ :attr:`bulk_create_custom` attribute.
"""
def __init__(self, *args, **kwargs) -> None:
@@ -3620,23 +2782,23 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def get(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.LocationBasedLaunchBulkInstancesOperation:
- """Gets an instance of LaunchBulkInstancesOperations.
+ ) -> _models.LocationBasedBulkCreateCustom:
+ """Gets an instance of BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
- :return: LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
+ :return: LocationBasedBulkCreateCustom. The LocationBasedBulkCreateCustom is compatible with
+ MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -3650,9 +2812,9 @@ def get(
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[_models.LocationBasedLaunchBulkInstancesOperation] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_get_request(
+ _request = build_bulk_create_custom_get_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -3690,7 +2852,7 @@ def get(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.LocationBasedLaunchBulkInstancesOperation, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -3703,12 +2865,12 @@ def get(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def get_operation_status(
+ def get_async_operation_status(
self, location: str, async_operation_id: str, **kwargs: Any
) -> _models.OperationStatusResult:
- """Get the status of a LaunchBulkInstancesOperation.
+ """Get the status of an async operation of a BulkCreateCustom.
:param location: The location name. Required.
:type location: str
@@ -3731,7 +2893,7 @@ def get_operation_status(
cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_get_operation_status_request(
+ _request = build_bulk_create_custom_get_async_operation_status_request(
location=location,
async_operation_id=async_operation_id,
subscription_id=self._config.subscription_id,
@@ -3788,18 +2950,14 @@ def get_operation_status(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _create_or_update_initial(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[
- _models.LocationBasedLaunchBulkInstancesOperation,
- _types.LocationBasedLaunchBulkInstancesOperation,
- IO[bytes],
- ],
+ resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -3823,7 +2981,7 @@ def _create_or_update_initial(
else:
_content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_launch_bulk_instances_operation_create_or_update_request(
+ _request = build_bulk_create_custom_create_or_update_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -3879,29 +3037,29 @@ def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _models.LocationBasedLaunchBulkInstancesOperation,
+ resource: _models.LocationBasedBulkCreateCustom,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3911,29 +3069,29 @@ def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _types.LocationBasedLaunchBulkInstancesOperation,
+ resource: _types.LocationBasedBulkCreateCustom,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedLaunchBulkInstancesOperation
+ :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3947,25 +3105,25 @@ def begin_create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -3983,44 +3141,40 @@ def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_create_or_update(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[
- _models.LocationBasedLaunchBulkInstancesOperation,
- _types.LocationBasedLaunchBulkInstancesOperation,
- IO[bytes],
- ],
+ resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedLaunchBulkInstancesOperation]:
- """Creates or updates LaunchBulkInstancesOperations.
+ ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
+ """Creates or updates BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
- :param resource: Resource create parameters. Is either a
- LocationBasedLaunchBulkInstancesOperation type or a IO[bytes] type. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation
- or ~azure.mgmt.compute.bulkaction.types.LocationBasedLaunchBulkInstancesOperation or IO[bytes]
- :return: An instance of LROPoller that returns LocationBasedLaunchBulkInstancesOperation. The
- LocationBasedLaunchBulkInstancesOperation is compatible with MutableMapping
+ :param resource: Resource create parameters. Is either a LocationBasedBulkCreateCustom type or
+ a IO[bytes] type. Required.
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom or
+ ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom or IO[bytes]
+ :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
+ LocationBasedBulkCreateCustom is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.LocationBasedLaunchBulkInstancesOperation] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -4041,7 +3195,7 @@ def begin_create_or_update(
def get_long_running_output(pipeline_response):
response = pipeline_response.http_response
- deserialized = _deserialize(_models.LocationBasedLaunchBulkInstancesOperation, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
return deserialized
@@ -4059,13 +3213,13 @@ def get_long_running_output(pipeline_response):
else:
polling_method = polling
if cont_token:
- return LROPoller[_models.LocationBasedLaunchBulkInstancesOperation].from_continuation_token(
+ return LROPoller[_models.LocationBasedBulkCreateCustom].from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output,
)
- return LROPoller[_models.LocationBasedLaunchBulkInstancesOperation](
+ return LROPoller[_models.LocationBasedBulkCreateCustom](
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
@@ -4081,7 +3235,7 @@ def get_long_running_output(pipeline_response):
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _delete_initial(
self,
@@ -4105,7 +3259,7 @@ def _delete_initial(
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_delete_request(
+ _request = build_bulk_create_custom_delete_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -4165,7 +3319,7 @@ def _delete_initial(
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_delete(
self,
@@ -4176,14 +3330,14 @@ def begin_delete(
delete_instances: Optional[bool] = None,
**kwargs: Any
) -> LROPoller[None]:
- """Deletes LaunchBulkInstancesOperations.
+ """Deletes BulkCreateCustoms.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:keyword delete_instances: When true, deletes all virtual machines created by this BulkAction
Operation. Default value is None.
@@ -4243,7 +3397,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _cancel_initial(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -4259,7 +3413,7 @@ def _cancel_initial(self, resource_group_name: str, location: str, name: str, **
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_launch_bulk_instances_operation_cancel_request(
+ _request = build_bulk_create_custom_cancel_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -4310,17 +3464,17 @@ def _cancel_initial(self, resource_group_name: str, location: str, name: str, **
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_cancel(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> LROPoller[None]:
- """Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ """Cancels BulkCreateCustom instances that have not yet launched.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
:type name: str
:return: An instance of LROPoller that returns None
:rtype: ~azure.core.polling.LROPoller[None]
@@ -4373,31 +3527,39 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-08-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ "2026-08-06-preview": [
+ "api_version",
+ "subscription_id",
+ "resource_group_name",
+ "location",
+ "name",
+ "accept",
+ ]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-08-06-preview", "2026-09-06-preview"],
)
- def list_by_resource_group(
- self, resource_group_name: str, location: str, **kwargs: Any
- ) -> ItemPaged["_models.LocationBasedLaunchBulkInstancesOperation"]:
- """List LaunchBulkInstancesOperation resources by resource group.
+ def virtual_machines_get_operation_status(
+ self, resource_group_name: str, location: str, name: str, **kwargs: Any
+ ) -> ItemPaged["_models.ResourceOperation"]:
+ """Gets the operation status for virtual machines in a BulkCreateCustom operation.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedLaunchBulkInstancesOperation
- :rtype:
- ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :type name: str
+ :return: An iterator like instance of ResourceOperation
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedLaunchBulkInstancesOperation]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -4410,9 +3572,10 @@ def list_by_resource_group(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_by_resource_group_request(
+ _request = build_bulk_create_custom_virtual_machines_get_operation_status_request(
resource_group_name=resource_group_name,
location=location,
+ name=name,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
headers=_headers,
@@ -4453,8 +3616,8 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedLaunchBulkInstancesOperation],
- deserialized.get("value", []),
+ List[_models.ResourceOperation],
+ deserialized.get("results", []),
)
if cls:
list_of_elem = cls(list_of_elem) # type: ignore
@@ -4484,25 +3647,30 @@ def get_next(next_link=None):
@distributed_trace
@api_version_validation(
method_added_on="2026-07-06-preview",
- params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ params_added_on={
+ "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ },
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def list_by_subscription(
- self, location: str, **kwargs: Any
- ) -> ItemPaged["_models.LocationBasedLaunchBulkInstancesOperation"]:
- """List LaunchBulkInstancesOperation resources by subscriptionId.
+ def list_by_resource_group(
+ self, resource_group_name: str, location: str, **kwargs: Any
+ ) -> ItemPaged["_models.LocationBasedBulkCreateCustom"]:
+ """List BulkCreateCustom resources by resource group.
+ :param resource_group_name: The name of the resource group. The name is case insensitive.
+ Required.
+ :type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedLaunchBulkInstancesOperation
+ :return: An iterator like instance of LocationBasedBulkCreateCustom
:rtype:
- ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedLaunchBulkInstancesOperation]
+ ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedLaunchBulkInstancesOperation]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -4515,7 +3683,8 @@ def list_by_subscription(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_by_subscription_request(
+ _request = build_bulk_create_custom_list_by_resource_group_request(
+ resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
@@ -4557,7 +3726,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedLaunchBulkInstancesOperation],
+ List[_models.LocationBasedBulkCreateCustom],
deserialized.get("value", []),
)
if cls:
@@ -4582,58 +3751,29 @@ def get_next(next_link=None):
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
return pipeline_response
-
- return ItemPaged(get_next, extract_data)
-
- @distributed_trace
- @api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={
- "2026-07-06-preview": [
- "api_version",
- "subscription_id",
- "resource_group_name",
- "location",
- "name",
- "filter",
- "skiptoken",
- "accept",
- ]
- },
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+
+ return ItemPaged(get_next, extract_data)
+
+ @distributed_trace
+ @api_version_validation(
+ method_added_on="2026-07-06-preview",
+ params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
- def list_virtual_machines(
- self,
- resource_group_name: str,
- location: str,
- name: str,
- *,
- filter: Optional[str] = None,
- skiptoken: Optional[str] = None,
- **kwargs: Any
- ) -> ItemPaged["_models.VirtualMachine"]:
- """List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_models.LocationBasedBulkCreateCustom"]:
+ """List BulkCreateCustom resources by subscriptionId.
- :param resource_group_name: The name of the resource group. The name is case insensitive.
- Required.
- :type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the LaunchBulkInstancesOperation. Required.
- :type name: str
- :keyword filter: Filter expression to filter the virtual machines. Default value is None.
- :paramtype filter: str
- :keyword skiptoken: Skip token for pagination. Uses the token from a previous response to fetch
- the next page of results. Default value is None.
- :paramtype skiptoken: str
- :return: An iterator like instance of VirtualMachine
- :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.VirtualMachine]
+ :return: An iterator like instance of LocationBasedBulkCreateCustom
+ :rtype:
+ ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.VirtualMachine]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -4646,13 +3786,9 @@ def list_virtual_machines(
def prepare_request(next_link=None):
if not next_link:
- _request = build_launch_bulk_instances_operation_list_virtual_machines_request(
- resource_group_name=resource_group_name,
+ _request = build_bulk_create_custom_list_by_subscription_request(
location=location,
- name=name,
subscription_id=self._config.subscription_id,
- filter=filter,
- skiptoken=skiptoken,
api_version=self._config.api_version,
headers=_headers,
params=_params,
@@ -4692,7 +3828,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.VirtualMachine],
+ List[_models.LocationBasedBulkCreateCustom],
deserialized.get("value", []),
)
if cls:
@@ -4721,14 +3857,14 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)
-class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param
+class BulkCreateOperations: # pylint: disable=docstring-missing-param
"""
.. warning::
**DO NOT** instantiate this class directly.
Instead, you should access the following operations through
:class:`~azure.mgmt.compute.bulkaction.ComputeBulkActionsMgmtClient`'s
- :attr:`bulk_create_custom` attribute.
+ :attr:`bulk_create` attribute.
"""
def __init__(self, *args, **kwargs) -> None:
@@ -4742,9 +3878,9 @@ def __init__(self, *args, **kwargs) -> None:
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -4753,23 +3889,20 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
- def get(
- self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.LocationBasedBulkCreateCustom:
- """Gets an instance of BulkCreateCustoms.
+ def get(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> _models.LocationBasedBulkCreate:
+ """Gets an instance of BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :return: LocationBasedBulkCreateCustom. The LocationBasedBulkCreateCustom is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
+ :return: LocationBasedBulkCreate. The LocationBasedBulkCreate is compatible with MutableMapping
+ :rtype: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate
:raises ~azure.core.exceptions.HttpResponseError:
"""
error_map: MutableMapping = {
@@ -4783,9 +3916,9 @@ def get(
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreate] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_get_request(
+ _request = build_bulk_create_get_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -4823,7 +3956,7 @@ def get(
if _stream:
deserialized = response.iter_bytes() if _decompress else response.iter_raw()
else:
- deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreate, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
@@ -4832,16 +3965,16 @@ def get(
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def get_async_operation_status(
self, location: str, async_operation_id: str, **kwargs: Any
) -> _models.OperationStatusResult:
- """Get the status of an async operation of a BulkCreateCustom.
+ """Get the status of an async operation of a BulkCreate.
:param location: The location name. Required.
:type location: str
@@ -4864,7 +3997,7 @@ def get_async_operation_status(
cls: ClsType[_models.OperationStatusResult] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_get_async_operation_status_request(
+ _request = build_bulk_create_get_async_operation_status_request(
location=location,
async_operation_id=async_operation_id,
subscription_id=self._config.subscription_id,
@@ -4909,9 +4042,9 @@ def get_async_operation_status(
return deserialized # type: ignore
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -4921,14 +4054,14 @@ def get_async_operation_status(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def _create_or_update_initial(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
+ resource: Union[_models.LocationBasedBulkCreate, _types.LocationBasedBulkCreate, IO[bytes]],
**kwargs: Any
) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -4952,7 +4085,7 @@ def _create_or_update_initial(
else:
_content = json.dumps(resource, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore
- _request = build_bulk_create_custom_create_or_update_request(
+ _request = build_bulk_create_create_or_update_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -5008,29 +4141,29 @@ def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _models.LocationBasedBulkCreateCustom,
+ resource: _models.LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> LROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -5040,29 +4173,29 @@ def begin_create_or_update(
resource_group_name: str,
location: str,
name: str,
- resource: _types.LocationBasedBulkCreateCustom,
+ resource: _types.LocationBasedBulkCreate,
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> LROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom
+ :type resource: ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@@ -5076,33 +4209,33 @@ def begin_create_or_update(
*,
content_type: str = "application/json",
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> LROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:param resource: Resource create parameters. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
:paramtype content_type: str
- :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :return: An instance of LROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -5112,40 +4245,40 @@ def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def begin_create_or_update(
self,
resource_group_name: str,
location: str,
name: str,
- resource: Union[_models.LocationBasedBulkCreateCustom, _types.LocationBasedBulkCreateCustom, IO[bytes]],
+ resource: Union[_models.LocationBasedBulkCreate, _types.LocationBasedBulkCreate, IO[bytes]],
**kwargs: Any
- ) -> LROPoller[_models.LocationBasedBulkCreateCustom]:
- """Creates or updates BulkCreateCustoms.
+ ) -> LROPoller[_models.LocationBasedBulkCreate]:
+ """Creates or updates BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :param resource: Resource create parameters. Is either a LocationBasedBulkCreateCustom type or
- a IO[bytes] type. Required.
- :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom or
- ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreateCustom or IO[bytes]
- :return: An instance of LROPoller that returns LocationBasedBulkCreateCustom. The
- LocationBasedBulkCreateCustom is compatible with MutableMapping
+ :param resource: Resource create parameters. Is either a LocationBasedBulkCreate type or a
+ IO[bytes] type. Required.
+ :type resource: ~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate or
+ ~azure.mgmt.compute.bulkaction.types.LocationBasedBulkCreate or IO[bytes]
+ :return: An instance of LROPoller that returns LocationBasedBulkCreate. The
+ LocationBasedBulkCreate is compatible with MutableMapping
:rtype:
- ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.polling.LROPoller[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
_params = kwargs.pop("params", {}) or {}
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
- cls: ClsType[_models.LocationBasedBulkCreateCustom] = kwargs.pop("cls", None)
+ cls: ClsType[_models.LocationBasedBulkCreate] = kwargs.pop("cls", None)
polling: Union[bool, PollingMethod] = kwargs.pop("polling", True)
lro_delay = kwargs.pop("polling_interval", self._config.polling_interval)
cont_token: Optional[str] = kwargs.pop("continuation_token", None)
@@ -5166,7 +4299,7 @@ def begin_create_or_update(
def get_long_running_output(pipeline_response):
response = pipeline_response.http_response
- deserialized = _deserialize(_models.LocationBasedBulkCreateCustom, response.json())
+ deserialized = _deserialize(_models.LocationBasedBulkCreate, response.json())
if cls:
return cls(pipeline_response, deserialized, {}) # type: ignore
return deserialized
@@ -5184,20 +4317,20 @@ def get_long_running_output(pipeline_response):
else:
polling_method = polling
if cont_token:
- return LROPoller[_models.LocationBasedBulkCreateCustom].from_continuation_token(
+ return LROPoller[_models.LocationBasedBulkCreate].from_continuation_token(
polling_method=polling_method,
continuation_token=cont_token,
client=self._client,
deserialization_callback=get_long_running_output,
)
- return LROPoller[_models.LocationBasedBulkCreateCustom](
+ return LROPoller[_models.LocationBasedBulkCreate](
self._client, raw_result, get_long_running_output, polling_method # type: ignore
)
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -5206,7 +4339,7 @@ def get_long_running_output(pipeline_response):
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def _delete_initial(
self,
@@ -5230,7 +4363,7 @@ def _delete_initial(
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_delete_request(
+ _request = build_bulk_create_delete_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -5279,9 +4412,9 @@ def _delete_initial(
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -5290,7 +4423,7 @@ def _delete_initial(
"delete_instances",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def begin_delete(
self,
@@ -5301,14 +4434,14 @@ def begin_delete(
delete_instances: Optional[bool] = None,
**kwargs: Any
) -> LROPoller[None]:
- """Deletes BulkCreateCustoms.
+ """Deletes BulkCreates.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:keyword delete_instances: When true, deletes all virtual machines created by this BulkAction
Operation. Default value is None.
@@ -5364,11 +4497,11 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
return LROPoller[None](self._client, raw_result, get_long_running_output, polling_method) # type: ignore
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def _cancel_initial(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -5384,7 +4517,7 @@ def _cancel_initial(self, resource_group_name: str, location: str, name: str, **
cls: ClsType[Iterator[bytes]] = kwargs.pop("cls", None)
- _request = build_bulk_create_custom_cancel_request(
+ _request = build_bulk_create_cancel_request(
resource_group_name=resource_group_name,
location=location,
name=name,
@@ -5431,21 +4564,21 @@ def _cancel_initial(self, resource_group_name: str, location: str, name: str, **
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def begin_cancel(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> LROPoller[None]:
- """Cancels BulkCreateCustom instances that have not yet launched.
+ """Cancels BulkCreate instances that have not yet launched.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
:return: An instance of LROPoller that returns None
:rtype: ~azure.core.polling.LROPoller[None]
@@ -5498,9 +4631,9 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@distributed_trace
@api_version_validation(
- method_added_on="2026-08-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-08-06-preview": [
+ "2026-09-06-preview": [
"api_version",
"subscription_id",
"resource_group_name",
@@ -5509,25 +4642,29 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
"accept",
]
},
- api_versions_list=["2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def virtual_machines_get_operation_status(
self, resource_group_name: str, location: str, name: str, **kwargs: Any
- ) -> _models.GetOperationStatusResponse:
- """Gets the operation status for virtual machines in a BulkCreateCustom operation.
+ ) -> ItemPaged["_models.ResourceOperation"]:
+ """Gets the operation status for virtual machines in a BulkCreate operation.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :param name: The name of the BulkCreateCustom. The value must be an UUID. Required.
+ :param name: The name of the BulkCreate. The value must be an UUID. Required.
:type name: str
- :return: GetOperationStatusResponse. The GetOperationStatusResponse is compatible with
- MutableMapping
- :rtype: ~azure.mgmt.compute.bulkaction.models.GetOperationStatusResponse
+ :return: An iterator like instance of ResourceOperation
+ :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.ResourceOperation]
:raises ~azure.core.exceptions.HttpResponseError:
"""
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[List[_models.ResourceOperation]] = kwargs.pop("cls", None)
+
error_map: MutableMapping = {
401: ClientAuthenticationError,
404: ResourceNotFoundError,
@@ -5536,83 +4673,108 @@ def virtual_machines_get_operation_status(
}
error_map.update(kwargs.pop("error_map", {}) or {})
- _headers = kwargs.pop("headers", {}) or {}
- _params = kwargs.pop("params", {}) or {}
+ def prepare_request(next_link=None):
+ if not next_link:
- cls: ClsType[_models.GetOperationStatusResponse] = kwargs.pop("cls", None)
+ _request = build_bulk_create_virtual_machines_get_operation_status_request(
+ resource_group_name=resource_group_name,
+ location=location,
+ name=name,
+ subscription_id=self._config.subscription_id,
+ api_version=self._config.api_version,
+ headers=_headers,
+ params=_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url(
+ "self._config.base_url", self._config.base_url, "str", skip_quote=True
+ ),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
- _request = build_bulk_create_custom_virtual_machines_get_operation_status_request(
- resource_group_name=resource_group_name,
- location=location,
- name=name,
- subscription_id=self._config.subscription_id,
- api_version=self._config.api_version,
- headers=_headers,
- params=_params,
- )
- path_format_arguments = {
- "endpoint": self._serialize.url("self._config.base_url", self._config.base_url, "str", skip_quote=True),
- }
- _request.url = self._client.format_url(_request.url, **path_format_arguments)
+ else:
+ # make call to next link with the client's api-version
+ _parsed_next_link = urllib.parse.urlparse(next_link)
+ _next_request_params = case_insensitive_dict(
+ {
+ key: [urllib.parse.quote(v) for v in value]
+ for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items()
+ }
+ )
+ _next_request_params["api-version"] = self._config.api_version
+ _request = HttpRequest(
+ "GET",
+ urllib.parse.urljoin(next_link, _parsed_next_link.path),
+ headers=_headers,
+ params=_next_request_params,
+ )
+ path_format_arguments = {
+ "endpoint": self._serialize.url(
+ "self._config.base_url", self._config.base_url, "str", skip_quote=True
+ ),
+ }
+ _request.url = self._client.format_url(_request.url, **path_format_arguments)
- _decompress = kwargs.pop("decompress", True)
- _stream = kwargs.pop("stream", False)
- pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
- _request, stream=_stream, **kwargs
- )
+ return _request
- response = pipeline_response.http_response
+ def extract_data(pipeline_response):
+ deserialized = pipeline_response.http_response.json()
+ list_of_elem = _deserialize(
+ List[_models.ResourceOperation],
+ deserialized.get("results", []),
+ )
+ if cls:
+ list_of_elem = cls(list_of_elem) # type: ignore
+ return deserialized.get("nextLink") or None, iter(list_of_elem)
- if response.status_code not in [200]:
- if _stream:
- try:
- response.read() # Load the body in memory and close the socket
- except (StreamConsumedError, StreamClosedError):
- pass
- map_error(status_code=response.status_code, response=response, error_map=error_map)
- error = _failsafe_deserialize(
- _models.ErrorResponse,
- response,
+ def get_next(next_link=None):
+ _request = prepare_request(next_link)
+
+ _stream = False
+ pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
)
- raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
+ response = pipeline_response.http_response
- if _stream:
- deserialized = response.iter_bytes() if _decompress else response.iter_raw()
- else:
- deserialized = _deserialize(_models.GetOperationStatusResponse, response.json())
+ if response.status_code not in [200]:
+ map_error(status_code=response.status_code, response=response, error_map=error_map)
+ error = _failsafe_deserialize(
+ _models.ErrorResponse,
+ response,
+ )
+ raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
- if cls:
- return cls(pipeline_response, deserialized, {}) # type: ignore
+ return pipeline_response
- return deserialized # type: ignore
+ return ItemPaged(get_next, extract_data)
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
+ method_added_on="2026-09-06-preview",
params_added_on={
- "2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
+ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-09-06-preview"],
)
def list_by_resource_group(
self, resource_group_name: str, location: str, **kwargs: Any
- ) -> ItemPaged["_models.LocationBasedBulkCreateCustom"]:
- """List BulkCreateCustom resources by resource group.
+ ) -> ItemPaged["_models.LocationBasedBulkCreate"]:
+ """List BulkCreate resources by resource group.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedBulkCreateCustom
+ :return: An iterator like instance of LocationBasedBulkCreate
:rtype:
- ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreate]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -5625,7 +4787,7 @@ def list_by_resource_group(
def prepare_request(next_link=None):
if not next_link:
- _request = build_bulk_create_custom_list_by_resource_group_request(
+ _request = build_bulk_create_list_by_resource_group_request(
resource_group_name=resource_group_name,
location=location,
subscription_id=self._config.subscription_id,
@@ -5668,7 +4830,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedBulkCreateCustom],
+ List[_models.LocationBasedBulkCreate],
deserialized.get("value", []),
)
if cls:
@@ -5698,24 +4860,24 @@ def get_next(next_link=None):
@distributed_trace
@api_version_validation(
- method_added_on="2026-07-06-preview",
- params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "location", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ method_added_on="2026-09-06-preview",
+ params_added_on={"2026-09-06-preview": ["api_version", "subscription_id", "location", "accept"]},
+ api_versions_list=["2026-09-06-preview"],
)
- def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_models.LocationBasedBulkCreateCustom"]:
- """List BulkCreateCustom resources by subscriptionId.
+ def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_models.LocationBasedBulkCreate"]:
+ """List BulkCreate resources by subscriptionId.
:param location: The location name. Required.
:type location: str
- :return: An iterator like instance of LocationBasedBulkCreateCustom
+ :return: An iterator like instance of LocationBasedBulkCreate
:rtype:
- ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreateCustom]
+ ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.LocationBasedBulkCreate]
:raises ~azure.core.exceptions.HttpResponseError:
"""
_headers = kwargs.pop("headers", {}) or {}
_params = kwargs.pop("params", {}) or {}
- cls: ClsType[List[_models.LocationBasedBulkCreateCustom]] = kwargs.pop("cls", None)
+ cls: ClsType[List[_models.LocationBasedBulkCreate]] = kwargs.pop("cls", None)
error_map: MutableMapping = {
401: ClientAuthenticationError,
@@ -5728,7 +4890,7 @@ def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_mode
def prepare_request(next_link=None):
if not next_link:
- _request = build_bulk_create_custom_list_by_subscription_request(
+ _request = build_bulk_create_list_by_subscription_request(
location=location,
subscription_id=self._config.subscription_id,
api_version=self._config.api_version,
@@ -5770,7 +4932,7 @@ def prepare_request(next_link=None):
def extract_data(pipeline_response):
deserialized = pipeline_response.http_response.json()
list_of_elem = _deserialize(
- List[_models.LocationBasedBulkCreateCustom],
+ List[_models.LocationBasedBulkCreate],
deserialized.get("value", []),
)
if cls:
@@ -5830,15 +4992,16 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def get(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> _models.ScheduledAction:
- """Get a ScheduledAction.
+ """Gets the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: ScheduledAction. The ScheduledAction is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.ScheduledAction
@@ -5913,7 +5076,7 @@ def get(self, resource_group_name: str, scheduled_action_name: str, **kwargs: An
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _create_or_update_initial(
self,
@@ -6002,14 +5165,15 @@ def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: ~azure.mgmt.compute.bulkaction.models.ScheduledAction
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6030,14 +5194,15 @@ def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: ~azure.mgmt.compute.bulkaction.types.ScheduledAction
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6058,14 +5223,15 @@ def begin_create_or_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Required.
+ :param resource: The scheduled action to create or update. Required.
:type resource: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -6089,7 +5255,7 @@ def begin_create_or_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_create_or_update(
self,
@@ -6098,15 +5264,16 @@ def begin_create_or_update(
resource: Union[_models.ScheduledAction, _types.ScheduledAction, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ScheduledAction]:
- """Create a ScheduledAction.
+ """Creates or updates a scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param resource: Resource create parameters. Is either a ScheduledAction type or a IO[bytes]
- type. Required.
+ :param resource: The scheduled action to create or update. Is either a ScheduledAction type or
+ a IO[bytes] type. Required.
:type resource: ~azure.mgmt.compute.bulkaction.models.ScheduledAction or
~azure.mgmt.compute.bulkaction.types.ScheduledAction or IO[bytes]
:return: An instance of LROPoller that returns ScheduledAction. The ScheduledAction is
@@ -6178,7 +5345,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _update_initial(
self,
@@ -6268,14 +5435,16 @@ def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: ~azure.mgmt.compute.bulkaction.models.ScheduledActionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6295,14 +5464,16 @@ def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: ~azure.mgmt.compute.bulkaction.types.ScheduledActionUpdate
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -6322,14 +5493,16 @@ def begin_update(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Required.
:type properties: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -6352,7 +5525,7 @@ def begin_update(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_update(
self,
@@ -6361,15 +5534,16 @@ def begin_update(
properties: Union[_models.ScheduledActionUpdate, _types.ScheduledActionUpdate, IO[bytes]],
**kwargs: Any
) -> LROPoller[None]:
- """Update a ScheduledAction.
+ """Updates the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param properties: The resource properties to be updated. Is either a ScheduledActionUpdate
- type or a IO[bytes] type. Required.
+ :param properties: The scheduled action properties to update. Omitted properties keep their
+ current values. Is either a ScheduledActionUpdate type or a IO[bytes] type. Required.
:type properties: ~azure.mgmt.compute.bulkaction.models.ScheduledActionUpdate or
~azure.mgmt.compute.bulkaction.types.ScheduledActionUpdate or IO[bytes]
:return: An instance of LROPoller that returns None
@@ -6428,7 +5602,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _delete_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -6498,15 +5672,16 @@ def _delete_initial(self, resource_group_name: str, scheduled_action_name: str,
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_delete(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]:
- """Delete a ScheduledAction.
+ """Deletes the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of LROPoller that returns None
:rtype: ~azure.core.polling.LROPoller[None]
@@ -6560,10 +5735,10 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.ScheduledAction"]:
- """List ScheduledAction resources by resource group.
+ """Lists scheduled actions in the specified resource group.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
@@ -6662,10 +5837,10 @@ def get_next(next_link=None):
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "subscription_id", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ScheduledAction"]:
- """List ScheduledAction resources by subscription ID.
+ """Lists scheduled actions in the specified subscription.
:return: An iterator like instance of ScheduledAction
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.ScheduledAction]
@@ -6768,17 +5943,18 @@ def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_resources(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> ItemPaged["_models.ScheduledActionResource"]:
- """List resources attached to Scheduled Actions.
+ """Lists resources associated with the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An iterator like instance of ScheduledActionResource
:rtype:
@@ -6884,7 +6060,7 @@ def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _attach_resources_initial(
self,
@@ -6974,14 +6150,15 @@ def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceAttachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7003,14 +6180,15 @@ def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourceAttachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7032,14 +6210,15 @@ def begin_attach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to add to the scheduled action. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -7064,7 +6243,7 @@ def begin_attach_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_attach_resources(
self,
@@ -7073,15 +6252,16 @@ def begin_attach_resources(
body: Union[_models.ResourceAttachRequest, _types.ResourceAttachRequest, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Attach resources to the scheduled action so they are included in future occurrences.
+ """Adds resources to the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourceAttachRequest type or a
- IO[bytes] type. Required.
+ :param body: The resources to add to the scheduled action. Is either a ResourceAttachRequest
+ type or a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceAttachRequest or
~azure.mgmt.compute.bulkaction.types.ResourceAttachRequest or IO[bytes]
:return: An instance of LROPoller that returns ResourceOperationResponse. The
@@ -7154,7 +6334,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _detach_resources_initial(
self,
@@ -7244,14 +6424,15 @@ def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceDetachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7273,14 +6454,15 @@ def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourceDetachRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7302,14 +6484,15 @@ def begin_detach_resources(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to remove from the scheduled action. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -7334,7 +6517,7 @@ def begin_detach_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_detach_resources(
self,
@@ -7343,15 +6526,16 @@ def begin_detach_resources(
body: Union[_models.ResourceDetachRequest, _types.ResourceDetachRequest, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Detach resources from the scheduled action so they are excluded from future occurrences.
+ """Removes resources from the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourceDetachRequest type or a
- IO[bytes] type. Required.
+ :param body: The resources to remove from the scheduled action. Is either a
+ ResourceDetachRequest type or a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourceDetachRequest or
~azure.mgmt.compute.bulkaction.types.ResourceDetachRequest or IO[bytes]
:return: An instance of LROPoller that returns ResourceOperationResponse. The
@@ -7422,14 +6606,15 @@ def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourcePatchRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7450,14 +6635,15 @@ def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.ResourcePatchRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7478,14 +6664,15 @@ def patch_resources(
content_type: str = "application/json",
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resource-specific settings to update. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -7509,7 +6696,7 @@ def patch_resources(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def patch_resources(
self,
@@ -7518,15 +6705,16 @@ def patch_resources(
body: Union[_models.ResourcePatchRequest, _types.ResourcePatchRequest, IO[bytes]],
**kwargs: Any
) -> _models.ResourceOperationResponse:
- """A synchronous resource action.
+ """Updates resource-specific settings for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a ResourcePatchRequest type or a
- IO[bytes] type. Required.
+ :param body: The resource-specific settings to update. Is either a ResourcePatchRequest type or
+ a IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.ResourcePatchRequest or
~azure.mgmt.compute.bulkaction.types.ResourcePatchRequest or IO[bytes]
:return: ResourceOperationResponse. The ResourceOperationResponse is compatible with
@@ -7606,7 +6794,7 @@ def patch_resources(
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _disable_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -7675,15 +6863,16 @@ def _disable_initial(self, resource_group_name: str, scheduled_action_name: str,
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_disable(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]:
- """Disable the scheduled action so its future occurrences do not run.
+ """Disables the specified scheduled action so future occurrences do not run.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of LROPoller that returns None
:rtype: ~azure.core.polling.LROPoller[None]
@@ -7738,7 +6927,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _enable_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]:
error_map: MutableMapping = {
@@ -7807,15 +6996,16 @@ def _enable_initial(self, resource_group_name: str, scheduled_action_name: str,
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "resource_group_name", "scheduled_action_name"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_enable(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]:
- """Enable a previously disabled scheduled action so its future occurrences run.
+ """Enables the specified scheduled action so new occurrences run.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of LROPoller that returns None
:rtype: ~azure.core.polling.LROPoller[None]
@@ -7877,7 +7067,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _cancel_next_occurrence_initial(
self,
@@ -7967,14 +7157,16 @@ def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -7996,14 +7188,16 @@ def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -8025,14 +7219,16 @@ def begin_cancel_next_occurrence(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -8057,7 +7253,7 @@ def begin_cancel_next_occurrence(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_cancel_next_occurrence(
self,
@@ -8066,14 +7262,16 @@ def begin_cancel_next_occurrence(
body: Union[_models.CancelOccurrenceRequest, _types.CancelOccurrenceRequest, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the next scheduled occurrence of the scheduled action.
+ """Cancels the next occurrence of the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param body: The content of the action request. Is either a CancelOccurrenceRequest type or a
+ :param body: The resources to cancel in the next occurrence. If no resource IDs are provided,
+ the occurrence is canceled for all resources. Is either a CancelOccurrenceRequest type or a
IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest or
~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest or IO[bytes]
@@ -8146,7 +7344,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _trigger_manual_occurrence_initial(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
@@ -8224,17 +7422,18 @@ def _trigger_manual_occurrence_initial(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_trigger_manual_occurrence(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> LROPoller[_models.Occurrence]:
- """Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ """Runs the specified scheduled action immediately.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An instance of LROPoller that returns Occurrence. The Occurrence is compatible with
MutableMapping
@@ -8314,13 +7513,12 @@ def __init__(self, *args, **kwargs) -> None:
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "resource_uri", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_vms(self, resource_uri: str, **kwargs: Any) -> ItemPaged["_models.ScheduledActionResources"]:
- """List ScheduledActionResources resources by parent.
+ """Lists scheduled actions associated with the specified VM.
- :param resource_uri: The fully qualified Azure Resource manager identifier of the resource.
- Required.
+ :param resource_uri: The fully qualified Azure resource ID of the compute resource. Required.
:type resource_uri: str
:return: An iterator like instance of ScheduledActionResources
:rtype:
@@ -8438,15 +7636,14 @@ def __init__(self, *args, **kwargs) -> None:
params_added_on={
"2026-07-06-preview": ["api_version", "subscription_id", "location", "operation_id", "accept"]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult:
- """Get the status of a ScheduledActions asynchronous operation. Both the ``Azure-AsyncOperation``
- and ``Location`` headers returned by long-running operations point at this endpoint.
+ """Gets the status of the specified scheduled action operation.
- :param location: The location name. Required.
+ :param location: The Azure region where the operation is running. Required.
:type location: str
- :param operation_id: The operation id. Required.
+ :param operation_id: The operation ID in UUID format. Required.
:type operation_id: str
:return: OperationStatusResult. The OperationStatusResult is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.OperationStatusResult
@@ -8542,19 +7739,20 @@ def __init__(self, *args, **kwargs) -> None:
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def get(
self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any
) -> _models.Occurrence:
- """Get a Occurrence.
+ """Gets the specified occurrence.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
:return: Occurrence. The Occurrence is compatible with MutableMapping
:rtype: ~azure.mgmt.compute.bulkaction.models.Occurrence
@@ -8630,17 +7828,18 @@ def get(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_by_scheduled_action(
self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any
) -> ItemPaged["_models.Occurrence"]:
- """List Occurrence resources by ScheduledAction.
+ """Lists occurrences for the specified scheduled action.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
:return: An iterator like instance of Occurrence
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.Occurrence]
@@ -8746,19 +7945,20 @@ def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_resources(
self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any
) -> ItemPaged["_models.OccurrenceResource"]:
- """List resources attached to Scheduled Actions for the given occurrence.
+ """Lists resources for the specified occurrence.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
:return: An iterator like instance of OccurrenceResource
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.compute.bulkaction.models.OccurrenceResource]
@@ -8865,7 +8065,7 @@ def get_next(next_link=None):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _cancel_initial(
self,
@@ -8958,16 +8158,18 @@ def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -8990,16 +8192,18 @@ def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -9022,16 +8226,18 @@ def begin_cancel(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -9057,7 +8263,7 @@ def begin_cancel(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_cancel(
self,
@@ -9067,16 +8273,18 @@ def begin_cancel(
body: Union[_models.CancelOccurrenceRequest, _types.CancelOccurrenceRequest, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Cancel the occurrence so its pending operations do not run.
+ """Cancels the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Is either a CancelOccurrenceRequest type or a
+ :param body: The resources to cancel in the occurrence. If no resource IDs are provided, the
+ occurrence is canceled for all resources. Is either a CancelOccurrenceRequest type or a
IO[bytes] type. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.CancelOccurrenceRequest or
~azure.mgmt.compute.bulkaction.types.CancelOccurrenceRequest or IO[bytes]
@@ -9152,7 +8360,7 @@ def get_long_running_output(pipeline_response):
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def _delay_initial(
self,
@@ -9245,16 +8453,18 @@ def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: ~azure.mgmt.compute.bulkaction.models.DelayRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -9277,16 +8487,18 @@ def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: ~azure.mgmt.compute.bulkaction.types.DelayRequest
:keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
Default value is "application/json".
@@ -9309,16 +8521,18 @@ def begin_delay(
content_type: str = "application/json",
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Required.
:type body: IO[bytes]
:keyword content_type: Body Parameter content-type. Content type parameter for binary body.
Default value is "application/json".
@@ -9344,7 +8558,7 @@ def begin_delay(
"accept",
]
},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def begin_delay(
self,
@@ -9354,17 +8568,19 @@ def begin_delay(
body: Union[_models.DelayRequest, _types.DelayRequest, IO[bytes]],
**kwargs: Any
) -> LROPoller[_models.ResourceOperationResponse]:
- """Delay the occurrence to a later time.
+ """Delays the specified occurrence for the specified resource IDs.
:param resource_group_name: The name of the resource group. The name is case insensitive.
Required.
:type resource_group_name: str
- :param scheduled_action_name: The name of the ScheduledAction. Required.
+ :param scheduled_action_name: The name of the scheduled action. It must be 3 to 24 characters
+ and can contain only letters, numbers, and hyphens. Required.
:type scheduled_action_name: str
- :param occurrence_id: The name of the Occurrence. Required.
+ :param occurrence_id: The occurrence ID in UUID format. Required.
:type occurrence_id: str
- :param body: The content of the action request. Is either a DelayRequest type or a IO[bytes]
- type. Required.
+ :param body: The new scheduled time and resources to delay in the occurrence. If no resource
+ IDs are provided, all resources are delayed. Is either a DelayRequest type or a IO[bytes] type.
+ Required.
:type body: ~azure.mgmt.compute.bulkaction.models.DelayRequest or
~azure.mgmt.compute.bulkaction.types.DelayRequest or IO[bytes]
:return: An instance of LROPoller that returns ResourceOperationResponse. The
@@ -9450,15 +8666,14 @@ def __init__(self, *args, **kwargs) -> None:
@api_version_validation(
method_added_on="2026-07-06-preview",
params_added_on={"2026-07-06-preview": ["api_version", "resource_uri", "accept"]},
- api_versions_list=["2026-07-06-preview", "2026-08-06-preview"],
+ api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"],
)
def list_occurrence_by_vms(
self, resource_uri: str, **kwargs: Any
) -> ItemPaged["_models.OccurrenceExtensionResource"]:
- """List OccurrenceExtensionResource resources by parent.
+ """Lists scheduled action occurrences associated with the specified VM.
- :param resource_uri: The fully qualified Azure Resource manager identifier of the resource.
- Required.
+ :param resource_uri: The fully qualified Azure resource ID of the compute resource. Required.
:type resource_uri: str
:return: An iterator like instance of OccurrenceExtensionResource
:rtype:
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_patch.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_patch.py
index 87676c65a8f0..ea765788358a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_patch.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/operations/_patch.py
@@ -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
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/types.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/types.py
index e7593cd35c78..53df1a62b551 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/types.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/types.py
@@ -12,15 +12,11 @@
if TYPE_CHECKING:
from .models import (
- AcceleratorManufacturer,
- AcceleratorType,
AllocationStrategy,
- ArchitectureType,
BulkCreateCustomAllocationStrategy,
BulkCreateCustomDistributionStrategy,
CachingTypes,
CapacityType,
- CpuManufacturer,
CreatedByType,
DeleteOptions,
DiffDiskOptions,
@@ -32,13 +28,11 @@
DistributionStrategy,
DomainNameLabelScopeTypes,
EvictionPolicy,
- HyperVGeneration,
IPVersions,
Language,
LinuxPatchAssessmentMode,
LinuxVMGuestPatchAutomaticByPlatformRebootSetting,
LinuxVMGuestPatchMode,
- LocalStorageDiskType,
ManagedServiceIdentityType,
Mode,
Modes,
@@ -48,8 +42,6 @@
NetworkInterfaceAuxiliarySku,
NotificationType,
OperatingSystemTypes,
- OptimizationPreference,
- OsType,
PartialFulfillmentMode,
PartialFulfillmentReason,
PriorityType,
@@ -69,8 +61,6 @@
SecurityTypes,
SettingNames,
StorageAccountTypes,
- VMAttributeSupport,
- VMCategory,
WeekDay,
WindowsPatchAssessmentMode,
WindowsVMGuestPatchAutomaticByPlatformRebootSetting,
@@ -78,17 +68,6 @@
)
-class AcknowledgeBulkOperationErrorsRequest(TypedDict, total=False):
- """The request to acknowledge bulk operation errors.
-
- :ivar operationIds: The set of operation ids to acknowledge. Required.
- :vartype operationIds: list[str]
- """
-
- operationIds: Required[list[str]]
- """The set of operation ids to acknowledge. Required."""
-
-
class AdditionalCapabilities(TypedDict, total=False):
"""Enables or disables a capability on the virtual machine or virtual machine scale set.
@@ -663,17 +642,112 @@ class BulkCreateCustomZoneAllocationPolicy(TypedDict, total=False):
"""The zone preferences for allocation priority."""
+class BulkCreateProperties(TypedDict, total=False):
+ """Details of the BulkCreate.
+
+ :ivar createdTime: The UTC time the BulkCreate resource was created.
+ :vartype createdTime: str
+ :ivar provisioningState: The status of the last operation. Known values are: "Creating",
+ "Succeeded", "Failed", "Deleting", and "Canceled".
+ :vartype provisioningState: Union[str, "ProvisioningState"]
+ :ivar capacity: Total capacity to achieve. It can be in terms of VMs or vCPUs. Required.
+ :vartype capacity: int
+ :ivar capacityType: Specifies capacity type for launching instances. It can be in terms of VMs
+ or vCPUs. Known values are: "VM" and "VCpu".
+ :vartype capacityType: Union[str, "CapacityType"]
+ :ivar minCapacity: The minimum capacity, expressed in units specified by capacityType, that
+ Azure must be able to allocate for the request to proceed. If Azure cannot allocate at least
+ this capacity with high confidence, the request is rejected with 409 Conflict
+ (InsufficientCapacity) and no VMs are created. Otherwise, Azure allocates as much capacity as
+ possible, up to the requested capacity. Must be greater than 0, less than capacity, and
+ requires partialFulfillmentPolicy.mode to be Enabled.
+ :vartype minCapacity: int
+ :ivar partialFulfillmentPolicy: Controls how partial fulfillment is handled for a BulkCreate
+ request. When enabled, Azure creates only the VMs or vCPUs it has high confidence can be
+ successfully allocated, instead of attempting the entire request and potentially returning
+ allocation failures.
+ :vartype partialFulfillmentPolicy: "PartialFulfillmentPolicy"
+ :ivar priorityProfile: Configuration Options for Regular or Spot instances in BulkCreate.
+ Required.
+ :vartype priorityProfile: "PriorityProfile"
+ :ivar vmSizesProfile: List of VM sizes supported for BulkCreate. Every virtual machine is
+ created from the operation-level computeProfile regardless of the size selected, so no
+ per-VM-size override can be supplied here.
+ :vartype vmSizesProfile: list["BulkCreateVmSizeProfile"]
+ :ivar computeProfile: Compute Profile to configure the Virtual Machines. Applied uniformly to
+ every virtual machine created by the operation. Required.
+ :vartype computeProfile: "ComputeProfile"
+ :ivar zoneAllocationPolicy: Zone Allocation Policy for launching instances.
+ :vartype zoneAllocationPolicy: "ZoneAllocationPolicy"
+ :ivar executionParameters: Extra parameters that control how the request is executed, including
+ the retry policy.
+ :vartype executionParameters: "ExecutionParameters"
+ """
+
+ createdTime: str
+ """The UTC time the BulkCreate resource was created."""
+ provisioningState: Union[str, "ProvisioningState"]
+ """The status of the last operation. Known values are: \"Creating\", \"Succeeded\", \"Failed\",
+ \"Deleting\", and \"Canceled\"."""
+ capacity: Required[int]
+ """Total capacity to achieve. It can be in terms of VMs or vCPUs. Required."""
+ capacityType: Union[str, "CapacityType"]
+ """Specifies capacity type for launching instances. It can be in terms of VMs or vCPUs. Known
+ values are: \"VM\" and \"VCpu\"."""
+ minCapacity: int
+ """The minimum capacity, expressed in units specified by capacityType, that Azure must be able to
+ allocate for the request to proceed. If Azure cannot allocate at least this capacity with high
+ confidence, the request is rejected with 409 Conflict (InsufficientCapacity) and no VMs are
+ created. Otherwise, Azure allocates as much capacity as possible, up to the requested capacity.
+ Must be greater than 0, less than capacity, and requires partialFulfillmentPolicy.mode to be
+ Enabled."""
+ partialFulfillmentPolicy: "PartialFulfillmentPolicy"
+ """Controls how partial fulfillment is handled for a BulkCreate request. When enabled, Azure
+ creates only the VMs or vCPUs it has high confidence can be successfully allocated, instead of
+ attempting the entire request and potentially returning allocation failures."""
+ priorityProfile: Required["PriorityProfile"]
+ """Configuration Options for Regular or Spot instances in BulkCreate. Required."""
+ vmSizesProfile: list["BulkCreateVmSizeProfile"]
+ """List of VM sizes supported for BulkCreate. Every virtual machine is created from the
+ operation-level computeProfile regardless of the size selected, so no per-VM-size override can
+ be supplied here."""
+ computeProfile: Required["ComputeProfile"]
+ """Compute Profile to configure the Virtual Machines. Applied uniformly to every virtual machine
+ created by the operation. Required."""
+ zoneAllocationPolicy: "ZoneAllocationPolicy"
+ """Zone Allocation Policy for launching instances."""
+ executionParameters: "ExecutionParameters"
+ """Extra parameters that control how the request is executed, including the retry policy."""
+
+
+class BulkCreateVmSizeProfile(TypedDict, total=False):
+ """A VM size that the service may select for a BulkCreate operation.
+
+ :ivar name: The name of the VM size, eg Standard_D2ads_v5. Required.
+ :vartype name: str
+ :ivar rank: The rank of this VM size in the priority order, starting at 0, where a lower value
+ is preferred. Used when priorityProfile.allocationStrategy is Prioritized.
+ :vartype rank: int
+ """
+
+ name: Required[str]
+ """The name of the VM size, eg Standard_D2ads_v5. Required."""
+ rank: int
+ """The rank of this VM size in the priority order, starting at 0, where a lower value is
+ preferred. Used when priorityProfile.allocationStrategy is Prioritized."""
+
+
class CancelOccurrenceRequest(TypedDict, total=False):
- """The request to cancel an occurrence.
+ """Request body for canceling a scheduled action occurrence.
- :ivar resourceIds: The resources the cancellation should act on. If no resource is passed in
- the list, Scheduled Action will cancel the occurrence for all resources. Required.
+ :ivar resourceIds: The resources for which operations should be canceled. An empty array
+ cancels all operations for all resources for the occurrence. Required.
:vartype resourceIds: list[str]
"""
resourceIds: Required[list[str]]
- """The resources the cancellation should act on. If no resource is passed in the list, Scheduled
- Action will cancel the occurrence for all resources. Required."""
+ """The resources for which operations should be canceled. An empty array cancels all operations
+ for all resources for the occurrence. Required."""
class CancelOperationsContent(TypedDict, total=False):
@@ -851,21 +925,19 @@ class DataDisk(TypedDict, total=False):
class DelayRequest(TypedDict, total=False):
- """Request to ask for a delay in an occurrence, delay should be set to client local time eg (PST)
- 2025-05-30T06:35:00-07:00.
+ """Request body for delaying a scheduled action occurrence.
- :ivar delay: The exact time to delay the operations to. Required.
+ :ivar delay: The new date and time for the occurrence, including the UTC offset. Required.
:vartype delay: str
- :ivar resourceIds: The resources that should be delayed. If empty, the delay will apply to the
- all resources in the occurrence. Required.
+ :ivar resourceIds: The resources to delay. An empty array delays all resources in the
+ occurrence. Required.
:vartype resourceIds: list[str]
"""
delay: Required[str]
- """The exact time to delay the operations to. Required."""
+ """The new date and time for the occurrence, including the UTC offset. Required."""
resourceIds: Required[list[str]]
- """The resources that should be delayed. If empty, the delay will apply to the all resources in
- the occurrence. Required."""
+ """The resources to delay. An empty array delays all resources in the occurrence. Required."""
class DiagnosticsProfile(TypedDict, total=False):
@@ -981,21 +1053,6 @@ class EventGridAndResourceGraph(TypedDict, total=False):
be delivered."""
-class ExecuteCreateContent(TypedDict, total=False):
- """The ExecuteCreateRequest request for create operations.
-
- :ivar resourceConfigParameters: resource creation payload. Required.
- :vartype resourceConfigParameters: "ResourceProvisionPayload"
- :ivar executionParameters: The execution parameters for the request. Required.
- :vartype executionParameters: "ExecutionParameters"
- """
-
- resourceConfigParameters: Required["ResourceProvisionPayload"]
- """resource creation payload. Required."""
- executionParameters: Required["ExecutionParameters"]
- """The execution parameters for the request. Required."""
-
-
class ExecuteDeallocateContent(TypedDict, total=False):
"""The ExecuteDeallocateRequest request for executeDeallocate operations.
@@ -1109,27 +1166,9 @@ class ExecuteStartContent(TypedDict, total=False):
with ``resources`` - exactly one must be specified."""
-class ExecuteVdiCreateRequest(TypedDict, total=False):
- """The VdiCreateRequest request for create operations.
-
- :ivar resourceConfigParameters: resource creation payload. Required.
- :vartype resourceConfigParameters: "ResourceProvisionVdiPayload"
- :ivar executionParameters: The execution parameters for the request. Required.
- :vartype executionParameters: "ExecutionParameters"
- """
-
- resourceConfigParameters: Required["ResourceProvisionVdiPayload"]
- """resource creation payload. Required."""
- executionParameters: Required["ExecutionParameters"]
- """The execution parameters for the request. Required."""
-
-
class ExecutionParameters(TypedDict, total=False):
"""Extra details needed to run the user's request.
- :ivar optimizationPreference: Details that could optimize the user's request. Known values are:
- "Cost", "Availability", and "CostAvailabilityBalanced".
- :vartype optimizationPreference: Union[str, "OptimizationPreference"]
:ivar retryPolicy: Retry policy the user can pass.
:vartype retryPolicy: "RetryPolicy"
:ivar verifyVmAgentHealth: When true on an executeStart request, run a post-Start VM agent
@@ -1143,9 +1182,6 @@ class ExecutionParameters(TypedDict, total=False):
:vartype capacityRecommendationParameters: "CapacityRecommendationParameters"
"""
- optimizationPreference: Union[str, "OptimizationPreference"]
- """Details that could optimize the user's request. Known values are: \"Cost\", \"Availability\",
- and \"CostAvailabilityBalanced\"."""
retryPolicy: "RetryPolicy"
"""Retry policy the user can pass."""
verifyVmAgentHealth: bool
@@ -1186,38 +1222,6 @@ class Resource(TypedDict, total=False):
"""Azure Resource Manager metadata containing createdBy and modifiedBy information."""
-class FlexProperties(TypedDict, total=False):
- """The flex properties for flexible VM creation.
-
- :ivar vmSizeProfiles: The list of VM size profiles to use for flex creation. Required.
- :vartype vmSizeProfiles: list["VmSizeProfile"]
- :ivar osType: The operating system type for the VMs. Required. Known values are: "Windows" and
- "Linux".
- :vartype osType: Union[str, "OsType"]
- :ivar priorityProfile: The priority profile for VM allocation. Required.
- :vartype priorityProfile: "PriorityProfile"
- :ivar zoneAllocationPolicy: The zone allocation policy for distributing VMs across availability
- zones.
- :vartype zoneAllocationPolicy: "ZoneAllocationPolicy"
- :ivar minCapacity: The minimum number of VMs that must be successfully created for the request
- to proceed. If fewer than this number can be allocated, the entire request is automatically
- rejected.
- :vartype minCapacity: int
- """
-
- vmSizeProfiles: Required[list["VmSizeProfile"]]
- """The list of VM size profiles to use for flex creation. Required."""
- osType: Required[Union[str, "OsType"]]
- """The operating system type for the VMs. Required. Known values are: \"Windows\" and \"Linux\"."""
- priorityProfile: Required["PriorityProfile"]
- """The priority profile for VM allocation. Required."""
- zoneAllocationPolicy: "ZoneAllocationPolicy"
- """The zone allocation policy for distributing VMs across availability zones."""
- minCapacity: int
- """The minimum number of VMs that must be successfully created for the request to proceed. If
- fewer than this number can be allocated, the entire request is automatically rejected."""
-
-
class GetOperationStatusContent(TypedDict, total=False):
"""This is the request to get operation status using operationids.
@@ -1386,58 +1390,6 @@ class KeyVaultSecretReference(TypedDict, total=False):
"""The relative URL of the Key Vault containing the secret. Required."""
-class LaunchBulkInstancesOperationProperties(TypedDict, total=False):
- """Details of the LaunchBulkInstancesOperation.
-
- :ivar createdTime: The UTC time the LaunchBulkInstancesOperation resource was created.
- :vartype createdTime: str
- :ivar provisioningState: The status of the last operation. Known values are: "Creating",
- "Succeeded", "Failed", "Deleting", and "Canceled".
- :vartype provisioningState: Union[str, "ProvisioningState"]
- :ivar capacity: Total capacity to achieve. It can be in terms of VMs or vCPUs. Required.
- :vartype capacity: int
- :ivar capacityType: Specifies capacity type for launching instances. It can be in terms of VMs
- or vCPUs. Known values are: "VM" and "VCpu".
- :vartype capacityType: Union[str, "CapacityType"]
- :ivar priorityProfile: Configuration Options for Regular or Spot instances in
- LaunchBulkInstancesOperation. Required.
- :vartype priorityProfile: "PriorityProfile"
- :ivar vmSizesProfile: List of VM sizes supported for LaunchBulkInstancesOperation.
- :vartype vmSizesProfile: list["VmSizeProfile"]
- :ivar vmAttributes: Attributes to launch instances.
- :vartype vmAttributes: "VMAttributes"
- :ivar computeProfile: Compute Profile to configure the Virtual Machines. Required.
- :vartype computeProfile: "ComputeProfile"
- :ivar zoneAllocationPolicy: Zone Allocation Policy for launching instances.
- :vartype zoneAllocationPolicy: "ZoneAllocationPolicy"
- :ivar retryPolicy: Retry policy the user can pass.
- :vartype retryPolicy: "RetryPolicy"
- """
-
- createdTime: str
- """The UTC time the LaunchBulkInstancesOperation resource was created."""
- provisioningState: Union[str, "ProvisioningState"]
- """The status of the last operation. Known values are: \"Creating\", \"Succeeded\", \"Failed\",
- \"Deleting\", and \"Canceled\"."""
- capacity: Required[int]
- """Total capacity to achieve. It can be in terms of VMs or vCPUs. Required."""
- capacityType: Union[str, "CapacityType"]
- """Specifies capacity type for launching instances. It can be in terms of VMs or vCPUs. Known
- values are: \"VM\" and \"VCpu\"."""
- priorityProfile: Required["PriorityProfile"]
- """Configuration Options for Regular or Spot instances in LaunchBulkInstancesOperation. Required."""
- vmSizesProfile: list["VmSizeProfile"]
- """List of VM sizes supported for LaunchBulkInstancesOperation."""
- vmAttributes: "VMAttributes"
- """Attributes to launch instances."""
- computeProfile: Required["ComputeProfile"]
- """Compute Profile to configure the Virtual Machines. Required."""
- zoneAllocationPolicy: "ZoneAllocationPolicy"
- """Zone Allocation Policy for launching instances."""
- retryPolicy: "RetryPolicy"
- """Retry policy the user can pass."""
-
-
class LinuxConfiguration(TypedDict, total=False):
"""Specifies the Linux operating system settings on the virtual machine. For a list of supported
Linux distributions, see `Linux on Azure-Endorsed Distributions
@@ -1550,8 +1502,8 @@ class ProxyResource(Resource):
"""
-class LocationBasedBulkCreateCustom(ProxyResource):
- """Location based BulkCreateCustom resource. The location is part of the resource path.
+class LocationBasedBulkCreate(ProxyResource):
+ """Location based BulkCreate resource. The location is part of the resource path.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -1565,8 +1517,8 @@ class LocationBasedBulkCreateCustom(ProxyResource):
information.
:vartype systemData: "SystemData"
:ivar properties: The resource-specific properties for this resource.
- :vartype properties: "BulkCreateCustomProperties"
- :ivar zones: Zones in which the BulkCreateCustom is available.
+ :vartype properties: "BulkCreateProperties"
+ :ivar zones: Zones in which the BulkCreate is available.
:vartype zones: list[str]
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
@@ -1576,10 +1528,10 @@ class LocationBasedBulkCreateCustom(ProxyResource):
:vartype plan: "Plan"
"""
- properties: "BulkCreateCustomProperties"
+ properties: "BulkCreateProperties"
"""The resource-specific properties for this resource."""
zones: list[str]
- """Zones in which the BulkCreateCustom is available."""
+ """Zones in which the BulkCreate is available."""
tags: dict[str, str]
"""Resource tags."""
identity: "ManagedServiceIdentity"
@@ -1588,9 +1540,8 @@ class LocationBasedBulkCreateCustom(ProxyResource):
"""Details of the resource plan."""
-class LocationBasedLaunchBulkInstancesOperation(ProxyResource): # pylint: disable=name-too-long
- """Location based LaunchBulkInstancesOperation resource. The location is part of the resource
- path.
+class LocationBasedBulkCreateCustom(ProxyResource):
+ """Location based BulkCreateCustom resource. The location is part of the resource path.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -1604,8 +1555,8 @@ class LocationBasedLaunchBulkInstancesOperation(ProxyResource): # pylint: disab
information.
:vartype systemData: "SystemData"
:ivar properties: The resource-specific properties for this resource.
- :vartype properties: "LaunchBulkInstancesOperationProperties"
- :ivar zones: Zones in which the LaunchBulkInstancesOperation is available.
+ :vartype properties: "BulkCreateCustomProperties"
+ :ivar zones: Zones in which the BulkCreateCustom is available.
:vartype zones: list[str]
:ivar tags: Resource tags.
:vartype tags: dict[str, str]
@@ -1615,10 +1566,10 @@ class LocationBasedLaunchBulkInstancesOperation(ProxyResource): # pylint: disab
:vartype plan: "Plan"
"""
- properties: "LaunchBulkInstancesOperationProperties"
+ properties: "BulkCreateCustomProperties"
"""The resource-specific properties for this resource."""
zones: list[str]
- """Zones in which the LaunchBulkInstancesOperation is available."""
+ """Zones in which the BulkCreateCustom is available."""
tags: dict[str, str]
"""Resource tags."""
identity: "ManagedServiceIdentity"
@@ -1743,27 +1694,27 @@ class NetworkProfile(TypedDict, total=False):
class NotificationProperties(TypedDict, total=False):
- """The information about notifications to be send to about upcoming operations.
+ """Settings for notifications about upcoming scheduled action operations.
- :ivar destination: Where the notification should be sent. For email, it should follow email
- format. Required.
+ :ivar destination: The notification destination. For email notifications, specify a valid email
+ address. Required.
:vartype destination: str
- :ivar type: Type of notification to be sent. Required. "Email"
+ :ivar type: The notification delivery method. Required. "Email"
:vartype type: Union[str, "NotificationType"]
- :ivar language: The language the notification should be sent on. Required. "en-us"
+ :ivar language: The language used for the notification. Required. "en-us"
:vartype language: Union[str, "Language"]
- :ivar disabled: Tells if the notification is enabled or not.
+ :ivar disabled: If true, notifications to this destination are disabled.
:vartype disabled: bool
"""
destination: Required[str]
- """Where the notification should be sent. For email, it should follow email format. Required."""
+ """The notification destination. For email notifications, specify a valid email address. Required."""
type: Required[Union[str, "NotificationType"]]
- """Type of notification to be sent. Required. \"Email\""""
+ """The notification delivery method. Required. \"Email\""""
language: Required[Union[str, "Language"]]
- """The language the notification should be sent on. Required. \"en-us\""""
+ """The language used for the notification. Required. \"en-us\""""
disabled: bool
- """Tells if the notification is enabled or not."""
+ """If true, notifications to this destination are disabled."""
class OSDisk(TypedDict, total=False):
@@ -2296,98 +2247,36 @@ class ReimageResourceOverride(TypedDict, total=False):
class ResourceAttachRequest(TypedDict, total=False):
- """Request model to attach a list of scheduled action resources.
+ """Resources to attach to a scheduled action.
- :ivar resources: List of resources to be attached/patched. Required.
+ :ivar resources: The list of resources to attach to the scheduled action. Required.
:vartype resources: list["ScheduledActionResourceInput"]
"""
resources: Required[list["ScheduledActionResourceInput"]]
- """List of resources to be attached/patched. Required."""
+ """The list of resources to attach to the scheduled action. Required."""
class ResourceDetachRequest(TypedDict, total=False):
- """Request model to detach a list of scheduled action resources.
+ """Resources to remove from a scheduled action.
- :ivar resources: List of resources to be detached. Required.
+ :ivar resources: The Azure resource IDs of the resources to remove. Required.
:vartype resources: list[str]
"""
resources: Required[list[str]]
- """List of resources to be detached. Required."""
+ """The Azure resource IDs of the resources to remove. Required."""
class ResourcePatchRequest(TypedDict, total=False):
- """Request model perform a resource operation in a list of resources.
+ """Resource-specific settings to update in a scheduled action.
- :ivar resources: The list of resources we watch to patch. Required.
+ :ivar resources: The resources and notification settings to update. Required.
:vartype resources: list["ScheduledActionResourceInput"]
"""
resources: Required[list["ScheduledActionResourceInput"]]
- """The list of resources we watch to patch. Required."""
-
-
-class ResourceProvisionPayload(TypedDict, total=False):
- """Resource creation data model.
-
- :ivar baseProfile: Bulk Actions Virtual Machine Profile object that contains VM properties that
- are common across all VMs in this batch.
- :vartype baseProfile: dict[str, Any]
- :ivar resourceOverrides: Bulk Actions Virtual Machine Profile array, that contains VM
- properties that should be overridden for each VM in the batch.
- :vartype resourceOverrides: list[dict[str, Any]]
- :ivar resourceCount: Number of VMs to be created. Required.
- :vartype resourceCount: int
- :ivar resourcePrefix: If resourceOverrides doesn't contain "name", the service will create a
- name based on the prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1..
- :vartype resourcePrefix: str
- """
-
- baseProfile: dict[str, Any]
- """Bulk Actions Virtual Machine Profile object that contains VM properties that are common across
- all VMs in this batch."""
- resourceOverrides: list[dict[str, Any]]
- """Bulk Actions Virtual Machine Profile array, that contains VM properties that should be
- overridden for each VM in the batch."""
- resourceCount: Required[int]
- """Number of VMs to be created. Required."""
- resourcePrefix: str
- """If resourceOverrides doesn't contain \"name\", the service will create a name based on the
- prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1.."""
-
-
-class ResourceProvisionVdiPayload(TypedDict, total=False):
- """Resource creation data model with Flex properties for VDI scenarios.
-
- :ivar baseProfile: Bulk Actions Virtual Machine Profile object that contains VM properties that
- are common across all VMs in this batch.
- :vartype baseProfile: dict[str, Any]
- :ivar resourceOverrides: Bulk Actions Virtual Machine Profile array, that contains VM
- properties that should be overridden for each VM in the batch.
- :vartype resourceOverrides: list[dict[str, Any]]
- :ivar resourceCount: Number of VMs to be created. Required.
- :vartype resourceCount: int
- :ivar resourcePrefix: If resourceOverrides doesn't contain "name", the service will create a
- name based on the prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1..
- :vartype resourcePrefix: str
- :ivar flexProperties: Flex properties used for VDI resource creation scenarios. Required.
- :vartype flexProperties: "FlexProperties"
- """
-
- baseProfile: dict[str, Any]
- """Bulk Actions Virtual Machine Profile object that contains VM properties that are common across
- all VMs in this batch."""
- resourceOverrides: list[dict[str, Any]]
- """Bulk Actions Virtual Machine Profile array, that contains VM properties that should be
- overridden for each VM in the batch."""
- resourceCount: Required[int]
- """Number of VMs to be created. Required."""
- resourcePrefix: str
- """If resourceOverrides doesn't contain \"name\", the service will create a name based on the
- prefix and ResourceCount, e.g., resourceprefix-0, resourceprefix-1.."""
- flexProperties: Required["FlexProperties"]
- """Flex properties used for VDI resource creation scenarios. Required."""
+ """The resources and notification settings to update. Required."""
class Resources(TypedDict, total=False):
@@ -2434,8 +2323,8 @@ class RetryPolicy(TypedDict, total=False):
:vartype retryCount: int
:ivar retryWindowInMinutes: Retry window in minutes for user request.
:vartype retryWindowInMinutes: int
- :ivar onFailureAction: Action to take on failure. Known values are: "Unknown", "Start",
- "Deallocate", "Hibernate", "Create", "Delete", and "GetInstanceView".
+ :ivar onFailureAction: Action to take on failure. Known values are: "Start", "Deallocate",
+ "Hibernate", "Create", and "Delete".
:vartype onFailureAction: Union[str, "ResourceOperationType"]
"""
@@ -2444,8 +2333,8 @@ class RetryPolicy(TypedDict, total=False):
retryWindowInMinutes: int
"""Retry window in minutes for user request."""
onFailureAction: Union[str, "ResourceOperationType"]
- """Action to take on failure. Known values are: \"Unknown\", \"Start\", \"Deallocate\",
- \"Hibernate\", \"Create\", \"Delete\", and \"GetInstanceView\"."""
+ """Action to take on failure. Known values are: \"Start\", \"Deallocate\", \"Hibernate\",
+ \"Create\", and \"Delete\"."""
class TrackedResource(Resource):
@@ -2475,7 +2364,7 @@ class TrackedResource(Resource):
class ScheduledAction(TrackedResource):
- """The scheduled action resource.
+ """A recurring action that operates on specified compute resources.
:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
@@ -2501,197 +2390,175 @@ class ScheduledAction(TrackedResource):
class ScheduledActionProperties(TypedDict, total=False):
- """Scheduled action properties.
+ """Configuration and status of a scheduled action.
- :ivar resourceType: The type of resource the scheduled action is targeting. Required. Known
- values are: "VirtualMachine" and "VirtualMachineScaleSet".
+ :ivar resourceType: The type of compute resource targeted by the action. Required. Known values
+ are: "VirtualMachine" and "VirtualMachineScaleSet".
:vartype resourceType: Union[str, "ResourceType"]
- :ivar actionType: The action the scheduled action should perform in the resources. Required.
- Known values are: "Start", "Deallocate", and "Hibernate".
+ :ivar actionType: The operation performed on the targeted resources. Required. Known values
+ are: "Start", "Deallocate", and "Hibernate".
:vartype actionType: Union[str, "ScheduledActionType"]
- :ivar startTime: The time which the scheduled action is supposed to start running. Required.
+ :ivar startTime: The date and time, including UTC offset, when the schedule becomes active.
+ Required.
:vartype startTime: str
- :ivar endTime: The time when the scheduled action is supposed to stop scheduling.
+ :ivar endTime: The date and time, including UTC offset, after which no new occurrences are
+ scheduled.
:vartype endTime: str
- :ivar schedule: The schedule the scheduled action is supposed to follow. Required.
+ :ivar schedule: The recurring schedule. Required.
:vartype schedule: "ScheduledActionsSchedule"
- :ivar notificationSettings: The notification settings for the scheduled action. Required.
+ :ivar notificationSettings: Notification settings that apply to the scheduled action. Required.
:vartype notificationSettings: list["NotificationProperties"]
- :ivar disabled: Tell if the scheduled action is disabled or not.
+ :ivar disabled: Indicates whether new occurrences are disabled.
:vartype disabled: bool
- :ivar provisioningState: The status of the last provisioning operation performed on the
- resource. Known values are: "Succeeded", "Failed", "Canceled", and "Deleting".
+ :ivar provisioningState: Read-only. The provisioning state of the scheduled action. Known
+ values are: "Succeeded", "Failed", "Canceled", "Deleting", and "Updating".
:vartype provisioningState: Union[str, "ScheduledActionsProvisioningState"]
"""
resourceType: Required[Union[str, "ResourceType"]]
- """The type of resource the scheduled action is targeting. Required. Known values are:
+ """The type of compute resource targeted by the action. Required. Known values are:
\"VirtualMachine\" and \"VirtualMachineScaleSet\"."""
actionType: Required[Union[str, "ScheduledActionType"]]
- """The action the scheduled action should perform in the resources. Required. Known values are:
- \"Start\", \"Deallocate\", and \"Hibernate\"."""
+ """The operation performed on the targeted resources. Required. Known values are: \"Start\",
+ \"Deallocate\", and \"Hibernate\"."""
startTime: Required[str]
- """The time which the scheduled action is supposed to start running. Required."""
+ """The date and time, including UTC offset, when the schedule becomes active. Required."""
endTime: str
- """The time when the scheduled action is supposed to stop scheduling."""
+ """The date and time, including UTC offset, after which no new occurrences are scheduled."""
schedule: Required["ScheduledActionsSchedule"]
- """The schedule the scheduled action is supposed to follow. Required."""
+ """The recurring schedule. Required."""
notificationSettings: Required[list["NotificationProperties"]]
- """The notification settings for the scheduled action. Required."""
+ """Notification settings that apply to the scheduled action. Required."""
disabled: bool
- """Tell if the scheduled action is disabled or not."""
+ """Indicates whether new occurrences are disabled."""
provisioningState: Union[str, "ScheduledActionsProvisioningState"]
- """The status of the last provisioning operation performed on the resource. Known values are:
- \"Succeeded\", \"Failed\", \"Canceled\", and \"Deleting\"."""
+ """Read-only. The provisioning state of the scheduled action. Known values are: \"Succeeded\",
+ \"Failed\", \"Canceled\", \"Deleting\", and \"Updating\"."""
class ScheduledActionResourceInput(TypedDict, total=False):
- """Represents the writable fields of a scheduled action resource used in attach and patch
- requests.
+ """A compute resource to add to or update in a scheduled action.
- :ivar resourceId: The ARM Id of the resource.
- "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
- Required.
+ :ivar resourceId: The Azure resource ID of the targeted virtual machine. Required.
:vartype resourceId: str
- :ivar notificationSettings: The desired notification settings for the specified resource.
+ :ivar notificationSettings: Notification settings that apply only to this resource.
:vartype notificationSettings: list["NotificationProperties"]
"""
resourceId: Required[str]
- """The ARM Id of the resource.
- \"subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}\".
- Required."""
+ """The Azure resource ID of the targeted virtual machine. Required."""
notificationSettings: list["NotificationProperties"]
- """The desired notification settings for the specified resource."""
+ """Notification settings that apply only to this resource."""
class ScheduledActionsExecutionParameters(TypedDict, total=False):
- """The execution parameters the scheduled action is supposed to follow.
+ """Settings that control how the scheduled action operation is executed.
- :ivar optimizationPreference: Details that could optimize the user's request. Known values are:
- "Cost", "Availability", and "CostAvailabilityBalanced".
- :vartype optimizationPreference: Union[str, "OptimizationPreference"]
- :ivar retryPolicy: Retry policy the user can pass.
+ :ivar retryPolicy: The retry settings for failed resource operations.
:vartype retryPolicy: "ScheduledActionsRetryPolicy"
"""
- optimizationPreference: Union[str, "OptimizationPreference"]
- """Details that could optimize the user's request. Known values are: \"Cost\", \"Availability\",
- and \"CostAvailabilityBalanced\"."""
retryPolicy: "ScheduledActionsRetryPolicy"
- """Retry policy the user can pass."""
+ """The retry settings for failed resource operations."""
class ScheduledActionsRetryPolicy(TypedDict, total=False):
- """Retry policy the scheduled action can pass.
+ """Retry settings for a scheduled action operation.
- :ivar retryCount: Retry count for the request.
+ :ivar retryCount: The maximum number of retry attempts.
:vartype retryCount: int
- :ivar retryWindowInMinutes: Retry window in minutes for the request.
+ :ivar retryWindowInMinutes: The time window, in minutes, during which retries can occur.
:vartype retryWindowInMinutes: int
- :ivar onFailureAction: Action to take on failure. Known values are: "Unknown", "Start",
- "Deallocate", "Hibernate", "Create", and "Delete".
+ :ivar onFailureAction: The resource operation to retry after a failure. Known values are:
+ "Start", "Deallocate", "Hibernate", "Create", and "Delete".
:vartype onFailureAction: Union[str, "ScheduledActionsResourceOperationType"]
"""
retryCount: int
- """Retry count for the request."""
+ """The maximum number of retry attempts."""
retryWindowInMinutes: int
- """Retry window in minutes for the request."""
+ """The time window, in minutes, during which retries can occur."""
onFailureAction: Union[str, "ScheduledActionsResourceOperationType"]
- """Action to take on failure. Known values are: \"Unknown\", \"Start\", \"Deallocate\",
+ """The resource operation to retry after a failure. Known values are: \"Start\", \"Deallocate\",
\"Hibernate\", \"Create\", and \"Delete\"."""
class ScheduledActionsSchedule(TypedDict, total=False):
- """Specify the schedule in which the scheduled action is supposed to follow.
+ """The recurring schedule for a scheduled action.
- :ivar scheduledTime: The time the scheduled action is supposed to run on. Required.
+ :ivar scheduledTime: The local time of day when the scheduled action runs. Required.
:vartype scheduledTime: str
- :ivar timeZone: The timezone the scheduled time is specified on. Required.
+ :ivar timeZone: The time zone used to interpret the scheduled time. Required.
:vartype timeZone: str
- :ivar requestedWeekDays: The week days the scheduled action is supposed to run on. If empty, it
- means it will run on every week day.
+ :ivar requestedWeekDays: The days of the week when the action runs. An empty array means every
+ day of the week.
:vartype requestedWeekDays: list[Union[str, "WeekDay"]]
- :ivar requestedMonths: The months the scheduled action is supposed to run on. If empty, it
- means it will run on every month.
+ :ivar requestedMonths: The months when the action runs. An empty array means every month.
:vartype requestedMonths: list[Union[str, "Month"]]
- :ivar requestedDaysOfTheMonth: The days of the month the scheduled action is supposed to run
- on. If empty, it means it will run on every day of the month.
+ :ivar requestedDaysOfTheMonth: The calendar days when the action runs. An empty array means
+ every day of the month.
:vartype requestedDaysOfTheMonth: list[int]
- :ivar executionParameters: The execution parameters the scheduled action is supposed to follow.
+ :ivar executionParameters: Settings that control operation execution and retries.
:vartype executionParameters: "ScheduledActionsExecutionParameters"
- :ivar deadlineType: The type of deadline the scheduled action is supposed to follow for the
- schedule. If no value is passed, it will default to InitiateAt. Known values are: "Unknown",
- "InitiateAt", and "CompleteBy".
+ :ivar deadlineType: How the scheduled time is interpreted. The default is ``InitiateAt``. Known
+ values are: "InitiateAt" and "CompleteBy".
:vartype deadlineType: Union[str, "ScheduledActionsDeadlineType"]
"""
scheduledTime: Required[str]
- """The time the scheduled action is supposed to run on. Required."""
+ """The local time of day when the scheduled action runs. Required."""
timeZone: Required[str]
- """The timezone the scheduled time is specified on. Required."""
+ """The time zone used to interpret the scheduled time. Required."""
requestedWeekDays: list[Union[str, "WeekDay"]]
- """The week days the scheduled action is supposed to run on. If empty, it means it will run on
- every week day."""
+ """The days of the week when the action runs. An empty array means every day of the week."""
requestedMonths: list[Union[str, "Month"]]
- """The months the scheduled action is supposed to run on. If empty, it means it will run on every
- month."""
+ """The months when the action runs. An empty array means every month."""
requestedDaysOfTheMonth: list[int]
- """The days of the month the scheduled action is supposed to run on. If empty, it means it will
- run on every day of the month."""
+ """The calendar days when the action runs. An empty array means every day of the month."""
executionParameters: "ScheduledActionsExecutionParameters"
- """The execution parameters the scheduled action is supposed to follow."""
+ """Settings that control operation execution and retries."""
deadlineType: Union[str, "ScheduledActionsDeadlineType"]
- """The type of deadline the scheduled action is supposed to follow for the schedule. If no value
- is passed, it will default to InitiateAt. Known values are: \"Unknown\", \"InitiateAt\", and
- \"CompleteBy\"."""
+ """How the scheduled time is interpreted. The default is ``InitiateAt``. Known values are:
+ \"InitiateAt\" and \"CompleteBy\"."""
class ScheduledActionsScheduleUpdate(TypedDict, total=False):
- """Schedule properties for update (PATCH). All properties are optional so individual fields can be
- patched (merge semantics); omitting a property preserves the current value.
+ """Schedule changes for a scheduled action. Omitted properties keep their current values.
- :ivar scheduledTime: The time the scheduled action is supposed to run on.
+ :ivar scheduledTime: The local time of day when the scheduled action runs.
:vartype scheduledTime: str
- :ivar timeZone: The timezone the scheduled time is specified on.
+ :ivar timeZone: The time zone used to interpret the scheduled time.
:vartype timeZone: str
- :ivar requestedWeekDays: The week days the scheduled action is supposed to run on. If empty, it
- means it will run on every week day.
+ :ivar requestedWeekDays: The days of the week when the action runs. An empty array means every
+ day of the week.
:vartype requestedWeekDays: list[Union[str, "WeekDay"]]
- :ivar requestedMonths: The months the scheduled action is supposed to run on. If empty, it
- means it will run on every month.
+ :ivar requestedMonths: The months when the action runs. An empty array means every month.
:vartype requestedMonths: list[Union[str, "Month"]]
- :ivar requestedDaysOfTheMonth: The days of the month the scheduled action is supposed to run
- on. If empty, it means it will run on every day of the month.
+ :ivar requestedDaysOfTheMonth: The calendar days when the action runs. An empty array means
+ every day of the month.
:vartype requestedDaysOfTheMonth: list[int]
- :ivar executionParameters: The execution parameters the scheduled action is supposed to follow.
+ :ivar executionParameters: Settings that control operation execution and retries.
:vartype executionParameters: "ScheduledActionsExecutionParameters"
- :ivar deadlineType: The type of deadline the scheduled action is supposed to follow for the
- schedule. If no value is passed, it will default to InitiateAt. Known values are: "Unknown",
- "InitiateAt", and "CompleteBy".
+ :ivar deadlineType: How the scheduled time is interpreted. The default is ``InitiateAt``. Known
+ values are: "InitiateAt" and "CompleteBy".
:vartype deadlineType: Union[str, "ScheduledActionsDeadlineType"]
"""
scheduledTime: str
- """The time the scheduled action is supposed to run on."""
+ """The local time of day when the scheduled action runs."""
timeZone: str
- """The timezone the scheduled time is specified on."""
+ """The time zone used to interpret the scheduled time."""
requestedWeekDays: list[Union[str, "WeekDay"]]
- """The week days the scheduled action is supposed to run on. If empty, it means it will run on
- every week day."""
+ """The days of the week when the action runs. An empty array means every day of the week."""
requestedMonths: list[Union[str, "Month"]]
- """The months the scheduled action is supposed to run on. If empty, it means it will run on every
- month."""
+ """The months when the action runs. An empty array means every month."""
requestedDaysOfTheMonth: list[int]
- """The days of the month the scheduled action is supposed to run on. If empty, it means it will
- run on every day of the month."""
+ """The calendar days when the action runs. An empty array means every day of the month."""
executionParameters: "ScheduledActionsExecutionParameters"
- """The execution parameters the scheduled action is supposed to follow."""
+ """Settings that control operation execution and retries."""
deadlineType: Union[str, "ScheduledActionsDeadlineType"]
- """The type of deadline the scheduled action is supposed to follow for the schedule. If no value
- is passed, it will default to InitiateAt. Known values are: \"Unknown\", \"InitiateAt\", and
- \"CompleteBy\"."""
+ """How the scheduled time is interpreted. The default is ``InitiateAt``. Known values are:
+ \"InitiateAt\" and \"CompleteBy\"."""
class ScheduledActionUpdate(TypedDict, total=False):
@@ -2712,40 +2579,41 @@ class ScheduledActionUpdate(TypedDict, total=False):
class ScheduledActionUpdateProperties(TypedDict, total=False):
"""The updatable properties of the ScheduledAction.
- :ivar resourceType: The type of resource the scheduled action is targeting. Known values are:
+ :ivar resourceType: The type of compute resource targeted by the action. Known values are:
"VirtualMachine" and "VirtualMachineScaleSet".
:vartype resourceType: Union[str, "ResourceType"]
- :ivar actionType: The action the scheduled action should perform in the resources. Known values
- are: "Start", "Deallocate", and "Hibernate".
+ :ivar actionType: The operation performed on the targeted resources. Known values are: "Start",
+ "Deallocate", and "Hibernate".
:vartype actionType: Union[str, "ScheduledActionType"]
- :ivar startTime: The time which the scheduled action is supposed to start running.
+ :ivar startTime: The date and time, including UTC offset, when the schedule becomes active.
:vartype startTime: str
- :ivar endTime: The time when the scheduled action is supposed to stop scheduling.
+ :ivar endTime: The date and time, including UTC offset, after which no new occurrences are
+ scheduled.
:vartype endTime: str
- :ivar schedule: The schedule the scheduled action is supposed to follow.
+ :ivar schedule: Changes to the recurring schedule.
:vartype schedule: "ScheduledActionsScheduleUpdate"
- :ivar notificationSettings: The notification settings for the scheduled action.
+ :ivar notificationSettings: Notification settings that apply to the scheduled action.
:vartype notificationSettings: list["NotificationProperties"]
- :ivar disabled: Tell if the scheduled action is disabled or not.
+ :ivar disabled: Indicates whether new occurrences are disabled.
:vartype disabled: bool
"""
resourceType: Union[str, "ResourceType"]
- """The type of resource the scheduled action is targeting. Known values are: \"VirtualMachine\"
- and \"VirtualMachineScaleSet\"."""
+ """The type of compute resource targeted by the action. Known values are: \"VirtualMachine\" and
+ \"VirtualMachineScaleSet\"."""
actionType: Union[str, "ScheduledActionType"]
- """The action the scheduled action should perform in the resources. Known values are: \"Start\",
- \"Deallocate\", and \"Hibernate\"."""
+ """The operation performed on the targeted resources. Known values are: \"Start\", \"Deallocate\",
+ and \"Hibernate\"."""
startTime: str
- """The time which the scheduled action is supposed to start running."""
+ """The date and time, including UTC offset, when the schedule becomes active."""
endTime: str
- """The time when the scheduled action is supposed to stop scheduling."""
+ """The date and time, including UTC offset, after which no new occurrences are scheduled."""
schedule: "ScheduledActionsScheduleUpdate"
- """The schedule the scheduled action is supposed to follow."""
+ """Changes to the recurring schedule."""
notificationSettings: list["NotificationProperties"]
- """The notification settings for the scheduled action."""
+ """Notification settings that apply to the scheduled action."""
disabled: bool
- """Tell if the scheduled action is disabled or not."""
+ """Indicates whether new occurrences are disabled."""
class ScheduledEventsAdditionalPublishingTargets(TypedDict, total=False): # pylint: disable=name-too-long
@@ -3467,192 +3335,6 @@ class VirtualMachineReimageParameters(TypedDict, total=False):
"""Specifies information required for reimaging the non-ephemeral OS disk."""
-class VMAttributeMinMaxDouble(TypedDict, total=False):
- """VMAttributes using double values.
-
- :ivar min: Minimum value. If not specified, no minimum filter is applied.
- :vartype min: float
- :ivar max: Maximum value. Must be greater than zero. Double.MaxValue(1.7976931348623157E+308).
- :vartype max: float
- """
-
- min: float
- """Minimum value. If not specified, no minimum filter is applied."""
- max: float
- """Maximum value. Must be greater than zero. Double.MaxValue(1.7976931348623157E+308)."""
-
-
-class VMAttributeMinMaxInteger(TypedDict, total=False):
- """While retrieving VMSizes from CRS, Min = 0 (uint.MinValue) if not specified, Max = 4294967295
- (uint.MaxValue) if not specified. This allows to filter VMAttributes on all available VMSizes.
-
- :ivar min: Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified.
- :vartype min: int
- :ivar max: Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified.
- :vartype max: int
- """
-
- min: int
- """Min VMSize from CRS, Min = 0 (uint.MinValue) if not specified."""
- max: int
- """Max VMSize from CRS, Max = 4294967295 (uint.MaxValue) if not specified."""
-
-
-class VMAttributes(TypedDict, total=False):
- """VMAttributes that will be used to filter VMSizes which will be used to launch instances.
-
- :ivar vCpuCount: The range of vCpuCount specified from Min to Max. Must be specified if
- VMAttributes are specified, either Min or Max is required if specified. Required.
- :vartype vCpuCount: "VMAttributeMinMaxInteger"
- :ivar memoryInGiB: The range of memory specified from Min to Max. Must be specified if
- VMAttributes are specified, either Min or Max is required if specified. Required.
- :vartype memoryInGiB: "VMAttributeMinMaxDouble"
- :ivar architectureTypes: The VM architecture types specified as a list. Must be specified if
- VMAttributes are specified. Must be compatible with image used. Required.
- :vartype architectureTypes: list[Union[str, "ArchitectureType"]]
- :ivar memoryInGiBPerVCpu: The range of memory in GiB per vCPU specified from min to max.
- Optional parameter. Either Min or Max is required if specified.
- :vartype memoryInGiBPerVCpu: "VMAttributeMinMaxDouble"
- :ivar localStorageSupport: Specifies whether the VMSize supporting local storage should be used
- to launch instances or not. Included - Default if not specified as most Azure VMs support local
- storage. Known values are: "Excluded", "Included", and "Required".
- :vartype localStorageSupport: Union[str, "VMAttributeSupport"]
- :ivar localStorageInGiB: LocalStorageSupport should be set to "Included" or "Required" to use
- this VMAttribute. If localStorageSupport is "Excluded", this VMAttribute can not be used.
- :vartype localStorageInGiB: "VMAttributeMinMaxDouble"
- :ivar localStorageDiskTypes: The local storage disk types specified as a list.
- LocalStorageSupport should be set to "Included" or "Required" to use this VMAttribute. If
- localStorageSupport is "Excluded", this VMAttribute can not be used.
- :vartype localStorageDiskTypes: list[Union[str, "LocalStorageDiskType"]]
- :ivar dataDiskCount: The range of data disk count specified from Min to Max. Optional
- parameter. Either Min or Max is required if specified.
- :vartype dataDiskCount: "VMAttributeMinMaxInteger"
- :ivar networkInterfaceCount: The range of network interface count specified from Min to Max.
- Optional parameter. Either Min or Max is required if specified.
- :vartype networkInterfaceCount: "VMAttributeMinMaxInteger"
- :ivar networkBandwidthInMbps: The range of network bandwidth in Mbps specified from Min to Max.
- Optional parameter. Either Min or Max is required if specified.
- :vartype networkBandwidthInMbps: "VMAttributeMinMaxDouble"
- :ivar rdmaSupport: Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access)
- should be used to build launch instances or not. Known values are: "Excluded", "Included", and
- "Required".
- :vartype rdmaSupport: Union[str, "VMAttributeSupport"]
- :ivar rdmaNetworkInterfaceCount: The range of RDMA (Remote Direct Memory Access) network
- interface count specified from Min to Max. Optional parameter. Either Min or Max is required if
- specified. rdmaSupport should be set to "Included" or "Required" to use this VMAttribute. If
- rdmaSupport is "Excluded", this VMAttribute can not be used.
- :vartype rdmaNetworkInterfaceCount: "VMAttributeMinMaxInteger"
- :ivar acceleratorSupport: Specifies whether the VMSize supporting accelerator should be used to
- launch instances or not. acceleratorSupport should be set to "Included" or "Required" to use
- this VMAttribute. If acceleratorSupport is "Excluded", this VMAttribute can not be used. Known
- values are: "Excluded", "Included", and "Required".
- :vartype acceleratorSupport: Union[str, "VMAttributeSupport"]
- :ivar acceleratorManufacturers: The accelerator manufacturers specified as a list.
- acceleratorSupport should be set to "Included" or "Required" to use this VMAttribute. If
- acceleratorSupport is "Excluded", this VMAttribute can not be used.
- :vartype acceleratorManufacturers: list[Union[str, "AcceleratorManufacturer"]]
- :ivar acceleratorTypes: The accelerator types specified as a list. acceleratorSupport should be
- set to "Included" or "Required" to use this VMAttribute. If acceleratorSupport is "Excluded",
- this VMAttribute can not be used.
- :vartype acceleratorTypes: list[Union[str, "AcceleratorType"]]
- :ivar acceleratorCount: The range of accelerator count specified from min to max. Optional
- parameter. Either Min or Max is required if specified. acceleratorSupport should be set to
- "Included" or "Required" to use this VMAttribute. If acceleratorSupport is "Excluded", this
- VMAttribute can not be used.
- :vartype acceleratorCount: "VMAttributeMinMaxInteger"
- :ivar vmCategories: The VM category specified as a list. Optional parameter.
- :vartype vmCategories: list[Union[str, "VMCategory"]]
- :ivar cpuManufacturers: The VM CPU manufacturers specified as a list. Optional parameter.
- :vartype cpuManufacturers: list[Union[str, "CpuManufacturer"]]
- :ivar hyperVGenerations: The hyperV generations specified as a list. Optional parameter.
- :vartype hyperVGenerations: list[Union[str, "HyperVGeneration"]]
- :ivar burstableSupport: Specifies whether the VMSize supporting burstable capability should be
- used to launch instances or not. Known values are: "Excluded", "Included", and "Required".
- :vartype burstableSupport: Union[str, "VMAttributeSupport"]
- :ivar allowedVMSizes: Specifies which VMSizes should be allowed while filtering on
- VMAttributes. Cannot be specified together with excludedVMSizes. Maximum of 10 VM sizes
- allowed. Optional parameter.
- :vartype allowedVMSizes: list[str]
- :ivar excludedVMSizes: Specifies which VMSizes should be excluded while filtering on
- VMAttributes. Cannot be specified together with allowedVMSizes. Maximum of 10 VM sizes allowed.
- Optional parameter.
- :vartype excludedVMSizes: list[str]
- """
-
- vCpuCount: Required["VMAttributeMinMaxInteger"]
- """The range of vCpuCount specified from Min to Max. Must be specified if VMAttributes are
- specified, either Min or Max is required if specified. Required."""
- memoryInGiB: Required["VMAttributeMinMaxDouble"]
- """The range of memory specified from Min to Max. Must be specified if VMAttributes are specified,
- either Min or Max is required if specified. Required."""
- architectureTypes: Required[list[Union[str, "ArchitectureType"]]]
- """The VM architecture types specified as a list. Must be specified if VMAttributes are specified.
- Must be compatible with image used. Required."""
- memoryInGiBPerVCpu: "VMAttributeMinMaxDouble"
- """The range of memory in GiB per vCPU specified from min to max. Optional parameter. Either Min
- or Max is required if specified."""
- localStorageSupport: Union[str, "VMAttributeSupport"]
- """Specifies whether the VMSize supporting local storage should be used to launch instances or
- not. Included - Default if not specified as most Azure VMs support local storage. Known values
- are: \"Excluded\", \"Included\", and \"Required\"."""
- localStorageInGiB: "VMAttributeMinMaxDouble"
- """LocalStorageSupport should be set to \"Included\" or \"Required\" to use this VMAttribute. If
- localStorageSupport is \"Excluded\", this VMAttribute can not be used."""
- localStorageDiskTypes: list[Union[str, "LocalStorageDiskType"]]
- """The local storage disk types specified as a list. LocalStorageSupport should be set to
- \"Included\" or \"Required\" to use this VMAttribute. If localStorageSupport is \"Excluded\",
- this VMAttribute can not be used."""
- dataDiskCount: "VMAttributeMinMaxInteger"
- """The range of data disk count specified from Min to Max. Optional parameter. Either Min or Max
- is required if specified."""
- networkInterfaceCount: "VMAttributeMinMaxInteger"
- """The range of network interface count specified from Min to Max. Optional parameter. Either Min
- or Max is required if specified."""
- networkBandwidthInMbps: "VMAttributeMinMaxDouble"
- """The range of network bandwidth in Mbps specified from Min to Max. Optional parameter. Either
- Min or Max is required if specified."""
- rdmaSupport: Union[str, "VMAttributeSupport"]
- """Specifies whether the VMSize supporting RDMA (Remote Direct Memory Access) should be used to
- build launch instances or not. Known values are: \"Excluded\", \"Included\", and \"Required\"."""
- rdmaNetworkInterfaceCount: "VMAttributeMinMaxInteger"
- """The range of RDMA (Remote Direct Memory Access) network interface count specified from Min to
- Max. Optional parameter. Either Min or Max is required if specified. rdmaSupport should be set
- to \"Included\" or \"Required\" to use this VMAttribute. If rdmaSupport is \"Excluded\", this
- VMAttribute can not be used."""
- acceleratorSupport: Union[str, "VMAttributeSupport"]
- """Specifies whether the VMSize supporting accelerator should be used to launch instances or not.
- acceleratorSupport should be set to \"Included\" or \"Required\" to use this VMAttribute. If
- acceleratorSupport is \"Excluded\", this VMAttribute can not be used. Known values are:
- \"Excluded\", \"Included\", and \"Required\"."""
- acceleratorManufacturers: list[Union[str, "AcceleratorManufacturer"]]
- """The accelerator manufacturers specified as a list. acceleratorSupport should be set to
- \"Included\" or \"Required\" to use this VMAttribute. If acceleratorSupport is \"Excluded\",
- this VMAttribute can not be used."""
- acceleratorTypes: list[Union[str, "AcceleratorType"]]
- """The accelerator types specified as a list. acceleratorSupport should be set to \"Included\" or
- \"Required\" to use this VMAttribute. If acceleratorSupport is \"Excluded\", this VMAttribute
- can not be used."""
- acceleratorCount: "VMAttributeMinMaxInteger"
- """The range of accelerator count specified from min to max. Optional parameter. Either Min or Max
- is required if specified. acceleratorSupport should be set to \"Included\" or \"Required\" to
- use this VMAttribute. If acceleratorSupport is \"Excluded\", this VMAttribute can not be used."""
- vmCategories: list[Union[str, "VMCategory"]]
- """The VM category specified as a list. Optional parameter."""
- cpuManufacturers: list[Union[str, "CpuManufacturer"]]
- """The VM CPU manufacturers specified as a list. Optional parameter."""
- hyperVGenerations: list[Union[str, "HyperVGeneration"]]
- """The hyperV generations specified as a list. Optional parameter."""
- burstableSupport: Union[str, "VMAttributeSupport"]
- """Specifies whether the VMSize supporting burstable capability should be used to launch instances
- or not. Known values are: \"Excluded\", \"Included\", and \"Required\"."""
- allowedVMSizes: list[str]
- """Specifies which VMSizes should be allowed while filtering on VMAttributes. Cannot be specified
- together with excludedVMSizes. Maximum of 10 VM sizes allowed. Optional parameter."""
- excludedVMSizes: list[str]
- """Specifies which VMSizes should be excluded while filtering on VMAttributes. Cannot be specified
- together with allowedVMSizes. Maximum of 10 VM sizes allowed. Optional parameter."""
-
-
class VMDiskSecurityProfile(TypedDict, total=False):
"""Specifies the security profile settings for the managed disk. **Note:** It can only be set for
Confidential VMs.
@@ -3721,21 +3403,6 @@ class VMGalleryApplication(TypedDict, total=False):
automatically updated for the VM/VMSS."""
-class VmSizeProfile(TypedDict, total=False):
- """A VM size profile with a name and rank for flex VM creation.
-
- :ivar name: The name of the VM size, eg Standard_D2ads_v5. Required.
- :vartype name: str
- :ivar rank: The rank of this VM size in the priority order. Required.
- :vartype rank: int
- """
-
- name: Required[str]
- """The name of the VM size, eg Standard_D2ads_v5. Required."""
- rank: Required[int]
- """The rank of this VM size in the priority order. Required."""
-
-
class VmSizeProperties(TypedDict, total=False):
"""Specifies VM Size Property settings on the virtual machine.
@@ -3907,9 +3574,17 @@ class ZonePreference(TypedDict, total=False):
:vartype zone: str
:ivar rank: The rank of this zone in the priority order. Required.
:vartype rank: int
+ :ivar targetMaxCapacity: The maximum capacity to place in this zone. The sum across capped
+ zones must not exceed the requested capacity, and when every zone preference is capped the sum
+ must equal the requested capacity.
+ :vartype targetMaxCapacity: int
"""
zone: Required[str]
"""The zone identifier. Required."""
rank: Required[int]
"""The rank of this zone in the priority order. Required."""
+ targetMaxCapacity: int
+ """The maximum capacity to place in this zone. The sum across capped zones must not exceed the
+ requested capacity, and when every zone preference is capped the sum must equal the requested
+ capacity."""
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py
similarity index 80%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_cancel_maximum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py
index 02ccd0d6eb22..c3b43ccc3b3b 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_cancel_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_cancel_maximum_set_gen.py
+ python bulk_create_cancel_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,13 +30,13 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- client.launch_bulk_instances_operation.begin_cancel(
+ client.bulk_create.begin_cancel(
resource_group_name="rgBulkactions",
- location="useast2euap",
- name="434d5a2a-167a-4e26-a89c-fbe622dfd0bc",
+ location="eastus",
+ name="20496756-e4bc-402c-8e7e-8ffed8e00c41",
).result()
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_Cancel_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_Cancel_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_create_or_update_maximum_set_gen.py
new file mode 100644
index 000000000000..5703f1d294fc
--- /dev/null
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_create_or_update_maximum_set_gen.py
@@ -0,0 +1,125 @@
+# pylint: disable=line-too-long,useless-suppression
+# 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) Python Code Generator.
+# Changes may cause incorrect behavior and will be lost if the code is regenerated.
+# --------------------------------------------------------------------------
+
+from azure.identity import DefaultAzureCredential
+
+from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
+
+"""
+# PREREQUISITES
+ pip install azure-identity
+ pip install azure-mgmt-compute-bulkaction
+# USAGE
+ python bulk_create_create_or_update_maximum_set_gen.py
+
+ Before run the sample, please set the values of the client ID, tenant ID and client secret
+ of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
+ AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
+ https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
+"""
+
+
+def main():
+ client = ComputeBulkActionsMgmtClient(
+ credential=DefaultAzureCredential(),
+ subscription_id="SUBSCRIPTION_ID",
+ )
+
+ response = client.bulk_create.begin_create_or_update(
+ resource_group_name="rgBulkactions",
+ location="eastus",
+ name="89f31926-145c-410c-a56a-5bc97359274c",
+ resource={
+ "identity": {"type": "SystemAssigned"},
+ "properties": {
+ "capacity": 2,
+ "capacityType": "VM",
+ "computeProfile": {
+ "computeApiVersion": "2024-11-01",
+ "virtualMachineProfile": {
+ "networkProfile": {
+ "networkApiVersion": "2020-11-01",
+ "networkInterfaceConfigurations": [
+ {
+ "name": "bulkvm-nic",
+ "properties": {
+ "deleteOption": "Delete",
+ "ipConfigurations": [
+ {
+ "name": "bulkvm-ipconfig",
+ "properties": {
+ "primary": True,
+ "subnet": {
+ "id": "/subscriptions/1FBA3C66-5C9C-4391-B72F-9F52735FC9F2/resourceGroups/rgBulkactions/providers/Microsoft.Network/virtualNetworks/bulkvnet/subnets/default"
+ },
+ },
+ }
+ ],
+ "primary": True,
+ },
+ }
+ ],
+ },
+ "osProfile": {
+ "adminUsername": "azureuser",
+ "computerName": "bulkvm",
+ "linuxConfiguration": {
+ "disablePasswordAuthentication": True,
+ "ssh": {
+ "publicKeys": [
+ {
+ "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDExampleKeyReplaceWithYourOwn azureuser@bulklaunch",
+ "path": "/home/azureuser/.ssh/authorized_keys",
+ }
+ ]
+ },
+ },
+ },
+ "storageProfile": {
+ "imageReference": {
+ "offer": "0001-com-ubuntu-server-jammy",
+ "publisher": "Canonical",
+ "sku": "22_04-lts-gen2",
+ "version": "latest",
+ },
+ "osDisk": {
+ "caching": "ReadWrite",
+ "createOption": "FromImage",
+ "deleteOption": "Delete",
+ "managedDisk": {"storageAccountType": "Premium_LRS"},
+ "osType": "Linux",
+ },
+ },
+ },
+ },
+ "executionParameters": {"retryPolicy": {"onFailureAction": "Delete", "retryWindowInMinutes": 30}},
+ "minCapacity": 1,
+ "partialFulfillmentPolicy": {"mode": "Enabled"},
+ "priorityProfile": {
+ "allocationStrategy": "LowestPrice",
+ "evictionPolicy": "Delete",
+ "maxPricePerVM": 0.2,
+ "type": "Spot",
+ },
+ "vmSizesProfile": [{"name": "Standard_D2s_v5", "rank": 1}, {"name": "Standard_D4s_v5", "rank": 2}],
+ "zoneAllocationPolicy": {
+ "distributionStrategy": "BestEffortBalanced",
+ "zonePreferences": [{"rank": 1, "zone": "1"}, {"rank": 2, "zone": "2"}],
+ },
+ },
+ "tags": {"env": "prod", "workload": "batch-render"},
+ "zones": ["1", "2"],
+ },
+ ).result()
+ print(response)
+
+
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_CreateOrUpdate_MaximumSet_Gen.json
+if __name__ == "__main__":
+ main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_cancel_maximum_set_gen.py
index 66a266c633a8..1582b46b222f 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_cancel_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_cancel_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_Cancel_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_Cancel_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_create_or_update_maximum_set_gen.py
index ff163c4a5889..7c74d3bf54aa 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_create_or_update_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_create_or_update_maximum_set_gen.py
@@ -145,6 +145,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_CreateOrUpdate_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_CreateOrUpdate_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_delete_maximum_set_gen.py
index 836190a2a900..0b9f0cd179e5 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_delete_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_delete_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_Delete_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_Delete_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_async_operation_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_async_operation_status_maximum_set_gen.py
index 5c7255a3059a..af95f9f58295 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_async_operation_status_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_async_operation_status_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_GetAsyncOperationStatus_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_GetAsyncOperationStatus_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_maximum_set_gen.py
index d25bb76bde08..20ac5d9ed7e2 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_get_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_Get_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_resource_group_maximum_set_gen.py
index 4d2ccc1616ce..635f87dde565 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_resource_group_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_resource_group_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_ListByResourceGroup_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_ListByResourceGroup_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_subscription_maximum_set_gen.py
index 316cb0a2dea7..7400dcad0352 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_subscription_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_list_by_subscription_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_ListBySubscription_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_ListBySubscription_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_virtual_machines_get_operation_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_virtual_machines_get_operation_status_maximum_set_gen.py
index cd6af5474d53..ba5c03ac2c3a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_virtual_machines_get_operation_status_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_custom_virtual_machines_get_operation_status_maximum_set_gen.py
@@ -35,9 +35,10 @@ def main():
location="eastus",
name="00000000-0000-0000-0000-000000000102",
)
- print(response)
+ for item in response:
+ print(item)
-# x-ms-original-file: 2026-08-06-preview/BulkCreateCustom_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py
similarity index 80%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_delete_maximum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py
index a13cf74359f3..695753e99ae4 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_delete_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_delete_maximum_set_gen.py
+ python bulk_create_delete_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,13 +30,13 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- client.launch_bulk_instances_operation.begin_delete(
+ client.bulk_create.begin_delete(
resource_group_name="rgBulkactions",
- location="useast2euap",
- name="8a71b9df-efee-48a9-a381-4e6d60b4304f",
+ location="eastus",
+ name="709c2556-6a82-45ee-ba68-b935bb4e8ba0",
).result()
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_Delete_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_Delete_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py
similarity index 78%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_minimum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py
index 973bf3aecb9b..42bd579a0ca3 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_list_by_subscription_minimum_set_gen.py
+ python bulk_create_get_async_operation_status_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,13 +30,13 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- response = client.launch_bulk_instances_operation.list_by_subscription(
- location="useast2euap",
+ response = client.bulk_create.get_async_operation_status(
+ location="eastus",
+ async_operation_id="f1ac145b-9d8b-417d-8101-9962d03c0904",
)
- for item in response:
- print(item)
+ print(response)
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_ListBySubscription_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_GetAsyncOperationStatus_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py
similarity index 81%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_maximum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py
index 40fe6bd575e8..9efdd703bc1a 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_get_maximum_set_gen.py
+ python bulk_create_get_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,14 +30,14 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- response = client.launch_bulk_instances_operation.get(
+ response = client.bulk_create.get(
resource_group_name="rgBulkactions",
- location="useast2euap",
- name="495544ae-8710-4e8b-bca3-49a1dbb1623a",
+ location="eastus",
+ name="85c374f7-9857-4fd7-9267-81019219c362",
)
print(response)
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_Get_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py
similarity index 81%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_minimum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py
index 00826eec1c51..f1911f9e32ff 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_list_by_resource_group_minimum_set_gen.py
+ python bulk_create_list_by_resource_group_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,14 +30,14 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- response = client.launch_bulk_instances_operation.list_by_resource_group(
+ response = client.bulk_create.list_by_resource_group(
resource_group_name="rgBulkactions",
- location="useast2euap",
+ location="eastus",
)
for item in response:
print(item)
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_ListByResourceGroup_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_ListByResourceGroup_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_subscription_maximum_set_gen.py
similarity index 81%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_maximum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_subscription_maximum_set_gen.py
index 5bb1c9182296..ae6c89d96000 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_subscription_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_subscription_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_list_by_subscription_maximum_set_gen.py
+ python bulk_create_list_by_subscription_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,13 +30,13 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- response = client.launch_bulk_instances_operation.list_by_subscription(
- location="useast2euap",
+ response = client.bulk_create.list_by_subscription(
+ location="eastus",
)
for item in response:
print(item)
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_ListBySubscription_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_ListBySubscription_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py
similarity index 77%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_maximum_set_gen.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py
index 9ded058c98a0..80269be84951 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_by_resource_group_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py
@@ -15,7 +15,7 @@
pip install azure-identity
pip install azure-mgmt-compute-bulkaction
# USAGE
- python launch_bulk_instances_operation_list_by_resource_group_maximum_set_gen.py
+ python bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
@@ -30,14 +30,15 @@ def main():
subscription_id="SUBSCRIPTION_ID",
)
- response = client.launch_bulk_instances_operation.list_by_resource_group(
- resource_group_name="rgBulkactions",
- location="useast2euap",
+ response = client.bulk_create.virtual_machines_get_operation_status(
+ resource_group_name="local-test-rg",
+ location="eastus",
+ name="00000000-0000-0000-0000-000000000102",
)
for item in response:
print(item)
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_ListByResourceGroup_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/BulkCreate_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_create_or_update_maximum_set_gen.py
deleted file mode 100644
index c8a2e2c886f1..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_create_or_update_maximum_set_gen.py
+++ /dev/null
@@ -1,402 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python launch_bulk_instances_operation_create_or_update_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.launch_bulk_instances_operation.begin_create_or_update(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- name="4ad45156-c829-4cd4-aafa-ecabe28aa029",
- resource={
- "identity": {"type": "None", "userAssignedIdentities": {"key9643": {}}},
- "plan": {
- "name": "iemasqqkbixbewezyrhnpntjd",
- "product": "bguuzrknnuohugjhernflurpx",
- "promotionCode": "bxgonranwqoryfkhkfaumdgz",
- "publisher": "bvggylbvfstnscuupuithafvvgc",
- "version": "uyxetqmmzvqianqv",
- },
- "properties": {
- "capacity": 21,
- "capacityType": "VM",
- "computeProfile": {
- "computeApiVersion": "qqxldedyfmfmidkvtkixh",
- "extensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- "virtualMachineProfile": {
- "additionalCapabilities": {"hibernationEnabled": True, "ultraSSDEnabled": True},
- "applicationProfile": {
- "galleryApplications": [
- {
- "configurationReference": "nmfaspclhidtznslsps",
- "enableAutomaticUpgrade": True,
- "order": 8,
- "packageReferenceId": "afrfkjdrtzftmwramfyu",
- "tags": "cmygipvpkegyclvpznfu",
- "treatFailureAsDeploymentFailure": True,
- }
- ]
- },
- "capacityReservation": {"capacityReservationGroup": {"id": "lvzxxyypkeqlflftmfn"}},
- "diagnosticsProfile": {
- "bootDiagnostics": {"enabled": True, "storageUri": "pxuhtzehlfsqolbdleirgj"}
- },
- "extensionsTimeBudget": "dnyqmcijikzkltjav",
- "hardwareProfile": {
- "vmSize": "szrnjqwbruz",
- "vmSizeProperties": {"vCpusAvailable": 24, "vCpusPerCore": 6},
- },
- "licenseType": "ymwuemwuntbignqyvzqflvjpcdus",
- "networkProfile": {
- "networkApiVersion": "2020-11-01",
- "networkInterfaceConfigurations": [
- {
- "name": "qrkzoctmzjketostzabnra",
- "properties": {
- "auxiliaryMode": "None",
- "auxiliarySku": "None",
- "deleteOption": "Delete",
- "disableTcpStateTracking": True,
- "dnsSettings": {"dnsServers": ["tqcqopnanyyiavfwhqbkarxtrfqbww"]},
- "dscpConfiguration": {"id": "lvzxxyypkeqlflftmfn"},
- "enableAcceleratedNetworking": True,
- "enableFpga": True,
- "enableIPForwarding": True,
- "ipConfigurations": [
- {
- "name": "gqymuvgzzfmxqvdadx",
- "properties": {
- "applicationGatewayBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "applicationSecurityGroups": [{"id": "lvzxxyypkeqlflftmfn"}],
- "loadBalancerBackendAddressPools": [{"id": "lvzxxyypkeqlflftmfn"}],
- "primary": True,
- "privateIPAddressVersion": "IPv4",
- "publicIPAddressConfiguration": {
- "name": "cwxsqjijtwbsyqdwht",
- "properties": {
- "deleteOption": "Delete",
- "dnsSettings": {
- "domainNameLabel": "fampou",
- "domainNameLabelScope": "TenantReuse",
- },
- "idleTimeoutInMinutes": 17,
- "ipTags": [
- {
- "ipTagType": "hkjoxhqadudjartwooezaxl",
- "tag": "xywunkjglkmmwfpf",
- }
- ],
- "publicIPAddressVersion": "IPv4",
- "publicIPAllocationMethod": "Dynamic",
- "publicIPPrefix": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "sku": {"name": "Basic", "tier": "Regional"},
- "tags": {"key5442": "qhpwpnylvmdthxazhxamnbhdfpf"},
- },
- "subnet": {"id": "lvzxxyypkeqlflftmfn"},
- },
- }
- ],
- "networkSecurityGroup": {"id": "lvzxxyypkeqlflftmfn"},
- "primary": True,
- },
- "tags": {"key9436": "bjbadzbfvpszbsickv"},
- }
- ],
- "networkInterfaces": [
- {"id": "ymfxctb", "properties": {"deleteOption": "Delete", "primary": True}}
- ],
- },
- "osProfile": {
- "adminPassword": "",
- "adminUsername": "fxzbi",
- "allowExtensionOperations": True,
- "computerName": "bplxnfp",
- "customData": "hbdlirohsgnbrahscboc",
- "linuxConfiguration": {
- "disablePasswordAuthentication": True,
- "enableVMAgentPlatformUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "patchMode": "ImageDefault",
- },
- "provisionVMAgent": True,
- "ssh": {
- "publicKeys": [{"keyData": "wfhrknkehgesontscqyrewfmhgwt", "path": "mrdfxnfjazxog"}]
- },
- },
- "requireGuestProvisionSignal": True,
- "secrets": [
- {
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- "vaultCertificates": [
- {"certificateStore": "hyx", "certificateUrl": "crgbpfdvlohwkupdjp"}
- ],
- }
- ],
- "windowsConfiguration": {
- "additionalUnattendContent": [
- {
- "componentName": "Microsoft-Windows-Shell-Setup",
- "content": "rguazthnx",
- "passName": "OobeSystem",
- "settingName": "AutoLogon",
- }
- ],
- "enableAutomaticUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "enableHotpatching": True,
- "patchMode": "Manual",
- },
- "provisionVMAgent": True,
- "timeZone": "t",
- "winRM": {
- "listeners": [{"certificateUrl": "quhfapfpyeeocwvwtvuggoqqwt", "protocol": "Http"}]
- },
- },
- },
- "scheduledEventsPolicy": {
- "allInstancesDown": {"automaticallyApprove": True},
- "scheduledEventsAdditionalPublishingTargets": {
- "eventGridAndResourceGraph": {
- "enable": True,
- "scheduledEventsApiVersion": "lifncbftlkounuyfn",
- }
- },
- "userInitiatedReboot": {"automaticallyApprove": True},
- "userInitiatedRedeploy": {"automaticallyApprove": True},
- },
- "scheduledEventsProfile": {
- "osImageNotificationProfile": {
- "enable": True,
- "notBeforeTimeout": "ataqykjdakdvyyzdspaqnhd",
- },
- "terminateNotificationProfile": {"enable": True, "notBeforeTimeout": "owbwifqrlsdmm"},
- },
- "securityProfile": {
- "encryptionAtHost": True,
- "encryptionIdentity": {"userAssignedIdentityResourceId": "tnajlgbwcepmhytzb"},
- "proxyAgentSettings": {
- "addProxyAgentExtension": True,
- "enabled": True,
- "imds": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- "keyIncarnationId": 4,
- "mode": "Audit",
- "wireServer": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- },
- "securityType": "TrustedLaunch",
- "uefiSettings": {"secureBootEnabled": True, "vTpmEnabled": True},
- },
- "storageProfile": {
- "dataDisks": [
- {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "detachOption": "ForceDetach",
- "diskSizeGB": 19,
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "lun": 7,
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "nbthfzqsxyqvqnbgcljxbwyyoj",
- "sourceResource": {"id": "qnukyordmomtjjqabovlsxl"},
- "toBeDetached": True,
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- }
- ],
- "diskControllerType": "SCSI",
- "imageReference": {
- "communityGalleryImageId": "tsfpcq",
- "id": "cdbrkpdicibtlliq",
- "offer": "uvnqoxhkxefqwbsvjgbswqy",
- "publisher": "ojlplghybdamadvsrq",
- "sharedGalleryImageId": "fz",
- "sku": "hajdxhjmlkx",
- "version": "u",
- },
- "osDisk": {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "diffDiskSettings": {"option": "Local", "placement": "CacheDisk"},
- "diskSizeGB": 2,
- "encryptionSettings": {
- "diskEncryptionKey": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "enabled": True,
- "keyEncryptionKey": {
- "keyUrl": "mjjkvgpoohatw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- },
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "opogpznvctmraoajgizcyrfvpt",
- "osType": "Windows",
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- },
- },
- "userData": "nwjvxe",
- "vmExtensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- },
- },
- "priorityProfile": {
- "allocationStrategy": "LowestPrice",
- "evictionPolicy": "Delete",
- "maxPricePerVM": 23,
- "type": "Regular",
- },
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19},
- "vmAttributes": {
- "acceleratorCount": {"max": 0, "min": 0},
- "acceleratorManufacturers": ["AMD"],
- "acceleratorSupport": "Excluded",
- "acceleratorTypes": ["GPU"],
- "allowedVMSizes": [
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- "dwcsrlrzrzzqleqivkzwpczpf",
- ],
- "architectureTypes": ["ARM64"],
- "burstableSupport": "Excluded",
- "cpuManufacturers": ["Intel"],
- "dataDiskCount": {"max": 0, "min": 0},
- "excludedVMSizes": [
- "igehpnuaybwy",
- "igehpnuaybwy",
- "igehpnuaybwy",
- "igehpnuaybwy",
- "igehpnuaybwy",
- "igehpnuaybwy",
- "igehpnuaybwy",
- ],
- "hyperVGenerations": ["Gen1"],
- "localStorageDiskTypes": ["HDD"],
- "localStorageInGiB": {"max": 0, "min": 0},
- "localStorageSupport": "Excluded",
- "memoryInGiB": {"max": 0, "min": 0},
- "memoryInGiBPerVCpu": {"max": 0, "min": 0},
- "networkBandwidthInMbps": {"max": 0, "min": 0},
- "networkInterfaceCount": {"max": 0, "min": 0},
- "rdmaNetworkInterfaceCount": {"max": 0, "min": 0},
- "rdmaSupport": "Excluded",
- "vCpuCount": {"max": 0, "min": 0},
- "vmCategories": ["GeneralPurpose"],
- },
- "vmSizesProfile": [{"name": "frbnnpdkq", "rank": 7}],
- "zoneAllocationPolicy": {
- "distributionStrategy": "BestEffortSingleZone",
- "zonePreferences": [{"rank": 19, "zone": "ixksjnaxwelhfpsoyjfaezievquqv"}],
- },
- },
- "tags": {"key1909": "eaoznrkaglklvv"},
- "zones": ["hzqzrbvpgsudtesi"],
- },
- ).result()
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_CreateOrUpdate_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_operation_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_operation_status_maximum_set_gen.py
deleted file mode 100644
index 54e56883f475..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_get_operation_status_maximum_set_gen.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python launch_bulk_instances_operation_get_operation_status_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.launch_bulk_instances_operation.get_operation_status(
- location="useast2euap",
- async_operation_id="8596407e-8834-4a62-8d3c-9231af92d785",
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_GetOperationStatus_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_virtual_machines_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_virtual_machines_maximum_set_gen.py
deleted file mode 100644
index e1f5a33fbdc9..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/launch_bulk_instances_operation_list_virtual_machines_maximum_set_gen.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python launch_bulk_instances_operation_list_virtual_machines_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.launch_bulk_instances_operation.list_virtual_machines(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- name="b038ec94-0860-42a5-b149-f1ce5f144e15",
- )
- for item in response:
- print(item)
-
-
-# x-ms-original-file: 2026-08-06-preview/LaunchBulkInstancesOperation_ListVirtualMachines_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py
index 9d47ba017035..6ae3f7640dad 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_maximum_set_gen.py
index 22691f80db5a..810374aecd88 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_maximum_set_gen.py
@@ -34,16 +34,17 @@ def main():
response = client.occurrences.begin_cancel(
resource_group_name="rgcompute",
scheduled_action_name="myScheduledAction",
- occurrence_id="CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45",
body={
"resourceIds": [
- "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
]
},
).result()
print(response)
-# x-ms-original-file: 2026-08-06-preview/Occurrences_Cancel_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Occurrences_Cancel_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_maximum_set_gen.py
index 8d49eccc74d2..3350f26067b1 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_maximum_set_gen.py
@@ -34,17 +34,18 @@ def main():
response = client.occurrences.begin_delay(
resource_group_name="rgcompute",
scheduled_action_name="myScheduledAction",
- occurrence_id="CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45",
body={
- "delay": "2025-05-22T17:00:00.000-07:00",
+ "delay": "2026-08-05T17:00:00.000-07:00",
"resourceIds": [
- "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
],
},
).result()
print(response)
-# x-ms-original-file: 2026-08-06-preview/Occurrences_Delay_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Occurrences_Delay_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_maximum_set_gen.py
index 947a8b44eb15..fe5c37b91569 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/Occurrences_Get_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Occurrences_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_maximum_set_gen.py
index dc1f96638af2..11b87b9fee53 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_maximum_set_gen.py
index f35b0745fad6..6e4fc781ab62 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_maximum_set_gen.py
@@ -33,12 +33,12 @@ def main():
response = client.occurrences.list_resources(
resource_group_name="rgcompute",
scheduled_action_name="myScheduledAction",
- occurrence_id="CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45",
)
for item in response:
print(item)
-# x-ms-original-file: 2026-08-06-preview/Occurrences_ListResources_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Occurrences_ListResources_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen.py
index 3dbf0b09aa53..0cb5885ef936 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen.py
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/Operations_List_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Operations_List_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_minimum_set_gen.py
index 668b4ef1c9d4..21fcf6d9119e 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_minimum_set_gen.py
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/Operations_List_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/Operations_List_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_extension_list_by_vms_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_extension_list_by_vms_maximum_set_gen.py
index 9d15be5c99fa..73f53e4ebafc 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_extension_list_by_vms_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_extension_list_by_vms_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_operation_status_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_operation_status_get_maximum_set_gen.py
index 20ec979e65de..8bdf08980e30 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_operation_status_get_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_action_operation_status_get_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActionOperationStatus_Get_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActionOperationStatus_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_maximum_set_gen.py
index ddc399b8ab9a..15b5381132c2 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_maximum_set_gen.py
@@ -40,14 +40,20 @@ def main():
"notificationSettings": [
{"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}
],
- "resourceId": "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm",
- }
+ "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ },
+ {
+ "notificationSettings": [
+ {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}
+ ],
+ "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
+ },
]
},
).result()
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_maximum_set_gen.py
index 1af6b773b24a..9a5daa361ef3 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_maximum_set_gen.py
@@ -36,13 +36,14 @@ def main():
scheduled_action_name="myScheduledAction",
body={
"resourceIds": [
- "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
]
},
).result()
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_maximum_set_gen.py
index 4a4abd562141..a8b33b01b993 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_maximum_set_gen.py
@@ -37,21 +37,16 @@ def main():
"location": "eastus",
"properties": {
"actionType": "Start",
- "disabled": True,
- "endTime": "2025-04-17T00:23:55.286Z",
+ "disabled": False,
+ "endTime": "2026-04-17T00:23:55.281Z",
"notificationSettings": [
{"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}
],
"resourceType": "VirtualMachine",
"schedule": {
- "deadlineType": "Unknown",
- "executionParameters": {
- "optimizationPreference": "Cost",
- "retryPolicy": {"retryCount": 17, "retryWindowInMinutes": 29},
- },
- "requestedDaysOfTheMonth": [15],
- "requestedMonths": ["January"],
- "requestedWeekDays": ["Monday"],
+ "requestedDaysOfTheMonth": [1, 15],
+ "requestedMonths": ["All"],
+ "requestedWeekDays": ["All"],
"scheduledTime": "19:00:00",
"timeZone": "America/Los_Angeles",
},
@@ -63,6 +58,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_maximum_set_gen.py
index d0da74b4ebb4..6ae84b7a6fc0 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_maximum_set_gen.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_Delete_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Delete_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_maximum_set_gen.py
index 5e09d816c7f5..6cbacb3905df 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_maximum_set_gen.py
@@ -36,13 +36,14 @@ def main():
scheduled_action_name="myScheduledAction",
body={
"resources": [
- "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
]
},
).result()
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_maximum_set_gen.py
index e6a0af3f1651..8960ffc63580 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_maximum_set_gen.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_Disable_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Disable_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_maximum_set_gen.py
index 0ae4bd6bb020..73f88f45c607 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_maximum_set_gen.py
@@ -36,6 +36,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_Enable_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Enable_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_maximum_set_gen.py
index b825b977ba14..8f7eb6d98c10 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_Get_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Get_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_maximum_set_gen.py
index bc34a0c92a3f..281976847588 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_maximum_set_gen.py
index ff4d751e020d..c621bedd5b7b 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_maximum_set_gen.py
@@ -35,6 +35,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_maximum_set_gen.py
index 2539841887cf..712d98f30d89 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(item)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_maximum_set_gen.py
index 057379a1021e..b262746af380 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_maximum_set_gen.py
@@ -40,14 +40,20 @@ def main():
"notificationSettings": [
{"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}
],
- "resourceId": "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm",
- }
+ "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm",
+ },
+ {
+ "notificationSettings": [
+ {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}
+ ],
+ "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2",
+ },
]
},
)
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py
index 1fa639ac7e84..8d3a29fba161 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py
@@ -37,6 +37,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_maximum_set_gen.py
index 0c2eeb4c9bf0..54d1f06edcf8 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_maximum_set_gen.py
@@ -43,11 +43,8 @@ def main():
],
"resourceType": "VirtualMachine",
"schedule": {
- "deadlineType": "Unknown",
- "executionParameters": {
- "optimizationPreference": "Cost",
- "retryPolicy": {"retryCount": 17, "retryWindowInMinutes": 29},
- },
+ "deadlineType": "InitiateAt",
+ "executionParameters": {"retryPolicy": {"retryCount": 17, "retryWindowInMinutes": 29}},
"requestedDaysOfTheMonth": [15],
"requestedMonths": ["January"],
"requestedWeekDays": ["Monday"],
@@ -61,6 +58,6 @@ def main():
).result()
-# x-ms-original-file: 2026-08-06-preview/ScheduledActions_Update_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Update_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_maximum_set_gen.py
deleted file mode 100644
index 874452219785..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_maximum_set_gen.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_acknowledge_operation_errors(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- body={"operationIds": ["af449548-8e1a-4079-874e-2caa4ff783cc"]},
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_minimum_set_gen.py
deleted file mode 100644
index 282b0f74ed6b..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_minimum_set_gen.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_minimum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_acknowledge_operation_errors(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- body={"operationIds": ["af449548-8e1a-4079-874e-2caa4ff783cc"]},
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MinimumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py
index 0cec9e5955d8..37326e161b52 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkCancel_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkCancel_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py
index 66a3efb711c5..fe46cecdd1dc 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkCancel_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkCancel_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_maximum_set_gen.py
deleted file mode 100644
index 455bbd5fb78a..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_maximum_set_gen.py
+++ /dev/null
@@ -1,633 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_create_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_create_operation(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- request_body={
- "executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
- },
- "resourceConfigParameters": {
- "baseProfile": {
- "computeApiVersion": "axcvphjtsdjzcwqczcglmq",
- "extendedLocation": {"name": "gbnxzymbdkxhwjpqkur", "type": "EdgeZone"},
- "identity": {"type": "SystemAssigned", "userAssignedIdentities": {"key7": {}}},
- "name": "dbozdvegpdvqxltqipvmqsfgunpe",
- "placement": {
- "excludeZones": ["pvvwrhuhdpvbacwmesblpgwzk"],
- "includeZones": ["inagtbtedobdea"],
- "zonePlacementPolicy": "Any",
- },
- "plan": {
- "name": "iemasqqkbixbewezyrhnpntjd",
- "product": "bguuzrknnuohugjhernflurpx",
- "promotionCode": "bxgonranwqoryfkhkfaumdgz",
- "publisher": "bvggylbvfstnscuupuithafvvgc",
- "version": "uyxetqmmzvqianqv",
- },
- "properties": {
- "additionalCapabilities": {"hibernationEnabled": True, "ultraSSDEnabled": True},
- "applicationProfile": {
- "galleryApplications": [
- {
- "configurationReference": "nmfaspclhidtznslsps",
- "enableAutomaticUpgrade": True,
- "order": 8,
- "packageReferenceId": "afrfkjdrtzftmwramfyu",
- "tags": "cmygipvpkegyclvpznfu",
- "treatFailureAsDeploymentFailure": True,
- }
- ]
- },
- "capacityReservation": {"capacityReservationGroup": {"id": "lvzxxyypkeqlflftmfn"}},
- "diagnosticsProfile": {
- "bootDiagnostics": {"enabled": True, "storageUri": "pxuhtzehlfsqolbdleirgj"}
- },
- "extensionsTimeBudget": "dnyqmcijikzkltjav",
- "hardwareProfile": {
- "vmSize": "szrnjqwbruz",
- "vmSizeProperties": {"vCpusAvailable": 24, "vCpusPerCore": 6},
- },
- "licenseType": "ymwuemwuntbignqyvzqflvjpcdus",
- "networkProfile": {
- "networkApiVersion": "2020-11-01",
- "networkInterfaceConfigurations": [
- {
- "name": "qrkzoctmzjketostzabnra",
- "properties": {
- "auxiliaryMode": "None",
- "auxiliarySku": "None",
- "deleteOption": "Delete",
- "disableTcpStateTracking": True,
- "dnsSettings": {"dnsServers": ["tqcqopnanyyiavfwhqbkarxtrfqbww"]},
- "dscpConfiguration": {"id": "lvzxxyypkeqlflftmfn"},
- "enableAcceleratedNetworking": True,
- "enableFpga": True,
- "enableIPForwarding": True,
- "ipConfigurations": [
- {
- "name": "gqymuvgzzfmxqvdadx",
- "properties": {
- "applicationGatewayBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "applicationSecurityGroups": [{"id": "lvzxxyypkeqlflftmfn"}],
- "loadBalancerBackendAddressPools": [{"id": "lvzxxyypkeqlflftmfn"}],
- "primary": True,
- "privateIPAddressVersion": "IPv4",
- "publicIPAddressConfiguration": {
- "name": "cwxsqjijtwbsyqdwht",
- "properties": {
- "deleteOption": "Delete",
- "dnsSettings": {
- "domainNameLabel": "fampou",
- "domainNameLabelScope": "TenantReuse",
- },
- "idleTimeoutInMinutes": 17,
- "ipTags": [
- {
- "ipTagType": "hkjoxhqadudjartwooezaxl",
- "tag": "xywunkjglkmmwfpf",
- }
- ],
- "publicIPAddressVersion": "IPv4",
- "publicIPAllocationMethod": "Dynamic",
- "publicIPPrefix": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "sku": {"name": "Basic", "tier": "Regional"},
- "tags": {"key5442": "qhpwpnylvmdthxazhxamnbhdfpf"},
- },
- "subnet": {"id": "lvzxxyypkeqlflftmfn"},
- },
- }
- ],
- "networkSecurityGroup": {"id": "lvzxxyypkeqlflftmfn"},
- "primary": True,
- },
- "tags": {"key9436": "bjbadzbfvpszbsickv"},
- }
- ],
- "networkInterfaces": [
- {"id": "ymfxctb", "properties": {"deleteOption": "Delete", "primary": True}}
- ],
- },
- "osProfile": {
- "adminPassword": "",
- "adminUsername": "fxzbi",
- "allowExtensionOperations": True,
- "computerName": "bplxnfp",
- "customData": "hbdlirohsgnbrahscboc",
- "linuxConfiguration": {
- "disablePasswordAuthentication": True,
- "enableVMAgentPlatformUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "patchMode": "ImageDefault",
- },
- "provisionVMAgent": True,
- "ssh": {
- "publicKeys": [{"keyData": "wfhrknkehgesontscqyrewfmhgwt", "path": "mrdfxnfjazxog"}]
- },
- },
- "requireGuestProvisionSignal": True,
- "secrets": [
- {
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- "vaultCertificates": [
- {"certificateStore": "hyx", "certificateUrl": "crgbpfdvlohwkupdjp"}
- ],
- }
- ],
- "windowsConfiguration": {
- "additionalUnattendContent": [
- {
- "componentName": "Microsoft-Windows-Shell-Setup",
- "content": "rguazthnx",
- "passName": "OobeSystem",
- "settingName": "AutoLogon",
- }
- ],
- "enableAutomaticUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "enableHotpatching": True,
- "patchMode": "Manual",
- },
- "provisionVMAgent": True,
- "timeZone": "t",
- "winRM": {
- "listeners": [{"certificateUrl": "quhfapfpyeeocwvwtvuggoqqwt", "protocol": "Http"}]
- },
- },
- },
- "scheduledEventsPolicy": {
- "allInstancesDown": {"automaticallyApprove": True},
- "scheduledEventsAdditionalPublishingTargets": {
- "eventGridAndResourceGraph": {
- "enable": True,
- "scheduledEventsApiVersion": "lifncbftlkounuyfn",
- }
- },
- "userInitiatedReboot": {"automaticallyApprove": True},
- "userInitiatedRedeploy": {"automaticallyApprove": True},
- },
- "scheduledEventsProfile": {
- "osImageNotificationProfile": {
- "enable": True,
- "notBeforeTimeout": "ataqykjdakdvyyzdspaqnhd",
- },
- "terminateNotificationProfile": {"enable": True, "notBeforeTimeout": "owbwifqrlsdmm"},
- },
- "securityProfile": {
- "encryptionAtHost": True,
- "encryptionIdentity": {"userAssignedIdentityResourceId": "tnajlgbwcepmhytzb"},
- "proxyAgentSettings": {
- "addProxyAgentExtension": True,
- "enabled": True,
- "imds": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- "keyIncarnationId": 4,
- "mode": "Audit",
- "wireServer": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- },
- "securityType": "TrustedLaunch",
- "uefiSettings": {"secureBootEnabled": True, "vTpmEnabled": True},
- },
- "storageProfile": {
- "dataDisks": [
- {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "detachOption": "ForceDetach",
- "diskSizeGB": 19,
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "lun": 7,
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "nbthfzqsxyqvqnbgcljxbwyyoj",
- "sourceResource": {"id": "qnukyordmomtjjqabovlsxl"},
- "toBeDetached": True,
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- }
- ],
- "diskControllerType": "SCSI",
- "imageReference": {
- "communityGalleryImageId": "tsfpcq",
- "id": "cdbrkpdicibtlliq",
- "offer": "uvnqoxhkxefqwbsvjgbswqy",
- "publisher": "ojlplghybdamadvsrq",
- "sharedGalleryImageId": "fz",
- "sku": "hajdxhjmlkx",
- "version": "u",
- },
- "osDisk": {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "diffDiskSettings": {"option": "Local", "placement": "CacheDisk"},
- "diskSizeGB": 2,
- "encryptionSettings": {
- "diskEncryptionKey": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "enabled": True,
- "keyEncryptionKey": {
- "keyUrl": "mjjkvgpoohatw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- },
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "opogpznvctmraoajgizcyrfvpt",
- "osType": "Windows",
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- },
- },
- "userData": "nwjvxe",
- "vmExtensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- },
- "tags": {"key6824": "cefndldgkx"},
- "zones": ["wczj"],
- },
- "resourceCount": 23,
- "resourceOverrides": [
- {
- "computeApiVersion": "axcvphjtsdjzcwqczcglmq",
- "extendedLocation": {"name": "gbnxzymbdkxhwjpqkur", "type": "EdgeZone"},
- "identity": {"type": "SystemAssigned", "userAssignedIdentities": {"key7": {}}},
- "name": "dbozdvegpdvqxltqipvmqsfgunpe",
- "placement": {
- "excludeZones": ["pvvwrhuhdpvbacwmesblpgwzk"],
- "includeZones": ["inagtbtedobdea"],
- "zonePlacementPolicy": "Any",
- },
- "plan": {
- "name": "iemasqqkbixbewezyrhnpntjd",
- "product": "bguuzrknnuohugjhernflurpx",
- "promotionCode": "bxgonranwqoryfkhkfaumdgz",
- "publisher": "bvggylbvfstnscuupuithafvvgc",
- "version": "uyxetqmmzvqianqv",
- },
- "properties": {
- "additionalCapabilities": {"hibernationEnabled": True, "ultraSSDEnabled": True},
- "applicationProfile": {
- "galleryApplications": [
- {
- "configurationReference": "nmfaspclhidtznslsps",
- "enableAutomaticUpgrade": True,
- "order": 8,
- "packageReferenceId": "afrfkjdrtzftmwramfyu",
- "tags": "cmygipvpkegyclvpznfu",
- "treatFailureAsDeploymentFailure": True,
- }
- ]
- },
- "capacityReservation": {"capacityReservationGroup": {"id": "lvzxxyypkeqlflftmfn"}},
- "diagnosticsProfile": {
- "bootDiagnostics": {"enabled": True, "storageUri": "pxuhtzehlfsqolbdleirgj"}
- },
- "extensionsTimeBudget": "dnyqmcijikzkltjav",
- "hardwareProfile": {
- "vmSize": "szrnjqwbruz",
- "vmSizeProperties": {"vCpusAvailable": 24, "vCpusPerCore": 6},
- },
- "licenseType": "ymwuemwuntbignqyvzqflvjpcdus",
- "networkProfile": {
- "networkApiVersion": "2020-11-01",
- "networkInterfaceConfigurations": [
- {
- "name": "qrkzoctmzjketostzabnra",
- "properties": {
- "auxiliaryMode": "None",
- "auxiliarySku": "None",
- "deleteOption": "Delete",
- "disableTcpStateTracking": True,
- "dnsSettings": {"dnsServers": ["tqcqopnanyyiavfwhqbkarxtrfqbww"]},
- "dscpConfiguration": {"id": "lvzxxyypkeqlflftmfn"},
- "enableAcceleratedNetworking": True,
- "enableFpga": True,
- "enableIPForwarding": True,
- "ipConfigurations": [
- {
- "name": "gqymuvgzzfmxqvdadx",
- "properties": {
- "applicationGatewayBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "applicationSecurityGroups": [{"id": "lvzxxyypkeqlflftmfn"}],
- "loadBalancerBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "primary": True,
- "privateIPAddressVersion": "IPv4",
- "publicIPAddressConfiguration": {
- "name": "cwxsqjijtwbsyqdwht",
- "properties": {
- "deleteOption": "Delete",
- "dnsSettings": {
- "domainNameLabel": "fampou",
- "domainNameLabelScope": "TenantReuse",
- },
- "idleTimeoutInMinutes": 17,
- "ipTags": [
- {
- "ipTagType": "hkjoxhqadudjartwooezaxl",
- "tag": "xywunkjglkmmwfpf",
- }
- ],
- "publicIPAddressVersion": "IPv4",
- "publicIPAllocationMethod": "Dynamic",
- "publicIPPrefix": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "sku": {"name": "Basic", "tier": "Regional"},
- "tags": {"key5442": "qhpwpnylvmdthxazhxamnbhdfpf"},
- },
- "subnet": {"id": "lvzxxyypkeqlflftmfn"},
- },
- }
- ],
- "networkSecurityGroup": {"id": "lvzxxyypkeqlflftmfn"},
- "primary": True,
- },
- "tags": {"key9436": "bjbadzbfvpszbsickv"},
- }
- ],
- "networkInterfaces": [
- {"id": "ymfxctb", "properties": {"deleteOption": "Delete", "primary": True}}
- ],
- },
- "osProfile": {
- "adminPassword": "",
- "adminUsername": "fxzbi",
- "allowExtensionOperations": True,
- "computerName": "bplxnfp",
- "customData": "hbdlirohsgnbrahscboc",
- "linuxConfiguration": {
- "disablePasswordAuthentication": True,
- "enableVMAgentPlatformUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "patchMode": "ImageDefault",
- },
- "provisionVMAgent": True,
- "ssh": {
- "publicKeys": [
- {"keyData": "wfhrknkehgesontscqyrewfmhgwt", "path": "mrdfxnfjazxog"}
- ]
- },
- },
- "requireGuestProvisionSignal": True,
- "secrets": [
- {
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- "vaultCertificates": [
- {"certificateStore": "hyx", "certificateUrl": "crgbpfdvlohwkupdjp"}
- ],
- }
- ],
- "windowsConfiguration": {
- "additionalUnattendContent": [
- {
- "componentName": "Microsoft-Windows-Shell-Setup",
- "content": "rguazthnx",
- "passName": "OobeSystem",
- "settingName": "AutoLogon",
- }
- ],
- "enableAutomaticUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "enableHotpatching": True,
- "patchMode": "Manual",
- },
- "provisionVMAgent": True,
- "timeZone": "t",
- "winRM": {
- "listeners": [
- {"certificateUrl": "quhfapfpyeeocwvwtvuggoqqwt", "protocol": "Http"}
- ]
- },
- },
- },
- "scheduledEventsPolicy": {
- "allInstancesDown": {"automaticallyApprove": True},
- "scheduledEventsAdditionalPublishingTargets": {
- "eventGridAndResourceGraph": {
- "enable": True,
- "scheduledEventsApiVersion": "lifncbftlkounuyfn",
- }
- },
- "userInitiatedReboot": {"automaticallyApprove": True},
- "userInitiatedRedeploy": {"automaticallyApprove": True},
- },
- "scheduledEventsProfile": {
- "osImageNotificationProfile": {
- "enable": True,
- "notBeforeTimeout": "ataqykjdakdvyyzdspaqnhd",
- },
- "terminateNotificationProfile": {"enable": True, "notBeforeTimeout": "owbwifqrlsdmm"},
- },
- "securityProfile": {
- "encryptionAtHost": True,
- "encryptionIdentity": {"userAssignedIdentityResourceId": "tnajlgbwcepmhytzb"},
- "proxyAgentSettings": {
- "addProxyAgentExtension": True,
- "enabled": True,
- "imds": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- "keyIncarnationId": 4,
- "mode": "Audit",
- "wireServer": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- },
- "securityType": "TrustedLaunch",
- "uefiSettings": {"secureBootEnabled": True, "vTpmEnabled": True},
- },
- "storageProfile": {
- "dataDisks": [
- {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "detachOption": "ForceDetach",
- "diskSizeGB": 19,
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "lun": 7,
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "nbthfzqsxyqvqnbgcljxbwyyoj",
- "sourceResource": {"id": "qnukyordmomtjjqabovlsxl"},
- "toBeDetached": True,
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- }
- ],
- "diskControllerType": "SCSI",
- "imageReference": {
- "communityGalleryImageId": "tsfpcq",
- "id": "cdbrkpdicibtlliq",
- "offer": "uvnqoxhkxefqwbsvjgbswqy",
- "publisher": "ojlplghybdamadvsrq",
- "sharedGalleryImageId": "fz",
- "sku": "hajdxhjmlkx",
- "version": "u",
- },
- "osDisk": {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "diffDiskSettings": {"option": "Local", "placement": "CacheDisk"},
- "diskSizeGB": 2,
- "encryptionSettings": {
- "diskEncryptionKey": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "enabled": True,
- "keyEncryptionKey": {
- "keyUrl": "mjjkvgpoohatw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- },
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "opogpznvctmraoajgizcyrfvpt",
- "osType": "Windows",
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- },
- },
- "userData": "nwjvxe",
- "vmExtensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- },
- "tags": {"key6824": "cefndldgkx"},
- "zones": ["wczj"],
- }
- ],
- "resourcePrefix": "flivkboavfhjuiucwdjof",
- },
- },
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkCreate_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_minimum_set_gen.py
deleted file mode 100644
index 4f0ca886f798..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_create_minimum_set_gen.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_create_minimum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_create_operation(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- request_body={"executionParameters": {}, "resourceConfigParameters": {"resourceCount": 23}},
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkCreate_MinimumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py
index cfa279d8731f..4e81aa9be144 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py
@@ -36,7 +36,7 @@ def main():
location="useast2euap",
request_body={
"executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
+ "retryPolicy": {"onFailureAction": "Deallocate", "retryCount": 2, "retryWindowInMinutes": 19}
},
"resources": {
"ids": [
@@ -48,6 +48,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py
index a5cf6eeb6a7e..3b54a278691e 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py
@@ -46,6 +46,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py
index 3af35b98497d..a0b277027b56 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py
@@ -36,7 +36,7 @@ def main():
location="useast2euap",
request_body={
"executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
+ "retryPolicy": {"onFailureAction": "Delete", "retryCount": 2, "retryWindowInMinutes": 19}
},
"forceDeletion": True,
"resources": {
@@ -49,6 +49,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkDelete_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDelete_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py
index 71f2c232cddc..9476b3ba4ae9 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py
@@ -46,6 +46,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkDelete_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDelete_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py
index c9dd680fefc9..9d8d0b6d510f 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py
index bd593774762b..5f5074354cf5 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py
@@ -38,6 +38,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_maximum_set_gen.py
index 75ae9fbe7c94..f0f90495953c 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_maximum_set_gen.py
@@ -36,7 +36,7 @@ def main():
location="useast2euap",
request_body={
"executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
+ "retryPolicy": {"onFailureAction": "Hibernate", "retryCount": 2, "retryWindowInMinutes": 19}
},
"resourcesWithContext": {
"resources": [
@@ -51,6 +51,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkHibernate_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkHibernate_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py
index cd8ab697d855..9b5a4f520987 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py
@@ -46,6 +46,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkHibernate_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkHibernate_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_maximum_set_gen.py
deleted file mode 100644
index 96bf87248267..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_maximum_set_gen.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_list_operation_errors_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_list_operation_errors(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- )
- for item in response:
- print(item)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_minimum_set_gen.py
deleted file mode 100644
index dfcef8473e71..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_minimum_set_gen.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_list_operation_errors_minimum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_list_operation_errors(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- )
- for item in response:
- print(item)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_MinimumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py
index 373c8b81cdec..bcf04cc4fc06 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py
@@ -35,9 +35,7 @@ def main():
resource_group_name="rgBulkactions",
location="useast2euap",
request_body={
- "executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
- },
+ "executionParameters": {"retryPolicy": {"retryCount": 2, "retryWindowInMinutes": 19}},
"reimageParameters": {
"baseProfile": {
"exactVersion": "zjmkrnqjmzs",
@@ -68,6 +66,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkReimage_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkReimage_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py
index dfce58731d79..85ac2ea51686 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py
@@ -41,7 +41,7 @@ def main():
"desiredLocations": ["eastus", "westus2"],
"desiredSizes": ["Standard_D2s_v5", "Standard_D4s_v5"],
},
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19},
+ "retryPolicy": {"onFailureAction": "Start", "retryCount": 2, "retryWindowInMinutes": 19},
},
"resourcesWithContext": {
"resources": [
@@ -56,6 +56,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkStart_MaximumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkStart_MaximumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py
index a7cf935f226c..40fbbe4fd1d7 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py
@@ -46,6 +46,6 @@ def main():
print(response)
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkStart_MinimumSet_Gen.json
+# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkStart_MinimumSet_Gen.json
if __name__ == "__main__":
main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_maximum_set_gen.py
deleted file mode 100644
index 6f5a8f9df64f..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_maximum_set_gen.py
+++ /dev/null
@@ -1,648 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_vdi_flex_create_maximum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_vdi_flex_create_operation(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- request_body={
- "executionParameters": {
- "retryPolicy": {"onFailureAction": "Unknown", "retryCount": 2, "retryWindowInMinutes": 19}
- },
- "resourceConfigParameters": {
- "baseProfile": {
- "computeApiVersion": "axcvphjtsdjzcwqczcglmq",
- "extendedLocation": {"name": "gbnxzymbdkxhwjpqkur", "type": "EdgeZone"},
- "identity": {"type": "SystemAssigned", "userAssignedIdentities": {"key7": {}}},
- "name": "dbozdvegpdvqxltqipvmqsfgunpe",
- "placement": {
- "excludeZones": ["pvvwrhuhdpvbacwmesblpgwzk"],
- "includeZones": ["inagtbtedobdea"],
- "zonePlacementPolicy": "Any",
- },
- "plan": {
- "name": "iemasqqkbixbewezyrhnpntjd",
- "product": "bguuzrknnuohugjhernflurpx",
- "promotionCode": "bxgonranwqoryfkhkfaumdgz",
- "publisher": "bvggylbvfstnscuupuithafvvgc",
- "version": "uyxetqmmzvqianqv",
- },
- "properties": {
- "additionalCapabilities": {"hibernationEnabled": True, "ultraSSDEnabled": True},
- "applicationProfile": {
- "galleryApplications": [
- {
- "configurationReference": "nmfaspclhidtznslsps",
- "enableAutomaticUpgrade": True,
- "order": 8,
- "packageReferenceId": "afrfkjdrtzftmwramfyu",
- "tags": "cmygipvpkegyclvpznfu",
- "treatFailureAsDeploymentFailure": True,
- }
- ]
- },
- "capacityReservation": {"capacityReservationGroup": {"id": "lvzxxyypkeqlflftmfn"}},
- "diagnosticsProfile": {
- "bootDiagnostics": {"enabled": True, "storageUri": "pxuhtzehlfsqolbdleirgj"}
- },
- "extensionsTimeBudget": "dnyqmcijikzkltjav",
- "hardwareProfile": {
- "vmSize": "szrnjqwbruz",
- "vmSizeProperties": {"vCpusAvailable": 24, "vCpusPerCore": 6},
- },
- "licenseType": "ymwuemwuntbignqyvzqflvjpcdus",
- "networkProfile": {
- "networkApiVersion": "2020-11-01",
- "networkInterfaceConfigurations": [
- {
- "name": "qrkzoctmzjketostzabnra",
- "properties": {
- "auxiliaryMode": "None",
- "auxiliarySku": "None",
- "deleteOption": "Delete",
- "disableTcpStateTracking": True,
- "dnsSettings": {"dnsServers": ["tqcqopnanyyiavfwhqbkarxtrfqbww"]},
- "dscpConfiguration": {"id": "lvzxxyypkeqlflftmfn"},
- "enableAcceleratedNetworking": True,
- "enableFpga": True,
- "enableIPForwarding": True,
- "ipConfigurations": [
- {
- "name": "gqymuvgzzfmxqvdadx",
- "properties": {
- "applicationGatewayBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "applicationSecurityGroups": [{"id": "lvzxxyypkeqlflftmfn"}],
- "loadBalancerBackendAddressPools": [{"id": "lvzxxyypkeqlflftmfn"}],
- "primary": True,
- "privateIPAddressVersion": "IPv4",
- "publicIPAddressConfiguration": {
- "name": "cwxsqjijtwbsyqdwht",
- "properties": {
- "deleteOption": "Delete",
- "dnsSettings": {
- "domainNameLabel": "fampou",
- "domainNameLabelScope": "TenantReuse",
- },
- "idleTimeoutInMinutes": 17,
- "ipTags": [
- {
- "ipTagType": "hkjoxhqadudjartwooezaxl",
- "tag": "xywunkjglkmmwfpf",
- }
- ],
- "publicIPAddressVersion": "IPv4",
- "publicIPAllocationMethod": "Dynamic",
- "publicIPPrefix": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "sku": {"name": "Basic", "tier": "Regional"},
- "tags": {"key5442": "qhpwpnylvmdthxazhxamnbhdfpf"},
- },
- "subnet": {"id": "lvzxxyypkeqlflftmfn"},
- },
- }
- ],
- "networkSecurityGroup": {"id": "lvzxxyypkeqlflftmfn"},
- "primary": True,
- },
- "tags": {"key9436": "bjbadzbfvpszbsickv"},
- }
- ],
- "networkInterfaces": [
- {"id": "ymfxctb", "properties": {"deleteOption": "Delete", "primary": True}}
- ],
- },
- "osProfile": {
- "adminPassword": "",
- "adminUsername": "fxzbi",
- "allowExtensionOperations": True,
- "computerName": "bplxnfp",
- "customData": "hbdlirohsgnbrahscboc",
- "linuxConfiguration": {
- "disablePasswordAuthentication": True,
- "enableVMAgentPlatformUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "patchMode": "ImageDefault",
- },
- "provisionVMAgent": True,
- "ssh": {
- "publicKeys": [{"keyData": "wfhrknkehgesontscqyrewfmhgwt", "path": "mrdfxnfjazxog"}]
- },
- },
- "requireGuestProvisionSignal": True,
- "secrets": [
- {
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- "vaultCertificates": [
- {"certificateStore": "hyx", "certificateUrl": "crgbpfdvlohwkupdjp"}
- ],
- }
- ],
- "windowsConfiguration": {
- "additionalUnattendContent": [
- {
- "componentName": "Microsoft-Windows-Shell-Setup",
- "content": "rguazthnx",
- "passName": "OobeSystem",
- "settingName": "AutoLogon",
- }
- ],
- "enableAutomaticUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "enableHotpatching": True,
- "patchMode": "Manual",
- },
- "provisionVMAgent": True,
- "timeZone": "t",
- "winRM": {
- "listeners": [{"certificateUrl": "quhfapfpyeeocwvwtvuggoqqwt", "protocol": "Http"}]
- },
- },
- },
- "scheduledEventsPolicy": {
- "allInstancesDown": {"automaticallyApprove": True},
- "scheduledEventsAdditionalPublishingTargets": {
- "eventGridAndResourceGraph": {
- "enable": True,
- "scheduledEventsApiVersion": "lifncbftlkounuyfn",
- }
- },
- "userInitiatedReboot": {"automaticallyApprove": True},
- "userInitiatedRedeploy": {"automaticallyApprove": True},
- },
- "scheduledEventsProfile": {
- "osImageNotificationProfile": {
- "enable": True,
- "notBeforeTimeout": "ataqykjdakdvyyzdspaqnhd",
- },
- "terminateNotificationProfile": {"enable": True, "notBeforeTimeout": "owbwifqrlsdmm"},
- },
- "securityProfile": {
- "encryptionAtHost": True,
- "encryptionIdentity": {"userAssignedIdentityResourceId": "tnajlgbwcepmhytzb"},
- "proxyAgentSettings": {
- "addProxyAgentExtension": True,
- "enabled": True,
- "imds": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- "keyIncarnationId": 4,
- "mode": "Audit",
- "wireServer": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- },
- "securityType": "TrustedLaunch",
- "uefiSettings": {"secureBootEnabled": True, "vTpmEnabled": True},
- },
- "storageProfile": {
- "dataDisks": [
- {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "detachOption": "ForceDetach",
- "diskSizeGB": 19,
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "lun": 7,
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "nbthfzqsxyqvqnbgcljxbwyyoj",
- "sourceResource": {"id": "qnukyordmomtjjqabovlsxl"},
- "toBeDetached": True,
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- }
- ],
- "diskControllerType": "SCSI",
- "imageReference": {
- "communityGalleryImageId": "tsfpcq",
- "id": "cdbrkpdicibtlliq",
- "offer": "uvnqoxhkxefqwbsvjgbswqy",
- "publisher": "ojlplghybdamadvsrq",
- "sharedGalleryImageId": "fz",
- "sku": "hajdxhjmlkx",
- "version": "u",
- },
- "osDisk": {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "diffDiskSettings": {"option": "Local", "placement": "CacheDisk"},
- "diskSizeGB": 2,
- "encryptionSettings": {
- "diskEncryptionKey": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "enabled": True,
- "keyEncryptionKey": {
- "keyUrl": "mjjkvgpoohatw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- },
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "opogpznvctmraoajgizcyrfvpt",
- "osType": "Windows",
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- },
- },
- "userData": "nwjvxe",
- "vmExtensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- },
- "tags": {"key6824": "cefndldgkx"},
- "zones": ["wczj"],
- },
- "flexProperties": {
- "minCapacity": 5,
- "osType": "Windows",
- "priorityProfile": {
- "allocationStrategy": "LowestPrice",
- "evictionPolicy": "Delete",
- "maxPricePerVM": 23,
- "type": "Regular",
- },
- "vmSizeProfiles": [{"name": "frbnnpdkq", "rank": 7}],
- "zoneAllocationPolicy": {
- "distributionStrategy": "BestEffortSingleZone",
- "zonePreferences": [{"rank": 19, "zone": "ixksjnaxwelhfpsoyjfaezievquqv"}],
- },
- },
- "resourceCount": 10,
- "resourceOverrides": [
- {
- "computeApiVersion": "axcvphjtsdjzcwqczcglmq",
- "extendedLocation": {"name": "gbnxzymbdkxhwjpqkur", "type": "EdgeZone"},
- "identity": {"type": "SystemAssigned", "userAssignedIdentities": {"key7": {}}},
- "name": "dbozdvegpdvqxltqipvmqsfgunpe",
- "placement": {
- "excludeZones": ["pvvwrhuhdpvbacwmesblpgwzk"],
- "includeZones": ["inagtbtedobdea"],
- "zonePlacementPolicy": "Any",
- },
- "plan": {
- "name": "iemasqqkbixbewezyrhnpntjd",
- "product": "bguuzrknnuohugjhernflurpx",
- "promotionCode": "bxgonranwqoryfkhkfaumdgz",
- "publisher": "bvggylbvfstnscuupuithafvvgc",
- "version": "uyxetqmmzvqianqv",
- },
- "properties": {
- "additionalCapabilities": {"hibernationEnabled": True, "ultraSSDEnabled": True},
- "applicationProfile": {
- "galleryApplications": [
- {
- "configurationReference": "nmfaspclhidtznslsps",
- "enableAutomaticUpgrade": True,
- "order": 8,
- "packageReferenceId": "afrfkjdrtzftmwramfyu",
- "tags": "cmygipvpkegyclvpznfu",
- "treatFailureAsDeploymentFailure": True,
- }
- ]
- },
- "capacityReservation": {"capacityReservationGroup": {"id": "lvzxxyypkeqlflftmfn"}},
- "diagnosticsProfile": {
- "bootDiagnostics": {"enabled": True, "storageUri": "pxuhtzehlfsqolbdleirgj"}
- },
- "extensionsTimeBudget": "dnyqmcijikzkltjav",
- "hardwareProfile": {
- "vmSize": "szrnjqwbruz",
- "vmSizeProperties": {"vCpusAvailable": 24, "vCpusPerCore": 6},
- },
- "licenseType": "ymwuemwuntbignqyvzqflvjpcdus",
- "networkProfile": {
- "networkApiVersion": "2020-11-01",
- "networkInterfaceConfigurations": [
- {
- "name": "qrkzoctmzjketostzabnra",
- "properties": {
- "auxiliaryMode": "None",
- "auxiliarySku": "None",
- "deleteOption": "Delete",
- "disableTcpStateTracking": True,
- "dnsSettings": {"dnsServers": ["tqcqopnanyyiavfwhqbkarxtrfqbww"]},
- "dscpConfiguration": {"id": "lvzxxyypkeqlflftmfn"},
- "enableAcceleratedNetworking": True,
- "enableFpga": True,
- "enableIPForwarding": True,
- "ipConfigurations": [
- {
- "name": "gqymuvgzzfmxqvdadx",
- "properties": {
- "applicationGatewayBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "applicationSecurityGroups": [{"id": "lvzxxyypkeqlflftmfn"}],
- "loadBalancerBackendAddressPools": [
- {"id": "lvzxxyypkeqlflftmfn"}
- ],
- "primary": True,
- "privateIPAddressVersion": "IPv4",
- "publicIPAddressConfiguration": {
- "name": "cwxsqjijtwbsyqdwht",
- "properties": {
- "deleteOption": "Delete",
- "dnsSettings": {
- "domainNameLabel": "fampou",
- "domainNameLabelScope": "TenantReuse",
- },
- "idleTimeoutInMinutes": 17,
- "ipTags": [
- {
- "ipTagType": "hkjoxhqadudjartwooezaxl",
- "tag": "xywunkjglkmmwfpf",
- }
- ],
- "publicIPAddressVersion": "IPv4",
- "publicIPAllocationMethod": "Dynamic",
- "publicIPPrefix": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "sku": {"name": "Basic", "tier": "Regional"},
- "tags": {"key5442": "qhpwpnylvmdthxazhxamnbhdfpf"},
- },
- "subnet": {"id": "lvzxxyypkeqlflftmfn"},
- },
- }
- ],
- "networkSecurityGroup": {"id": "lvzxxyypkeqlflftmfn"},
- "primary": True,
- },
- "tags": {"key9436": "bjbadzbfvpszbsickv"},
- }
- ],
- "networkInterfaces": [
- {"id": "ymfxctb", "properties": {"deleteOption": "Delete", "primary": True}}
- ],
- },
- "osProfile": {
- "adminPassword": "",
- "adminUsername": "fxzbi",
- "allowExtensionOperations": True,
- "computerName": "bplxnfp",
- "customData": "hbdlirohsgnbrahscboc",
- "linuxConfiguration": {
- "disablePasswordAuthentication": True,
- "enableVMAgentPlatformUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "patchMode": "ImageDefault",
- },
- "provisionVMAgent": True,
- "ssh": {
- "publicKeys": [
- {"keyData": "wfhrknkehgesontscqyrewfmhgwt", "path": "mrdfxnfjazxog"}
- ]
- },
- },
- "requireGuestProvisionSignal": True,
- "secrets": [
- {
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- "vaultCertificates": [
- {"certificateStore": "hyx", "certificateUrl": "crgbpfdvlohwkupdjp"}
- ],
- }
- ],
- "windowsConfiguration": {
- "additionalUnattendContent": [
- {
- "componentName": "Microsoft-Windows-Shell-Setup",
- "content": "rguazthnx",
- "passName": "OobeSystem",
- "settingName": "AutoLogon",
- }
- ],
- "enableAutomaticUpdates": True,
- "patchSettings": {
- "assessmentMode": "ImageDefault",
- "automaticByPlatformSettings": {
- "bypassPlatformSafetyChecksOnUserSchedule": True,
- "rebootSetting": "Unknown",
- },
- "enableHotpatching": True,
- "patchMode": "Manual",
- },
- "provisionVMAgent": True,
- "timeZone": "t",
- "winRM": {
- "listeners": [
- {"certificateUrl": "quhfapfpyeeocwvwtvuggoqqwt", "protocol": "Http"}
- ]
- },
- },
- },
- "scheduledEventsPolicy": {
- "allInstancesDown": {"automaticallyApprove": True},
- "scheduledEventsAdditionalPublishingTargets": {
- "eventGridAndResourceGraph": {
- "enable": True,
- "scheduledEventsApiVersion": "lifncbftlkounuyfn",
- }
- },
- "userInitiatedReboot": {"automaticallyApprove": True},
- "userInitiatedRedeploy": {"automaticallyApprove": True},
- },
- "scheduledEventsProfile": {
- "osImageNotificationProfile": {
- "enable": True,
- "notBeforeTimeout": "ataqykjdakdvyyzdspaqnhd",
- },
- "terminateNotificationProfile": {"enable": True, "notBeforeTimeout": "owbwifqrlsdmm"},
- },
- "securityProfile": {
- "encryptionAtHost": True,
- "encryptionIdentity": {"userAssignedIdentityResourceId": "tnajlgbwcepmhytzb"},
- "proxyAgentSettings": {
- "addProxyAgentExtension": True,
- "enabled": True,
- "imds": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- "keyIncarnationId": 4,
- "mode": "Audit",
- "wireServer": {"inVMAccessControlProfileReferenceId": "xvlzroy", "mode": "Audit"},
- },
- "securityType": "TrustedLaunch",
- "uefiSettings": {"secureBootEnabled": True, "vTpmEnabled": True},
- },
- "storageProfile": {
- "dataDisks": [
- {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "detachOption": "ForceDetach",
- "diskSizeGB": 19,
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "lun": 7,
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "nbthfzqsxyqvqnbgcljxbwyyoj",
- "sourceResource": {"id": "qnukyordmomtjjqabovlsxl"},
- "toBeDetached": True,
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- }
- ],
- "diskControllerType": "SCSI",
- "imageReference": {
- "communityGalleryImageId": "tsfpcq",
- "id": "cdbrkpdicibtlliq",
- "offer": "uvnqoxhkxefqwbsvjgbswqy",
- "publisher": "ojlplghybdamadvsrq",
- "sharedGalleryImageId": "fz",
- "sku": "hajdxhjmlkx",
- "version": "u",
- },
- "osDisk": {
- "caching": "None",
- "createOption": "FromImage",
- "deleteOption": "Delete",
- "diffDiskSettings": {"option": "Local", "placement": "CacheDisk"},
- "diskSizeGB": 2,
- "encryptionSettings": {
- "diskEncryptionKey": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "enabled": True,
- "keyEncryptionKey": {
- "keyUrl": "mjjkvgpoohatw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- },
- "image": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "managedDisk": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "id": "numddbqmkxuu",
- "securityProfile": {
- "diskEncryptionSet": {"id": "magvkzhdmzhktjlqkkk"},
- "securityEncryptionType": "VMGuestStateOnly",
- },
- "storageAccountType": "Standard_LRS",
- },
- "name": "opogpznvctmraoajgizcyrfvpt",
- "osType": "Windows",
- "vhd": {"uri": "elpzggtxubepzgjqvdbjmbu"},
- "writeAcceleratorEnabled": True,
- },
- },
- "userData": "nwjvxe",
- "vmExtensions": [
- {
- "name": "jkpmcxwuahpzwkvexgzpypk",
- "properties": {
- "autoUpgradeMinorVersion": True,
- "enableAutomaticUpgrade": True,
- "forceUpdateTag": "dockqxgatsfzhctxrncuw",
- "protectedSettings": {},
- "protectedSettingsFromKeyVault": {
- "secretUrl": "vzkogocyw",
- "sourceVault": {"id": "lvzxxyypkeqlflftmfn"},
- },
- "provisionAfterExtensions": ["onbtyoeifafiktrkmal"],
- "publisher": "qesyfldbfoaexyoywhcxafdtdwcg",
- "settings": {},
- "suppressFailures": True,
- "type": "ptlmlzpbpbkfbu",
- "typeHandlerVersion": "crllsludntz",
- },
- }
- ],
- },
- "tags": {"key6824": "cefndldgkx"},
- "zones": ["wczj"],
- }
- ],
- "resourcePrefix": "mwbopevxbjcunljvruov",
- },
- },
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkVdiFlexCreate_MaximumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_minimum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_minimum_set_gen.py
deleted file mode 100644
index 8ab638240d66..000000000000
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_vdi_flex_create_minimum_set_gen.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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) Python Code Generator.
-# Changes may cause incorrect behavior and will be lost if the code is regenerated.
-# --------------------------------------------------------------------------
-
-from azure.identity import DefaultAzureCredential
-
-from azure.mgmt.compute.bulkaction import ComputeBulkActionsMgmtClient
-
-"""
-# PREREQUISITES
- pip install azure-identity
- pip install azure-mgmt-compute-bulkaction
-# USAGE
- python virtual_machine_bulk_operations_bulk_vdi_flex_create_minimum_set_gen.py
-
- Before run the sample, please set the values of the client ID, tenant ID and client secret
- of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
- AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
- https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
-"""
-
-
-def main():
- client = ComputeBulkActionsMgmtClient(
- credential=DefaultAzureCredential(),
- subscription_id="SUBSCRIPTION_ID",
- )
-
- response = client.virtual_machine_bulk_operations.bulk_vdi_flex_create_operation(
- resource_group_name="rgBulkactions",
- location="useast2euap",
- request_body={
- "executionParameters": {},
- "resourceConfigParameters": {
- "flexProperties": {
- "osType": "Windows",
- "priorityProfile": {},
- "vmSizeProfiles": [{"name": "Standard_D2ads_v5", "rank": 7}],
- },
- "resourceCount": 10,
- },
- },
- )
- print(response)
-
-
-# x-ms-original-file: 2026-08-06-preview/VirtualMachineBulkOperations_BulkVdiFlexCreate_MinimumSet_Gen.json
-if __name__ == "__main__":
- main()
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations.py
index 02f0ddfe0efb..6bf617ec83e9 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations.py
@@ -336,7 +336,6 @@ def test_bulk_create_custom_begin_create_or_update(self, resource_group):
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -926,7 +925,7 @@ def test_bulk_create_custom_begin_create_or_update(self, resource_group):
],
"zoneAllocationPolicy": {
"distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
+ "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}],
},
},
"systemData": {
@@ -978,7 +977,7 @@ def test_bulk_create_custom_virtual_machines_get_operation_status(self, resource
location="str",
name="str",
)
-
+ result = [r for r in response]
# please add some check logic here by yourself
# ...
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations_async.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations_async.py
index ec8adbf70daf..b76b732b67e2 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations_async.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_custom_operations_async.py
@@ -350,7 +350,6 @@ async def test_bulk_create_custom_begin_create_or_update(self, resource_group):
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -960,7 +959,7 @@ async def test_bulk_create_custom_begin_create_or_update(self, resource_group):
],
"zoneAllocationPolicy": {
"distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
+ "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}],
},
},
"systemData": {
@@ -1012,12 +1011,12 @@ async def test_bulk_create_custom_begin_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
async def test_bulk_create_custom_virtual_machines_get_operation_status(self, resource_group):
- response = await self.client.bulk_create_custom.virtual_machines_get_operation_status(
+ response = self.client.bulk_create_custom.virtual_machines_get_operation_status(
resource_group_name=resource_group.name,
location="str",
name="str",
)
-
+ result = [r async for r in response]
# please add some check logic here by yourself
# ...
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py
similarity index 88%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py
index 1952cae4ede3..9a5dde2034cd 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py
@@ -14,14 +14,14 @@
@pytest.mark.skip("you may need to update the auto-generated test case before run it")
-class TestComputeBulkActionsMgmtLaunchBulkInstancesOperationOperations(AzureMgmtRecordedTestCase):
+class TestComputeBulkActionsMgmtBulkCreateOperations(AzureMgmtRecordedTestCase):
def setup_method(self, method):
self.client = self.create_mgmt_client(ComputeBulkActionsMgmtClient)
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_get(self, resource_group):
- response = self.client.launch_bulk_instances_operation.get(
+ def test_bulk_create_get(self, resource_group):
+ response = self.client.bulk_create.get(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -32,8 +32,8 @@ def test_launch_bulk_instances_operation_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_get_operation_status(self, resource_group):
- response = self.client.launch_bulk_instances_operation.get_operation_status(
+ def test_bulk_create_get_async_operation_status(self, resource_group):
+ response = self.client.bulk_create.get_async_operation_status(
location="str",
async_operation_id="str",
)
@@ -43,8 +43,8 @@ def test_launch_bulk_instances_operation_get_operation_status(self, resource_gro
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_begin_create_or_update(self, resource_group):
- response = self.client.launch_bulk_instances_operation.begin_create_or_update(
+ def test_bulk_create_begin_create_or_update(self, resource_group):
+ response = self.client.bulk_create.begin_create_or_update(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -329,36 +329,22 @@ def test_launch_bulk_instances_operation_begin_create_or_update(self, resource_g
},
"capacityType": "str",
"createdTime": "2020-02-20 00:00:00",
- "provisioningState": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "vmAttributes": {
- "architectureTypes": ["str"],
- "memoryInGiB": {"max": 0.0, "min": 0.0},
- "vCpuCount": {"max": 0, "min": 0},
- "acceleratorCount": {"max": 0, "min": 0},
- "acceleratorManufacturers": ["str"],
- "acceleratorSupport": "str",
- "acceleratorTypes": ["str"],
- "allowedVMSizes": ["str"],
- "burstableSupport": "str",
- "cpuManufacturers": ["str"],
- "dataDiskCount": {"max": 0, "min": 0},
- "excludedVMSizes": ["str"],
- "hyperVGenerations": ["str"],
- "localStorageDiskTypes": ["str"],
- "localStorageInGiB": {"max": 0.0, "min": 0.0},
- "localStorageSupport": "str",
- "memoryInGiBPerVCpu": {"max": 0.0, "min": 0.0},
- "networkBandwidthInMbps": {"max": 0.0, "min": 0.0},
- "networkInterfaceCount": {"max": 0, "min": 0},
- "rdmaNetworkInterfaceCount": {"max": 0, "min": 0},
- "rdmaSupport": "str",
- "vmCategories": ["str"],
+ "executionParameters": {
+ "capacityRecommendationParameters": {
+ "availabilityZones": bool,
+ "desiredLocations": ["str"],
+ "desiredSizes": ["str"],
+ },
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "verifyVmAgentHealth": bool,
},
+ "minCapacity": 0,
+ "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"},
+ "provisioningState": "str",
"vmSizesProfile": [{"name": "str", "rank": 0}],
"zoneAllocationPolicy": {
"distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
+ "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}],
},
},
"systemData": {
@@ -380,8 +366,8 @@ def test_launch_bulk_instances_operation_begin_create_or_update(self, resource_g
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_begin_delete(self, resource_group):
- response = self.client.launch_bulk_instances_operation.begin_delete(
+ def test_bulk_create_begin_delete(self, resource_group):
+ response = self.client.bulk_create.begin_delete(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -392,8 +378,8 @@ def test_launch_bulk_instances_operation_begin_delete(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_begin_cancel(self, resource_group):
- response = self.client.launch_bulk_instances_operation.begin_cancel(
+ def test_bulk_create_begin_cancel(self, resource_group):
+ response = self.client.bulk_create.begin_cancel(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -404,10 +390,11 @@ def test_launch_bulk_instances_operation_begin_cancel(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_list_by_resource_group(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_by_resource_group(
+ def test_bulk_create_virtual_machines_get_operation_status(self, resource_group):
+ response = self.client.bulk_create.virtual_machines_get_operation_status(
resource_group_name=resource_group.name,
location="str",
+ name="str",
)
result = [r for r in response]
# please add some check logic here by yourself
@@ -415,8 +402,9 @@ def test_launch_bulk_instances_operation_list_by_resource_group(self, resource_g
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_list_by_subscription(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_by_subscription(
+ def test_bulk_create_list_by_resource_group(self, resource_group):
+ response = self.client.bulk_create.list_by_resource_group(
+ resource_group_name=resource_group.name,
location="str",
)
result = [r for r in response]
@@ -425,11 +413,9 @@ def test_launch_bulk_instances_operation_list_by_subscription(self, resource_gro
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
- def test_launch_bulk_instances_operation_list_virtual_machines(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_virtual_machines(
- resource_group_name=resource_group.name,
+ def test_bulk_create_list_by_subscription(self, resource_group):
+ response = self.client.bulk_create.list_by_subscription(
location="str",
- name="str",
)
result = [r for r in response]
# please add some check logic here by yourself
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations_async.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py
similarity index 88%
rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations_async.py
rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py
index 0d633e81b614..5216a9f9735c 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_launch_bulk_instances_operation_operations_async.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py
@@ -15,14 +15,14 @@
@pytest.mark.skip("you may need to update the auto-generated test case before run it")
-class TestComputeBulkActionsMgmtLaunchBulkInstancesOperationOperationsAsync(AzureMgmtRecordedTestCase):
+class TestComputeBulkActionsMgmtBulkCreateOperationsAsync(AzureMgmtRecordedTestCase):
def setup_method(self, method):
self.client = self.create_mgmt_client(ComputeBulkActionsMgmtClient, is_async=True)
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_get(self, resource_group):
- response = await self.client.launch_bulk_instances_operation.get(
+ async def test_bulk_create_get(self, resource_group):
+ response = await self.client.bulk_create.get(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -33,8 +33,8 @@ async def test_launch_bulk_instances_operation_get(self, resource_group):
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_get_operation_status(self, resource_group):
- response = await self.client.launch_bulk_instances_operation.get_operation_status(
+ async def test_bulk_create_get_async_operation_status(self, resource_group):
+ response = await self.client.bulk_create.get_async_operation_status(
location="str",
async_operation_id="str",
)
@@ -44,9 +44,9 @@ async def test_launch_bulk_instances_operation_get_operation_status(self, resour
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_begin_create_or_update(self, resource_group):
+ async def test_bulk_create_begin_create_or_update(self, resource_group):
response = await (
- await self.client.launch_bulk_instances_operation.begin_create_or_update(
+ await self.client.bulk_create.begin_create_or_update(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -343,36 +343,22 @@ async def test_launch_bulk_instances_operation_begin_create_or_update(self, reso
},
"capacityType": "str",
"createdTime": "2020-02-20 00:00:00",
- "provisioningState": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "vmAttributes": {
- "architectureTypes": ["str"],
- "memoryInGiB": {"max": 0.0, "min": 0.0},
- "vCpuCount": {"max": 0, "min": 0},
- "acceleratorCount": {"max": 0, "min": 0},
- "acceleratorManufacturers": ["str"],
- "acceleratorSupport": "str",
- "acceleratorTypes": ["str"],
- "allowedVMSizes": ["str"],
- "burstableSupport": "str",
- "cpuManufacturers": ["str"],
- "dataDiskCount": {"max": 0, "min": 0},
- "excludedVMSizes": ["str"],
- "hyperVGenerations": ["str"],
- "localStorageDiskTypes": ["str"],
- "localStorageInGiB": {"max": 0.0, "min": 0.0},
- "localStorageSupport": "str",
- "memoryInGiBPerVCpu": {"max": 0.0, "min": 0.0},
- "networkBandwidthInMbps": {"max": 0.0, "min": 0.0},
- "networkInterfaceCount": {"max": 0, "min": 0},
- "rdmaNetworkInterfaceCount": {"max": 0, "min": 0},
- "rdmaSupport": "str",
- "vmCategories": ["str"],
+ "executionParameters": {
+ "capacityRecommendationParameters": {
+ "availabilityZones": bool,
+ "desiredLocations": ["str"],
+ "desiredSizes": ["str"],
+ },
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "verifyVmAgentHealth": bool,
},
+ "minCapacity": 0,
+ "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"},
+ "provisioningState": "str",
"vmSizesProfile": [{"name": "str", "rank": 0}],
"zoneAllocationPolicy": {
"distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
+ "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}],
},
},
"systemData": {
@@ -395,9 +381,9 @@ async def test_launch_bulk_instances_operation_begin_create_or_update(self, reso
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_begin_delete(self, resource_group):
+ async def test_bulk_create_begin_delete(self, resource_group):
response = await (
- await self.client.launch_bulk_instances_operation.begin_delete(
+ await self.client.bulk_create.begin_delete(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -409,9 +395,9 @@ async def test_launch_bulk_instances_operation_begin_delete(self, resource_group
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_begin_cancel(self, resource_group):
+ async def test_bulk_create_begin_cancel(self, resource_group):
response = await (
- await self.client.launch_bulk_instances_operation.begin_cancel(
+ await self.client.bulk_create.begin_cancel(
resource_group_name=resource_group.name,
location="str",
name="str",
@@ -423,10 +409,11 @@ async def test_launch_bulk_instances_operation_begin_cancel(self, resource_group
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_list_by_resource_group(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_by_resource_group(
+ async def test_bulk_create_virtual_machines_get_operation_status(self, resource_group):
+ response = self.client.bulk_create.virtual_machines_get_operation_status(
resource_group_name=resource_group.name,
location="str",
+ name="str",
)
result = [r async for r in response]
# please add some check logic here by yourself
@@ -434,8 +421,9 @@ async def test_launch_bulk_instances_operation_list_by_resource_group(self, reso
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_list_by_subscription(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_by_subscription(
+ async def test_bulk_create_list_by_resource_group(self, resource_group):
+ response = self.client.bulk_create.list_by_resource_group(
+ resource_group_name=resource_group.name,
location="str",
)
result = [r async for r in response]
@@ -444,11 +432,9 @@ async def test_launch_bulk_instances_operation_list_by_subscription(self, resour
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
- async def test_launch_bulk_instances_operation_list_virtual_machines(self, resource_group):
- response = self.client.launch_bulk_instances_operation.list_virtual_machines(
- resource_group_name=resource_group.name,
+ async def test_bulk_create_list_by_subscription(self, resource_group):
+ response = self.client.bulk_create.list_by_subscription(
location="str",
- name="str",
)
result = [r async for r in response]
# please add some check logic here by yourself
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations.py
index d89af7435b89..3ae2ae8e1f3e 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations.py
@@ -50,8 +50,7 @@ def test_scheduled_actions_begin_create_or_update(self, resource_group):
"timeZone": "str",
"deadlineType": "str",
"executionParameters": {
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0}
},
"requestedDaysOfTheMonth": [0],
"requestedMonths": ["str"],
@@ -96,8 +95,7 @@ def test_scheduled_actions_begin_update(self, resource_group):
"schedule": {
"deadlineType": "str",
"executionParameters": {
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0}
},
"requestedDaysOfTheMonth": [0],
"requestedMonths": ["str"],
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations_async.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations_async.py
index 2c6857496442..11e9da6d2fde 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations_async.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_scheduled_actions_operations_async.py
@@ -52,8 +52,7 @@ async def test_scheduled_actions_begin_create_or_update(self, resource_group):
"timeZone": "str",
"deadlineType": "str",
"executionParameters": {
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0}
},
"requestedDaysOfTheMonth": [0],
"requestedMonths": ["str"],
@@ -100,8 +99,7 @@ async def test_scheduled_actions_begin_update(self, resource_group):
"schedule": {
"deadlineType": "str",
"executionParameters": {
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
+ "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0}
},
"requestedDaysOfTheMonth": [0],
"requestedMonths": ["str"],
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations.py
index 422358f3bfd7..68b639295d7d 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations.py
@@ -31,7 +31,6 @@ def test_virtual_machine_bulk_operations_bulk_deallocate_operation(self, resourc
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -56,7 +55,6 @@ def test_virtual_machine_bulk_operations_bulk_hibernate_operation(self, resource
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -81,7 +79,6 @@ def test_virtual_machine_bulk_operations_bulk_start_operation(self, resource_gro
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -93,79 +90,6 @@ def test_virtual_machine_bulk_operations_bulk_start_operation(self, resource_gro
# please add some check logic here by yourself
# ...
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy
- def test_virtual_machine_bulk_operations_bulk_create_operation(self, resource_group):
- response = self.client.virtual_machine_bulk_operations.bulk_create_operation(
- resource_group_name=resource_group.name,
- location="str",
- request_body={
- "executionParameters": {
- "capacityRecommendationParameters": {
- "availabilityZones": bool,
- "desiredLocations": ["str"],
- "desiredSizes": ["str"],
- },
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "verifyVmAgentHealth": bool,
- },
- "resourceConfigParameters": {
- "resourceCount": 0,
- "baseProfile": {"str": {}},
- "resourceOverrides": [{"str": {}}],
- "resourcePrefix": "str",
- },
- },
- )
-
- # please add some check logic here by yourself
- # ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy
- def test_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation(self, resource_group):
- response = self.client.virtual_machine_bulk_operations.bulk_vdi_flex_create_operation(
- resource_group_name=resource_group.name,
- location="str",
- request_body={
- "executionParameters": {
- "capacityRecommendationParameters": {
- "availabilityZones": bool,
- "desiredLocations": ["str"],
- "desiredSizes": ["str"],
- },
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "verifyVmAgentHealth": bool,
- },
- "resourceConfigParameters": {
- "flexProperties": {
- "osType": "str",
- "priorityProfile": {
- "allocationStrategy": "str",
- "evictionPolicy": "str",
- "maxPricePerVM": 0.0,
- "type": "str",
- },
- "vmSizeProfiles": [{"name": "str", "rank": 0}],
- "minCapacity": 0,
- "zoneAllocationPolicy": {
- "distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
- },
- },
- "resourceCount": 0,
- "baseProfile": {"str": {}},
- "resourceOverrides": [{"str": {}}],
- "resourcePrefix": "str",
- },
- },
- )
-
- # please add some check logic here by yourself
- # ...
-
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy
def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resource_group):
@@ -179,7 +103,6 @@ def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resource_gr
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -229,7 +152,6 @@ def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, resource_g
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -257,26 +179,3 @@ def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, resource_g
# please add some check logic here by yourself
# ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy
- def test_virtual_machine_bulk_operations_bulk_list_operation_errors(self, resource_group):
- response = self.client.virtual_machine_bulk_operations.bulk_list_operation_errors(
- resource_group_name=resource_group.name,
- location="str",
- )
- result = [r for r in response]
- # please add some check logic here by yourself
- # ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy
- def test_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors(self, resource_group):
- response = self.client.virtual_machine_bulk_operations.bulk_acknowledge_operation_errors(
- resource_group_name=resource_group.name,
- location="str",
- body={"operationIds": ["str"]},
- )
-
- # please add some check logic here by yourself
- # ...
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations_async.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations_async.py
index 635eb1d8854f..db75e9051385 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations_async.py
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_virtual_machine_bulk_operations_operations_async.py
@@ -32,7 +32,6 @@ async def test_virtual_machine_bulk_operations_bulk_deallocate_operation(self, r
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -57,7 +56,6 @@ async def test_virtual_machine_bulk_operations_bulk_hibernate_operation(self, re
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -82,7 +80,6 @@ async def test_virtual_machine_bulk_operations_bulk_start_operation(self, resour
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -94,79 +91,6 @@ async def test_virtual_machine_bulk_operations_bulk_start_operation(self, resour
# please add some check logic here by yourself
# ...
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy_async
- async def test_virtual_machine_bulk_operations_bulk_create_operation(self, resource_group):
- response = await self.client.virtual_machine_bulk_operations.bulk_create_operation(
- resource_group_name=resource_group.name,
- location="str",
- request_body={
- "executionParameters": {
- "capacityRecommendationParameters": {
- "availabilityZones": bool,
- "desiredLocations": ["str"],
- "desiredSizes": ["str"],
- },
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "verifyVmAgentHealth": bool,
- },
- "resourceConfigParameters": {
- "resourceCount": 0,
- "baseProfile": {"str": {}},
- "resourceOverrides": [{"str": {}}],
- "resourcePrefix": "str",
- },
- },
- )
-
- # please add some check logic here by yourself
- # ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy_async
- async def test_virtual_machine_bulk_operations_bulk_vdi_flex_create_operation(self, resource_group):
- response = await self.client.virtual_machine_bulk_operations.bulk_vdi_flex_create_operation(
- resource_group_name=resource_group.name,
- location="str",
- request_body={
- "executionParameters": {
- "capacityRecommendationParameters": {
- "availabilityZones": bool,
- "desiredLocations": ["str"],
- "desiredSizes": ["str"],
- },
- "optimizationPreference": "str",
- "retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
- "verifyVmAgentHealth": bool,
- },
- "resourceConfigParameters": {
- "flexProperties": {
- "osType": "str",
- "priorityProfile": {
- "allocationStrategy": "str",
- "evictionPolicy": "str",
- "maxPricePerVM": 0.0,
- "type": "str",
- },
- "vmSizeProfiles": [{"name": "str", "rank": 0}],
- "minCapacity": 0,
- "zoneAllocationPolicy": {
- "distributionStrategy": "str",
- "zonePreferences": [{"rank": 0, "zone": "str"}],
- },
- },
- "resourceCount": 0,
- "baseProfile": {"str": {}},
- "resourceOverrides": [{"str": {}}],
- "resourcePrefix": "str",
- },
- },
- )
-
- # please add some check logic here by yourself
- # ...
-
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
@recorded_by_proxy_async
async def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resource_group):
@@ -180,7 +104,6 @@ async def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resou
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -230,7 +153,6 @@ async def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, reso
"desiredLocations": ["str"],
"desiredSizes": ["str"],
},
- "optimizationPreference": "str",
"retryPolicy": {"onFailureAction": "str", "retryCount": 0, "retryWindowInMinutes": 0},
"verifyVmAgentHealth": bool,
},
@@ -258,26 +180,3 @@ async def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, reso
# please add some check logic here by yourself
# ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy_async
- async def test_virtual_machine_bulk_operations_bulk_list_operation_errors(self, resource_group):
- response = self.client.virtual_machine_bulk_operations.bulk_list_operation_errors(
- resource_group_name=resource_group.name,
- location="str",
- )
- result = [r async for r in response]
- # please add some check logic here by yourself
- # ...
-
- @RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
- @recorded_by_proxy_async
- async def test_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors(self, resource_group):
- response = await self.client.virtual_machine_bulk_operations.bulk_acknowledge_operation_errors(
- resource_group_name=resource_group.name,
- location="str",
- body={"operationIds": ["str"]},
- )
-
- # please add some check logic here by yourself
- # ...
diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/tsp-location.yaml b/sdk/compute/azure-mgmt-compute-bulkaction/tsp-location.yaml
index 64a791890b30..48c4a9f03d74 100644
--- a/sdk/compute/azure-mgmt-compute-bulkaction/tsp-location.yaml
+++ b/sdk/compute/azure-mgmt-compute-bulkaction/tsp-location.yaml
@@ -1,4 +1,4 @@
directory: specification/compute/resource-manager/Microsoft.Compute/Bulkactions
-commit: da7c67564bd3344610ffb0ec21a1974e79ffb00a
+commit: 43e3626d45f0c104b0ac50c1540fc2168371b212
repo: Azure/azure-rest-api-specs
additionalDirectories: