diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md b/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md index 81c114656825..ee867d9c06ee 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md +++ b/sdk/compute/azure-mgmt-compute-bulkaction/CHANGELOG.md @@ -1,5 +1,28 @@ # Release History +## 1.0.0b5 (2026-09-29) + +### Features Added + + - Model `ExecutionParameters` added property `additional_create_parameters` + - Added model `AcknowledgeBulkOperationErrorsRequest` + - Added model `AcknowledgeBulkOperationErrorsResponse` + - Operation group `VirtualMachineBulkOperationsOperations` added method `bulk_acknowledge_operation_errors` + - Operation group `VirtualMachineBulkOperationsOperations` added method `bulk_list_operation_errors` + +### Breaking Changes + + - Model `BulkCreateCustomPriorityProfile` deleted or renamed its instance variable `allocation_strategy` + - Model `BulkCreateCustomProperties` deleted or renamed its instance variable `vm_sizes_profile` + - Model `BulkCreateCustomProperties` deleted or renamed its instance variable `zone_allocation_policy` + - Model `BulkCreateProperties` deleted or renamed its instance variable `vm_sizes_profile` + - Model `BulkCreateProperties` deleted or renamed its instance variable `zone_allocation_policy` + - Model `PriorityProfile` deleted or renamed its instance variable `allocation_strategy` + +### Other Changes + + - Deleted model `AllocationStrategy`/`BulkCreateCustomAllocationStrategy`/`BulkCreateCustomDistributionStrategy`/`BulkCreateCustomOverrideBase`/`BulkCreateCustomVmSizeProfile`/`BulkCreateCustomZoneAllocationPolicy`/`BulkCreateVmSizeProfile`/`DistributionStrategy`/`ZoneAllocationPolicy`/`ZonePreference` which actually were not used by SDK users + ## 1.0.0b4 (2026-09-11) ### Features Added diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json b/sdk/compute/azure-mgmt-compute-bulkaction/_metadata.json index c9f8b2cd5bee..cddd3497e75b 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-09-06-preview", + "apiVersion": "2026-10-06-preview", "apiVersions": { - "Microsoft.Compute": "2026-09-06-preview" + "Microsoft.Compute": "2026-10-06-preview" }, - "commit": "43e3626d45f0c104b0ac50c1540fc2168371b212", + "commit": "78dfe543f33839235476c8abc99aad4694436d83", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/compute/resource-manager/Microsoft.Compute/Bulkactions", - "emitterVersion": "0.63.6", - "httpClientPythonVersion": "^0.37.1" + "emitterVersion": "0.63.8", + "httpClientPythonVersion": "0.38.0" } \ 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 607c035a90de..d2e565339785 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/api.md +++ b/sdk/compute/azure-mgmt-compute-bulkaction/api.md @@ -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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -168,7 +168,7 @@ 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', '2026-09-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', '2026-10-06-preview']) def list_by_subscription( self, location: str, @@ -176,7 +176,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> AsyncItemPaged[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', '2026-09-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', '2026-10-06-preview']) def virtual_machines_get_operation_status( self, resource_group_name: str, @@ -195,7 +195,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> None: ... @distributed_trace_async - @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']) + @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', '2026-10-06-preview']) async def begin_cancel( self, resource_group_name: str, @@ -241,7 +241,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> AsyncLROPoller[LocationBasedBulkCreate]: ... @distributed_trace_async - @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']) + @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', '2026-10-06-preview']) async def begin_delete( self, resource_group_name: str, @@ -253,7 +253,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> AsyncLROPoller[None]: ... @distributed_trace_async - @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']) + @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', '2026-10-06-preview']) async def get( self, resource_group_name: str, @@ -263,7 +263,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> LocationBasedBulkCreate: ... @distributed_trace_async - @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']) + @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', '2026-10-06-preview']) async def get_async_operation_status( self, location: str, @@ -272,7 +272,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> OperationStatusResult: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -281,7 +281,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> AsyncItemPaged[LocationBasedBulkCreate]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def list_by_subscription( self, location: str, @@ -289,7 +289,7 @@ namespace azure.mgmt.compute.bulkaction.aio.operations ) -> AsyncItemPaged[LocationBasedBulkCreate]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def virtual_machines_get_operation_status( self, resource_group_name: str, @@ -308,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', '2026-09-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', '2026-10-06-preview']) def list_occurrence_by_vms( self, resource_uri: str, @@ -397,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', '2026-09-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', '2026-10-06-preview']) async def get( self, resource_group_name: str, @@ -407,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', '2026-09-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', '2026-10-06-preview']) def list_by_scheduled_action( self, resource_group_name: str, @@ -416,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', '2026-09-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', '2026-10-06-preview']) def list_resources( self, resource_group_name: str, @@ -447,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', '2026-09-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', '2026-10-06-preview']) def list_by_vms( self, resource_uri: str, @@ -464,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', '2026-09-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', '2026-10-06-preview']) async def get( self, location: str, @@ -581,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', '2026-09-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', '2026-10-06-preview']) async def begin_delete( self, resource_group_name: str, @@ -623,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', '2026-09-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', '2026-10-06-preview']) async def begin_disable( self, resource_group_name: str, @@ -632,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', '2026-09-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', '2026-10-06-preview']) async def begin_enable( self, resource_group_name: str, @@ -641,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', '2026-09-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', '2026-10-06-preview']) async def begin_trigger_manual_occurrence( self, resource_group_name: str, @@ -683,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', '2026-09-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', '2026-10-06-preview']) async def get( self, resource_group_name: str, @@ -692,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', '2026-09-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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -700,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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-06-preview']) def list_resources( self, resource_group_name: str, @@ -754,6 +754,39 @@ 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, @@ -919,6 +952,17 @@ 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', '2026-10-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, @@ -988,6 +1032,38 @@ namespace azure.mgmt.compute.bulkaction.aio.operations namespace azure.mgmt.compute.bulkaction.models + 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" @@ -1042,12 +1118,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.compute.bulkaction.models.AllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - CAPACITY_OPTIMIZED = "CapacityOptimized" - LOWEST_PRICE = "LowestPrice" - PRIORITIZED = "Prioritized" - - class azure.mgmt.compute.bulkaction.models.ApiEntityReference(_Model): id: Optional[str] @@ -1126,17 +1196,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomAllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - LOWEST_PRICE = "LowestPrice" - PRIORITIZED = "Prioritized" - - - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomDistributionStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - BEST_EFFORT_BALANCED = "BestEffortBalanced" - BEST_EFFORT_SINGLE_ZONE = "BestEffortSingleZone" - PRIORITIZED = "Prioritized" - - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverride(_Model): extensions: Optional[list[BulkactionVMExtension]] identity: Optional[VirtualMachineIdentity] @@ -1161,28 +1220,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverrideBase(_Model): - extensions: Optional[list[BulkactionVMExtension]] - identity: Optional[VirtualMachineIdentity] - plan: Optional[Plan] - tags: Optional[dict[str, str]] - virtual_machine_profile: Optional[BulkactionVMProperties] - - @overload - def __init__( - self, - *, - extensions: Optional[list[BulkactionVMExtension]] = ..., - identity: Optional[VirtualMachineIdentity] = ..., - plan: Optional[Plan] = ..., - tags: Optional[dict[str, str]] = ..., - virtual_machine_profile: Optional[BulkactionVMProperties] = ... - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: ... - - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverridesProfile(_Model): overrides: Optional[list[BulkCreateCustomOverride]] virtual_machine_name_prefix: Optional[str] @@ -1200,7 +1237,6 @@ namespace azure.mgmt.compute.bulkaction.models class azure.mgmt.compute.bulkaction.models.BulkCreateCustomPriorityProfile(_Model): - allocation_strategy: Optional[Union[str, BulkCreateCustomAllocationStrategy]] eviction_policy: Optional[Union[str, EvictionPolicy]] max_price_per_vm: Optional[float] type: Optional[Union[str, PriorityType]] @@ -1209,7 +1245,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__( self, *, - allocation_strategy: Optional[Union[str, BulkCreateCustomAllocationStrategy]] = ..., eviction_policy: Optional[Union[str, EvictionPolicy]] = ..., max_price_per_vm: Optional[float] = ..., type: Optional[Union[str, PriorityType]] = ... @@ -1231,8 +1266,6 @@ namespace azure.mgmt.compute.bulkaction.models priority_profile: BulkCreateCustomPriorityProfile provisioning_state: Optional[Union[str, ProvisioningState]] resources: Optional[list[BulkCreateCustomResource]] - vm_sizes_profile: Optional[list[BulkCreateCustomVmSizeProfile]] - zone_allocation_policy: Optional[BulkCreateCustomZoneAllocationPolicy] @overload def __init__( @@ -1245,9 +1278,7 @@ namespace azure.mgmt.compute.bulkaction.models min_capacity: Optional[int] = ..., overrides_profile: Optional[BulkCreateCustomOverridesProfile] = ..., partial_fulfillment_policy: Optional[PartialFulfillmentPolicy] = ..., - priority_profile: BulkCreateCustomPriorityProfile, - vm_sizes_profile: Optional[list[BulkCreateCustomVmSizeProfile]] = ..., - zone_allocation_policy: Optional[BulkCreateCustomZoneAllocationPolicy] = ... + priority_profile: BulkCreateCustomPriorityProfile ) -> None: ... @overload @@ -1286,40 +1317,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomVmSizeProfile(_Model): - name: str - override: Optional[BulkCreateCustomOverrideBase] - rank: int - - @overload - def __init__( - self, - *, - name: str, - override: Optional[BulkCreateCustomOverrideBase] = ..., - rank: int - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: ... - - - class azure.mgmt.compute.bulkaction.models.BulkCreateCustomZoneAllocationPolicy(_Model): - distribution_strategy: Optional[Union[str, BulkCreateCustomDistributionStrategy]] - zone_preferences: Optional[list[ZonePreference]] - - @overload - def __init__( - self, - *, - distribution_strategy: Optional[Union[str, BulkCreateCustomDistributionStrategy]] = ..., - zone_preferences: Optional[list[ZonePreference]] = ... - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: ... - - class azure.mgmt.compute.bulkaction.models.BulkCreateProperties(_Model): capacity: int capacity_type: Optional[Union[str, CapacityType]] @@ -1330,8 +1327,6 @@ namespace azure.mgmt.compute.bulkaction.models 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__( @@ -1343,25 +1338,7 @@ namespace azure.mgmt.compute.bulkaction.models 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, - *, - name: str, - rank: Optional[int] = ... + priority_profile: PriorityProfile ) -> None: ... @overload @@ -1819,13 +1796,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__(self, mapping: Mapping[str, Any]) -> None: ... - class azure.mgmt.compute.bulkaction.models.DistributionStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - BEST_EFFORT_BALANCED = "BestEffortBalanced" - BEST_EFFORT_SINGLE_ZONE = "BestEffortSingleZone" - PRIORITIZED = "Prioritized" - STRICT_BALANCED = "StrictBalanced" - - class azure.mgmt.compute.bulkaction.models.DomainNameLabelScopeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): NO_REUSE = "NoReuse" RESOURCE_GROUP_REUSE = "ResourceGroupReuse" @@ -1990,6 +1960,7 @@ namespace azure.mgmt.compute.bulkaction.models class azure.mgmt.compute.bulkaction.models.ExecutionParameters(_Model): + additional_create_parameters: Optional[dict[str, Any]] capacity_recommendation_parameters: Optional[CapacityRecommendationParameters] retry_policy: Optional[RetryPolicy] verify_vm_agent_health: Optional[bool] @@ -1998,6 +1969,7 @@ namespace azure.mgmt.compute.bulkaction.models def __init__( self, *, + additional_create_parameters: Optional[dict[str, Any]] = ..., capacity_recommendation_parameters: Optional[CapacityRecommendationParameters] = ..., retry_policy: Optional[RetryPolicy] = ..., verify_vm_agent_health: Optional[bool] = ... @@ -2833,7 +2805,6 @@ namespace azure.mgmt.compute.bulkaction.models class azure.mgmt.compute.bulkaction.models.PriorityProfile(_Model): - allocation_strategy: Optional[Union[str, AllocationStrategy]] eviction_policy: Optional[Union[str, EvictionPolicy]] max_price_per_vm: Optional[float] type: Optional[Union[str, PriorityType]] @@ -2842,7 +2813,6 @@ namespace azure.mgmt.compute.bulkaction.models def __init__( self, *, - allocation_strategy: Optional[Union[str, AllocationStrategy]] = ..., eviction_policy: Optional[Union[str, EvictionPolicy]] = ..., max_price_per_vm: Optional[float] = ..., type: Optional[Union[str, PriorityType]] = ... @@ -4286,40 +4256,6 @@ namespace azure.mgmt.compute.bulkaction.models MANUAL = "Manual" - class azure.mgmt.compute.bulkaction.models.ZoneAllocationPolicy(_Model): - distribution_strategy: Optional[Union[str, DistributionStrategy]] - zone_preferences: Optional[list[ZonePreference]] - - @overload - def __init__( - self, - *, - distribution_strategy: Optional[Union[str, DistributionStrategy]] = ..., - zone_preferences: Optional[list[ZonePreference]] = ... - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: ... - - - class azure.mgmt.compute.bulkaction.models.ZonePreference(_Model): - rank: int - target_max_capacity: Optional[int] - zone: str - - @overload - def __init__( - self, - *, - rank: int, - target_max_capacity: Optional[int] = ..., - zone: str - ) -> None: ... - - @overload - def __init__(self, mapping: Mapping[str, Any]) -> None: ... - - namespace azure.mgmt.compute.bulkaction.operations class azure.mgmt.compute.bulkaction.operations.BulkCreateCustomOperations: @@ -4331,7 +4267,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', '2026-09-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', '2026-10-06-preview']) def begin_cancel( self, resource_group_name: str, @@ -4377,7 +4313,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', '2026-09-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', '2026-10-06-preview']) def begin_delete( self, resource_group_name: str, @@ -4389,7 +4325,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', '2026-09-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', '2026-10-06-preview']) def get( self, resource_group_name: str, @@ -4399,7 +4335,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', '2026-09-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', '2026-10-06-preview']) def get_async_operation_status( self, location: str, @@ -4408,7 +4344,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', '2026-09-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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -4417,7 +4353,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', '2026-09-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', '2026-10-06-preview']) def list_by_subscription( self, location: str, @@ -4425,7 +4361,7 @@ 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', '2026-09-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', '2026-10-06-preview']) def virtual_machines_get_operation_status( self, resource_group_name: str, @@ -4444,7 +4380,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> None: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def begin_cancel( self, resource_group_name: str, @@ -4490,7 +4426,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> LROPoller[LocationBasedBulkCreate]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def begin_delete( self, resource_group_name: str, @@ -4502,7 +4438,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> LROPoller[None]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def get( self, resource_group_name: str, @@ -4512,7 +4448,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> LocationBasedBulkCreate: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def get_async_operation_status( self, location: str, @@ -4521,7 +4457,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> OperationStatusResult: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -4530,7 +4466,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> ItemPaged[LocationBasedBulkCreate]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def list_by_subscription( self, location: str, @@ -4538,7 +4474,7 @@ namespace azure.mgmt.compute.bulkaction.operations ) -> ItemPaged[LocationBasedBulkCreate]: ... @distributed_trace - @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']) + @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', '2026-10-06-preview']) def virtual_machines_get_operation_status( self, resource_group_name: str, @@ -4557,7 +4493,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', '2026-09-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', '2026-10-06-preview']) def list_occurrence_by_vms( self, resource_uri: str, @@ -4646,7 +4582,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', '2026-09-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', '2026-10-06-preview']) def get( self, resource_group_name: str, @@ -4656,7 +4592,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', '2026-09-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', '2026-10-06-preview']) def list_by_scheduled_action( self, resource_group_name: str, @@ -4665,7 +4601,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', '2026-09-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', '2026-10-06-preview']) def list_resources( self, resource_group_name: str, @@ -4696,7 +4632,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', '2026-09-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', '2026-10-06-preview']) def list_by_vms( self, resource_uri: str, @@ -4713,7 +4649,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', '2026-09-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', '2026-10-06-preview']) def get( self, location: str, @@ -4830,7 +4766,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', '2026-09-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', '2026-10-06-preview']) def begin_delete( self, resource_group_name: str, @@ -4872,7 +4808,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', '2026-09-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', '2026-10-06-preview']) def begin_disable( self, resource_group_name: str, @@ -4881,7 +4817,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', '2026-09-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', '2026-10-06-preview']) def begin_enable( self, resource_group_name: str, @@ -4890,7 +4826,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', '2026-09-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', '2026-10-06-preview']) def begin_trigger_manual_occurrence( self, resource_group_name: str, @@ -4932,7 +4868,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', '2026-09-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', '2026-10-06-preview']) def get( self, resource_group_name: str, @@ -4941,7 +4877,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', '2026-09-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', '2026-10-06-preview']) def list_by_resource_group( self, resource_group_name: str, @@ -4949,11 +4885,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', '2026-09-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', '2026-10-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', '2026-09-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', '2026-10-06-preview']) def list_resources( self, resource_group_name: str, @@ -5003,6 +4939,39 @@ 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, @@ -5168,6 +5137,17 @@ 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', '2026-10-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, @@ -5237,6 +5217,11 @@ namespace azure.mgmt.compute.bulkaction.operations 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 @@ -5311,17 +5296,6 @@ namespace azure.mgmt.compute.bulkaction.types virtualMachineProfile: BulkactionVMProperties - class azure.mgmt.compute.bulkaction.types.BulkCreateCustomOverrideBase(TypedDict, total=False): - key "identity": ForwardRef('VirtualMachineIdentity', module='types') - key "plan": ForwardRef('Plan', module='types') - key "virtualMachineProfile": ForwardRef('BulkactionVMProperties', module='types') - extensions: list[BulkactionVMExtension] - identity: VirtualMachineIdentity - plan: Plan - tags: dict[str, str] - virtualMachineProfile: BulkactionVMProperties - - class azure.mgmt.compute.bulkaction.types.BulkCreateCustomOverridesProfile(TypedDict, total=False): key "virtualMachineNamePrefix": str overrides: list[BulkCreateCustomOverride] @@ -5329,11 +5303,9 @@ namespace azure.mgmt.compute.bulkaction.types class azure.mgmt.compute.bulkaction.types.BulkCreateCustomPriorityProfile(TypedDict, total=False): - key "allocationStrategy": Union[str, BulkCreateCustomAllocationStrategy] key "evictionPolicy": Union[str, EvictionPolicy] key "maxPricePerVM": float key "type": Union[str, PriorityType] - allocationStrategy: Union[str, BulkCreateCustomAllocationStrategy] evictionPolicy: Union[str, EvictionPolicy] maxPricePerVM: float type: Union[str, PriorityType] @@ -5350,7 +5322,6 @@ namespace azure.mgmt.compute.bulkaction.types key "partialFulfillmentPolicy": ForwardRef('PartialFulfillmentPolicy', module='types') key "priorityProfile": Required[BulkCreateCustomPriorityProfile] key "provisioningState": Union[str, ProvisioningState] - key "zoneAllocationPolicy": ForwardRef('BulkCreateCustomZoneAllocationPolicy', module='types') capacity: int capacityType: Union[str, CapacityType] computeProfile: ComputeProfile @@ -5362,8 +5333,6 @@ namespace azure.mgmt.compute.bulkaction.types priorityProfile: BulkCreateCustomPriorityProfile provisioningState: Union[str, ProvisioningState] resources: list[BulkCreateCustomResource] - vmSizesProfile: list[BulkCreateCustomVmSizeProfile] - zoneAllocationPolicy: BulkCreateCustomZoneAllocationPolicy class azure.mgmt.compute.bulkaction.types.BulkCreateCustomResource(TypedDict, total=False): @@ -5380,21 +5349,6 @@ namespace azure.mgmt.compute.bulkaction.types zone: str - class azure.mgmt.compute.bulkaction.types.BulkCreateCustomVmSizeProfile(TypedDict, total=False): - key "name": Required[str] - key "override": ForwardRef('BulkCreateCustomOverrideBase', module='types') - key "rank": Required[int] - name: str - override: BulkCreateCustomOverrideBase - rank: int - - - class azure.mgmt.compute.bulkaction.types.BulkCreateCustomZoneAllocationPolicy(TypedDict, total=False): - key "distributionStrategy": Union[str, BulkCreateCustomDistributionStrategy] - distributionStrategy: Union[str, BulkCreateCustomDistributionStrategy] - zonePreferences: list[ZonePreference] - - class azure.mgmt.compute.bulkaction.types.BulkCreateProperties(TypedDict, total=False): key "capacity": Required[int] key "capacityType": Union[str, CapacityType] @@ -5405,7 +5359,6 @@ namespace azure.mgmt.compute.bulkaction.types 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 @@ -5415,15 +5368,6 @@ namespace azure.mgmt.compute.bulkaction.types 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): @@ -5622,6 +5566,7 @@ namespace azure.mgmt.compute.bulkaction.types key "capacityRecommendationParameters": ForwardRef('CapacityRecommendationParameters', module='types') key "retryPolicy": ForwardRef('RetryPolicy', module='types') key "verifyVmAgentHealth": bool + additionalCreateParameters: dict[str, Any] capacityRecommendationParameters: CapacityRecommendationParameters retryPolicy: RetryPolicy verifyVmAgentHealth: bool @@ -5892,11 +5837,9 @@ namespace azure.mgmt.compute.bulkaction.types class azure.mgmt.compute.bulkaction.types.PriorityProfile(TypedDict, total=False): - key "allocationStrategy": Union[str, AllocationStrategy] key "evictionPolicy": Union[str, EvictionPolicy] key "maxPricePerVM": float key "type": Union[str, PriorityType] - allocationStrategy: Union[str, AllocationStrategy] evictionPolicy: Union[str, EvictionPolicy] maxPricePerVM: float type: Union[str, PriorityType] @@ -6432,19 +6375,4 @@ namespace azure.mgmt.compute.bulkaction.types rebootSetting: Union[str, WindowsVMGuestPatchAutomaticByPlatformRebootSetting] - class azure.mgmt.compute.bulkaction.types.ZoneAllocationPolicy(TypedDict, total=False): - key "distributionStrategy": Union[str, DistributionStrategy] - distributionStrategy: Union[str, DistributionStrategy] - zonePreferences: list[ZonePreference] - - - 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 - - ``` \ No newline at end of file diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml b/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml index 9567dfabf044..6d2a986837fd 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml +++ b/sdk/compute/azure-mgmt-compute-bulkaction/api.metadata.yml @@ -1,4 +1,4 @@ -apiMdSha256: 7e5fddc787fc51eb59070be521ff16ad9a3900eccdc65a842fa4a42441673ca9 -packageVersion: 1.0.0b4 +apiMdSha256: a0304abd49810694b74da7c4a334836239fa5c61d6742ac6d3fde7fc52beba1b +packageVersion: 1.0.0b5 parserVersion: 0.3.31 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 96a9678b4f05..2d11c018ac73 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json +++ b/sdk/compute/azure-mgmt-compute-bulkaction/apiview-properties.json @@ -1,6 +1,8 @@ { "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", @@ -11,16 +13,12 @@ "azure.mgmt.compute.bulkaction.models.BulkActionVmExtensionProperties": "Microsoft.Compute.BulkActionVmExtensionProperties", "azure.mgmt.compute.bulkaction.models.BulkactionVMProperties": "Microsoft.Compute.BulkactionVMProperties", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverride": "Microsoft.Compute.BulkCreateCustomOverride", - "azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverrideBase": "Microsoft.Compute.BulkCreateCustomOverrideBase", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverridesProfile": "Microsoft.Compute.BulkCreateCustomOverridesProfile", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomPriorityProfile": "Microsoft.Compute.BulkCreateCustomPriorityProfile", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomProperties": "Microsoft.Compute.BulkCreateCustomProperties", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomResource": "Microsoft.Compute.BulkCreateCustomResource", "azure.mgmt.compute.bulkaction.models.BulkCreateCustomVirtualMachineInfo": "Microsoft.Compute.BulkCreateCustomVirtualMachineInfo", - "azure.mgmt.compute.bulkaction.models.BulkCreateCustomVmSizeProfile": "Microsoft.Compute.BulkCreateCustomVmSizeProfile", - "azure.mgmt.compute.bulkaction.models.BulkCreateCustomZoneAllocationPolicy": "Microsoft.Compute.BulkCreateCustomZoneAllocationPolicy", "azure.mgmt.compute.bulkaction.models.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", @@ -160,8 +158,6 @@ "azure.mgmt.compute.bulkaction.models.WindowsVMGuestPatchAutomaticByPlatformSettings": "Microsoft.Compute.WindowsVMGuestPatchAutomaticByPlatformSettings", "azure.mgmt.compute.bulkaction.models.WinRMConfiguration": "Microsoft.Compute.WinRMConfiguration", "azure.mgmt.compute.bulkaction.models.WinRMListener": "Microsoft.Compute.WinRMListener", - "azure.mgmt.compute.bulkaction.models.ZoneAllocationPolicy": "Microsoft.Compute.ZoneAllocationPolicy", - "azure.mgmt.compute.bulkaction.models.ZonePreference": "Microsoft.Compute.ZonePreference", "azure.mgmt.compute.bulkaction.models.Origin": "Azure.ResourceManager.CommonTypes.Origin", "azure.mgmt.compute.bulkaction.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType", "azure.mgmt.compute.bulkaction.models.ResourceOperationType": "Microsoft.Compute.ResourceOperationType", @@ -175,7 +171,6 @@ "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", @@ -207,10 +202,7 @@ "azure.mgmt.compute.bulkaction.models.Mode": "Microsoft.Compute.Mode", "azure.mgmt.compute.bulkaction.models.Modes": "Microsoft.Compute.Modes", "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", @@ -239,6 +231,10 @@ "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.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", @@ -316,5 +312,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": "eeb9d3b226eb" + "CrossLanguageVersion": "91f734b7126b" } \ 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 17b99dd7850b..b11eb47c272f 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 @@ -78,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-09-06-preview" and None. Default value is None. If not set, the operation's default API + "2026-10-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 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 c2f4fc012aef..7ff04c77305a 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-09-06-preview" and None. Default value is None. If not set, the operation's default API + "2026-10-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-09-06-preview") + api_version: str = kwargs.pop("api_version", "2026-10-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/_version.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/_version.py index 22553b18fb7e..c7d155d924dd 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.0b4" +VERSION = "1.0.0b5" 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 51b183043c77..7210b4b5cc41 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 @@ -79,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-09-06-preview" and None. Default value is None. If not set, the operation's default API + "2026-10-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 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 7b3ddb65f479..b69cb0c50db2 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-09-06-preview" and None. Default value is None. If not set, the operation's default API + "2026-10-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-09-06-preview") + api_version: str = kwargs.pop("api_version", "2026-10-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/operations/_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/azure/mgmt/compute/bulkaction/aio/operations/_operations.py index 800b7fefac84..66fb8b9832b3 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 @@ -77,11 +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_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, ) @@ -234,15 +236,17 @@ async def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -263,15 +267,17 @@ async def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeallocateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -292,15 +298,17 @@ async def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -319,16 +327,17 @@ async def bulk_deallocate_operation( request_body: Union[_models.ExecuteDeallocateContent, _types.ExecuteDeallocateContent, IO[bytes]], **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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 ExecuteDeallocateContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Is either a ExecuteDeallocateContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent or ~azure.mgmt.compute.bulkaction.types.ExecuteDeallocateContent or IO[bytes] :return: DeallocateResourceOperationResponse. The DeallocateResourceOperationResponse is @@ -413,15 +422,17 @@ async def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteHibernateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -442,15 +453,17 @@ async def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteHibernateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -471,15 +484,17 @@ async def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -498,16 +513,17 @@ async def bulk_hibernate_operation( request_body: Union[_models.ExecuteHibernateContent, _types.ExecuteHibernateContent, IO[bytes]], **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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 ExecuteHibernateContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Is either a ExecuteHibernateContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteHibernateContent or ~azure.mgmt.compute.bulkaction.types.ExecuteHibernateContent or IO[bytes] :return: HibernateResourceOperationResponse. The HibernateResourceOperationResponse is @@ -592,15 +608,17 @@ async def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteStartContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -621,15 +639,17 @@ async def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteStartContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -650,15 +670,17 @@ async def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -677,16 +699,17 @@ async def bulk_start_operation( request_body: Union[_models.ExecuteStartContent, _types.ExecuteStartContent, IO[bytes]], **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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 ExecuteStartContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Is either a ExecuteStartContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteStartContent or ~azure.mgmt.compute.bulkaction.types.ExecuteStartContent or IO[bytes] :return: StartResourceOperationResponse. The StartResourceOperationResponse is compatible with @@ -771,15 +794,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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". @@ -800,15 +825,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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". @@ -829,15 +856,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -856,16 +885,17 @@ async def bulk_delete_operation( 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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 @@ -950,15 +980,15 @@ async 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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". @@ -979,15 +1009,15 @@ async 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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". @@ -1008,15 +1038,15 @@ async 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1035,16 +1065,16 @@ async def bulk_get_operations_status( 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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 @@ -1129,14 +1159,16 @@ async def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + 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". @@ -1157,14 +1189,16 @@ async def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + 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". @@ -1185,14 +1219,16 @@ async def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1211,15 +1247,16 @@ async def bulk_cancel_operations( request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]], **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. 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 @@ -1304,15 +1341,19 @@ async def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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". @@ -1333,15 +1374,19 @@ async def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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". @@ -1362,15 +1407,19 @@ async def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1394,7 +1443,7 @@ async def bulk_reimage_operation( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def bulk_reimage_operation( self, @@ -1403,16 +1452,19 @@ async def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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 @@ -1487,6 +1539,322 @@ async def bulk_reimage_operation( 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", "2026-10-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"]: + """List recent errors for operations in 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 before the current time to include when + listing bulk action 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) + + return _request + + 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) + + 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 + ) + response = pipeline_response.http_response + + 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) + + return pipeline_response + + return AsyncItemPaged(get_next, extract_data) + + @overload + async def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: _models.AcknowledgeBulkOperationErrorsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest + :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 + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: _types.AcknowledgeBulkOperationErrorsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type body: ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest + :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 + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + async def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type 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 + :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", "2026-10-06-preview"], + ) + async def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: Union[ + _models.AcknowledgeBulkOperationErrorsRequest, _types.AcknowledgeBulkOperationErrorsRequest, IO[bytes] + ], + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. 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 + :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.AcknowledgeBulkOperationErrorsResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_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.AcknowledgeBulkOperationErrorsResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param """ @@ -1520,7 +1888,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def get( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -1603,7 +1971,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def get_async_operation_status( self, location: str, async_operation_id: str, **kwargs: Any @@ -1688,7 +2056,7 @@ async def get_async_operation_status( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _create_or_update_initial( self, @@ -1879,7 +2247,7 @@ async def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_create_or_update( self, @@ -1973,7 +2341,7 @@ def get_long_running_output(pipeline_response): "delete_instances", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _delete_initial( self, @@ -2057,7 +2425,7 @@ async def _delete_initial( "delete_instances", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_delete( self, @@ -2135,7 +2503,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _cancel_initial( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -2204,7 +2572,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_cancel( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -2280,7 +2648,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def virtual_machines_get_operation_status( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -2393,7 +2761,7 @@ async def get_next(next_link=None): 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"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group( self, resource_group_name: str, location: str, **kwargs: Any @@ -2501,7 +2869,7 @@ 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", "location", "accept"]}, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription( self, location: str, **kwargs: Any @@ -2634,7 +3002,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def get( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -2716,7 +3084,7 @@ async def get( params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def get_async_operation_status( self, location: str, async_operation_id: str, **kwargs: Any @@ -2801,7 +3169,7 @@ async def get_async_operation_status( "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def _create_or_update_initial( self, @@ -2992,7 +3360,7 @@ async def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def begin_create_or_update( self, @@ -3086,7 +3454,7 @@ def get_long_running_output(pipeline_response): "delete_instances", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def _delete_initial( self, @@ -3170,7 +3538,7 @@ async def _delete_initial( "delete_instances", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def begin_delete( self, @@ -3248,7 +3616,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def _cancel_initial( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -3317,7 +3685,7 @@ async def _cancel_initial( params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) async def begin_cancel( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -3393,7 +3761,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def virtual_machines_get_operation_status( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -3506,7 +3874,7 @@ async def get_next(next_link=None): params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group( self, resource_group_name: str, location: str, **kwargs: Any @@ -3614,7 +3982,7 @@ async def get_next(next_link=None): @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"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription(self, location: str, **kwargs: Any) -> AsyncItemPaged["_models.LocationBasedBulkCreate"]: """List BulkCreate resources by subscriptionId. @@ -3744,7 +4112,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def get(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> _models.ScheduledAction: """Gets the specified scheduled action. @@ -3828,7 +4196,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _create_or_update_initial( self, @@ -4010,7 +4378,7 @@ async def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_create_or_update( self, @@ -4101,7 +4469,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _update_initial( self, @@ -4281,7 +4649,7 @@ async def begin_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_update( self, @@ -4358,7 +4726,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _delete_initial( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -4430,7 +4798,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_delete( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -4495,7 +4863,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group( self, resource_group_name: str, **kwargs: Any @@ -4600,7 +4968,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.ScheduledAction"]: """Lists scheduled actions in the specified subscription. @@ -4707,7 +5075,7 @@ async def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_resources( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -4824,7 +5192,7 @@ async def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _attach_resources_initial( self, @@ -5007,7 +5375,7 @@ async def begin_attach_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_attach_resources( self, @@ -5098,7 +5466,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _detach_resources_initial( self, @@ -5281,7 +5649,7 @@ async def begin_detach_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_detach_resources( self, @@ -5460,7 +5828,7 @@ async def patch_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def patch_resources( self, @@ -5558,7 +5926,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _disable_initial( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -5629,7 +5997,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_disable( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -5695,7 +6063,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _enable_initial( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -5766,7 +6134,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_enable( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -5839,7 +6207,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _cancel_next_occurrence_initial( self, @@ -6025,7 +6393,7 @@ async def begin_cancel_next_occurrence( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_cancel_next_occurrence( self, @@ -6116,7 +6484,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _trigger_manual_occurrence_initial( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -6194,7 +6562,7 @@ async def _trigger_manual_occurrence_initial( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_trigger_manual_occurrence( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -6285,7 +6653,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_vms(self, resource_uri: str, **kwargs: Any) -> AsyncItemPaged["_models.ScheduledActionResources"]: """Lists scheduled actions associated with the specified VM. @@ -6408,7 +6776,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult: """Gets the status of the specified scheduled action operation. @@ -6511,7 +6879,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def get( self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any @@ -6600,7 +6968,7 @@ async def get( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_scheduled_action( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -6718,7 +7086,7 @@ async def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_resources( self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any @@ -6839,7 +7207,7 @@ async def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _cancel_initial( self, @@ -7037,7 +7405,7 @@ async def begin_cancel( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_cancel( self, @@ -7134,7 +7502,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def _delay_initial( self, @@ -7332,7 +7700,7 @@ async def begin_delay( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) async def begin_delay( self, @@ -7440,7 +7808,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_occurrence_by_vms( self, resource_uri: str, **kwargs: Any 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 eaeefec3b517..2bfcac05c396 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,6 +14,8 @@ from ._models import ( # type: ignore + AcknowledgeBulkOperationErrorsRequest, + AcknowledgeBulkOperationErrorsResponse, AdditionalCapabilities, AdditionalUnattendContent, AllInstancesDown, @@ -22,16 +24,12 @@ BootDiagnostics, BulkActionVmExtensionProperties, BulkCreateCustomOverride, - BulkCreateCustomOverrideBase, BulkCreateCustomOverridesProfile, BulkCreateCustomPriorityProfile, BulkCreateCustomProperties, BulkCreateCustomResource, BulkCreateCustomVirtualMachineInfo, - BulkCreateCustomVmSizeProfile, - BulkCreateCustomZoneAllocationPolicy, BulkCreateProperties, - BulkCreateVmSizeProfile, BulkactionVMExtension, BulkactionVMProperties, CancelOccurrenceRequest, @@ -173,15 +171,10 @@ WinRMListener, WindowsConfiguration, WindowsVMGuestPatchAutomaticByPlatformSettings, - ZoneAllocationPolicy, - ZonePreference, ) from ._enums import ( # type: ignore ActionType, - AllocationStrategy, - BulkCreateCustomAllocationStrategy, - BulkCreateCustomDistributionStrategy, CachingTypes, CapacityRecommendationStatus, CapacityType, @@ -194,7 +187,6 @@ DiskCreateOptionTypes, DiskDeleteOptionTypes, DiskDetachOptionTypes, - DistributionStrategy, DomainNameLabelScopeTypes, EvictionPolicy, IPVersions, @@ -245,6 +237,8 @@ from ._patch import patch_sdk as _patch_sdk __all__ = [ + "AcknowledgeBulkOperationErrorsRequest", + "AcknowledgeBulkOperationErrorsResponse", "AdditionalCapabilities", "AdditionalUnattendContent", "AllInstancesDown", @@ -253,16 +247,12 @@ "BootDiagnostics", "BulkActionVmExtensionProperties", "BulkCreateCustomOverride", - "BulkCreateCustomOverrideBase", "BulkCreateCustomOverridesProfile", "BulkCreateCustomPriorityProfile", "BulkCreateCustomProperties", "BulkCreateCustomResource", "BulkCreateCustomVirtualMachineInfo", - "BulkCreateCustomVmSizeProfile", - "BulkCreateCustomZoneAllocationPolicy", "BulkCreateProperties", - "BulkCreateVmSizeProfile", "BulkactionVMExtension", "BulkactionVMProperties", "CancelOccurrenceRequest", @@ -404,12 +394,7 @@ "WinRMListener", "WindowsConfiguration", "WindowsVMGuestPatchAutomaticByPlatformSettings", - "ZoneAllocationPolicy", - "ZonePreference", "ActionType", - "AllocationStrategy", - "BulkCreateCustomAllocationStrategy", - "BulkCreateCustomDistributionStrategy", "CachingTypes", "CapacityRecommendationStatus", "CapacityType", @@ -422,7 +407,6 @@ "DiskCreateOptionTypes", "DiskDeleteOptionTypes", "DiskDetachOptionTypes", - "DistributionStrategy", "DomainNameLabelScopeTypes", "EvictionPolicy", "IPVersions", 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 d604e8ab0086..103ae806a23a 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 @@ -19,38 +19,6 @@ class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Actions are for internal-only APIs.""" -class AllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The allocation strategy for VM size selection.""" - - LOWEST_PRICE = "LowestPrice" - """Platform prioritizes VM sizes with the lowest hourly cost.""" - PRIORITIZED = "Prioritized" - """Customer specifies a rank for each VM size, platform uses VM sizes in rank order.""" - CAPACITY_OPTIMIZED = "CapacityOptimized" - """Platform prioritizes VM sizes with the highest available capacity first.""" - - -class BulkCreateCustomAllocationStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The allocation strategy for VM size selection in BulkCreateCustom.""" - - LOWEST_PRICE = "LowestPrice" - """Platform prioritizes VM sizes with the lowest hourly cost.""" - PRIORITIZED = "Prioritized" - """Customer specifies a rank for each VM size, platform uses VM sizes in rank order.""" - - -class BulkCreateCustomDistributionStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The distribution strategy for zone allocation in BulkCreateCustom.""" - - BEST_EFFORT_SINGLE_ZONE = "BestEffortSingleZone" - """Platform attempts to place as many VMs as possible in a single zone, falls back to multiple - zones if needed.""" - PRIORITIZED = "Prioritized" - """Platform uses customer-provided zone rankings to allocate VMs.""" - BEST_EFFORT_BALANCED = "BestEffortBalanced" - """Platform attempts to evenly distribute VMs across all available zones with best effort.""" - - class CachingTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values are: **None for Standard storage. ReadOnly for Premium storage**. @@ -103,12 +71,12 @@ class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): class DeadlineType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The types of deadlines supported by Bulkactions.""" + """The deadline behavior for a bulk action.""" INITIATE_AT = "InitiateAt" - """Initiate the operation at the given deadline.""" + """Bulk Actions attempts to start the operation at the specified deadline.""" COMPLETE_BY = "CompleteBy" - """Complete the operation by the given deadline.""" + """Bulk Actions attempts to complete the operation by the specified deadline.""" class DeleteOptions(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -218,21 +186,6 @@ class DiskDetachOptionTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """ForceDetach the disk.""" -class DistributionStrategy(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The distribution strategy for zone allocation.""" - - BEST_EFFORT_SINGLE_ZONE = "BestEffortSingleZone" - """Platform attempts to place as many VMs as possible in a single zone, falls back to multiple - zones if needed.""" - PRIORITIZED = "Prioritized" - """Platform uses customer-provided zone rankings to allocate VMs.""" - BEST_EFFORT_BALANCED = "BestEffortBalanced" - """Platform attempts to evenly distribute VMs across all available zones with best effort.""" - STRICT_BALANCED = "StrictBalanced" - """Platform must evenly distribute VMs across zones, request is rejected if exact balance cannot - be achieved.""" - - class DomainNameLabelScopeTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy from domain name label scope and vm index will be the domain name @@ -490,20 +443,20 @@ class OperatingSystemTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): class OperationState(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Values that define the states of operations in Bulkactions.""" + """The current state of a bulk action.""" SCHEDULED = "Scheduled" - """Operations that have been scheduled.""" + """The operation has been scheduled.""" EXECUTING = "Executing" - """Operations that are in the process of being executed.""" + """The operation is in progress.""" SUCCEEDED = "Succeeded" - """Operations that succeeded.""" + """The operation completed successfully.""" FAILED = "Failed" - """Operations that have failed.""" + """The operation failed.""" CANCELLED = "Cancelled" - """Operations that have been Cancelled by the user.""" + """The operation was canceled by the caller.""" BLOCKED = "Blocked" - """Operations that are blocked.""" + """The operation cannot currently make progress.""" class Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -543,12 +496,12 @@ class PartialFulfillmentReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): class PriorityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The priority type for VM allocation.""" + """The priority type for virtual machine allocation.""" REGULAR = "Regular" - """Regular priority VMs.""" + """Regular, non-Spot virtual machines.""" SPOT = "Spot" - """Spot priority VMs.""" + """Azure Spot Virtual Machines.""" class ProtocolTypes(str, Enum, metaclass=CaseInsensitiveEnumMeta): @@ -628,18 +581,18 @@ class ResourceOperationStatus(str, Enum, metaclass=CaseInsensitiveEnumMeta): class ResourceOperationType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The kind of bulk operation that can be performed on resources using Bulkactions API.""" + """The type of operation performed by Bulk Actions.""" START = "Start" - """Start operations on the resources.""" + """Starts the specified virtual machines.""" DEALLOCATE = "Deallocate" - """Deallocate operations on the resources.""" + """Deallocates the specified virtual machines.""" HIBERNATE = "Hibernate" - """Hibernate operations on the resources.""" + """Hibernates the specified virtual machines.""" CREATE = "Create" - """Create operations on the resources.""" + """Creates the specified virtual machines.""" DELETE = "Delete" - """Delete operations on the resources.""" + """Deletes the specified virtual machines.""" class ResourceType(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 c8012e351d83..6609ca954894 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,6 +19,80 @@ from .. import models as _models +class AcknowledgeBulkOperationErrorsRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only + """The operations for which errors should be acknowledged. + + :ivar operation_ids: The Bulk Action Operation Ids that identify operations for which errors + should be acknowledged. Required. + :vartype operation_ids: list[str] + """ + + operation_ids: list[str] = rest_field( + name="operationIds", visibility=["read", "create", "update", "delete", "query"] + ) + """The Bulk Action Operation Ids that identify operations for which errors should be acknowledged. + 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 result of acknowledging errors for specified operations. + + :ivar acknowledged: The Bulk Action Operation Ids that identify operations with acknowledged + errors. Required. + :vartype acknowledged: list[str] + :ivar not_found: The Bulk Action Operation Ids that were not found or are no longer available. + Required. + :vartype not_found: list[str] + :ivar skipped: The Bulk Action Operation Ids that identify operations with errors that could + not be acknowledged. Required. + :vartype skipped: list[str] + """ + + acknowledged: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Bulk Action Operation Ids that identify operations with acknowledged errors. Required.""" + not_found: list[str] = rest_field(name="notFound", visibility=["read", "create", "update", "delete", "query"]) + """The Bulk Action Operation Ids that were not found or are no longer available. Required.""" + skipped: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) + """The Bulk Action Operation Ids that identify operations with errors that could not be + acknowledged. 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. @@ -628,66 +702,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BulkCreateCustomOverrideBase(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Override fields shared by per-VM and per-VM-size overrides. Each set field takes precedence - over the operation-level value. VM size, zone, priority, eviction policy, and billing are owned - by the service and cannot be set here. - - :ivar virtual_machine_profile: VM profile, the same shape as operation-level - ComputeProfile.virtualMachineProfile. Overrides the operation-level VM profile. - :vartype virtual_machine_profile: ~azure.mgmt.compute.bulkaction.models.BulkactionVMProperties - :ivar tags: Tags overriding the operation-level tags. - :vartype tags: dict[str, str] - :ivar identity: Identity overriding the operation-level identity. - :vartype identity: ~azure.mgmt.compute.bulkaction.models.VirtualMachineIdentity - :ivar plan: Plan overriding the operation-level plan. - :vartype plan: ~azure.mgmt.compute.bulkaction.models.Plan - :ivar extensions: Extensions. When non-empty they replace the operation-level extensions; when - omitted the operation-level extensions are inherited. - :vartype extensions: list[~azure.mgmt.compute.bulkaction.models.BulkactionVMExtension] - """ - - virtual_machine_profile: Optional["_models.BulkactionVMProperties"] = rest_field( - name="virtualMachineProfile", visibility=["read", "create", "update", "delete", "query"] - ) - """VM profile, the same shape as operation-level ComputeProfile.virtualMachineProfile. Overrides - the operation-level VM profile.""" - tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Tags overriding the operation-level tags.""" - identity: Optional["_models.VirtualMachineIdentity"] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """Identity overriding the operation-level identity.""" - plan: Optional["_models.Plan"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """Plan overriding the operation-level plan.""" - extensions: Optional[list["_models.BulkactionVMExtension"]] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """Extensions. When non-empty they replace the operation-level extensions; when omitted the - operation-level extensions are inherited.""" - - @overload - def __init__( - self, - *, - virtual_machine_profile: Optional["_models.BulkactionVMProperties"] = None, - tags: Optional[dict[str, str]] = None, - identity: Optional["_models.VirtualMachineIdentity"] = None, - plan: Optional["_models.Plan"] = None, - extensions: Optional[list["_models.BulkactionVMExtension"]] = 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 BulkCreateCustomOverridesProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Groups the per-VM overrides with the name prefix that names any override that does not supply its own VM name. @@ -742,10 +756,6 @@ class BulkCreateCustomPriorityProfile(_Model): # pylint: disable=docstring-keyw :ivar eviction_policy: Eviction Policy to follow when evicting Spot VMs. Known values are: "Delete" and "Deallocate". :vartype eviction_policy: str or ~azure.mgmt.compute.bulkaction.models.EvictionPolicy - :ivar allocation_strategy: The allocation strategy for VM size selection. Known values are: - "LowestPrice" and "Prioritized". - :vartype allocation_strategy: str or - ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomAllocationStrategy """ type: Optional[Union[str, "_models.PriorityType"]] = rest_field( @@ -761,11 +771,6 @@ class BulkCreateCustomPriorityProfile(_Model): # pylint: disable=docstring-keyw ) """Eviction Policy to follow when evicting Spot VMs. Known values are: \"Delete\" and \"Deallocate\".""" - allocation_strategy: Optional[Union[str, "_models.BulkCreateCustomAllocationStrategy"]] = rest_field( - name="allocationStrategy", visibility=["read", "create", "update", "delete", "query"] - ) - """The allocation strategy for VM size selection. Known values are: \"LowestPrice\" and - \"Prioritized\".""" @overload def __init__( @@ -774,7 +779,6 @@ def __init__( type: Optional[Union[str, "_models.PriorityType"]] = None, max_price_per_vm: Optional[float] = None, eviction_policy: Optional[Union[str, "_models.EvictionPolicy"]] = None, - allocation_strategy: Optional[Union[str, "_models.BulkCreateCustomAllocationStrategy"]] = None, ) -> None: ... @overload @@ -820,14 +824,8 @@ class BulkCreateCustomProperties(_Model): # pylint: disable=docstring-keyword-s BulkCreateCustom. Required. :vartype priority_profile: ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomPriorityProfile - :ivar vm_sizes_profile: List of VM sizes supported for BulkCreateCustom. - :vartype vm_sizes_profile: - list[~azure.mgmt.compute.bulkaction.models.BulkCreateCustomVmSizeProfile] :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.BulkCreateCustomZoneAllocationPolicy :ivar overrides_profile: Per-VM overrides and the shared name prefix, specified when the operation is created. :vartype overrides_profile: @@ -872,18 +870,10 @@ class BulkCreateCustomProperties(_Model): # pylint: disable=docstring-keyword-s name="priorityProfile", visibility=["read", "create", "update", "delete", "query"] ) """Configuration Options for Regular or Spot instances in BulkCreateCustom. Required.""" - vm_sizes_profile: Optional[list["_models.BulkCreateCustomVmSizeProfile"]] = rest_field( - name="vmSizesProfile", visibility=["read", "create", "update", "delete", "query"] - ) - """List of VM sizes supported for BulkCreateCustom.""" 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.BulkCreateCustomZoneAllocationPolicy"] = rest_field( - name="zoneAllocationPolicy", visibility=["read", "create", "update", "delete", "query"] - ) - """Zone Allocation Policy for launching instances.""" overrides_profile: Optional["_models.BulkCreateCustomOverridesProfile"] = rest_field( name="overridesProfile", visibility=["create", "update"] ) @@ -903,8 +893,6 @@ def __init__( 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.BulkCreateCustomVmSizeProfile"]] = None, - zone_allocation_policy: Optional["_models.BulkCreateCustomZoneAllocationPolicy"] = None, overrides_profile: Optional["_models.BulkCreateCustomOverridesProfile"] = None, execution_parameters: Optional["_models.ExecutionParameters"] = None, ) -> None: ... @@ -990,96 +978,6 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) -class BulkCreateCustomVmSizeProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """A VM size profile entry that may additionally carry an optional per-VM-size profile override. - Every VM that the service assigns to this size inherits the override, layered on top of the - operation-level base profile and beneath any per-VM override. Present only on the - bulkCreateCustom endpoint; the uniform endpoint rejects a non-null override. - - :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 - :ivar override: Optional per-VM-size profile override applied to every VM the service assigns - to this size. A size maps to many VMs, so virtualMachineName is not part of this shape. - virtualMachineProfile is layered beneath any per-VM override; tags, identity, and plan are - merged with the per-VM override, with the per-VM value winning. - :vartype override: ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomOverrideBase - """ - - 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.""" - override: Optional["_models.BulkCreateCustomOverrideBase"] = rest_field( - visibility=["read", "create", "update", "delete", "query"] - ) - """Optional per-VM-size profile override applied to every VM the service assigns to this size. A - size maps to many VMs, so virtualMachineName is not part of this shape. virtualMachineProfile - is layered beneath any per-VM override; tags, identity, and plan are merged with the per-VM - override, with the per-VM value winning.""" - - @overload - def __init__( - self, - *, - name: str, - rank: int, - override: Optional["_models.BulkCreateCustomOverrideBase"] = 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 BulkCreateCustomZoneAllocationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The zone allocation policy for distributing VMs across availability zones in BulkCreateCustom. - - :ivar distribution_strategy: The distribution strategy for zone allocation. Defaults to - BestEffortBalanced. Known values are: "BestEffortSingleZone", "Prioritized", and - "BestEffortBalanced". - :vartype distribution_strategy: str or - ~azure.mgmt.compute.bulkaction.models.BulkCreateCustomDistributionStrategy - :ivar zone_preferences: The zone preferences for allocation priority. - :vartype zone_preferences: list[~azure.mgmt.compute.bulkaction.models.ZonePreference] - """ - - distribution_strategy: Optional[Union[str, "_models.BulkCreateCustomDistributionStrategy"]] = rest_field( - name="distributionStrategy", visibility=["read", "create", "update", "delete", "query"] - ) - """The distribution strategy for zone allocation. Defaults to BestEffortBalanced. Known values - are: \"BestEffortSingleZone\", \"Prioritized\", and \"BestEffortBalanced\".""" - zone_preferences: Optional[list["_models.ZonePreference"]] = rest_field( - name="zonePreferences", visibility=["read", "create", "update", "delete", "query"] - ) - """The zone preferences for allocation priority.""" - - @overload - def __init__( - self, - *, - distribution_strategy: Optional[Union[str, "_models.BulkCreateCustomDistributionStrategy"]] = None, - zone_preferences: Optional[list["_models.ZonePreference"]] = 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 BulkCreateProperties(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Details of the BulkCreate. @@ -1109,15 +1007,9 @@ class BulkCreateProperties(_Model): # pylint: disable=docstring-keyword-should- :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 @@ -1156,21 +1048,11 @@ class BulkCreateProperties(_Model): # pylint: disable=docstring-keyword-should- 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"] ) """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"] - ) - """Zone Allocation Policy for launching instances.""" execution_parameters: Optional["_models.ExecutionParameters"] = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) @@ -1186,8 +1068,6 @@ def __init__( 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: ... @@ -1202,41 +1082,6 @@ 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, - *, - name: str, - rank: 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 CancelOccurrenceRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Request body for canceling a scheduled action occurrence. @@ -1268,16 +1113,17 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class CancelOperationsContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """This is the request to cancel running operations in scheduled actions using the operation ids. + """The eligible operations to cancel. - :ivar operation_ids: The list of operation ids to cancel operations on. Required. + :ivar operation_ids: The Bulk Action Operation Ids that identify the operations to cancel. + Required. :vartype operation_ids: list[str] """ operation_ids: list[str] = rest_field( name="operationIds", visibility=["read", "create", "update", "delete", "query"] ) - """The list of operation ids to cancel operations on. Required.""" + """The Bulk Action Operation Ids that identify the operations to cancel. Required.""" @overload def __init__( @@ -1298,14 +1144,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class CancelOperationsResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """This is the response from a cancel operations request. + """The results of the cancellation requests. - :ivar results: An array of resource operations that were successfully cancelled. Required. + :ivar results: The current result for each operation submitted for cancellation. Required. :vartype results: list[~azure.mgmt.compute.bulkaction.models.ResourceOperation] """ results: list["_models.ResourceOperation"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """An array of resource operations that were successfully cancelled. Required.""" + """The current result for each operation submitted for cancellation. Required.""" @overload def __init__( @@ -1799,28 +1645,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DeallocateResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The response from a deallocate request. + """The result of a bulk deallocate action. - :ivar description: The description of the operation response. Required. + :ivar description: A description of the bulk action result. Required. :vartype description: str - :ivar type: The type of resources used in the deallocate request eg virtual machines. Required. + :ivar type: The type of resources targeted by the bulk action. Required. :vartype type: str - :ivar location: The location of the deallocate request eg westus. Required. + :ivar location: The Azure region where Bulk Actions processes the request. Required. :vartype location: str - :ivar results: The results from the deallocate request if no errors exist. + :ivar results: The result for each virtual machine. :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.""" + """A description of the bulk action result. Required.""" type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The type of resources used in the deallocate request eg virtual machines. Required.""" + """The type of resources targeted by the bulk action. Required.""" location: str = rest_field(visibility=["read", "create"]) - """The location of the deallocate request eg westus. Required.""" + """The Azure region where Bulk Actions processes the request. Required.""" results: Optional[list["_models.ResourceOperation"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The results from the deallocate request if no errors exist.""" + """The result for each virtual machine.""" @overload def __init__( @@ -1878,28 +1724,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class DeleteResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The response from a delete request. + """The result of a bulk delete action. - :ivar description: The description of the operation response. Required. + :ivar description: A description of the bulk action result. Required. :vartype description: str - :ivar type: The type of resources used in the delete request eg virtual machines. Required. + :ivar type: The type of resources targeted by the bulk action. Required. :vartype type: str - :ivar location: The location of the delete request eg westus. Required. + :ivar location: The Azure region where Bulk Actions processes the request. Required. :vartype location: str - :ivar results: The results from the delete request if no errors exist. + :ivar results: The result for each virtual machine. :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.""" + """A description of the bulk action result. Required.""" type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The type of resources used in the delete request eg virtual machines. Required.""" + """The type of resources targeted by the bulk action. Required.""" location: str = rest_field(visibility=["read", "create"]) - """The location of the delete request eg westus. Required.""" + """The Azure region where Bulk Actions processes the request. Required.""" results: Optional[list["_models.ResourceOperation"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The results from the delete request if no errors exist.""" + """The result for each virtual machine.""" @overload def __init__( @@ -2004,14 +1850,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class SubResource(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Describes a reference to a sub-resource. + """A reference to an Azure resource. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str """ id: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The ID of the sub-resource.""" + """The Azure resource ID.""" @overload def __init__( @@ -2037,7 +1883,7 @@ class DiskEncryptionSetParametersContent(SubResource): # pylint: disable=docstr managed disk. Please refer `https://aka.ms/mdssewithcmkoverview `_ for more details. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str """ @@ -2245,11 +2091,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecuteDeallocateContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The ExecuteDeallocateRequest request for executeDeallocate operations. + """The virtual machines and execution settings for a bulk deallocate action. - :ivar execution_parameters: The execution parameters for the request. Required. + :ivar execution_parameters: The execution settings for the bulk action. Required. :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: ~azure.mgmt.compute.bulkaction.models.Resources :ivar resources_with_context: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -2259,9 +2105,9 @@ class ExecuteDeallocateContent(_Model): # pylint: disable=docstring-keyword-sho execution_parameters: "_models.ExecutionParameters" = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: Optional["_models.Resources"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resources for the request.""" + """The target virtual machines.""" resources_with_context: Optional["_models.ResourcesWithContext"] = rest_field( name="resourcesWithContext", visibility=["read", "create", "update", "delete", "query"] ) @@ -2289,25 +2135,26 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecuteDeleteContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The ExecuteDeleteRequest for delete VM operation. + """The virtual machines and execution settings for a bulk delete action. - :ivar execution_parameters: The execution parameters for the request. Required. + :ivar execution_parameters: The execution settings for the bulk action. Required. :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: ~azure.mgmt.compute.bulkaction.models.Resources :ivar resources_with_context: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. :vartype resources_with_context: ~azure.mgmt.compute.bulkaction.models.ResourcesWithContext - :ivar force_deletion: Forced delete resource item. + :ivar force_deletion: Indicates whether Bulk Actions uses forced deletion for the target + virtual machines. :vartype force_deletion: bool """ execution_parameters: "_models.ExecutionParameters" = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: Optional["_models.Resources"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resources for the request.""" + """The target virtual machines.""" resources_with_context: Optional["_models.ResourcesWithContext"] = rest_field( name="resourcesWithContext", visibility=["read", "create", "update", "delete", "query"] ) @@ -2316,7 +2163,7 @@ class ExecuteDeleteContent(_Model): # pylint: disable=docstring-keyword-should- force_deletion: Optional[bool] = rest_field( name="forceDeletion", visibility=["read", "create", "update", "delete", "query"] ) - """Forced delete resource item.""" + """Indicates whether Bulk Actions uses forced deletion for the target virtual machines.""" @overload def __init__( @@ -2340,11 +2187,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecuteHibernateContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The ExecuteHibernateRequest request for executeHibernate operations. + """The virtual machines and execution settings for a bulk hibernate action. - :ivar execution_parameters: The execution parameters for the request. Required. + :ivar execution_parameters: The execution settings for the bulk action. Required. :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: ~azure.mgmt.compute.bulkaction.models.Resources :ivar resources_with_context: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -2354,9 +2201,9 @@ class ExecuteHibernateContent(_Model): # pylint: disable=docstring-keyword-shou execution_parameters: "_models.ExecutionParameters" = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: Optional["_models.Resources"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resources for the request.""" + """The target virtual machines.""" resources_with_context: Optional["_models.ResourcesWithContext"] = rest_field( name="resourcesWithContext", visibility=["read", "create", "update", "delete", "query"] ) @@ -2384,25 +2231,25 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecuteReimageRequest(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The ExecuteReimageRequest request for reimage operations. + """The virtual machines and configuration for a bulk reimage action. - :ivar execution_parameters: The execution parameters for the request. Required. + :ivar execution_parameters: The execution settings for the bulk action. Required. :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: ~azure.mgmt.compute.bulkaction.models.Resources :ivar resources_with_context: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. :vartype resources_with_context: ~azure.mgmt.compute.bulkaction.models.ResourcesWithContext - :ivar reimage_parameters: Reimage parameters including base profile and per-resource overrides. + :ivar reimage_parameters: The shared and per-virtual-machine reimage configuration. :vartype reimage_parameters: ~azure.mgmt.compute.bulkaction.models.ReimagePayload """ execution_parameters: "_models.ExecutionParameters" = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: Optional["_models.Resources"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resources for the request.""" + """The target virtual machines.""" resources_with_context: Optional["_models.ResourcesWithContext"] = rest_field( name="resourcesWithContext", visibility=["read", "create", "update", "delete", "query"] ) @@ -2411,7 +2258,7 @@ class ExecuteReimageRequest(_Model): # pylint: disable=docstring-keyword-should reimage_parameters: Optional["_models.ReimagePayload"] = rest_field( name="reimageParameters", visibility=["read", "create", "update", "delete", "query"] ) - """Reimage parameters including base profile and per-resource overrides.""" + """The shared and per-virtual-machine reimage configuration.""" @overload def __init__( @@ -2435,11 +2282,11 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecuteStartContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The ExecuteStartRequest request for executeStart operations. + """The virtual machines and execution settings for a bulk start action. - :ivar execution_parameters: The execution parameters for the request. Required. + :ivar execution_parameters: The execution settings for the bulk action. Required. :vartype execution_parameters: ~azure.mgmt.compute.bulkaction.models.ExecutionParameters - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: ~azure.mgmt.compute.bulkaction.models.Resources :ivar resources_with_context: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -2449,9 +2296,9 @@ class ExecuteStartContent(_Model): # pylint: disable=docstring-keyword-should-m execution_parameters: "_models.ExecutionParameters" = rest_field( name="executionParameters", visibility=["read", "create", "update", "delete", "query"] ) - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: Optional["_models.Resources"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resources for the request.""" + """The target virtual machines.""" resources_with_context: Optional["_models.ResourcesWithContext"] = rest_field( name="resourcesWithContext", visibility=["read", "create", "update", "delete", "query"] ) @@ -2479,13 +2326,13 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Extra details needed to run the user's request. + """The execution settings for a bulk action. - :ivar retry_policy: Retry policy the user can pass. + :ivar retry_policy: The retry settings for the bulk action. :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 - health check and engage the fallback chain if the guest agent does not report Ready. Ignored - for non-Start operations. + :ivar verify_vm_agent_health: If true, Bulk Actions verifies the virtual machine guest agent + health after a start operation. Setting this property to true for any other operation causes + the request to fail. :vartype verify_vm_agent_health: bool :ivar capacity_recommendation_parameters: Capacity recommendation parameters for the request. When provided on an executeStart request, the service computes placement recommendations only @@ -2493,17 +2340,19 @@ class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-m sizes and locations are then surfaced in the operation's capacityRecommendation response. :vartype capacity_recommendation_parameters: ~azure.mgmt.compute.bulkaction.models.CapacityRecommendationParameters + :ivar additional_create_parameters: Additional configuration for Create. + :vartype additional_create_parameters: dict[str, any] """ retry_policy: Optional["_models.RetryPolicy"] = rest_field( name="retryPolicy", visibility=["read", "create", "update", "delete", "query"] ) - """Retry policy the user can pass.""" + """The retry settings for the bulk action.""" verify_vm_agent_health: Optional[bool] = rest_field( name="verifyVmAgentHealth", visibility=["read", "create", "update", "delete", "query"] ) - """When true on an executeStart request, run a post-Start VM agent health check and engage the - fallback chain if the guest agent does not report Ready. Ignored for non-Start operations.""" + """If true, Bulk Actions verifies the virtual machine guest agent health after a start operation. + Setting this property to true for any other operation causes the request to fail.""" capacity_recommendation_parameters: Optional["_models.CapacityRecommendationParameters"] = rest_field( name="capacityRecommendationParameters", visibility=["read", "create", "update", "delete", "query"] ) @@ -2511,6 +2360,10 @@ class ExecutionParameters(_Model): # pylint: disable=docstring-keyword-should-m the service computes placement recommendations only if the VM fails to start due to an allocation failure; the recommendations for the desired sizes and locations are then surfaced in the operation's capacityRecommendation response.""" + additional_create_parameters: Optional[dict[str, Any]] = rest_field( + name="additionalCreateParameters", visibility=["read", "create", "update", "delete", "query"] + ) + """Additional configuration for Create.""" @overload def __init__( @@ -2519,6 +2372,7 @@ def __init__( retry_policy: Optional["_models.RetryPolicy"] = None, verify_vm_agent_health: Optional[bool] = None, capacity_recommendation_parameters: Optional["_models.CapacityRecommendationParameters"] = None, + additional_create_parameters: Optional[dict[str, Any]] = None, ) -> None: ... @overload @@ -2578,28 +2432,29 @@ class ExtensionResource(Resource): class FallbackOperationInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Describes the fallback operation that was performed. + """Information about the fallback operation attempted after the requested operation did not + succeed. - :ivar last_op_type: The last operation type that was performed as a fallback. Required. Known - values are: "Start", "Deallocate", "Hibernate", "Create", and "Delete". + :ivar last_op_type: The type of the additional operation. Required. Known 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. + :ivar status: The status of the additional operation. Required. :vartype status: str - :ivar error: The error code if the fallback operation failed. + :ivar error: The error returned when the additional operation did not succeed. :vartype error: ~azure.mgmt.compute.bulkaction.models.ResourceOperationError """ last_op_type: Union[str, "_models.ResourceOperationType"] = rest_field( name="lastOpType", visibility=["read", "create", "update", "delete", "query"] ) - """The last operation type that was performed as a fallback. Required. Known values are: - \"Start\", \"Deallocate\", \"Hibernate\", \"Create\", and \"Delete\".""" + """The type of the additional operation. Required. Known values are: \"Start\", \"Deallocate\", + \"Hibernate\", \"Create\", and \"Delete\".""" status: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The status of the fallback operation. Required.""" + """The status of the additional operation. Required.""" error: Optional["_models.ResourceOperationError"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The error code if the fallback operation failed.""" + """The error returned when the additional operation did not succeed.""" @overload def __init__( @@ -2622,16 +2477,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class GetOperationStatusContent(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """This is the request to get operation status using operationids. + """The operation for which current status should be returned. - :ivar operation_ids: The list of operation ids to get the status of. Required. + :ivar operation_ids: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. Required. :vartype operation_ids: list[str] """ operation_ids: list[str] = rest_field( name="operationIds", visibility=["read", "create", "update", "delete", "query"] ) - """The list of operation ids to get the status of. Required.""" + """The Bulk Action Operation Ids that identify the operations for which current status should be + returned. Required.""" @overload def __init__( @@ -2652,14 +2509,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class GetOperationStatusResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """This is the response from a get operations status request. + """The current results for the requested operations. - :ivar results: An array of resource operations based on their operation ids. Required. + :ivar results: The current result for each requested operation. Required. :vartype results: list[~azure.mgmt.compute.bulkaction.models.ResourceOperation] """ results: list["_models.ResourceOperation"] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """An array of resource operations based on their operation ids. Required.""" + """The current result for each requested operation. Required.""" @overload def __init__( @@ -2742,28 +2599,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class HibernateResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The response from a Hibernate request. + """The result of a bulk hibernate action. - :ivar description: The description of the operation response. Required. + :ivar description: A description of the bulk action result. Required. :vartype description: str - :ivar type: The type of resources used in the Hibernate request eg virtual machines. Required. + :ivar type: The type of resources targeted by the bulk action. Required. :vartype type: str - :ivar location: The location of the Hibernate request eg westus. Required. + :ivar location: The Azure region where Bulk Actions processes the request. Required. :vartype location: str - :ivar results: The results from the Hibernate request if no errors exist. + :ivar results: The result for each virtual machine. :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.""" + """A description of the bulk action result. Required.""" type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The type of resources used in the Hibernate request eg virtual machines. Required.""" + """The type of resources targeted by the bulk action. Required.""" location: str = rest_field(visibility=["read", "create"]) - """The location of the Hibernate request eg westus. Required.""" + """The Azure region where Bulk Actions processes the request. Required.""" results: Optional[list["_models.ResourceOperation"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The results from the Hibernate request if no errors exist.""" + """The result for each virtual machine.""" @overload def __init__( @@ -2839,7 +2696,7 @@ class ImageReference(SubResource): # pylint: disable=docstring-keyword-should-m creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar publisher: The image publisher. :vartype publisher: str @@ -2954,20 +2811,20 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class KeyVaultSecretReference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Describes a reference to Key Vault Secret. + """A reference to a secret stored in Azure Key Vault. - :ivar secret_url: The URL referencing a secret in a Key Vault. Required. + :ivar secret_url: The URL of the secret in Azure Key Vault. Required. :vartype secret_url: str - :ivar source_vault: The relative URL of the Key Vault containing the secret. Required. + :ivar source_vault: The Azure resource ID of the Key Vault that contains 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.""" + """The URL of the secret in Azure 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.""" + """The Azure resource ID of the Key Vault that contains the secret. Required.""" @overload def __init__( @@ -3309,7 +3166,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ManagedDiskParametersContent(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """The parameters of a managed disk. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar storage_account_type: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -3416,7 +3273,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class NetworkInterfaceReference(SubResource): # pylint: disable=docstring-keyword-should-match-keyword-only """Describes a network interface reference. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar properties: Describes a network interface reference properties. :vartype properties: ~azure.mgmt.compute.bulkaction.models.NetworkInterfaceReferenceProperties @@ -4364,60 +4221,37 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class OSProfileProvisioningData(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Additional parameters for Reimaging Non-Ephemeral Virtual Machine. - - :ivar admin_password: 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 requirements:** 3 out of 4 conditions below need to be - fulfilled
Has lower characters
Has upper characters
Has a digit
Has a - special character (Regex match [\\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", - "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", - "iloveyou!"

For resetting the password, see `How to reset the Remote Desktop service - or its login password in a Windows VM - `_

For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension - `_. + """Additional parameters for reimaging a virtual machine that does not use an ephemeral operating + system disk. + + :ivar admin_password: The password for the virtual machine administrator account. The password + must be 8 to 123 characters long for Windows virtual machines or 6 to 72 characters long for + Linux virtual machines. It must contain characters from at least three of these categories: + lowercase letters, uppercase letters, digits, and special characters. The following values are + not allowed: ``abc@123``, ``P@$$w0rd``, ``P@ssw0rd``, ``P@ssword123``, ``Pa$$word``, + ``pass@word1``, ``Password!``, ``Password1``, ``Password22``, and ``iloveyou!``. This secret is + accepted only in the request and is not returned in responses. :vartype admin_password: str - :ivar custom_data: Specifies a base-64 encoded string of custom data. The base-64 encoded - string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum - length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in - customData property.** This property cannot be updated after the VM is created. The property - customData is passed to the VM to be saved as a file, for more information see `Custom Data on - Azure VMs `_. If - using cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during - creation `_. + :ivar custom_data: Base64-encoded custom data provided to the virtual machine. The decoded data + can contain up to 65,535 bytes. Do not include secrets or passwords. :vartype custom_data: str """ admin_password: Optional[str] = rest_field( name="adminPassword", visibility=["read", "create", "update", "delete", "query"] ) - """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 - requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters -
Has upper characters
Has a digit
Has a special character (Regex match [\\W_]) -

**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", - \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\" -

For resetting the password, see `How to reset the Remote Desktop service or its login - password in a Windows VM - `_

For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension - `_.""" + """The password for the virtual machine administrator account. The password must be 8 to 123 + characters long for Windows virtual machines or 6 to 72 characters long for Linux virtual + machines. It must contain characters from at least three of these categories: lowercase + letters, uppercase letters, digits, and special characters. The following values are not + allowed: ``abc@123``, ``P@$$w0rd``, ``P@ssw0rd``, ``P@ssword123``, ``Pa$$word``, + ``pass@word1``, ``Password!``, ``Password1``, ``Password22``, and ``iloveyou!``. This secret is + accepted only in the request and is not returned in responses.""" custom_data: Optional[str] = rest_field( name="customData", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a - binary array that is saved as a file on the Virtual Machine. The maximum length of the binary - array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** - This property cannot be updated after the VM is created. The property customData is passed to - the VM to be saved as a file, for more information see `Custom Data on Azure VMs - `_. If using - cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during creation - `_.""" + """Base64-encoded custom data provided to the virtual machine. The decoded data can contain up to + 65,535 bytes. Do not include secrets or passwords.""" @overload def __init__( @@ -4635,39 +4469,31 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class PriorityProfile(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The priority profile for flex VM creation. + """The priority and allocation preferences for virtual machines. - :ivar type: The priority type for VM allocation. Known values are: "Regular" and "Spot". + :ivar type: The priority type for virtual machine allocation. Known values are: "Regular" and + "Spot". :vartype type: str or ~azure.mgmt.compute.bulkaction.models.PriorityType - :ivar max_price_per_vm: Price per hour of each Spot VM will never exceed this. Available from - 2026-04-06-preview. + :ivar max_price_per_vm: The maximum hourly price, in US dollars, for each Spot virtual machine. :vartype max_price_per_vm: float - :ivar eviction_policy: Eviction Policy to follow when evicting Spot VMs. Available from - 2026-04-06-preview. Known values are: "Delete" and "Deallocate". + :ivar eviction_policy: The action applied to a Spot virtual machine when Azure evicts it. Known + values are: "Delete" and "Deallocate". :vartype eviction_policy: str or ~azure.mgmt.compute.bulkaction.models.EvictionPolicy - :ivar allocation_strategy: The allocation strategy for VM size selection. Known values are: - "LowestPrice", "Prioritized", and "CapacityOptimized". - :vartype allocation_strategy: str or ~azure.mgmt.compute.bulkaction.models.AllocationStrategy """ type: Optional[Union[str, "_models.PriorityType"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The priority type for VM allocation. Known values are: \"Regular\" and \"Spot\".""" + """The priority type for virtual machine allocation. Known values are: \"Regular\" and \"Spot\".""" max_price_per_vm: Optional[float] = rest_field( name="maxPricePerVM", visibility=["read", "create", "update", "delete", "query"] ) - """Price per hour of each Spot VM will never exceed this. Available from 2026-04-06-preview.""" + """The maximum hourly price, in US dollars, for each Spot virtual machine.""" eviction_policy: Optional[Union[str, "_models.EvictionPolicy"]] = rest_field( name="evictionPolicy", visibility=["read", "create", "update", "delete", "query"] ) - """Eviction Policy to follow when evicting Spot VMs. Available from 2026-04-06-preview. Known - values are: \"Delete\" and \"Deallocate\".""" - allocation_strategy: Optional[Union[str, "_models.AllocationStrategy"]] = rest_field( - name="allocationStrategy", visibility=["read", "create", "update", "delete", "query"] - ) - """The allocation strategy for VM size selection. Known values are: \"LowestPrice\", - \"Prioritized\", and \"CapacityOptimized\".""" + """The action applied to a Spot virtual machine when Azure evicts it. Known values are: \"Delete\" + and \"Deallocate\".""" @overload def __init__( @@ -4676,7 +4502,6 @@ def __init__( type: Optional[Union[str, "_models.PriorityType"]] = None, max_price_per_vm: Optional[float] = None, eviction_policy: Optional[Union[str, "_models.EvictionPolicy"]] = None, - allocation_strategy: Optional[Union[str, "_models.AllocationStrategy"]] = None, ) -> None: ... @overload @@ -4804,11 +4629,12 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ReimagePayload(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Reimage payload with common profile and per-resource overrides. + """The shared and per-virtual-machine configuration for a bulk reimage action. - :ivar base_profile: Common reimage profile applied to all resources unless overridden. + :ivar base_profile: The reimage configuration applied to every virtual machine unless a + per-virtual-machine override is provided. :vartype base_profile: ~azure.mgmt.compute.bulkaction.models.VirtualMachineReimageParameters - :ivar resource_overrides: Per-resource reimage overrides. + :ivar resource_overrides: The reimage configuration overrides for individual virtual machines. :vartype resource_overrides: list[~azure.mgmt.compute.bulkaction.models.ReimageResourceOverride] """ @@ -4816,11 +4642,12 @@ class ReimagePayload(_Model): # pylint: disable=docstring-keyword-should-match- base_profile: Optional["_models.VirtualMachineReimageParameters"] = rest_field( name="baseProfile", visibility=["read", "create", "update", "delete", "query"] ) - """Common reimage profile applied to all resources unless overridden.""" + """The reimage configuration applied to every virtual machine unless a per-virtual-machine + override is provided.""" resource_overrides: Optional[list["_models.ReimageResourceOverride"]] = rest_field( name="resourceOverrides", visibility=["read", "create", "update", "delete", "query"] ) - """Per-resource reimage overrides.""" + """The reimage configuration overrides for individual virtual machines.""" @overload def __init__( @@ -4842,28 +4669,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ReimageResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The response from a reimage request. + """The result of a bulk reimage action. - :ivar description: The description of the operation response. Required. + :ivar description: A description of the bulk action result. Required. :vartype description: str - :ivar type: The type of resources used in the reimage request eg virtual machines. Required. + :ivar type: The type of resources targeted by the bulk action. Required. :vartype type: str - :ivar location: The location of the reimage request eg westus. Required. + :ivar location: The Azure region where Bulk Actions processes the request. Required. :vartype location: str - :ivar results: The results from the reimage request if no errors exist. + :ivar results: The result for each virtual machine. :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.""" + """A description of the bulk action result. Required.""" type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The type of resources used in the reimage request eg virtual machines. Required.""" + """The type of resources targeted by the bulk action. Required.""" location: str = rest_field(visibility=["read", "create"]) - """The location of the reimage request eg westus. Required.""" + """The Azure region where Bulk Actions processes the request. Required.""" results: Optional[list["_models.ResourceOperation"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The results from the reimage request if no errors exist.""" + """The result for each virtual machine.""" @overload def __init__( @@ -4887,20 +4714,21 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ReimageResourceOverride(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Per-resource override entry for reimage requests. + """A reimage configuration override for one virtual machine. - :ivar resource_id: The Azure resource ID of the virtual machine for this override. Required. + :ivar resource_id: The Azure resource ID of the virtual machine to which the override applies. + Required. :vartype resource_id: str - :ivar profile: Per-resource reimage profile override. Required. + :ivar profile: The reimage configuration for this virtual machine. Required. :vartype profile: ~azure.mgmt.compute.bulkaction.models.VirtualMachineReimageParameters """ resource_id: str = rest_field(name="resourceId", visibility=["read", "create", "update", "delete", "query"]) - """The Azure resource ID of the virtual machine for this override. Required.""" + """The Azure resource ID of the virtual machine to which the override applies. Required.""" profile: "_models.VirtualMachineReimageParameters" = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """Per-resource reimage profile override. Required.""" + """The reimage configuration for this virtual machine. Required.""" @overload def __init__( @@ -4980,16 +4808,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ResourceNotificationDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Resource notification details containing notification metadata like the resource context. + """Caller-provided context associated with a virtual machine operation. - :ivar resource_context: Resource context for notification tracking. + :ivar resource_context: Caller-provided context string returned with the virtual machine + operation result notification. Do not include secrets or personal data. :vartype resource_context: str """ resource_context: Optional[str] = rest_field( name="resourceContext", visibility=["read", "create", "update", "delete", "query"] ) - """Resource context for notification tracking.""" + """Caller-provided context string returned with the virtual machine operation result notification. + Do not include secrets or personal data.""" @overload def __init__( @@ -5010,39 +4840,38 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ResourceOperation(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """High level response from an operation on a resource. + """The result of a bulk action for one virtual machine. - :ivar resource_id: Unique identifier for the resource involved in the operation, for example - Azure resource ID. + :ivar resource_id: The virtual machine Azure resource ID. :vartype resource_id: str - :ivar error_code: Resource level error code if it exists. + :ivar error_code: A code that identifies the error for the virtual machine operation. :vartype error_code: str - :ivar error_details: Resource level error details if they exist. + :ivar error_details: A message that describes the error for the virtual machine operation. :vartype error_details: str - :ivar operation: Details of the operation performed on a resource. + :ivar operation: The virtual machine operation details. :vartype operation: ~azure.mgmt.compute.bulkaction.models.ResourceOperationDetails - :ivar virtual_machine_info: Information about the virtual machine. + :ivar virtual_machine_info: Details of the virtual machine on which the operation is performed. :vartype virtual_machine_info: ~azure.mgmt.compute.bulkaction.models.VirtualMachineInfo """ resource_id: Optional[str] = rest_field( name="resourceId", visibility=["read", "create", "update", "delete", "query"] ) - """Unique identifier for the resource involved in the operation, for example Azure resource ID.""" + """The virtual machine Azure resource ID.""" error_code: Optional[str] = rest_field(name="errorCode", visibility=["read", "create", "update", "delete", "query"]) - """Resource level error code if it exists.""" + """A code that identifies the error for the virtual machine operation.""" error_details: Optional[str] = rest_field( name="errorDetails", visibility=["read", "create", "update", "delete", "query"] ) - """Resource level error details if they exist.""" + """A message that describes the error for the virtual machine operation.""" operation: Optional["_models.ResourceOperationDetails"] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """Details of the operation performed on a resource.""" + """The virtual machine operation details.""" virtual_machine_info: Optional["_models.VirtualMachineInfo"] = rest_field( name="virtualMachineInfo", visibility=["read", "create", "update", "delete", "query"] ) - """Information about the virtual machine.""" + """Details of the virtual machine on which the operation is performed.""" @overload def __init__( @@ -5067,37 +4896,39 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ResourceOperationDetails(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The details of a response from an operation on a resource. + """The status and settings for an operation on one virtual machine. - :ivar operation_id: Operation identifier for the unique operation. Required. + :ivar operation_id: The operation ID used to track the action for this virtual machine. + Required. :vartype operation_id: str - :ivar resource_id: Unique identifier for the resource involved in the operation, for example - Azure resource ID. + :ivar resource_id: The virtual machine's Azure resource ID. :vartype resource_id: str - :ivar op_type: Type of operation performed on the resources. Known values are: "Start", - "Deallocate", "Hibernate", "Create", and "Delete". + :ivar op_type: The type of operation performed on the virtual machine. 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. + :ivar subscription_id: The subscription ID associated with the bulk action. :vartype subscription_id: str - :ivar deadline: Deadline for the operation. + :ivar deadline: The requested deadline for the operation. :vartype deadline: ~datetime.datetime - :ivar deadline_type: Type of deadline of the operation. Known values are: "InitiateAt" and - "CompleteBy". + :ivar deadline_type: Specifies whether the deadline time indicates the time at which the + operation should start or should be complete. 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: "Scheduled", "Executing", + :ivar state: The 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. + :ivar timezone: The time zone used to interpret the operation deadline. :vartype timezone: str - :ivar resource_operation_error: Operation level errors if they exist. + :ivar resource_operation_error: Contains error details if the operation does not succeed. :vartype resource_operation_error: ~azure.mgmt.compute.bulkaction.models.ResourceOperationError - :ivar fallback_operation_info: Fallback operation details if a fallback was performed. + :ivar fallback_operation_info: Information about the fallback operation attempted after the + requested operation did not succeed. :vartype fallback_operation_info: ~azure.mgmt.compute.bulkaction.models.FallbackOperationInfo - :ivar completed_at: Time the operation was complete if errors are null. + :ivar completed_at: The date and time when the operation completed. :vartype completed_at: ~datetime.datetime - :ivar retry_policy: Retry policy the user can pass. + :ivar retry_policy: The retry settings for the bulk action. :vartype retry_policy: ~azure.mgmt.compute.bulkaction.models.RetryPolicy - :ivar resource_notification_details: Resource notification details. + :ivar resource_notification_details: Caller-provided context associated with the virtual + machine operation. :vartype resource_notification_details: ~azure.mgmt.compute.bulkaction.models.ResourceNotificationDetails :ivar capacity_recommendation: The capacity/placement recommendation computed for the @@ -5106,55 +4937,57 @@ class ResourceOperationDetails(_Model): # pylint: disable=docstring-keyword-sho """ operation_id: str = rest_field(name="operationId", visibility=["read", "create", "update", "delete", "query"]) - """Operation identifier for the unique operation. Required.""" + """The operation ID used to track the action for this virtual machine. Required.""" resource_id: Optional[str] = rest_field( name="resourceId", visibility=["read", "create", "update", "delete", "query"] ) - """Unique identifier for the resource involved in the operation, for example Azure resource ID.""" + """The virtual machine's Azure resource ID.""" 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: \"Start\", \"Deallocate\", - \"Hibernate\", \"Create\", and \"Delete\".""" + """The type of operation performed on the virtual machine. Known values are: \"Start\", + \"Deallocate\", \"Hibernate\", \"Create\", and \"Delete\".""" subscription_id: Optional[str] = rest_field( name="subscriptionId", visibility=["read", "create", "update", "delete", "query"] ) - """Subscription id attached to the request.""" + """The subscription ID associated with the bulk action.""" deadline: Optional[datetime.datetime] = rest_field( visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) - """Deadline for the operation.""" + """The requested deadline for the operation.""" 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: \"InitiateAt\" and \"CompleteBy\".""" + """Specifies whether the deadline time indicates the time at which the operation should start or + should be complete. 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: \"Scheduled\", \"Executing\", \"Succeeded\", - \"Failed\", \"Cancelled\", and \"Blocked\".""" + """The 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.""" + """The time zone used to interpret the operation deadline.""" resource_operation_error: Optional["_models.ResourceOperationError"] = rest_field( name="resourceOperationError", visibility=["read", "create", "update", "delete", "query"] ) - """Operation level errors if they exist.""" + """Contains error details if the operation does not succeed.""" fallback_operation_info: Optional["_models.FallbackOperationInfo"] = rest_field( name="fallbackOperationInfo", visibility=["read", "create", "update", "delete", "query"] ) - """Fallback operation details if a fallback was performed.""" + """Information about the fallback operation attempted after the requested operation did not + succeed.""" completed_at: Optional[datetime.datetime] = rest_field( name="completedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339" ) - """Time the operation was complete if errors are null.""" + """The date and time when the operation completed.""" retry_policy: Optional["_models.RetryPolicy"] = rest_field( name="retryPolicy", visibility=["read", "create", "update", "delete", "query"] ) - """Retry policy the user can pass.""" + """The retry settings for the bulk action.""" resource_notification_details: Optional["_models.ResourceNotificationDetails"] = rest_field( name="resourceNotificationDetails", visibility=["read", "create", "update", "delete", "query"] ) - """Resource notification details.""" + """Caller-provided context associated with the virtual machine operation.""" capacity_recommendation: Optional["_models.CapacityRecommendation"] = rest_field( name="capacityRecommendation", visibility=["read", "create", "update", "delete", "query"] ) @@ -5192,18 +5025,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class ResourceOperationError(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """These describe errors that occur at the resource level. + """An error that occurred while processing one virtual machine. - :ivar error_code: Code for the error eg 404, 500. Required. + :ivar error_code: A code that identifies the error. Required. :vartype error_code: str - :ivar error_details: Detailed message about the error. Required. + :ivar error_details: A message that describes the error. Required. :vartype error_details: str """ error_code: str = rest_field(name="errorCode", visibility=["read", "create", "update", "delete", "query"]) - """Code for the error eg 404, 500. Required.""" + """A code that identifies the error. Required.""" error_details: str = rest_field(name="errorDetails", visibility=["read", "create", "update", "delete", "query"]) - """Detailed message about the error. Required.""" + """A message that describes the error. Required.""" @overload def __init__( @@ -5333,14 +5166,14 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class Resources(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The resources needed for the user request. + """The virtual machines targeted by a bulk action. - :ivar ids: The resource ids used for the request. Required. + :ivar ids: The Azure resource IDs of the target virtual machines. Required. :vartype ids: list[str] """ ids: list[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The resource ids used for the request. Required.""" + """The Azure resource IDs of the target virtual machines. Required.""" @overload def __init__( @@ -5468,30 +5301,31 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class RetryPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The retry policy for the user request. + """The retry settings for a bulk action. - :ivar retry_count: Retry count for user request. + :ivar retry_count: The maximum number of retry attempts. :vartype retry_count: int - :ivar retry_window_in_minutes: Retry window in minutes for user request. + :ivar retry_window_in_minutes: The period, in minutes, during which Bulk Actions can retry the + operation. :vartype retry_window_in_minutes: int - :ivar on_failure_action: Action to take on failure. Known values are: "Start", "Deallocate", - "Hibernate", "Create", and "Delete". + :ivar on_failure_action: The operation that Bulk Actions attempts when the requested operation + fails. Known values are: "Start", "Deallocate", "Hibernate", "Create", and "Delete". :vartype on_failure_action: str or ~azure.mgmt.compute.bulkaction.models.ResourceOperationType """ retry_count: Optional[int] = rest_field( name="retryCount", visibility=["read", "create", "update", "delete", "query"] ) - """Retry count for user 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 user request.""" + """The period, in minutes, during which Bulk Actions can retry the operation.""" 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: \"Start\", \"Deallocate\", \"Hibernate\", - \"Create\", and \"Delete\".""" + """The operation that Bulk Actions attempts when the requested operation fails. Known values are: + \"Start\", \"Deallocate\", \"Hibernate\", \"Create\", and \"Delete\".""" @overload def __init__( @@ -6541,28 +6375,28 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class StartResourceOperationResponse(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The response from a start request. + """The result of a bulk start action. - :ivar description: The description of the operation response. Required. + :ivar description: A description of the bulk action result. Required. :vartype description: str - :ivar type: The type of resources used in the start request eg virtual machines. Required. + :ivar type: The type of resources targeted by the bulk action. Required. :vartype type: str - :ivar location: The location of the start request eg westus. Required. + :ivar location: The Azure region where Bulk Actions processes the request. Required. :vartype location: str - :ivar results: The results from the start request if no errors exist. + :ivar results: The result for each virtual machine. :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.""" + """A description of the bulk action result. Required.""" type: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The type of resources used in the start request eg virtual machines. Required.""" + """The type of resources targeted by the bulk action. Required.""" location: str = rest_field(visibility=["read", "create"]) - """The location of the start request eg westus. Required.""" + """The Azure region where Bulk Actions processes the request. Required.""" results: Optional[list["_models.ResourceOperation"]] = rest_field( visibility=["read", "create", "update", "delete", "query"] ) - """The results from the start request if no errors exist.""" + """The result for each virtual machine.""" @overload def __init__( @@ -7098,18 +6932,18 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class VirtualMachineInfo(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only """Information about a virtual machine. - :ivar vm_size: The name of the VM size, eg Standard_D2ads_v5. + :ivar vm_size: The virtual machine SKU, for example ``Standard_D2ads_v5``. :vartype vm_size: str - :ivar zone: The zone identifier. + :ivar zone: The availability 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.""" + """The virtual machine SKU, for example ``Standard_D2ads_v5``.""" zone: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"]) - """The zone identifier.""" + """The availability zone identifier.""" name: str = rest_field(visibility=["read", "create", "update", "delete", "query"]) """The resolved Azure virtual machine name. Required.""" @@ -7678,32 +7512,33 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: class VirtualMachineReimageParameters(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be - reimaged. + """The parameters for reimaging a virtual machine. The operating system disk is always reimaged. - :ivar temp_disk: Specifies whether to reimage temp disk. Default value: false. Note: This temp - disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :ivar temp_disk: Indicates whether to reimage the temporary disk. The default value is + ``false``. This option is supported only for virtual machines or virtual machine scale sets + that use an ephemeral operating system disk. :vartype temp_disk: bool - :ivar exact_version: Specifies in decimal number, the version the OS disk should be reimaged - to. If exact version is not provided, the OS disk is reimaged to the existing version of OS - Disk. + :ivar exact_version: The exact image version to use when reimaging the operating system disk. + When omitted, the disk is reimaged to its current image version. :vartype exact_version: str - :ivar os_profile: Specifies information required for reimaging the non-ephemeral OS disk. + :ivar os_profile: The operating system profile used when reimaging a non-ephemeral operating + system disk. :vartype os_profile: ~azure.mgmt.compute.bulkaction.models.OSProfileProvisioningData """ temp_disk: Optional[bool] = rest_field(name="tempDisk", visibility=["read", "create", "update", "delete", "query"]) - """Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage - parameter is only supported for VM/VMSS with Ephemeral OS disk.""" + """Indicates whether to reimage the temporary disk. The default value is ``false``. This option is + supported only for virtual machines or virtual machine scale sets that use an ephemeral + operating system disk.""" exact_version: Optional[str] = rest_field( name="exactVersion", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is - not provided, the OS disk is reimaged to the existing version of OS Disk.""" + """The exact image version to use when reimaging the operating system disk. When omitted, the disk + is reimaged to its current image version.""" os_profile: Optional["_models.OSProfileProvisioningData"] = rest_field( name="osProfile", visibility=["read", "create", "update", "delete", "query"] ) - """Specifies information required for reimaging the non-ephemeral OS disk.""" + """The operating system profile used when reimaging a non-ephemeral operating system disk.""" @overload def __init__( @@ -8113,87 +7948,3 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: def __init__(self, *args: Any, **kwargs: Any) -> None: super().__init__(*args, **kwargs) - - -class ZoneAllocationPolicy(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """The zone allocation policy for distributing VMs across availability zones. - - :ivar distribution_strategy: The distribution strategy for zone allocation. Known values are: - "BestEffortSingleZone", "Prioritized", "BestEffortBalanced", and "StrictBalanced". - :vartype distribution_strategy: str or - ~azure.mgmt.compute.bulkaction.models.DistributionStrategy - :ivar zone_preferences: The zone preferences for allocation priority. - :vartype zone_preferences: list[~azure.mgmt.compute.bulkaction.models.ZonePreference] - """ - - distribution_strategy: Optional[Union[str, "_models.DistributionStrategy"]] = rest_field( - name="distributionStrategy", visibility=["read", "create", "update", "delete", "query"] - ) - """The distribution strategy for zone allocation. Known values are: \"BestEffortSingleZone\", - \"Prioritized\", \"BestEffortBalanced\", and \"StrictBalanced\".""" - zone_preferences: Optional[list["_models.ZonePreference"]] = rest_field( - name="zonePreferences", visibility=["read", "create", "update", "delete", "query"] - ) - """The zone preferences for allocation priority.""" - - @overload - def __init__( - self, - *, - distribution_strategy: Optional[Union[str, "_models.DistributionStrategy"]] = None, - zone_preferences: Optional[list["_models.ZonePreference"]] = 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 ZonePreference(_Model): # pylint: disable=docstring-keyword-should-match-keyword-only - """A zone preference with a zone identifier and rank. - - :ivar zone: The zone identifier. Required. - :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__( - self, - *, - zone: str, - rank: int, - target_max_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) 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 9d2e037f6fcd..ef14c0f95c43 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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -165,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -196,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -227,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -258,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -282,13 +282,79 @@ 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-10-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-10-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_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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -317,7 +383,7 @@ def build_bulk_create_custom_get_async_operation_status_request( # pylint: disa _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -346,7 +412,7 @@ def build_bulk_create_custom_create_or_update_request( # pylint: disable=name-t _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -382,7 +448,7 @@ 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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}" path_format_arguments = { @@ -407,7 +473,7 @@ def build_bulk_create_custom_cancel_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/cancel" path_format_arguments = { @@ -431,7 +497,7 @@ def build_bulk_create_custom_virtual_machines_get_operation_status_request( # p _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -460,7 +526,7 @@ def build_bulk_create_custom_list_by_resource_group_request( # pylint: disable= _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -488,7 +554,7 @@ def build_bulk_create_custom_list_by_subscription_request( # pylint: disable=na _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -515,7 +581,7 @@ def build_bulk_create_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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -544,7 +610,7 @@ def build_bulk_create_get_async_operation_status_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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -573,7 +639,7 @@ def build_bulk_create_create_or_update_request( # pylint: disable=name-too-long _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -609,7 +675,7 @@ def build_bulk_create_delete_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}" path_format_arguments = { @@ -634,7 +700,7 @@ def build_bulk_create_cancel_request( ) -> HttpRequest: _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreate/{name}/cancel" path_format_arguments = { @@ -658,7 +724,7 @@ def build_bulk_create_virtual_machines_get_operation_status_request( # pylint: _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -687,7 +753,7 @@ def build_bulk_create_list_by_resource_group_request( # pylint: disable=name-to _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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -715,7 +781,7 @@ def build_bulk_create_list_by_subscription_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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -742,7 +808,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -771,7 +837,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -802,7 +868,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -831,7 +897,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}" path_format_arguments = { @@ -854,7 +920,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -881,7 +947,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -907,7 +973,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -936,7 +1002,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -967,7 +1033,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -998,7 +1064,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1027,7 +1093,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/disable" path_format_arguments = { @@ -1049,7 +1115,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) # Construct URL _url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/scheduledActions/{scheduledActionName}/enable" path_format_arguments = { @@ -1073,7 +1139,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1103,7 +1169,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1131,7 +1197,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1157,7 +1223,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1185,7 +1251,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1214,7 +1280,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1242,7 +1308,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1272,7 +1338,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1304,7 +1370,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1335,7 +1401,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-09-06-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2026-10-06-preview")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -1496,15 +1562,17 @@ def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1525,15 +1593,17 @@ def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteDeallocateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1554,15 +1624,17 @@ def bulk_deallocate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1581,16 +1653,17 @@ def bulk_deallocate_operation( request_body: Union[_models.ExecuteDeallocateContent, _types.ExecuteDeallocateContent, IO[bytes]], **kwargs: Any ) -> _models.DeallocateResourceOperationResponse: - """BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Deallocate one or more virtual machines. Bulk Actions begins processing the request immediately + and returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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 ExecuteDeallocateContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to deallocate and the execution settings for the bulk + action. Is either a ExecuteDeallocateContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteDeallocateContent or ~azure.mgmt.compute.bulkaction.types.ExecuteDeallocateContent or IO[bytes] :return: DeallocateResourceOperationResponse. The DeallocateResourceOperationResponse is @@ -1675,15 +1748,17 @@ def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteHibernateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1704,15 +1779,17 @@ def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteHibernateContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1733,15 +1810,17 @@ def bulk_hibernate_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1760,16 +1839,17 @@ def bulk_hibernate_operation( request_body: Union[_models.ExecuteHibernateContent, _types.ExecuteHibernateContent, IO[bytes]], **kwargs: Any ) -> _models.HibernateResourceOperationResponse: - """BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is - triggered as soon as Computeschedule receives it. + """Hibernate one or more virtual machines that support hibernation. Bulk Actions begins processing + the request immediately and returns a Bulk Action Operation Id for each virtual machine. Use + the returned IDs to get operation status updates. :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 ExecuteHibernateContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to hibernate and the execution settings for the bulk + action. Is either a ExecuteHibernateContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteHibernateContent or ~azure.mgmt.compute.bulkaction.types.ExecuteHibernateContent or IO[bytes] :return: HibernateResourceOperationResponse. The HibernateResourceOperationResponse is @@ -1854,15 +1934,17 @@ def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteStartContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1883,15 +1965,17 @@ def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: ~azure.mgmt.compute.bulkaction.types.ExecuteStartContent :keyword content_type: Body Parameter content-type. Content type parameter for JSON body. Default value is "application/json". @@ -1912,15 +1996,17 @@ def bulk_start_operation( content_type: str = "application/json", **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -1939,16 +2025,17 @@ def bulk_start_operation( request_body: Union[_models.ExecuteStartContent, _types.ExecuteStartContent, IO[bytes]], **kwargs: Any ) -> _models.StartResourceOperationResponse: - """BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered - as soon as Computeschedule receives it. + """Start one or more virtual machines. Bulk Actions begins processing the request immediately and + returns a Bulk Action Operation Id for each virtual machine. Use the returned IDs to get + operation status updates. :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 ExecuteStartContent type or a IO[bytes] - type. Required. + :param request_body: The virtual machines to start and the execution settings for the bulk + action. Is either a ExecuteStartContent type or a IO[bytes] type. Required. :type request_body: ~azure.mgmt.compute.bulkaction.models.ExecuteStartContent or ~azure.mgmt.compute.bulkaction.types.ExecuteStartContent or IO[bytes] :return: StartResourceOperationResponse. The StartResourceOperationResponse is compatible with @@ -2033,15 +2120,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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". @@ -2062,15 +2151,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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". @@ -2091,15 +2182,17 @@ 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -2118,16 +2211,17 @@ def bulk_delete_operation( 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. + """Delete one or more virtual machines. This operation is destructive. Bulk Actions begins + processing the request immediately and returns a Bulk Action Operation Id for each virtual + machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to delete and the execution settings for the bulk + action. 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 @@ -2212,15 +2306,15 @@ 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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". @@ -2241,15 +2335,15 @@ 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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". @@ -2270,15 +2364,15 @@ 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -2297,16 +2391,16 @@ def bulk_get_operations_status( 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. + """Get the current status of one or more operations identified by their Bulk Action Operation Ids. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. 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 @@ -2391,14 +2485,16 @@ def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + 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". @@ -2419,14 +2515,16 @@ def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + 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". @@ -2447,14 +2545,16 @@ def bulk_cancel_operations( content_type: str = "application/json", **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. + Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -2473,15 +2573,16 @@ def bulk_cancel_operations( request_body: Union[_models.CancelOperationsContent, _types.CancelOperationsContent, IO[bytes]], **kwargs: Any ) -> _models.CancelOperationsResponse: - """BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request. + """Cancel one or more Bulk Actions operations by Bulk Action Operation Ids. Cancellation is best + effort and work that has already completed is not reversed. :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. + :param request_body: The Bulk Action Operation Ids that identify the operations to cancel. 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 @@ -2566,15 +2667,19 @@ def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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". @@ -2595,15 +2700,19 @@ def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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". @@ -2624,15 +2733,19 @@ def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. Required. :type request_body: IO[bytes] :keyword content_type: Body Parameter content-type. Content type parameter for binary body. Default value is "application/json". @@ -2656,7 +2769,7 @@ def bulk_reimage_operation( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def bulk_reimage_operation( self, @@ -2665,16 +2778,19 @@ def bulk_reimage_operation( 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. + """This feature is currently in preview. + + Reimage one or more virtual machines. Reimaging is destructive and can replace operating system + disk contents. Bulk Actions begins processing the request immediately and returns a Bulk Action + Operation Id for each virtual machine. Use the returned IDs to get operation status updates. :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. + :param request_body: The virtual machines to reimage and the execution settings for the bulk + action. 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 @@ -2749,6 +2865,321 @@ def bulk_reimage_operation( 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", "2026-10-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"]: + """List recent errors for operations in 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 before the current time to include when + listing bulk action 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) + + return _request + + 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) + + 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 + ) + response = pipeline_response.http_response + + 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) + + return pipeline_response + + return ItemPaged(get_next, extract_data) + + @overload + def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: _models.AcknowledgeBulkOperationErrorsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type body: ~azure.mgmt.compute.bulkaction.models.AcknowledgeBulkOperationErrorsRequest + :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 + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: _types.AcknowledgeBulkOperationErrorsRequest, + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type body: ~azure.mgmt.compute.bulkaction.types.AcknowledgeBulkOperationErrorsRequest + :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 + :raises ~azure.core.exceptions.HttpResponseError: + """ + + @overload + def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: IO[bytes], + *, + content_type: str = "application/json", + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. Required. + :type 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 + :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", "2026-10-06-preview"], + ) + def bulk_acknowledge_operation_errors( + self, + resource_group_name: str, + location: str, + body: Union[ + _models.AcknowledgeBulkOperationErrorsRequest, _types.AcknowledgeBulkOperationErrorsRequest, IO[bytes] + ], + **kwargs: Any + ) -> _models.AcknowledgeBulkOperationErrorsResponse: + """Acknowledge errors for specified operations in 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 + :param body: The Bulk Action Operation Ids that identify operations for which errors should be + acknowledged. 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 + :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.AcknowledgeBulkOperationErrorsResponse] = kwargs.pop("cls", None) + + content_type = content_type or "application/json" + _content = None + if isinstance(body, (IOBase, bytes)): + _content = body + else: + _content = json.dumps(body, cls=SdkJSONEncoder, exclude_readonly=True) # type: ignore + + _request = build_virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_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.AcknowledgeBulkOperationErrorsResponse, response.json()) + + if cls: + return cls(pipeline_response, deserialized, {}) # type: ignore + + return deserialized # type: ignore + class BulkCreateCustomOperations: # pylint: disable=docstring-missing-param """ @@ -2782,7 +3213,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def get( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -2865,7 +3296,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def get_async_operation_status( self, location: str, async_operation_id: str, **kwargs: Any @@ -2950,7 +3381,7 @@ def get_async_operation_status( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _create_or_update_initial( self, @@ -3141,7 +3572,7 @@ def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_create_or_update( self, @@ -3235,7 +3666,7 @@ def get_long_running_output(pipeline_response): "delete_instances", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _delete_initial( self, @@ -3319,7 +3750,7 @@ def _delete_initial( "delete_instances", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_delete( self, @@ -3397,7 +3828,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _cancel_initial(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { @@ -3464,7 +3895,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-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. @@ -3538,7 +3969,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def virtual_machines_get_operation_status( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -3650,7 +4081,7 @@ def get_next(next_link=None): 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"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group( self, resource_group_name: str, location: str, **kwargs: Any @@ -3758,7 +4189,7 @@ 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", "location", "accept"]}, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_models.LocationBasedBulkCreateCustom"]: """List BulkCreateCustom resources by subscriptionId. @@ -3889,7 +4320,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def get(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> _models.LocationBasedBulkCreate: """Gets an instance of BulkCreates. @@ -3969,7 +4400,7 @@ def get(self, resource_group_name: str, location: str, name: str, **kwargs: Any) params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "location", "async_operation_id", "accept"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def get_async_operation_status( self, location: str, async_operation_id: str, **kwargs: Any @@ -4054,7 +4485,7 @@ def get_async_operation_status( "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def _create_or_update_initial( self, @@ -4245,7 +4676,7 @@ def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def begin_create_or_update( self, @@ -4339,7 +4770,7 @@ def get_long_running_output(pipeline_response): "delete_instances", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def _delete_initial( self, @@ -4423,7 +4854,7 @@ def _delete_initial( "delete_instances", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def begin_delete( self, @@ -4501,7 +4932,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def _cancel_initial(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { @@ -4568,7 +4999,7 @@ def _cancel_initial(self, resource_group_name: str, location: str, name: str, ** params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "name"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def begin_cancel(self, resource_group_name: str, location: str, name: str, **kwargs: Any) -> LROPoller[None]: """Cancels BulkCreate instances that have not yet launched. @@ -4642,7 +5073,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def virtual_machines_get_operation_status( self, resource_group_name: str, location: str, name: str, **kwargs: Any @@ -4754,7 +5185,7 @@ def get_next(next_link=None): params_added_on={ "2026-09-06-preview": ["api_version", "subscription_id", "resource_group_name", "location", "accept"] }, - api_versions_list=["2026-09-06-preview"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group( self, resource_group_name: str, location: str, **kwargs: Any @@ -4862,7 +5293,7 @@ def get_next(next_link=None): @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"], + api_versions_list=["2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription(self, location: str, **kwargs: Any) -> ItemPaged["_models.LocationBasedBulkCreate"]: """List BulkCreate resources by subscriptionId. @@ -4992,7 +5423,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def get(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> _models.ScheduledAction: """Gets the specified scheduled action. @@ -5076,7 +5507,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _create_or_update_initial( self, @@ -5255,7 +5686,7 @@ def begin_create_or_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_create_or_update( self, @@ -5345,7 +5776,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _update_initial( self, @@ -5525,7 +5956,7 @@ def begin_update( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_update( self, @@ -5602,7 +6033,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _delete_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { @@ -5672,7 +6103,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_delete(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]: """Deletes the specified scheduled action. @@ -5735,7 +6166,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_resource_group(self, resource_group_name: str, **kwargs: Any) -> ItemPaged["_models.ScheduledAction"]: """Lists scheduled actions in the specified resource group. @@ -5837,7 +6268,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.ScheduledAction"]: """Lists scheduled actions in the specified subscription. @@ -5943,7 +6374,7 @@ def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_resources( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -6060,7 +6491,7 @@ def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _attach_resources_initial( self, @@ -6243,7 +6674,7 @@ def begin_attach_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_attach_resources( self, @@ -6334,7 +6765,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _detach_resources_initial( self, @@ -6517,7 +6948,7 @@ def begin_detach_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_detach_resources( self, @@ -6696,7 +7127,7 @@ def patch_resources( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def patch_resources( self, @@ -6794,7 +7225,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _disable_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { @@ -6863,7 +7294,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_disable(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]: """Disables the specified scheduled action so future occurrences do not run. @@ -6927,7 +7358,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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _enable_initial(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> Iterator[bytes]: error_map: MutableMapping = { @@ -6996,7 +7427,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_enable(self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any) -> LROPoller[None]: """Enables the specified scheduled action so new occurrences run. @@ -7067,7 +7498,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent- "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _cancel_next_occurrence_initial( self, @@ -7253,7 +7684,7 @@ def begin_cancel_next_occurrence( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_cancel_next_occurrence( self, @@ -7344,7 +7775,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _trigger_manual_occurrence_initial( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -7422,7 +7853,7 @@ def _trigger_manual_occurrence_initial( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_trigger_manual_occurrence( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -7513,7 +7944,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_vms(self, resource_uri: str, **kwargs: Any) -> ItemPaged["_models.ScheduledActionResources"]: """Lists scheduled actions associated with the specified VM. @@ -7636,7 +8067,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def get(self, location: str, operation_id: str, **kwargs: Any) -> _models.OperationStatusResult: """Gets the status of the specified scheduled action operation. @@ -7739,7 +8170,7 @@ def __init__(self, *args, **kwargs) -> None: "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def get( self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any @@ -7828,7 +8259,7 @@ def get( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_by_scheduled_action( self, resource_group_name: str, scheduled_action_name: str, **kwargs: Any @@ -7945,7 +8376,7 @@ def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_resources( self, resource_group_name: str, scheduled_action_name: str, occurrence_id: str, **kwargs: Any @@ -8065,7 +8496,7 @@ def get_next(next_link=None): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _cancel_initial( self, @@ -8263,7 +8694,7 @@ def begin_cancel( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_cancel( self, @@ -8360,7 +8791,7 @@ def get_long_running_output(pipeline_response): "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def _delay_initial( self, @@ -8558,7 +8989,7 @@ def begin_delay( "accept", ] }, - api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def begin_delay( self, @@ -8666,7 +9097,7 @@ 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", "2026-09-06-preview"], + api_versions_list=["2026-07-06-preview", "2026-08-06-preview", "2026-09-06-preview", "2026-10-06-preview"], ) def list_occurrence_by_vms( self, resource_uri: str, **kwargs: Any 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 53df1a62b551..3a0791de4db8 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,9 +12,6 @@ if TYPE_CHECKING: from .models import ( - AllocationStrategy, - BulkCreateCustomAllocationStrategy, - BulkCreateCustomDistributionStrategy, CachingTypes, CapacityType, CreatedByType, @@ -25,7 +22,6 @@ DiskCreateOptionTypes, DiskDeleteOptionTypes, DiskDetachOptionTypes, - DistributionStrategy, DomainNameLabelScopeTypes, EvictionPolicy, IPVersions, @@ -68,6 +64,19 @@ ) +class AcknowledgeBulkOperationErrorsRequest(TypedDict, total=False): + """The operations for which errors should be acknowledged. + + :ivar operationIds: The Bulk Action Operation Ids that identify operations for which errors + should be acknowledged. Required. + :vartype operationIds: list[str] + """ + + operationIds: Required[list[str]] + """The Bulk Action Operation Ids that identify operations for which errors should be acknowledged. + Required.""" + + class AdditionalCapabilities(TypedDict, total=False): """Enables or disables a capability on the virtual machine or virtual machine scale set. @@ -402,39 +411,6 @@ class BulkCreateCustomOverride(TypedDict, total=False): operation-level extensions are inherited.""" -class BulkCreateCustomOverrideBase(TypedDict, total=False): - """Override fields shared by per-VM and per-VM-size overrides. Each set field takes precedence - over the operation-level value. VM size, zone, priority, eviction policy, and billing are owned - by the service and cannot be set here. - - :ivar virtualMachineProfile: VM profile, the same shape as operation-level - ComputeProfile.virtualMachineProfile. Overrides the operation-level VM profile. - :vartype virtualMachineProfile: "BulkactionVMProperties" - :ivar tags: Tags overriding the operation-level tags. - :vartype tags: dict[str, str] - :ivar identity: Identity overriding the operation-level identity. - :vartype identity: "VirtualMachineIdentity" - :ivar plan: Plan overriding the operation-level plan. - :vartype plan: "Plan" - :ivar extensions: Extensions. When non-empty they replace the operation-level extensions; when - omitted the operation-level extensions are inherited. - :vartype extensions: list["BulkactionVMExtension"] - """ - - virtualMachineProfile: "BulkactionVMProperties" - """VM profile, the same shape as operation-level ComputeProfile.virtualMachineProfile. Overrides - the operation-level VM profile.""" - tags: dict[str, str] - """Tags overriding the operation-level tags.""" - identity: "VirtualMachineIdentity" - """Identity overriding the operation-level identity.""" - plan: "Plan" - """Plan overriding the operation-level plan.""" - extensions: list["BulkactionVMExtension"] - """Extensions. When non-empty they replace the operation-level extensions; when omitted the - operation-level extensions are inherited.""" - - class BulkCreateCustomOverridesProfile(TypedDict, total=False): """Groups the per-VM overrides with the name prefix that names any override that does not supply its own VM name. @@ -467,9 +443,6 @@ class BulkCreateCustomPriorityProfile(TypedDict, total=False): :ivar evictionPolicy: Eviction Policy to follow when evicting Spot VMs. Known values are: "Delete" and "Deallocate". :vartype evictionPolicy: Union[str, "EvictionPolicy"] - :ivar allocationStrategy: The allocation strategy for VM size selection. Known values are: - "LowestPrice" and "Prioritized". - :vartype allocationStrategy: Union[str, "BulkCreateCustomAllocationStrategy"] """ type: Union[str, "PriorityType"] @@ -479,9 +452,6 @@ class BulkCreateCustomPriorityProfile(TypedDict, total=False): evictionPolicy: Union[str, "EvictionPolicy"] """Eviction Policy to follow when evicting Spot VMs. Known values are: \"Delete\" and \"Deallocate\".""" - allocationStrategy: Union[str, "BulkCreateCustomAllocationStrategy"] - """The allocation strategy for VM size selection. Known values are: \"LowestPrice\" and - \"Prioritized\".""" class BulkCreateCustomProperties(TypedDict, total=False): @@ -514,12 +484,8 @@ class BulkCreateCustomProperties(TypedDict, total=False): :ivar priorityProfile: Configuration Options for Regular or Spot instances in BulkCreateCustom. Required. :vartype priorityProfile: "BulkCreateCustomPriorityProfile" - :ivar vmSizesProfile: List of VM sizes supported for BulkCreateCustom. - :vartype vmSizesProfile: list["BulkCreateCustomVmSizeProfile"] :ivar computeProfile: Compute Profile to configure the Virtual Machines. Required. :vartype computeProfile: "ComputeProfile" - :ivar zoneAllocationPolicy: Zone Allocation Policy for launching instances. - :vartype zoneAllocationPolicy: "BulkCreateCustomZoneAllocationPolicy" :ivar overridesProfile: Per-VM overrides and the shared name prefix, specified when the operation is created. :vartype overridesProfile: "BulkCreateCustomOverridesProfile" @@ -553,12 +519,8 @@ class BulkCreateCustomProperties(TypedDict, total=False): """The virtual machine resources resolved for the operation.""" priorityProfile: Required["BulkCreateCustomPriorityProfile"] """Configuration Options for Regular or Spot instances in BulkCreateCustom. Required.""" - vmSizesProfile: list["BulkCreateCustomVmSizeProfile"] - """List of VM sizes supported for BulkCreateCustom.""" computeProfile: Required["ComputeProfile"] """Compute Profile to configure the Virtual Machines. Required.""" - zoneAllocationPolicy: "BulkCreateCustomZoneAllocationPolicy" - """Zone Allocation Policy for launching instances.""" overridesProfile: "BulkCreateCustomOverridesProfile" """Per-VM overrides and the shared name prefix, specified when the operation is created.""" executionParameters: "ExecutionParameters" @@ -596,52 +558,6 @@ class BulkCreateCustomVirtualMachineInfo(TypedDict, total=False): """The subscription-relative logical availability zone selected for the virtual machine.""" -class BulkCreateCustomVmSizeProfile(TypedDict, total=False): - """A VM size profile entry that may additionally carry an optional per-VM-size profile override. - Every VM that the service assigns to this size inherits the override, layered on top of the - operation-level base profile and beneath any per-VM override. Present only on the - bulkCreateCustom endpoint; the uniform endpoint rejects a non-null override. - - :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 - :ivar override: Optional per-VM-size profile override applied to every VM the service assigns - to this size. A size maps to many VMs, so virtualMachineName is not part of this shape. - virtualMachineProfile is layered beneath any per-VM override; tags, identity, and plan are - merged with the per-VM override, with the per-VM value winning. - :vartype override: "BulkCreateCustomOverrideBase" - """ - - 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.""" - override: "BulkCreateCustomOverrideBase" - """Optional per-VM-size profile override applied to every VM the service assigns to this size. A - size maps to many VMs, so virtualMachineName is not part of this shape. virtualMachineProfile - is layered beneath any per-VM override; tags, identity, and plan are merged with the per-VM - override, with the per-VM value winning.""" - - -class BulkCreateCustomZoneAllocationPolicy(TypedDict, total=False): - """The zone allocation policy for distributing VMs across availability zones in BulkCreateCustom. - - :ivar distributionStrategy: The distribution strategy for zone allocation. Defaults to - BestEffortBalanced. Known values are: "BestEffortSingleZone", "Prioritized", and - "BestEffortBalanced". - :vartype distributionStrategy: Union[str, "BulkCreateCustomDistributionStrategy"] - :ivar zonePreferences: The zone preferences for allocation priority. - :vartype zonePreferences: list["ZonePreference"] - """ - - distributionStrategy: Union[str, "BulkCreateCustomDistributionStrategy"] - """The distribution strategy for zone allocation. Defaults to BestEffortBalanced. Known values - are: \"BestEffortSingleZone\", \"Prioritized\", and \"BestEffortBalanced\".""" - zonePreferences: list["ZonePreference"] - """The zone preferences for allocation priority.""" - - class BulkCreateProperties(TypedDict, total=False): """Details of the BulkCreate. @@ -670,15 +586,9 @@ class BulkCreateProperties(TypedDict, total=False): :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" @@ -707,36 +617,13 @@ class BulkCreateProperties(TypedDict, total=False): 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): """Request body for canceling a scheduled action occurrence. @@ -751,14 +638,15 @@ class CancelOccurrenceRequest(TypedDict, total=False): class CancelOperationsContent(TypedDict, total=False): - """This is the request to cancel running operations in scheduled actions using the operation ids. + """The eligible operations to cancel. - :ivar operationIds: The list of operation ids to cancel operations on. Required. + :ivar operationIds: The Bulk Action Operation Ids that identify the operations to cancel. + Required. :vartype operationIds: list[str] """ operationIds: Required[list[str]] - """The list of operation ids to cancel operations on. Required.""" + """The Bulk Action Operation Ids that identify the operations to cancel. Required.""" class CapacityRecommendationParameters(TypedDict, total=False): @@ -981,14 +869,14 @@ class DiffDiskSettings(TypedDict, total=False): class SubResource(TypedDict, total=False): - """Describes a reference to a sub-resource. + """A reference to an Azure resource. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str """ id: str - """The ID of the sub-resource.""" + """The Azure resource ID.""" class DiskEncryptionSetParametersContent(SubResource): @@ -997,7 +885,7 @@ class DiskEncryptionSetParametersContent(SubResource): managed disk. Please refer `https://aka.ms/mdssewithcmkoverview `_ for more details. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str """ @@ -1054,11 +942,11 @@ class EventGridAndResourceGraph(TypedDict, total=False): class ExecuteDeallocateContent(TypedDict, total=False): - """The ExecuteDeallocateRequest request for executeDeallocate operations. + """The virtual machines and execution settings for a bulk deallocate action. - :ivar executionParameters: The execution parameters for the request. Required. + :ivar executionParameters: The execution settings for the bulk action. Required. :vartype executionParameters: "ExecutionParameters" - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: "Resources" :ivar resourcesWithContext: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -1066,45 +954,46 @@ class ExecuteDeallocateContent(TypedDict, total=False): """ executionParameters: Required["ExecutionParameters"] - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: "Resources" - """The resources for the request.""" + """The target virtual machines.""" resourcesWithContext: "ResourcesWithContext" """The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified.""" class ExecuteDeleteContent(TypedDict, total=False): - """The ExecuteDeleteRequest for delete VM operation. + """The virtual machines and execution settings for a bulk delete action. - :ivar executionParameters: The execution parameters for the request. Required. + :ivar executionParameters: The execution settings for the bulk action. Required. :vartype executionParameters: "ExecutionParameters" - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: "Resources" :ivar resourcesWithContext: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. :vartype resourcesWithContext: "ResourcesWithContext" - :ivar forceDeletion: Forced delete resource item. + :ivar forceDeletion: Indicates whether Bulk Actions uses forced deletion for the target virtual + machines. :vartype forceDeletion: bool """ executionParameters: Required["ExecutionParameters"] - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: "Resources" - """The resources for the request.""" + """The target virtual machines.""" resourcesWithContext: "ResourcesWithContext" """The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified.""" forceDeletion: bool - """Forced delete resource item.""" + """Indicates whether Bulk Actions uses forced deletion for the target virtual machines.""" class ExecuteHibernateContent(TypedDict, total=False): - """The ExecuteHibernateRequest request for executeHibernate operations. + """The virtual machines and execution settings for a bulk hibernate action. - :ivar executionParameters: The execution parameters for the request. Required. + :ivar executionParameters: The execution settings for the bulk action. Required. :vartype executionParameters: "ExecutionParameters" - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: "Resources" :ivar resourcesWithContext: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -1112,45 +1001,45 @@ class ExecuteHibernateContent(TypedDict, total=False): """ executionParameters: Required["ExecutionParameters"] - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: "Resources" - """The resources for the request.""" + """The target virtual machines.""" resourcesWithContext: "ResourcesWithContext" """The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified.""" class ExecuteReimageRequest(TypedDict, total=False): - """The ExecuteReimageRequest request for reimage operations. + """The virtual machines and configuration for a bulk reimage action. - :ivar executionParameters: The execution parameters for the request. Required. + :ivar executionParameters: The execution settings for the bulk action. Required. :vartype executionParameters: "ExecutionParameters" - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: "Resources" :ivar resourcesWithContext: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. :vartype resourcesWithContext: "ResourcesWithContext" - :ivar reimageParameters: Reimage parameters including base profile and per-resource overrides. + :ivar reimageParameters: The shared and per-virtual-machine reimage configuration. :vartype reimageParameters: "ReimagePayload" """ executionParameters: Required["ExecutionParameters"] - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: "Resources" - """The resources for the request.""" + """The target virtual machines.""" resourcesWithContext: "ResourcesWithContext" """The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified.""" reimageParameters: "ReimagePayload" - """Reimage parameters including base profile and per-resource overrides.""" + """The shared and per-virtual-machine reimage configuration.""" class ExecuteStartContent(TypedDict, total=False): - """The ExecuteStartRequest request for executeStart operations. + """The virtual machines and execution settings for a bulk start action. - :ivar executionParameters: The execution parameters for the request. Required. + :ivar executionParameters: The execution settings for the bulk action. Required. :vartype executionParameters: "ExecutionParameters" - :ivar resources: The resources for the request. + :ivar resources: The target virtual machines. :vartype resources: "Resources" :ivar resourcesWithContext: The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified. @@ -1158,40 +1047,44 @@ class ExecuteStartContent(TypedDict, total=False): """ executionParameters: Required["ExecutionParameters"] - """The execution parameters for the request. Required.""" + """The execution settings for the bulk action. Required.""" resources: "Resources" - """The resources for the request.""" + """The target virtual machines.""" resourcesWithContext: "ResourcesWithContext" """The resources for the request with resource context information. Cannot be provided together with ``resources`` - exactly one must be specified.""" class ExecutionParameters(TypedDict, total=False): - """Extra details needed to run the user's request. + """The execution settings for a bulk action. - :ivar retryPolicy: Retry policy the user can pass. + :ivar retryPolicy: The retry settings for the bulk action. :vartype retryPolicy: "RetryPolicy" - :ivar verifyVmAgentHealth: When true on an executeStart request, run a post-Start VM agent - health check and engage the fallback chain if the guest agent does not report Ready. Ignored - for non-Start operations. + :ivar verifyVmAgentHealth: If true, Bulk Actions verifies the virtual machine guest agent + health after a start operation. Setting this property to true for any other operation causes + the request to fail. :vartype verifyVmAgentHealth: bool :ivar capacityRecommendationParameters: Capacity recommendation parameters for the request. When provided on an executeStart request, the service computes placement recommendations only if the VM fails to start due to an allocation failure; the recommendations for the desired sizes and locations are then surfaced in the operation's capacityRecommendation response. :vartype capacityRecommendationParameters: "CapacityRecommendationParameters" + :ivar additionalCreateParameters: Additional configuration for Create. + :vartype additionalCreateParameters: dict[str, Any] """ retryPolicy: "RetryPolicy" - """Retry policy the user can pass.""" + """The retry settings for the bulk action.""" verifyVmAgentHealth: bool - """When true on an executeStart request, run a post-Start VM agent health check and engage the - fallback chain if the guest agent does not report Ready. Ignored for non-Start operations.""" + """If true, Bulk Actions verifies the virtual machine guest agent health after a start operation. + Setting this property to true for any other operation causes the request to fail.""" capacityRecommendationParameters: "CapacityRecommendationParameters" """Capacity recommendation parameters for the request. When provided on an executeStart request, the service computes placement recommendations only if the VM fails to start due to an allocation failure; the recommendations for the desired sizes and locations are then surfaced in the operation's capacityRecommendation response.""" + additionalCreateParameters: dict[str, Any] + """Additional configuration for Create.""" class Resource(TypedDict, total=False): @@ -1223,14 +1116,16 @@ class Resource(TypedDict, total=False): class GetOperationStatusContent(TypedDict, total=False): - """This is the request to get operation status using operationids. + """The operation for which current status should be returned. - :ivar operationIds: The list of operation ids to get the status of. Required. + :ivar operationIds: The Bulk Action Operation Ids that identify the operations for which + current status should be returned. Required. :vartype operationIds: list[str] """ operationIds: Required[list[str]] - """The list of operation ids to get the status of. Required.""" + """The Bulk Action Operation Ids that identify the operations for which current status should be + returned. Required.""" class HardwareProfile(TypedDict, total=False): @@ -1308,7 +1203,7 @@ class ImageReference(SubResource): creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar publisher: The image publisher. :vartype publisher: str @@ -1376,18 +1271,18 @@ class KeyVaultKeyReference(TypedDict, total=False): class KeyVaultSecretReference(TypedDict, total=False): - """Describes a reference to Key Vault Secret. + """A reference to a secret stored in Azure Key Vault. - :ivar secretUrl: The URL referencing a secret in a Key Vault. Required. + :ivar secretUrl: The URL of the secret in Azure Key Vault. Required. :vartype secretUrl: str - :ivar sourceVault: The relative URL of the Key Vault containing the secret. Required. + :ivar sourceVault: The Azure resource ID of the Key Vault that contains the secret. Required. :vartype sourceVault: "SubResource" """ secretUrl: Required[str] - """The URL referencing a secret in a Key Vault. Required.""" + """The URL of the secret in Azure Key Vault. Required.""" sourceVault: Required["SubResource"] - """The relative URL of the Key Vault containing the secret. Required.""" + """The Azure resource ID of the Key Vault that contains the secret. Required.""" class LinuxConfiguration(TypedDict, total=False): @@ -1581,7 +1476,7 @@ class LocationBasedBulkCreateCustom(ProxyResource): class ManagedDiskParametersContent(SubResource): """The parameters of a managed disk. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar storageAccountType: Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk. Known values @@ -1638,7 +1533,7 @@ class ManagedServiceIdentity(TypedDict, total=False): class NetworkInterfaceReference(SubResource): """Describes a network interface reference. - :ivar id: The ID of the sub-resource. + :ivar id: The Azure resource ID. :vartype id: str :ivar properties: Describes a network interface reference properties. :vartype properties: "NetworkInterfaceReferenceProperties" @@ -1951,56 +1846,33 @@ class OSProfile(TypedDict, total=False): class OSProfileProvisioningData(TypedDict, total=False): - """Additional parameters for Reimaging Non-Ephemeral Virtual Machine. - - :ivar adminPassword: 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 requirements:** 3 out of 4 conditions below need to be - fulfilled
Has lower characters
Has upper characters
Has a digit
Has a - special character (Regex match [\\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", - "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", - "iloveyou!"

For resetting the password, see `How to reset the Remote Desktop service - or its login password in a Windows VM - `_

For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension - `_. + """Additional parameters for reimaging a virtual machine that does not use an ephemeral operating + system disk. + + :ivar adminPassword: The password for the virtual machine administrator account. The password + must be 8 to 123 characters long for Windows virtual machines or 6 to 72 characters long for + Linux virtual machines. It must contain characters from at least three of these categories: + lowercase letters, uppercase letters, digits, and special characters. The following values are + not allowed: ``abc@123``, ``P@$$w0rd``, ``P@ssw0rd``, ``P@ssword123``, ``Pa$$word``, + ``pass@word1``, ``Password!``, ``Password1``, ``Password22``, and ``iloveyou!``. This secret is + accepted only in the request and is not returned in responses. :vartype adminPassword: str - :ivar customData: Specifies a base-64 encoded string of custom data. The base-64 encoded string - is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length - of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData - property.** This property cannot be updated after the VM is created. The property customData is - passed to the VM to be saved as a file, for more information see `Custom Data on Azure VMs - `_. If using - cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during creation - `_. + :ivar customData: Base64-encoded custom data provided to the virtual machine. The decoded data + can contain up to 65,535 bytes. Do not include secrets or passwords. :vartype customData: str """ adminPassword: str - """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 - requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters -
Has upper characters
Has a digit
Has a special character (Regex match [\\W_]) -

**Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", - \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\" -

For resetting the password, see `How to reset the Remote Desktop service or its login - password in a Windows VM - `_

For - resetting root password, see `Manage users, SSH, and check or repair disks on Azure Linux VMs - using the VMAccess Extension - `_.""" + """The password for the virtual machine administrator account. The password must be 8 to 123 + characters long for Windows virtual machines or 6 to 72 characters long for Linux virtual + machines. It must contain characters from at least three of these categories: lowercase + letters, uppercase letters, digits, and special characters. The following values are not + allowed: ``abc@123``, ``P@$$w0rd``, ``P@ssw0rd``, ``P@ssword123``, ``Pa$$word``, + ``pass@word1``, ``Password!``, ``Password1``, ``Password22``, and ``iloveyou!``. This secret is + accepted only in the request and is not returned in responses.""" customData: str - """Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a - binary array that is saved as a file on the Virtual Machine. The maximum length of the binary - array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** - This property cannot be updated after the VM is created. The property customData is passed to - the VM to be saved as a file, for more information see `Custom Data on Azure VMs - `_. If using - cloud-init for your Linux VM, see `Using cloud-init to customize a Linux VM during creation - `_.""" + """Base64-encoded custom data provided to the virtual machine. The decoded data can contain up to + 65,535 bytes. Do not include secrets or passwords.""" class PartialFulfillmentPolicy(TypedDict, total=False): @@ -2128,31 +2000,25 @@ class Plan(TypedDict, total=False): class PriorityProfile(TypedDict, total=False): - """The priority profile for flex VM creation. + """The priority and allocation preferences for virtual machines. - :ivar type: The priority type for VM allocation. Known values are: "Regular" and "Spot". + :ivar type: The priority type for virtual machine allocation. Known values are: "Regular" and + "Spot". :vartype type: Union[str, "PriorityType"] - :ivar maxPricePerVM: Price per hour of each Spot VM will never exceed this. Available from - 2026-04-06-preview. + :ivar maxPricePerVM: The maximum hourly price, in US dollars, for each Spot virtual machine. :vartype maxPricePerVM: float - :ivar evictionPolicy: Eviction Policy to follow when evicting Spot VMs. Available from - 2026-04-06-preview. Known values are: "Delete" and "Deallocate". + :ivar evictionPolicy: The action applied to a Spot virtual machine when Azure evicts it. Known + values are: "Delete" and "Deallocate". :vartype evictionPolicy: Union[str, "EvictionPolicy"] - :ivar allocationStrategy: The allocation strategy for VM size selection. Known values are: - "LowestPrice", "Prioritized", and "CapacityOptimized". - :vartype allocationStrategy: Union[str, "AllocationStrategy"] """ type: Union[str, "PriorityType"] - """The priority type for VM allocation. Known values are: \"Regular\" and \"Spot\".""" + """The priority type for virtual machine allocation. Known values are: \"Regular\" and \"Spot\".""" maxPricePerVM: float - """Price per hour of each Spot VM will never exceed this. Available from 2026-04-06-preview.""" + """The maximum hourly price, in US dollars, for each Spot virtual machine.""" evictionPolicy: Union[str, "EvictionPolicy"] - """Eviction Policy to follow when evicting Spot VMs. Available from 2026-04-06-preview. Known - values are: \"Delete\" and \"Deallocate\".""" - allocationStrategy: Union[str, "AllocationStrategy"] - """The allocation strategy for VM size selection. Known values are: \"LowestPrice\", - \"Prioritized\", and \"CapacityOptimized\".""" + """The action applied to a Spot virtual machine when Azure evicts it. Known values are: \"Delete\" + and \"Deallocate\".""" class ProxyAgentSettings(TypedDict, total=False): @@ -2217,33 +2083,36 @@ class PublicIPAddressSku(TypedDict, total=False): class ReimagePayload(TypedDict, total=False): - """Reimage payload with common profile and per-resource overrides. + """The shared and per-virtual-machine configuration for a bulk reimage action. - :ivar baseProfile: Common reimage profile applied to all resources unless overridden. + :ivar baseProfile: The reimage configuration applied to every virtual machine unless a + per-virtual-machine override is provided. :vartype baseProfile: "VirtualMachineReimageParameters" - :ivar resourceOverrides: Per-resource reimage overrides. + :ivar resourceOverrides: The reimage configuration overrides for individual virtual machines. :vartype resourceOverrides: list["ReimageResourceOverride"] """ baseProfile: "VirtualMachineReimageParameters" - """Common reimage profile applied to all resources unless overridden.""" + """The reimage configuration applied to every virtual machine unless a per-virtual-machine + override is provided.""" resourceOverrides: list["ReimageResourceOverride"] - """Per-resource reimage overrides.""" + """The reimage configuration overrides for individual virtual machines.""" class ReimageResourceOverride(TypedDict, total=False): - """Per-resource override entry for reimage requests. + """A reimage configuration override for one virtual machine. - :ivar resourceId: The Azure resource ID of the virtual machine for this override. Required. + :ivar resourceId: The Azure resource ID of the virtual machine to which the override applies. + Required. :vartype resourceId: str - :ivar profile: Per-resource reimage profile override. Required. + :ivar profile: The reimage configuration for this virtual machine. Required. :vartype profile: "VirtualMachineReimageParameters" """ resourceId: Required[str] - """The Azure resource ID of the virtual machine for this override. Required.""" + """The Azure resource ID of the virtual machine to which the override applies. Required.""" profile: Required["VirtualMachineReimageParameters"] - """Per-resource reimage profile override. Required.""" + """The reimage configuration for this virtual machine. Required.""" class ResourceAttachRequest(TypedDict, total=False): @@ -2280,14 +2149,14 @@ class ResourcePatchRequest(TypedDict, total=False): class Resources(TypedDict, total=False): - """The resources needed for the user request. + """The virtual machines targeted by a bulk action. - :ivar ids: The resource ids used for the request. Required. + :ivar ids: The Azure resource IDs of the target virtual machines. Required. :vartype ids: list[str] """ ids: Required[list[str]] - """The resource ids used for the request. Required.""" + """The Azure resource IDs of the target virtual machines. Required.""" class ResourcesWithContext(TypedDict, total=False): @@ -2317,24 +2186,25 @@ class ResourceWithContext(TypedDict, total=False): class RetryPolicy(TypedDict, total=False): - """The retry policy for the user request. + """The retry settings for a bulk action. - :ivar retryCount: Retry count for user request. + :ivar retryCount: The maximum number of retry attempts. :vartype retryCount: int - :ivar retryWindowInMinutes: Retry window in minutes for user request. + :ivar retryWindowInMinutes: The period, in minutes, during which Bulk Actions can retry the + operation. :vartype retryWindowInMinutes: int - :ivar onFailureAction: Action to take on failure. Known values are: "Start", "Deallocate", - "Hibernate", "Create", and "Delete". + :ivar onFailureAction: The operation that Bulk Actions attempts when the requested operation + fails. Known values are: "Start", "Deallocate", "Hibernate", "Create", and "Delete". :vartype onFailureAction: Union[str, "ResourceOperationType"] """ retryCount: int - """Retry count for user request.""" + """The maximum number of retry attempts.""" retryWindowInMinutes: int - """Retry window in minutes for user request.""" + """The period, in minutes, during which Bulk Actions can retry the operation.""" onFailureAction: Union[str, "ResourceOperationType"] - """Action to take on failure. Known values are: \"Start\", \"Deallocate\", \"Hibernate\", - \"Create\", and \"Delete\".""" + """The operation that Bulk Actions attempts when the requested operation fails. Known values are: + \"Start\", \"Deallocate\", \"Hibernate\", \"Create\", and \"Delete\".""" class TrackedResource(Resource): @@ -3312,27 +3182,29 @@ class VirtualMachinePublicIPAddressDnsSettingsConfiguration(TypedDict, total=Fal class VirtualMachineReimageParameters(TypedDict, total=False): - """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be - reimaged. + """The parameters for reimaging a virtual machine. The operating system disk is always reimaged. - :ivar tempDisk: Specifies whether to reimage temp disk. Default value: false. Note: This temp - disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk. + :ivar tempDisk: Indicates whether to reimage the temporary disk. The default value is + ``false``. This option is supported only for virtual machines or virtual machine scale sets + that use an ephemeral operating system disk. :vartype tempDisk: bool - :ivar exactVersion: Specifies in decimal number, the version the OS disk should be reimaged to. - If exact version is not provided, the OS disk is reimaged to the existing version of OS Disk. + :ivar exactVersion: The exact image version to use when reimaging the operating system disk. + When omitted, the disk is reimaged to its current image version. :vartype exactVersion: str - :ivar osProfile: Specifies information required for reimaging the non-ephemeral OS disk. + :ivar osProfile: The operating system profile used when reimaging a non-ephemeral operating + system disk. :vartype osProfile: "OSProfileProvisioningData" """ tempDisk: bool - """Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage - parameter is only supported for VM/VMSS with Ephemeral OS disk.""" + """Indicates whether to reimage the temporary disk. The default value is ``false``. This option is + supported only for virtual machines or virtual machine scale sets that use an ephemeral + operating system disk.""" exactVersion: str - """Specifies in decimal number, the version the OS disk should be reimaged to. If exact version is - not provided, the OS disk is reimaged to the existing version of OS Disk.""" + """The exact image version to use when reimaging the operating system disk. When omitted, the disk + is reimaged to its current image version.""" osProfile: "OSProfileProvisioningData" - """Specifies information required for reimaging the non-ephemeral OS disk.""" + """The operating system profile used when reimaging a non-ephemeral operating system disk.""" class VMDiskSecurityProfile(TypedDict, total=False): @@ -3548,43 +3420,3 @@ class WinRMListener(TypedDict, total=False): `_ or the `Azure Key Vault virtual machine extension for Windows `_.""" - - -class ZoneAllocationPolicy(TypedDict, total=False): - """The zone allocation policy for distributing VMs across availability zones. - - :ivar distributionStrategy: The distribution strategy for zone allocation. Known values are: - "BestEffortSingleZone", "Prioritized", "BestEffortBalanced", and "StrictBalanced". - :vartype distributionStrategy: Union[str, "DistributionStrategy"] - :ivar zonePreferences: The zone preferences for allocation priority. - :vartype zonePreferences: list["ZonePreference"] - """ - - distributionStrategy: Union[str, "DistributionStrategy"] - """The distribution strategy for zone allocation. Known values are: \"BestEffortSingleZone\", - \"Prioritized\", \"BestEffortBalanced\", and \"StrictBalanced\".""" - zonePreferences: list["ZonePreference"] - """The zone preferences for allocation priority.""" - - -class ZonePreference(TypedDict, total=False): - """A zone preference with a zone identifier and rank. - - :ivar zone: The zone identifier. Required. - :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/bulk_create_cancel_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py index c3b43ccc3b3b..7c7dee4e9ded 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_cancel_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-09-06-preview/BulkCreate_Cancel_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 index 5703f1d294fc..d1106190a830 100644 --- 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 @@ -43,6 +43,7 @@ def main(): "computeProfile": { "computeApiVersion": "2024-11-01", "virtualMachineProfile": { + "hardwareProfile": {"vmSize": "Standard_D2s_v5"}, "networkProfile": { "networkApiVersion": "2020-11-01", "networkInterfaceConfigurations": [ @@ -101,17 +102,7 @@ def main(): "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"}], - }, + "priorityProfile": {"evictionPolicy": "Delete", "maxPricePerVM": 0.2, "type": "Spot"}, }, "tags": {"env": "prod", "workload": "batch-render"}, "zones": ["1", "2"], @@ -120,6 +111,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 1582b46b222f..b721e06b5dab 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-09-06-preview/BulkCreateCustom_Cancel_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 7c74d3bf54aa..9828d7cbcfe5 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 @@ -43,6 +43,7 @@ def main(): "computeProfile": { "computeApiVersion": "2024-11-01", "virtualMachineProfile": { + "hardwareProfile": {"vmSize": "Standard_D2s_v5"}, "networkProfile": { "networkApiVersion": "2020-11-01", "networkInterfaceConfigurations": [ @@ -108,35 +109,7 @@ def main(): "virtualMachineNamePrefix": "bulkvm", }, "partialFulfillmentPolicy": {"mode": "Enabled"}, - "priorityProfile": { - "allocationStrategy": "LowestPrice", - "evictionPolicy": "Delete", - "maxPricePerVM": 0.2, - "type": "Spot", - }, - "vmSizesProfile": [ - {"name": "Standard_D2s_v5", "rank": 1}, - { - "name": "Standard_D4s_v5", - "override": { - "virtualMachineProfile": { - "storageProfile": { - "imageReference": { - "offer": "0001-com-ubuntu-server-jammy", - "publisher": "Canonical", - "sku": "22_04-lts-arm64", - "version": "latest", - } - } - } - }, - "rank": 2, - }, - ], - "zoneAllocationPolicy": { - "distributionStrategy": "BestEffortBalanced", - "zonePreferences": [{"rank": 1, "zone": "1"}, {"rank": 2, "zone": "2"}], - }, + "priorityProfile": {"evictionPolicy": "Delete", "maxPricePerVM": 0.2, "type": "Spot"}, }, "tags": {"env": "prod", "workload": "batch-render"}, "zones": ["1", "2"], @@ -145,6 +118,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 0b9f0cd179e5..c08289ccb750 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-09-06-preview/BulkCreateCustom_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 af95f9f58295..49c97eb3f1ff 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-09-06-preview/BulkCreateCustom_GetAsyncOperationStatus_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 20ac5d9ed7e2..74480e914969 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-09-06-preview/BulkCreateCustom_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 635f87dde565..4fe0f8af3607 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-09-06-preview/BulkCreateCustom_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 7400dcad0352..afe0a0b6a28f 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-09-06-preview/BulkCreateCustom_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 ba5c03ac2c3a..37b626815d9e 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 @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-09-06-preview/BulkCreateCustom_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreateCustom_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py index 695753e99ae4..f0068183b8ce 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_delete_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: 2026-09-06-preview/BulkCreate_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_Delete_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py index 42bd579a0ca3..92f38e41fcce 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_async_operation_status_maximum_set_gen.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_GetAsyncOperationStatus_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_GetAsyncOperationStatus_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py index 9efdd703bc1a..9d57bf83fb94 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_get_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_Get_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py index f1911f9e32ff..59da55dfbfd1 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_list_by_resource_group_maximum_set_gen.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_ListByResourceGroup_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_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 index ae6c89d96000..cf288802e828 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_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 @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_ListBySubscription_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py index 80269be84951..c95d51daebd4 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/bulk_create_virtual_machines_get_operation_status_maximum_set_gen.py @@ -39,6 +39,6 @@ def main(): print(item) -# x-ms-original-file: 2026-09-06-preview/BulkCreate_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/BulkCreate_VirtualMachinesGetOperationStatus_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_basic_success.py similarity index 81% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrence_extension_list_occurrence_by_vms_basic_success.py index 6ae3f7640dad..a048bf88155f 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrence_extension_list_occurrence_by_vms_maximum_set_gen.py + python occurrence_extension_list_occurrence_by_vms_basic_success.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, @@ -32,12 +32,12 @@ def main(): ) response = client.occurrence_extension.list_occurrence_by_vms( - resource_uri="subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm", + resource_uri="subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", ) for item in response: print(item) -# x-ms-original-file: 2026-09-06-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/OccurrenceExtension_ListOccurrenceByVms_BasicSuccess.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_basic_success.py similarity index 71% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_basic_success.py index 810374aecd88..53a68817736d 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrences_cancel_maximum_set_gen.py + python occurrences_cancel_basic_success.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, @@ -32,19 +32,19 @@ def main(): ) response = client.occurrences.begin_cancel( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", - occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", body={ "resourceIds": [ - "/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", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", ] }, ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/Occurrences_Cancel_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Occurrences_Cancel_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_entire_occurrence_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_entire_occurrence_success.py new file mode 100644 index 000000000000..b20c05950387 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_entire_occurrence_success.py @@ -0,0 +1,44 @@ +# 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 occurrences_cancel_entire_occurrence_success.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.occurrences.begin_cancel( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", + body={"resourceIds": []}, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_Cancel_EntireOccurrenceSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_partial_success.py new file mode 100644 index 000000000000..21fc754d06a3 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_cancel_partial_success.py @@ -0,0 +1,50 @@ +# 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 occurrences_cancel_partial_success.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.occurrences.begin_cancel( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", + body={ + "resourceIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_Cancel_PartialSuccess.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_basic_success.py similarity index 69% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_basic_success.py index 3350f26067b1..4751bda6933a 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrences_delay_maximum_set_gen.py + python occurrences_delay_basic_success.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, @@ -32,20 +32,20 @@ def main(): ) response = client.occurrences.begin_delay( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", - occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", body={ - "delay": "2026-08-05T17:00:00.000-07:00", + "delay": "2026-09-15T09:00:00-07:00", "resourceIds": [ - "/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", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", ], }, ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/Occurrences_Delay_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Occurrences_Delay_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_entire_occurrence_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_entire_occurrence_success.py new file mode 100644 index 000000000000..84f5f54c0c8c --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_entire_occurrence_success.py @@ -0,0 +1,44 @@ +# 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 occurrences_delay_entire_occurrence_success.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.occurrences.begin_delay( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", + body={"delay": "2026-09-15T09:00:00-07:00", "resourceIds": []}, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_Delay_EntireOccurrenceSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_partial_success.py new file mode 100644 index 000000000000..02ae93f7e4b0 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_delay_partial_success.py @@ -0,0 +1,51 @@ +# 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 occurrences_delay_partial_success.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.occurrences.begin_delay( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", + body={ + "delay": "2026-09-15T09:00:00-07:00", + "resourceIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + ], + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_Delay_PartialSuccess.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_basic_success.py similarity index 82% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_basic_success.py index fe5c37b91569..f9026a20f84a 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrences_get_maximum_set_gen.py + python occurrences_get_basic_success.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, @@ -31,13 +31,13 @@ def main(): ) response = client.occurrences.get( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", - occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", ) print(response) -# x-ms-original-file: 2026-09-06-preview/Occurrences_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Occurrences_Get_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_comprehensive_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_comprehensive_success.py new file mode 100644 index 000000000000..d526bee94c06 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_get_comprehensive_success.py @@ -0,0 +1,43 @@ +# 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 occurrences_get_comprehensive_success.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.occurrences.get( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="88888888-8888-8888-8888-888888888888", + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_Get_ComprehensiveSuccess.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_basic_success.py similarity index 84% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_basic_success.py index 11b87b9fee53..d684a013795a 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrences_list_by_scheduled_action_maximum_set_gen.py + python occurrences_list_by_scheduled_action_basic_success.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, @@ -31,13 +31,13 @@ def main(): ) response = client.occurrences.list_by_scheduled_action( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ) for item in response: print(item) -# x-ms-original-file: 2026-09-06-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Occurrences_ListByScheduledAction_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_paged_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_paged_success.py new file mode 100644 index 000000000000..dc71961d28ec --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_by_scheduled_action_paged_success.py @@ -0,0 +1,43 @@ +# 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 occurrences_list_by_scheduled_action_paged_success.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.occurrences.list_by_scheduled_action( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_ListByScheduledAction_PagedSuccess.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_basic_success.py similarity index 81% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_basic_success.py index 6e4fc781ab62..e804a9b34eba 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python occurrences_list_resources_maximum_set_gen.py + python occurrences_list_resources_basic_success.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, @@ -31,14 +31,14 @@ def main(): ) response = client.occurrences.list_resources( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", - occurrence_id="67b5bada-4772-43fc-8dbb-402476d98a45", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="77777777-7777-7777-7777-777777777777", ) for item in response: print(item) -# x-ms-original-file: 2026-09-06-preview/Occurrences_ListResources_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Occurrences_ListResources_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_paged_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_paged_success.py new file mode 100644 index 000000000000..f6f3ee624efe --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/occurrences_list_resources_paged_success.py @@ -0,0 +1,44 @@ +# 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 occurrences_list_resources_paged_success.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.occurrences.list_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + occurrence_id="88888888-8888-8888-8888-888888888888", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/Occurrences_ListResources_PagedSuccess.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 0cb5885ef936..7251222ec2e8 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-09-06-preview/Operations_List_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/Operations_List_MaximumSet_Gen.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen_copy.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen_copy.py new file mode 100644 index 000000000000..e1c749bde39b --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/operations_list_maximum_set_gen_copy.py @@ -0,0 +1,40 @@ +# 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 operations_list_maximum_set_gen_copy.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.operations.list() + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/Operations_List_MaximumSet_Gen copy.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 21fcf6d9119e..5cf90b131c9d 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-09-06-preview/Operations_List_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-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 73f53e4ebafc..b874d1c59df9 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-09-06-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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 8bdf08980e30..ff47f7836e35 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-09-06-preview/ScheduledActionOperationStatus_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-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_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_basic_success.py new file mode 100644 index 000000000000..efa2de725711 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_basic_success.py @@ -0,0 +1,53 @@ +# 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 scheduled_actions_attach_resources_basic_success.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.scheduled_actions.begin_attach_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resources": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01" + }, + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02" + }, + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_AttachResources_BasicSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_comprehensive_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_comprehensive_success.py new file mode 100644 index 000000000000..7ecf2ca68982 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_comprehensive_success.py @@ -0,0 +1,70 @@ +# 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 scheduled_actions_attach_resources_comprehensive_success.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.scheduled_actions.begin_attach_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resources": [ + { + "notificationSettings": [ + { + "destination": "web-operations@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + }, + { + "notificationSettings": [ + { + "destination": "service-owners@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + }, + {"destination": "audit@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}, + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + }, + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_AttachResources_ComprehensiveSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_partial_success.py new file mode 100644 index 000000000000..b0aca58210f1 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_partial_success.py @@ -0,0 +1,53 @@ +# 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 scheduled_actions_attach_resources_partial_success.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.scheduled_actions.begin_attach_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resources": [ + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01" + }, + { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02" + }, + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_AttachResources_PartialSuccess.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_basic_success.py similarity index 72% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_basic_success.py index 9a5daa361ef3..a2f3ded19b27 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_cancel_next_occurrence_maximum_set_gen.py + python scheduled_actions_cancel_next_occurrence_basic_success.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, @@ -32,18 +32,18 @@ def main(): ) response = client.scheduled_actions.begin_cancel_next_occurrence( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", body={ "resourceIds": [ - "/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", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", ] }, ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_CancelNextOccurrence_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_entire_occurrence_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_entire_occurrence_success.py new file mode 100644 index 000000000000..27c262885dc6 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_entire_occurrence_success.py @@ -0,0 +1,43 @@ +# 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 scheduled_actions_cancel_next_occurrence_entire_occurrence_success.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.scheduled_actions.begin_cancel_next_occurrence( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={"resourceIds": []}, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_CancelNextOccurrence_EntireOccurrenceSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_partial_success.py new file mode 100644 index 000000000000..117224f46796 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_cancel_next_occurrence_partial_success.py @@ -0,0 +1,49 @@ +# 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 scheduled_actions_cancel_next_occurrence_partial_success.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.scheduled_actions.begin_cancel_next_occurrence( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resourceIds": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_CancelNextOccurrence_PartialSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_basic_success.py new file mode 100644 index 000000000000..cb1edc2f92f2 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_basic_success.py @@ -0,0 +1,56 @@ +# 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 scheduled_actions_create_or_update_basic_success.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.scheduled_actions.begin_create_or_update( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + resource={ + "location": "eastus", + "properties": { + "actionType": "Start", + "notificationSettings": [], + "resourceType": "VirtualMachine", + "schedule": { + "requestedWeekDays": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], + "scheduledTime": "07:00:00", + "timeZone": "America/Los_Angeles", + }, + "startTime": "2026-09-15T07:00:00-07:00", + }, + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_CreateOrUpdate_BasicSuccess.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_comprehensive_success.py similarity index 82% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_create_or_update_comprehensive_success.py index a8b33b01b993..bd8117fe0202 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_comprehensive_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_create_or_update_maximum_set_gen.py + python scheduled_actions_create_or_update_comprehensive_success.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, @@ -31,14 +31,14 @@ def main(): ) response = client.scheduled_actions.begin_create_or_update( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="first-fifteenth-start", resource={ "location": "eastus", "properties": { "actionType": "Start", "disabled": False, - "endTime": "2026-04-17T00:23:55.281Z", + "endTime": "2027-09-01T19:00:00-07:00", "notificationSettings": [ {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"} ], @@ -50,14 +50,14 @@ def main(): "scheduledTime": "19:00:00", "timeZone": "America/Los_Angeles", }, - "startTime": "2025-04-17T00:23:55.281Z", + "startTime": "2026-09-01T19:00:00-07:00", }, - "tags": {"key2102": "myTagValue"}, + "tags": {"environment": "production"}, }, ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_CreateOrUpdate_ComprehensiveSuccess.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_basic_success.py similarity index 84% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_delete_basic_success.py index 6ae84b7a6fc0..71706c7fe812 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_delete_maximum_set_gen.py + python scheduled_actions_delete_basic_success.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, @@ -31,11 +31,11 @@ def main(): ) client.scheduled_actions.begin_delete( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ).result() -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Delete_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Delete_BasicSuccess.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_basic_success.py similarity index 72% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_basic_success.py index 6cbacb3905df..87fc9764be33 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_detach_resources_maximum_set_gen.py + python scheduled_actions_detach_resources_basic_success.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, @@ -32,18 +32,18 @@ def main(): ) response = client.scheduled_actions.begin_detach_resources( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", body={ "resources": [ - "/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", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", ] }, ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_DetachResources_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_partial_success.py new file mode 100644 index 000000000000..467999d92865 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_detach_resources_partial_success.py @@ -0,0 +1,49 @@ +# 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 scheduled_actions_detach_resources_partial_success.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.scheduled_actions.begin_detach_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resources": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + ] + }, + ).result() + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_DetachResources_PartialSuccess.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_basic_success.py similarity index 84% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_disable_basic_success.py index 8960ffc63580..7d35fef45df2 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_disable_maximum_set_gen.py + python scheduled_actions_disable_basic_success.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, @@ -31,11 +31,11 @@ def main(): ) client.scheduled_actions.begin_disable( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ).result() -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Disable_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Disable_BasicSuccess.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_basic_success.py similarity index 84% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_enable_basic_success.py index 73f88f45c607..e8f4f8f63c84 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_enable_maximum_set_gen.py + python scheduled_actions_enable_basic_success.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, @@ -31,11 +31,11 @@ def main(): ) client.scheduled_actions.begin_enable( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ).result() -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Enable_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Enable_BasicSuccess.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_basic_success.py similarity index 85% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_basic_success.py index 8f7eb6d98c10..cbefa573e855 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_get_maximum_set_gen.py + python scheduled_actions_get_basic_success.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, @@ -31,12 +31,12 @@ def main(): ) response = client.scheduled_actions.get( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ) print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_Get_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Get_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_comprehensive_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_comprehensive_success.py new file mode 100644 index 000000000000..4f692514b6df --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_get_comprehensive_success.py @@ -0,0 +1,42 @@ +# 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 scheduled_actions_get_comprehensive_success.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.scheduled_actions.get( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Get_ComprehensiveSuccess.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_paged_success.py similarity index 86% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_resource_group_paged_success.py index 281976847588..4d76f615cf64 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_paged_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_list_by_resource_group_maximum_set_gen.py + python scheduled_actions_list_by_resource_group_paged_success.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, @@ -31,12 +31,12 @@ def main(): ) response = client.scheduled_actions.list_by_resource_group( - resource_group_name="rgcompute", + resource_group_name="example-rg", ) for item in response: print(item) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_ListByResourceGroup_PagedSuccess.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_paged_success.py similarity index 89% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_by_subscription_paged_success.py index c621bedd5b7b..70bec8ab9eb0 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_paged_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_list_by_subscription_maximum_set_gen.py + python scheduled_actions_list_by_subscription_paged_success.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, @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_ListBySubscription_PagedSuccess.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_paged_success.py similarity index 84% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_list_resources_paged_success.py index 712d98f30d89..a32443b3c8be 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_paged_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_list_resources_maximum_set_gen.py + python scheduled_actions_list_resources_paged_success.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, @@ -31,13 +31,13 @@ def main(): ) response = client.scheduled_actions.list_resources( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ) for item in response: print(item) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_ListResources_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_ListResources_PagedSuccess.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_patch_resources_basic_success.py similarity index 57% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_attach_resources_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_basic_success.py index 15b5381132c2..ff1ac4e8aab4 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_patch_resources_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_attach_resources_maximum_set_gen.py + python scheduled_actions_patch_resources_basic_success.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, @@ -31,29 +31,39 @@ def main(): subscription_id="SUBSCRIPTION_ID", ) - response = client.scheduled_actions.begin_attach_resources( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + response = client.scheduled_actions.patch_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", body={ "resources": [ { "notificationSettings": [ - {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"} + { + "destination": "operations@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + } ], - "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", }, { "notificationSettings": [ - {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"} + { + "destination": "operations@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + } ], - "resourceId": "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/rgcompute/providers/Microsoft.Compute/virtualMachines/myVm2", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", }, ] }, - ).result() + ) print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_PatchResources_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_comprehensive_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_comprehensive_success.py new file mode 100644 index 000000000000..532d25cf4a60 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_comprehensive_success.py @@ -0,0 +1,70 @@ +# 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 scheduled_actions_patch_resources_comprehensive_success.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.scheduled_actions.patch_resources( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + body={ + "resources": [ + { + "notificationSettings": [ + { + "destination": "web-operations@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + } + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", + }, + { + "notificationSettings": [ + { + "destination": "service-owners@contoso.com", + "disabled": False, + "language": "en-us", + "type": "Email", + }, + {"destination": "audit@contoso.com", "disabled": True, "language": "en-us", "type": "Email"}, + ], + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", + }, + ] + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_PatchResources_ComprehensiveSuccess.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_partial_success.py similarity index 76% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_patch_resources_partial_success.py index b262746af380..0591705e3a4f 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_partial_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_patch_resources_maximum_set_gen.py + python scheduled_actions_patch_resources_partial_success.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, @@ -32,21 +32,21 @@ def main(): ) response = client.scheduled_actions.patch_resources( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", body={ "resources": [ { "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/myVm", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-01", }, { "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", + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/web-vm-02", }, ] }, @@ -54,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_PatchResources_PartialSuccess.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_basic_success.py similarity index 83% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_trigger_manual_occurrence_basic_success.py index 8d3a29fba161..002eca36d571 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python scheduled_actions_trigger_manual_occurrence_maximum_set_gen.py + python scheduled_actions_trigger_manual_occurrence_basic_success.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, @@ -31,12 +31,12 @@ def main(): ) response = client.scheduled_actions.begin_trigger_manual_occurrence( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", + resource_group_name="example-rg", + scheduled_action_name="weekday-start", ).result() print(response) -# x-ms-original-file: 2026-09-06-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_TriggerManualOccurrence_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_basic_success.py new file mode 100644 index 000000000000..dc52437bdf63 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_basic_success.py @@ -0,0 +1,42 @@ +# 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 scheduled_actions_update_basic_success.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", + ) + + client.scheduled_actions.begin_update( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + properties={"properties": {"actionType": "Deallocate"}}, + ).result() + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Update_BasicSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_comprehensive_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_comprehensive_success.py new file mode 100644 index 000000000000..a7675b48dcff --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_comprehensive_success.py @@ -0,0 +1,52 @@ +# 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 scheduled_actions_update_comprehensive_success.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", + ) + + client.scheduled_actions.begin_update( + resource_group_name="example-rg", + scheduled_action_name="weekday-start", + properties={ + "properties": { + "schedule": { + "requestedDaysOfTheMonth": [15], + "requestedMonths": ["January"], + "requestedWeekDays": ["Monday"], + "scheduledTime": "19:00:00", + "timeZone": "America/Los_Angeles", + } + } + }, + ).result() + + +# x-ms-original-file: 2026-10-06-preview/ScheduledActions_Update_ComprehensiveSuccess.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 deleted file mode 100644 index 54d1f06edcf8..000000000000 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/scheduled_actions_update_maximum_set_gen.py +++ /dev/null @@ -1,63 +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 scheduled_actions_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", - ) - - client.scheduled_actions.begin_update( - resource_group_name="rgcompute", - scheduled_action_name="myScheduledAction", - properties={ - "properties": { - "actionType": "Start", - "disabled": True, - "endTime": "2025-04-17T00:23:58.149Z", - "notificationSettings": [ - {"destination": "admin@contoso.com", "disabled": True, "language": "en-us", "type": "Email"} - ], - "resourceType": "VirtualMachine", - "schedule": { - "deadlineType": "InitiateAt", - "executionParameters": {"retryPolicy": {"retryCount": 17, "retryWindowInMinutes": 29}}, - "requestedDaysOfTheMonth": [15], - "requestedMonths": ["January"], - "requestedWeekDays": ["Monday"], - "scheduledTime": "19:00:00", - "timeZone": "America/Los_Angeles", - }, - "startTime": "2025-04-17T00:23:58.149Z", - }, - "tags": {"key9989": "myTagValue"}, - }, - ).result() - - -# 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_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_basic_success.py new file mode 100644 index 000000000000..e156da1634c0 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_basic_success.py @@ -0,0 +1,43 @@ +# 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_basic_success.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="example-rg", + location="eastus", + body={"operationIds": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_BasicSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_mixed_results.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_mixed_results.py new file mode 100644 index 000000000000..9d16cccb1de9 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_mixed_results.py @@ -0,0 +1,49 @@ +# 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_mixed_results.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="example-rg", + location="eastus", + body={ + "operationIds": [ + "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", + "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", + "cccccccc-cccc-cccc-cccc-cccccccccccc", + ] + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MixedResults.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_operation_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_operation_not_found_error.py new file mode 100644 index 000000000000..8607ace77921 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_operation_not_found_error.py @@ -0,0 +1,44 @@ +# 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 virtual_machine_bulk_operations_bulk_acknowledge_operation_errors_operation_not_found_error.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="example-rg", + location="eastus", + body={"operationIds": ["dddddddd-dddd-dddd-dddd-dddddddddddd"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_OperationNotFoundError.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_basic_success.py similarity index 78% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_basic_success.py index 37326e161b52..5636d4a63025 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_cancel_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_cancel_basic_success.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, @@ -31,13 +31,13 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_cancel_operations( - resource_group_name="rgBulkactions", - location="useast2euap", - request_body={"operationIds": ["af449548-8e1a-4079-874e-2caa4ff783cc"]}, + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"]}, ) print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkCancel_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkCancel_BasicSuccess.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_operation_not_found_error.py similarity index 79% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_operation_not_found_error.py index fe46cecdd1dc..79767642fbae 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_operation_not_found_error.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_cancel_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_cancel_operation_not_found_error.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, @@ -31,13 +31,13 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_cancel_operations( - resource_group_name="rgBulkactions", - location="useast2euap", - request_body={"operationIds": ["af449548-8e1a-4079-874e-2caa4ff783cc"]}, + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["dddddddd-dddd-dddd-dddd-dddddddddddd"]}, ) print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkCancel_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkCancel_OperationNotFoundError.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_partial_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_partial_success.py new file mode 100644 index 000000000000..c8b387c000dd --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_cancel_partial_success.py @@ -0,0 +1,43 @@ +# 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_cancel_partial_success.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_cancel_operations( + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "dddddddd-dddd-dddd-dddd-dddddddddddd"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkCancel_PartialSuccess.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_basic_success.py similarity index 70% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_basic_success.py index 4e81aa9be144..0bc053dbc053 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_deallocate_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_deallocate_basic_success.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, @@ -32,15 +32,14 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_deallocate_operation( - resource_group_name="rgBulkactions", - location="useast2euap", + resource_group_name="example-rg", + location="eastus", request_body={ - "executionParameters": { - "retryPolicy": {"onFailureAction": "Deallocate", "retryCount": 2, "retryWindowInMinutes": 19} - }, + "executionParameters": {"retryPolicy": {"retryWindowInMinutes": 30}}, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -48,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkDeallocate_BasicSuccess.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_vm_not_found_error.py similarity index 73% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_deallocate_vm_not_found_error.py index 3b54a278691e..ce4a474297f8 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_vm_not_found_error.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_deallocate_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_deallocate_vm_not_found_error.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, @@ -32,13 +32,14 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_deallocate_operation( - resource_group_name="myResourceGroup", - location="eastus2euap", + resource_group_name="example-rg", + location="eastus", request_body={ "executionParameters": {}, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/missing-vm", ] }, }, @@ -46,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkDeallocate_VmNotFoundError.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_basic_success.py similarity index 73% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_basic_success.py index 9476b3ba4ae9..cf14f95123dc 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_delete_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_delete_basic_success.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, @@ -32,13 +32,14 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_delete_operation( - resource_group_name="myResourceGroup", - location="eastus2euap", + resource_group_name="example-rg", + location="eastus", request_body={ "executionParameters": {}, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -46,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDelete_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkDelete_BasicSuccess.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_force_delete_success.py similarity index 72% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_force_delete_success.py index a0b277027b56..e673b82b5f8f 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_force_delete_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_delete_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_delete_force_delete_success.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, @@ -32,16 +32,15 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_delete_operation( - resource_group_name="rgBulkactions", - location="useast2euap", + resource_group_name="example-rg", + location="eastus", request_body={ - "executionParameters": { - "retryPolicy": {"onFailureAction": "Delete", "retryCount": 2, "retryWindowInMinutes": 19} - }, + "executionParameters": {}, "forceDeletion": True, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -49,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkDelete_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkDelete_ForceDeleteSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_vm_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_vm_not_found_error.py new file mode 100644 index 000000000000..a2e1468715eb --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_delete_vm_not_found_error.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_delete_vm_not_found_error.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_delete_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/missing-vm", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkDelete_VmNotFoundError.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_basic_success.py similarity index 81% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_basic_success.py index 5f5074354cf5..379eb4b2c1e0 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_basic_success.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_get_operations_status_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_get_operations_status_basic_success.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, @@ -31,13 +31,13 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_get_operations_status( - resource_group_name="rgBulkactions", - location="useast2euap", - request_body={"operationIds": ["406e7856-f94b-48ae-93ee-b062afee54e5"]}, + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb"]}, ) print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_after_hibernate_fail.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_after_hibernate_fail.py new file mode 100644 index 000000000000..699541ccb97e --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_after_hibernate_fail.py @@ -0,0 +1,44 @@ +# 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 virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_after_hibernate_fail.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_get_operations_status( + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["ffffffff-ffff-ffff-ffff-ffffffffffff"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_DeallocateFallbackAfterHibernateFail.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_failed_after_hibernate_fail.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_failed_after_hibernate_fail.py new file mode 100644 index 000000000000..671d9d59e4c7 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_failed_after_hibernate_fail.py @@ -0,0 +1,44 @@ +# 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 virtual_machine_bulk_operations_bulk_get_operations_status_deallocate_fallback_failed_after_hibernate_fail.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_get_operations_status( + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["7f3c98a4-64b8-4d6a-b215-890c16d27643"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_DeallocateFallbackFailedAfterHibernateFail.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_failed_operation.py similarity index 82% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_failed_operation.py index 9d8d0b6d510f..cd4e37bac07d 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_failed_operation.py @@ -15,7 +15,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_get_operations_status_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_get_operations_status_failed_operation.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, @@ -31,13 +31,13 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_get_operations_status( - resource_group_name="rgBulkactions", - location="useast2euap", - request_body={"operationIds": ["406e7856-f94b-48ae-93ee-b062afee54e5"]}, + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["e69c80d2-4f31-46ac-9e35-c6a7cb63fe12"]}, ) print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_FailedOperation.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_operation_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_operation_not_found_error.py new file mode 100644 index 000000000000..27b2b082fd2f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_get_operations_status_operation_not_found_error.py @@ -0,0 +1,44 @@ +# 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 virtual_machine_bulk_operations_bulk_get_operations_status_operation_not_found_error.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_get_operations_status( + resource_group_name="example-rg", + location="eastus", + request_body={"operationIds": ["aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", "dddddddd-dddd-dddd-dddd-dddddddddddd"]}, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_OperationNotFoundError.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_basic.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_basic.py new file mode 100644 index 000000000000..2a4cd106b8dc --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_basic.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_hibernate_basic.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_hibernate_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkHibernate_Basic.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 deleted file mode 100644 index f0f90495953c..000000000000 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_maximum_set_gen.py +++ /dev/null @@ -1,56 +0,0 @@ -# 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 virtual_machine_bulk_operations_bulk_hibernate_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_hibernate_operation( - resource_group_name="rgBulkactions", - location="useast2euap", - request_body={ - "executionParameters": { - "retryPolicy": {"onFailureAction": "Hibernate", "retryCount": 2, "retryWindowInMinutes": 19} - }, - "resourcesWithContext": { - "resources": [ - { - "resourceContext": "hibernateContext", - "resourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", - } - ] - }, - }, - ) - print(response) - - -# 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_vm_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_vm_not_found_error.py new file mode 100644 index 000000000000..67b17a5ae04d --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_vm_not_found_error.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_hibernate_vm_not_found_error.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_hibernate_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/missing-vm", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkHibernate_VmNotFoundError.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_with_fallback.py similarity index 74% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_hibernate_with_fallback.py index 9b5a4f520987..e0935039ee18 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_with_fallback.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_hibernate_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_hibernate_with_fallback.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, @@ -32,13 +32,13 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_hibernate_operation( - resource_group_name="myResourceGroup", - location="eastus2euap", + resource_group_name="example-rg", + location="eastus", request_body={ - "executionParameters": {}, + "executionParameters": {"retryPolicy": {"onFailureAction": "Deallocate", "retryWindowInMinutes": 30}}, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01" ] }, }, @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkHibernate_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkHibernate_WithFallback.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_basic_success.py new file mode 100644 index 000000000000..a4843e33a60f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_basic_success.py @@ -0,0 +1,43 @@ +# 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_basic_success.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="example-rg", + location="eastus", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_BasicSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_invalid_lookback_window_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_invalid_lookback_window_error.py new file mode 100644 index 000000000000..62297bfdc0b4 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_invalid_lookback_window_error.py @@ -0,0 +1,44 @@ +# 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 virtual_machine_bulk_operations_bulk_list_operation_errors_invalid_lookback_window_error.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="example-rg", + location="eastus", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_InvalidLookbackWindowError.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_paginated_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_paginated_success.py new file mode 100644 index 000000000000..2a5b95bce6b8 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_list_operation_errors_paginated_success.py @@ -0,0 +1,43 @@ +# 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_paginated_success.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="example-rg", + location="eastus", + ) + for item in response: + print(item) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_PaginatedSuccess.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_basic_success.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_basic_success.py new file mode 100644 index 000000000000..922e9e36ba04 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_basic_success.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_reimage_basic_success.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_reimage_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkReimage_BasicSuccess.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_comprehensive_success.py similarity index 57% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_comprehensive_success.py index bcf04cc4fc06..e1c8dc020e04 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_comprehensive_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_reimage_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_reimage_comprehensive_success.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, @@ -32,33 +32,27 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_reimage_operation( - resource_group_name="rgBulkactions", - location="useast2euap", + resource_group_name="example-rg", + location="eastus", request_body={ - "executionParameters": {"retryPolicy": {"retryCount": 2, "retryWindowInMinutes": 19}}, + "executionParameters": {"retryPolicy": {"retryWindowInMinutes": 30}}, "reimageParameters": { "baseProfile": { - "exactVersion": "zjmkrnqjmzs", - "osProfile": {"adminPassword": "", "customData": "teyngslcznlxihiitqbul"}, - "tempDisk": True, + "exactVersion": "1.0.0", + "osProfile": {"customData": "I2Nsb3VkLWNvbmZpZwpwYWNrYWdlX3VwZ3JhZGU6IHRydWUK"}, + "tempDisk": False, }, "resourceOverrides": [ { - "profile": { - "exactVersion": "zjmkrnqjmzs", - "osProfile": { - "adminPassword": "", - "customData": "teyngslcznlxihiitqbul", - }, - "tempDisk": True, - }, - "resourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + "profile": {"exactVersion": "1.1.0", "tempDisk": False}, + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", } ], }, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -66,6 +60,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkReimage_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkReimage_ComprehensiveSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_vm_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_vm_not_found_error.py new file mode 100644 index 000000000000..7cbf8b5d5f58 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_vm_not_found_error.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_reimage_vm_not_found_error.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_reimage_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/missing-vm", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkReimage_VmNotFoundError.json +if __name__ == "__main__": + main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_with_reimage_payload.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_with_reimage_payload.py new file mode 100644 index 000000000000..f9bd70a3142f --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_reimage_with_reimage_payload.py @@ -0,0 +1,61 @@ +# 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 virtual_machine_bulk_operations_bulk_reimage_with_reimage_payload.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_reimage_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "reimageParameters": { + "baseProfile": {"tempDisk": True}, + "resourceOverrides": [ + { + "profile": {"tempDisk": False}, + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/ephemeral-vm-02", + } + ], + }, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/ephemeral-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/ephemeral-vm-02", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkReimage_WithReimagePayload.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_basic_success.py similarity index 73% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_basic_success.py index 40fbbe4fd1d7..cba9ef7628ef 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_basic_success.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_start_minimum_set_gen.py + python virtual_machine_bulk_operations_bulk_start_basic_success.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, @@ -32,13 +32,14 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_start_operation( - resource_group_name="myResourceGroup", - location="eastus2euap", + resource_group_name="example-rg", + location="eastus", request_body={ "executionParameters": {}, "resources": { "ids": [ - "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -46,6 +47,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkStart_MinimumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkStart_BasicSuccess.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_vm_not_found_error.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_vm_not_found_error.py new file mode 100644 index 000000000000..f11498392f30 --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_vm_not_found_error.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_start_vm_not_found_error.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_start_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/missing-vm", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkStart_VmNotFoundError.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_with_capacity_recommendations.py similarity index 71% rename from sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py rename to sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_with_capacity_recommendations.py index 85ac2ea51686..cf75635641e4 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_with_capacity_recommendations.py @@ -16,7 +16,7 @@ pip install azure-identity pip install azure-mgmt-compute-bulkaction # USAGE - python virtual_machine_bulk_operations_bulk_start_maximum_set_gen.py + python virtual_machine_bulk_operations_bulk_start_with_capacity_recommendations.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, @@ -32,8 +32,8 @@ def main(): ) response = client.virtual_machine_bulk_operations.bulk_start_operation( - resource_group_name="rgBulkactions", - location="useast2euap", + resource_group_name="example-rg", + location="eastus", request_body={ "executionParameters": { "capacityRecommendationParameters": { @@ -41,14 +41,12 @@ def main(): "desiredLocations": ["eastus", "westus2"], "desiredSizes": ["Standard_D2s_v5", "Standard_D4s_v5"], }, - "retryPolicy": {"onFailureAction": "Start", "retryCount": 2, "retryWindowInMinutes": 19}, + "retryPolicy": {"retryWindowInMinutes": 30}, }, - "resourcesWithContext": { - "resources": [ - { - "resourceContext": "startContext", - "resourceId": "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", - } + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", ] }, }, @@ -56,6 +54,6 @@ def main(): print(response) -# x-ms-original-file: 2026-09-06-preview/VirtualMachineBulkOperations_BulkStart_MaximumSet_Gen.json +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkStart_WithCapacityRecommendations.json if __name__ == "__main__": main() diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_with_vm_agent_health_verification.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_with_vm_agent_health_verification.py new file mode 100644 index 000000000000..fa864b7a4ccd --- /dev/null +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_samples/virtual_machine_bulk_operations_bulk_start_with_vm_agent_health_verification.py @@ -0,0 +1,52 @@ +# 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 virtual_machine_bulk_operations_bulk_start_with_vm_agent_health_verification.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_start_operation( + resource_group_name="example-rg", + location="eastus", + request_body={ + "executionParameters": {"retryPolicy": {"retryWindowInMinutes": 30}, "verifyVmAgentHealth": True}, + "resources": { + "ids": [ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Compute/virtualMachines/bulk-vm-02", + ] + }, + }, + ) + print(response) + + +# x-ms-original-file: 2026-10-06-preview/VirtualMachineBulkOperations_BulkStart_WithVmAgentHealthVerification.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 6bf617ec83e9..61c244b5456a 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 @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -322,15 +321,11 @@ def test_bulk_create_custom_begin_create_or_update(self, resource_group): } ], }, - "priorityProfile": { - "allocationStrategy": "str", - "evictionPolicy": "str", - "maxPricePerVM": 0.0, - "type": "str", - }, + "priorityProfile": {"evictionPolicy": "str", "maxPricePerVM": 0.0, "type": "str"}, "capacityType": "str", "createdTime": "2020-02-20 00:00:00", "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -633,300 +628,6 @@ def test_bulk_create_custom_begin_create_or_update(self, resource_group): "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"}, "provisioningState": "str", "resources": [{"virtualMachineInfo": {"name": "str", "vmSize": "str", "zone": "str"}}], - "vmSizesProfile": [ - { - "name": "str", - "rank": 0, - "override": { - "extensions": [ - { - "name": "str", - "properties": { - "autoUpgradeMinorVersion": bool, - "enableAutomaticUpgrade": bool, - "forceUpdateTag": "str", - "protectedSettings": {"str": {}}, - "protectedSettingsFromKeyVault": { - "secretUrl": "str", - "sourceVault": {"id": "str"}, - }, - "provisionAfterExtensions": ["str"], - "publisher": "str", - "settings": {"str": {}}, - "suppressFailures": bool, - "type": "str", - "typeHandlerVersion": "str", - }, - } - ], - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "plan": { - "name": "str", - "product": "str", - "publisher": "str", - "promotionCode": "str", - "version": "str", - }, - "tags": {"str": "str"}, - "virtualMachineProfile": { - "additionalCapabilities": {"hibernationEnabled": bool, "ultraSSDEnabled": bool}, - "applicationProfile": { - "galleryApplications": [ - { - "packageReferenceId": "str", - "configurationReference": "str", - "enableAutomaticUpgrade": bool, - "order": 0, - "tags": "str", - "treatFailureAsDeploymentFailure": bool, - } - ] - }, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, - "diagnosticsProfile": {"bootDiagnostics": {"enabled": bool, "storageUri": "str"}}, - "extensionsTimeBudget": "str", - "hardwareProfile": { - "vmSize": "str", - "vmSizeProperties": {"vCpusAvailable": 0, "vCpusPerCore": 0}, - }, - "licenseType": "str", - "networkProfile": { - "networkApiVersion": "str", - "networkInterfaceConfigurations": [ - { - "name": "str", - "properties": { - "ipConfigurations": [ - { - "name": "str", - "properties": { - "applicationGatewayBackendAddressPools": [ - {"id": "str"} - ], - "applicationSecurityGroups": [{"id": "str"}], - "loadBalancerBackendAddressPools": [{"id": "str"}], - "primary": bool, - "privateIPAddressVersion": "str", - "publicIPAddressConfiguration": { - "name": "str", - "properties": { - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - }, - "idleTimeoutInMinutes": 0, - "ipTags": [{"ipTagType": "str", "tag": "str"}], - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": {"id": "str"}, - }, - "sku": {"name": "str", "tier": "str"}, - "tags": {"str": "str"}, - }, - "subnet": {"id": "str"}, - }, - } - ], - "auxiliaryMode": "str", - "auxiliarySku": "str", - "deleteOption": "str", - "disableTcpStateTracking": bool, - "dnsSettings": {"dnsServers": ["str"]}, - "dscpConfiguration": {"id": "str"}, - "enableAcceleratedNetworking": bool, - "enableFpga": bool, - "enableIPForwarding": bool, - "networkSecurityGroup": {"id": "str"}, - "primary": bool, - }, - "tags": {"str": "str"}, - } - ], - "networkInterfaces": [ - {"id": "str", "properties": {"deleteOption": "str", "primary": bool}} - ], - }, - "osProfile": { - "adminPassword": "str", - "adminUsername": "str", - "allowExtensionOperations": bool, - "computerName": "str", - "customData": "str", - "linuxConfiguration": { - "disablePasswordAuthentication": bool, - "enableVMAgentPlatformUpdates": bool, - "patchSettings": { - "assessmentMode": "str", - "automaticByPlatformSettings": { - "bypassPlatformSafetyChecksOnUserSchedule": bool, - "rebootSetting": "str", - }, - "patchMode": "str", - }, - "provisionVMAgent": bool, - "ssh": {"publicKeys": [{"keyData": "str", "path": "str"}]}, - }, - "requireGuestProvisionSignal": bool, - "secrets": [ - { - "sourceVault": {"id": "str"}, - "vaultCertificates": [ - {"certificateStore": "str", "certificateUrl": "str"} - ], - } - ], - "windowsConfiguration": { - "additionalUnattendContent": [ - { - "componentName": "Microsoft-Windows-Shell-Setup", - "content": "str", - "passName": "OobeSystem", - "settingName": "str", - } - ], - "enableAutomaticUpdates": bool, - "patchSettings": { - "assessmentMode": "str", - "automaticByPlatformSettings": { - "bypassPlatformSafetyChecksOnUserSchedule": bool, - "rebootSetting": "str", - }, - "enableHotpatching": bool, - "patchMode": "str", - }, - "provisionVMAgent": bool, - "timeZone": "str", - "winRM": {"listeners": [{"certificateUrl": "str", "protocol": "str"}]}, - }, - }, - "scheduledEventsPolicy": { - "allInstancesDown": {"automaticallyApprove": bool}, - "scheduledEventsAdditionalPublishingTargets": { - "eventGridAndResourceGraph": { - "enable": bool, - "scheduledEventsApiVersion": "str", - } - }, - "userInitiatedReboot": {"automaticallyApprove": bool}, - "userInitiatedRedeploy": {"automaticallyApprove": bool}, - }, - "scheduledEventsProfile": { - "osImageNotificationProfile": {"enable": bool, "notBeforeTimeout": "str"}, - "terminateNotificationProfile": {"enable": bool, "notBeforeTimeout": "str"}, - }, - "securityProfile": { - "encryptionAtHost": bool, - "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": { - "addProxyAgentExtension": bool, - "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, - "keyIncarnationId": 0, - "mode": "str", - "wireServer": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, - }, - "securityType": "str", - "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, - }, - "storageProfile": { - "dataDisks": [ - { - "createOption": "str", - "lun": 0, - "caching": "str", - "deleteOption": "str", - "detachOption": "str", - "diskSizeGB": 0, - "image": {"uri": "str"}, - "managedDisk": { - "diskEncryptionSet": {"id": "str"}, - "id": "str", - "securityProfile": { - "diskEncryptionSet": {"id": "str"}, - "securityEncryptionType": "str", - }, - "storageAccountType": "str", - }, - "name": "str", - "sourceResource": {"id": "str"}, - "toBeDetached": bool, - "vhd": {"uri": "str"}, - "writeAcceleratorEnabled": bool, - } - ], - "diskControllerType": "str", - "imageReference": { - "communityGalleryImageId": "str", - "id": "str", - "offer": "str", - "publisher": "str", - "sharedGalleryImageId": "str", - "sku": "str", - "version": "str", - }, - "osDisk": { - "createOption": "str", - "caching": "str", - "deleteOption": "str", - "diffDiskSettings": {"option": "str", "placement": "str"}, - "diskSizeGB": 0, - "encryptionSettings": { - "diskEncryptionKey": {"secretUrl": "str", "sourceVault": {"id": "str"}}, - "enabled": bool, - "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, - }, - "image": {"uri": "str"}, - "managedDisk": { - "diskEncryptionSet": {"id": "str"}, - "id": "str", - "securityProfile": { - "diskEncryptionSet": {"id": "str"}, - "securityEncryptionType": "str", - }, - "storageAccountType": "str", - }, - "name": "str", - "osType": "str", - "vhd": {"uri": "str"}, - "writeAcceleratorEnabled": bool, - }, - }, - "userData": "str", - "vmExtensions": [ - { - "name": "str", - "properties": { - "autoUpgradeMinorVersion": bool, - "enableAutomaticUpgrade": bool, - "forceUpdateTag": "str", - "protectedSettings": {"str": {}}, - "protectedSettingsFromKeyVault": { - "secretUrl": "str", - "sourceVault": {"id": "str"}, - }, - "provisionAfterExtensions": ["str"], - "publisher": "str", - "settings": {"str": {}}, - "suppressFailures": bool, - "type": "str", - "typeHandlerVersion": "str", - }, - } - ], - }, - }, - } - ], - "zoneAllocationPolicy": { - "distributionStrategy": "str", - "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}], - }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", 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 b76b732b67e2..a090bebb9027 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 @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. @@ -336,15 +335,11 @@ async def test_bulk_create_custom_begin_create_or_update(self, resource_group): } ], }, - "priorityProfile": { - "allocationStrategy": "str", - "evictionPolicy": "str", - "maxPricePerVM": 0.0, - "type": "str", - }, + "priorityProfile": {"evictionPolicy": "str", "maxPricePerVM": 0.0, "type": "str"}, "capacityType": "str", "createdTime": "2020-02-20 00:00:00", "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -657,310 +652,6 @@ async def test_bulk_create_custom_begin_create_or_update(self, resource_group): "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"}, "provisioningState": "str", "resources": [{"virtualMachineInfo": {"name": "str", "vmSize": "str", "zone": "str"}}], - "vmSizesProfile": [ - { - "name": "str", - "rank": 0, - "override": { - "extensions": [ - { - "name": "str", - "properties": { - "autoUpgradeMinorVersion": bool, - "enableAutomaticUpgrade": bool, - "forceUpdateTag": "str", - "protectedSettings": {"str": {}}, - "protectedSettingsFromKeyVault": { - "secretUrl": "str", - "sourceVault": {"id": "str"}, - }, - "provisionAfterExtensions": ["str"], - "publisher": "str", - "settings": {"str": {}}, - "suppressFailures": bool, - "type": "str", - "typeHandlerVersion": "str", - }, - } - ], - "identity": { - "principalId": "str", - "tenantId": "str", - "type": "str", - "userAssignedIdentities": {"str": {"clientId": "str", "principalId": "str"}}, - }, - "plan": { - "name": "str", - "product": "str", - "publisher": "str", - "promotionCode": "str", - "version": "str", - }, - "tags": {"str": "str"}, - "virtualMachineProfile": { - "additionalCapabilities": {"hibernationEnabled": bool, "ultraSSDEnabled": bool}, - "applicationProfile": { - "galleryApplications": [ - { - "packageReferenceId": "str", - "configurationReference": "str", - "enableAutomaticUpgrade": bool, - "order": 0, - "tags": "str", - "treatFailureAsDeploymentFailure": bool, - } - ] - }, - "capacityReservation": {"capacityReservationGroup": {"id": "str"}}, - "diagnosticsProfile": { - "bootDiagnostics": {"enabled": bool, "storageUri": "str"} - }, - "extensionsTimeBudget": "str", - "hardwareProfile": { - "vmSize": "str", - "vmSizeProperties": {"vCpusAvailable": 0, "vCpusPerCore": 0}, - }, - "licenseType": "str", - "networkProfile": { - "networkApiVersion": "str", - "networkInterfaceConfigurations": [ - { - "name": "str", - "properties": { - "ipConfigurations": [ - { - "name": "str", - "properties": { - "applicationGatewayBackendAddressPools": [ - {"id": "str"} - ], - "applicationSecurityGroups": [{"id": "str"}], - "loadBalancerBackendAddressPools": [{"id": "str"}], - "primary": bool, - "privateIPAddressVersion": "str", - "publicIPAddressConfiguration": { - "name": "str", - "properties": { - "deleteOption": "str", - "dnsSettings": { - "domainNameLabel": "str", - "domainNameLabelScope": "str", - }, - "idleTimeoutInMinutes": 0, - "ipTags": [ - {"ipTagType": "str", "tag": "str"} - ], - "publicIPAddressVersion": "str", - "publicIPAllocationMethod": "str", - "publicIPPrefix": {"id": "str"}, - }, - "sku": {"name": "str", "tier": "str"}, - "tags": {"str": "str"}, - }, - "subnet": {"id": "str"}, - }, - } - ], - "auxiliaryMode": "str", - "auxiliarySku": "str", - "deleteOption": "str", - "disableTcpStateTracking": bool, - "dnsSettings": {"dnsServers": ["str"]}, - "dscpConfiguration": {"id": "str"}, - "enableAcceleratedNetworking": bool, - "enableFpga": bool, - "enableIPForwarding": bool, - "networkSecurityGroup": {"id": "str"}, - "primary": bool, - }, - "tags": {"str": "str"}, - } - ], - "networkInterfaces": [ - {"id": "str", "properties": {"deleteOption": "str", "primary": bool}} - ], - }, - "osProfile": { - "adminPassword": "str", - "adminUsername": "str", - "allowExtensionOperations": bool, - "computerName": "str", - "customData": "str", - "linuxConfiguration": { - "disablePasswordAuthentication": bool, - "enableVMAgentPlatformUpdates": bool, - "patchSettings": { - "assessmentMode": "str", - "automaticByPlatformSettings": { - "bypassPlatformSafetyChecksOnUserSchedule": bool, - "rebootSetting": "str", - }, - "patchMode": "str", - }, - "provisionVMAgent": bool, - "ssh": {"publicKeys": [{"keyData": "str", "path": "str"}]}, - }, - "requireGuestProvisionSignal": bool, - "secrets": [ - { - "sourceVault": {"id": "str"}, - "vaultCertificates": [ - {"certificateStore": "str", "certificateUrl": "str"} - ], - } - ], - "windowsConfiguration": { - "additionalUnattendContent": [ - { - "componentName": "Microsoft-Windows-Shell-Setup", - "content": "str", - "passName": "OobeSystem", - "settingName": "str", - } - ], - "enableAutomaticUpdates": bool, - "patchSettings": { - "assessmentMode": "str", - "automaticByPlatformSettings": { - "bypassPlatformSafetyChecksOnUserSchedule": bool, - "rebootSetting": "str", - }, - "enableHotpatching": bool, - "patchMode": "str", - }, - "provisionVMAgent": bool, - "timeZone": "str", - "winRM": {"listeners": [{"certificateUrl": "str", "protocol": "str"}]}, - }, - }, - "scheduledEventsPolicy": { - "allInstancesDown": {"automaticallyApprove": bool}, - "scheduledEventsAdditionalPublishingTargets": { - "eventGridAndResourceGraph": { - "enable": bool, - "scheduledEventsApiVersion": "str", - } - }, - "userInitiatedReboot": {"automaticallyApprove": bool}, - "userInitiatedRedeploy": {"automaticallyApprove": bool}, - }, - "scheduledEventsProfile": { - "osImageNotificationProfile": {"enable": bool, "notBeforeTimeout": "str"}, - "terminateNotificationProfile": {"enable": bool, "notBeforeTimeout": "str"}, - }, - "securityProfile": { - "encryptionAtHost": bool, - "encryptionIdentity": {"userAssignedIdentityResourceId": "str"}, - "proxyAgentSettings": { - "addProxyAgentExtension": bool, - "enabled": bool, - "imds": {"inVMAccessControlProfileReferenceId": "str", "mode": "str"}, - "keyIncarnationId": 0, - "mode": "str", - "wireServer": { - "inVMAccessControlProfileReferenceId": "str", - "mode": "str", - }, - }, - "securityType": "str", - "uefiSettings": {"secureBootEnabled": bool, "vTpmEnabled": bool}, - }, - "storageProfile": { - "dataDisks": [ - { - "createOption": "str", - "lun": 0, - "caching": "str", - "deleteOption": "str", - "detachOption": "str", - "diskSizeGB": 0, - "image": {"uri": "str"}, - "managedDisk": { - "diskEncryptionSet": {"id": "str"}, - "id": "str", - "securityProfile": { - "diskEncryptionSet": {"id": "str"}, - "securityEncryptionType": "str", - }, - "storageAccountType": "str", - }, - "name": "str", - "sourceResource": {"id": "str"}, - "toBeDetached": bool, - "vhd": {"uri": "str"}, - "writeAcceleratorEnabled": bool, - } - ], - "diskControllerType": "str", - "imageReference": { - "communityGalleryImageId": "str", - "id": "str", - "offer": "str", - "publisher": "str", - "sharedGalleryImageId": "str", - "sku": "str", - "version": "str", - }, - "osDisk": { - "createOption": "str", - "caching": "str", - "deleteOption": "str", - "diffDiskSettings": {"option": "str", "placement": "str"}, - "diskSizeGB": 0, - "encryptionSettings": { - "diskEncryptionKey": { - "secretUrl": "str", - "sourceVault": {"id": "str"}, - }, - "enabled": bool, - "keyEncryptionKey": {"keyUrl": "str", "sourceVault": {"id": "str"}}, - }, - "image": {"uri": "str"}, - "managedDisk": { - "diskEncryptionSet": {"id": "str"}, - "id": "str", - "securityProfile": { - "diskEncryptionSet": {"id": "str"}, - "securityEncryptionType": "str", - }, - "storageAccountType": "str", - }, - "name": "str", - "osType": "str", - "vhd": {"uri": "str"}, - "writeAcceleratorEnabled": bool, - }, - }, - "userData": "str", - "vmExtensions": [ - { - "name": "str", - "properties": { - "autoUpgradeMinorVersion": bool, - "enableAutomaticUpgrade": bool, - "forceUpdateTag": "str", - "protectedSettings": {"str": {}}, - "protectedSettingsFromKeyVault": { - "secretUrl": "str", - "sourceVault": {"id": "str"}, - }, - "provisionAfterExtensions": ["str"], - "publisher": "str", - "settings": {"str": {}}, - "suppressFailures": bool, - "type": "str", - "typeHandlerVersion": "str", - }, - } - ], - }, - }, - } - ], - "zoneAllocationPolicy": { - "distributionStrategy": "str", - "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}], - }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py index 9a5dde2034cd..fe45d981aed0 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations.py @@ -321,15 +321,11 @@ def test_bulk_create_begin_create_or_update(self, resource_group): } ], }, - "priorityProfile": { - "allocationStrategy": "str", - "evictionPolicy": "str", - "maxPricePerVM": 0.0, - "type": "str", - }, + "priorityProfile": {"evictionPolicy": "str", "maxPricePerVM": 0.0, "type": "str"}, "capacityType": "str", "createdTime": "2020-02-20 00:00:00", "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -341,11 +337,6 @@ def test_bulk_create_begin_create_or_update(self, resource_group): "minCapacity": 0, "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"}, "provisioningState": "str", - "vmSizesProfile": [{"name": "str", "rank": 0}], - "zoneAllocationPolicy": { - "distributionStrategy": "str", - "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}], - }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", diff --git a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py index 5216a9f9735c..4efa23460c54 100644 --- a/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py +++ b/sdk/compute/azure-mgmt-compute-bulkaction/generated_tests/test_compute_bulk_actions_mgmt_bulk_create_operations_async.py @@ -335,15 +335,11 @@ async def test_bulk_create_begin_create_or_update(self, resource_group): } ], }, - "priorityProfile": { - "allocationStrategy": "str", - "evictionPolicy": "str", - "maxPricePerVM": 0.0, - "type": "str", - }, + "priorityProfile": {"evictionPolicy": "str", "maxPricePerVM": 0.0, "type": "str"}, "capacityType": "str", "createdTime": "2020-02-20 00:00:00", "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -355,11 +351,6 @@ async def test_bulk_create_begin_create_or_update(self, resource_group): "minCapacity": 0, "partialFulfillmentPolicy": {"fulfilledCapacity": 0, "mode": "str", "reason": "str"}, "provisioningState": "str", - "vmSizesProfile": [{"name": "str", "rank": 0}], - "zoneAllocationPolicy": { - "distributionStrategy": "str", - "zonePreferences": [{"rank": 0, "zone": "str", "targetMaxCapacity": 0}], - }, }, "systemData": { "createdAt": "2020-02-20 00:00:00", 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 68b639295d7d..b3ae282b12fd 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 @@ -26,6 +26,7 @@ def test_virtual_machine_bulk_operations_bulk_deallocate_operation(self, resourc location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -50,6 +51,7 @@ def test_virtual_machine_bulk_operations_bulk_hibernate_operation(self, resource location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -74,6 +76,7 @@ def test_virtual_machine_bulk_operations_bulk_start_operation(self, resource_gro location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -98,6 +101,7 @@ def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resource_gr location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -147,6 +151,7 @@ def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, resource_g location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -179,3 +184,26 @@ 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 db75e9051385..7152a6b925fd 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 @@ -27,6 +27,7 @@ async def test_virtual_machine_bulk_operations_bulk_deallocate_operation(self, r location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -51,6 +52,7 @@ async def test_virtual_machine_bulk_operations_bulk_hibernate_operation(self, re location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -75,6 +77,7 @@ async def test_virtual_machine_bulk_operations_bulk_start_operation(self, resour location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -99,6 +102,7 @@ async def test_virtual_machine_bulk_operations_bulk_delete_operation(self, resou location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -148,6 +152,7 @@ async def test_virtual_machine_bulk_operations_bulk_reimage_operation(self, reso location="str", request_body={ "executionParameters": { + "additionalCreateParameters": {"str": {}}, "capacityRecommendationParameters": { "availabilityZones": bool, "desiredLocations": ["str"], @@ -180,3 +185,26 @@ 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 48c4a9f03d74..c2a586f30705 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: 43e3626d45f0c104b0ac50c1540fc2168371b212 +commit: 78dfe543f33839235476c8abc99aad4694436d83 repo: Azure/azure-rest-api-specs additionalDirectories: